Re-enable the AppLock UI tests on iPhone only.

It was only iPad that had an issue.
This commit is contained in:
Doug
2026-05-01 15:00:10 +01:00
committed by Stefan Ceriu
parent 5f5fc15c11
commit 8a6bd920a6
+12 -3
View File
@@ -31,7 +31,10 @@ class AppLockSetupUITests: XCTestCase {
} }
} }
func disabled_testCreateFlow() async throws { func testCreateFlow() async throws {
// There's an issue with the number pad keyboard style on iPad.
guard UIDevice.current.userInterfaceIdiom == .phone else { return }
app = Application.launch(.appLockSetupFlow) app = Application.launch(.appLockSetupFlow)
// Wait for the keyboard to push the sheet up before snapshotting // Wait for the keyboard to push the sheet up before snapshotting
@@ -101,7 +104,10 @@ class AppLockSetupUITests: XCTestCase {
try await app.assertScreenshot(step: Step.setupBiometrics) try await app.assertScreenshot(step: Step.setupBiometrics)
} }
func disabled_testUnlockFlow() async throws { func testUnlockFlow() async throws {
// There's an issue with the number pad keyboard style on iPad.
guard UIDevice.current.userInterfaceIdiom == .phone else { return }
app = Application.launch(.appLockSetupFlowUnlock) app = Application.launch(.appLockSetupFlowUnlock)
// Create PIN screen. // Create PIN screen.
@@ -119,7 +125,10 @@ class AppLockSetupUITests: XCTestCase {
try await app.assertScreenshot(step: Step.clearedStack) try await app.assertScreenshot(step: Step.clearedStack)
} }
func disabled_testCancel() async throws { func testCancel() async throws {
// There's an issue with the number pad keyboard style on iPad.
guard UIDevice.current.userInterfaceIdiom == .phone else { return }
app = Application.launch(.appLockSetupFlowUnlock) app = Application.launch(.appLockSetupFlowUnlock)
app.showKeyboardIfNeeded() // The secure text field is focussed automatically app.showKeyboardIfNeeded() // The secure text field is focussed automatically