Refactor iOS UI tests to blueprint architecture
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import XCTest
|
||||
|
||||
/// Rebuild plan for legacy: Suite0_OnboardingTests.test_onboarding
|
||||
/// Split into smaller tests to isolate focus/input/navigation failures.
|
||||
final class Suite0_OnboardingRebuildTests: BaseUITestCase {
|
||||
func testR001_onboardingWelcomeLoadsAndCanNavigateToLoginEntry() {
|
||||
let welcome = OnboardingWelcomeScreen(app: app)
|
||||
welcome.waitForLoad(timeout: defaultTimeout)
|
||||
welcome.tapAlreadyHaveAccount()
|
||||
|
||||
let login = LoginScreen(app: app)
|
||||
login.waitForLoad(timeout: defaultTimeout)
|
||||
}
|
||||
|
||||
func testR002_startFreshFlowReachesCreateAccount() {
|
||||
let createAccount = TestFlows.navigateStartFreshToCreateAccount(app: app, residenceName: "Rebuild Home")
|
||||
createAccount.waitForLoad(timeout: defaultTimeout)
|
||||
}
|
||||
|
||||
func testR003_createAccountExpandedFormFieldsAreInteractable() throws {
|
||||
throw XCTSkip("Skeleton: implement deterministic focus assertions for username/email/password fields")
|
||||
}
|
||||
|
||||
func testR004_emailFieldCanFocusAndAcceptTyping() throws {
|
||||
throw XCTSkip("Skeleton: implement replacement for legacy email focus failure")
|
||||
}
|
||||
|
||||
func testR005_createAccountContinueOnlyAfterValidInputs() throws {
|
||||
throw XCTSkip("Skeleton: validate disabled/enabled state transition for Create Account")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user