From 31e4999a8fd36d50bdc4db2f86d3dca7361a39d8 Mon Sep 17 00:00:00 2001 From: Doug Date: Fri, 1 May 2026 15:00:10 +0100 Subject: [PATCH] Re-enable the AppLock UI tests on iPhone only. It was only iPad that had an issue. --- UITests/Sources/AppLockSetupTests.swift | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/UITests/Sources/AppLockSetupTests.swift b/UITests/Sources/AppLockSetupTests.swift index c4aa6fde4..339db7d62 100644 --- a/UITests/Sources/AppLockSetupTests.swift +++ b/UITests/Sources/AppLockSetupTests.swift @@ -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) // 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) } - 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) // Create PIN screen. @@ -119,7 +125,10 @@ class AppLockSetupUITests: XCTestCase { 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.showKeyboardIfNeeded() // The secure text field is focussed automatically