migration

This commit is contained in:
Daniel Arantes Loverde
2026-08-11 13:22:02 -03:00
parent c4d6998595
commit 7702836fe7
231 changed files with 4329 additions and 1958 deletions

View File

@@ -0,0 +1,23 @@
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).
/// Logs out in tearDown so guest-only tests elsewhere in the same run don't
/// inherit an authenticated Keychain session.
final class AuthenticatedSessionFlowTests: XCTestCase {
override func setUpWithError() throws {
continueAfterFailure = false
}
override func tearDownWithError() throws {
XCUIApplication().logoutIfAuthenticated()
}
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")
}
}