import XCTest /// Covers Profile -> Meu Perfil (UserProfileView.swift, ~750 lines, was /// 0.8% covered), reachable via the header's "Ver Perfil" link. final class UserProfileFlowTests: XCTestCase { override func setUpWithError() throws { continueAfterFailure = false } override func tearDownWithError() throws { XCUIApplication().logoutIfAuthenticated() } func testUserProfileReachableFromProfileHeader() throws { let app = XCUIApplication() app.launch() XCTAssertTrue(app.ensureLoggedIn(), "Login never completed") XCTAssertTrue(app.buttons["Sair da Conta"].waitForExistence(timeout: 10), "Never reached authenticated Profile") app.staticTexts["Ver Perfil"].tap() XCTAssertTrue(app.staticTexts["Meu Perfil"].waitForExistence(timeout: 10), "Never reached Meu Perfil") } }