migration
This commit is contained in:
23
PediFoodsUITests/AuthenticatedSessionFlowTests.swift
Normal file
23
PediFoodsUITests/AuthenticatedSessionFlowTests.swift
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user