import XCTest /// Covers a real, authenticated session with the standing QA account (see /// TestFixtures.swift / decisions/2026-08-06-ui-test-account-and-app-attest-bypass.md). /// No per-test logout - the Keychain session is meant to persist across /// authenticated-flow tests in the same run; see /// decisions/2026-09-11-ui-test-shared-login-session.md. final class AuthenticatedSessionFlowTests: XCTestCase { override func setUpWithError() throws { continueAfterFailure = false } func testLoginReachesAuthenticatedProfile() throws { let app = XCUIApplication() app.launch() XCTAssertTrue(app.ensureLoggedIn(), "Login never completed") XCTAssertTrue(app.buttons["Sair da Conta"].waitForExistence(timeout: 10), "Profile tab never showed the authenticated (logged-in) state") } }