Fix UI tests for Xcode 26

This commit is contained in:
Stefan Ceriu
2025-09-22 15:33:47 +03:00
parent c5792d4a79
commit a607e992c1
214 changed files with 636 additions and 12 deletions

View File

@@ -68,7 +68,7 @@ class AppLockSetupUITests: XCTestCase {
try await app.assertScreenshot(step: Step.settings)
app.buttons[A11yIdentifiers.appLockSetupSettingsScreen.removePIN].tap()
app.alerts.element.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.alerts.element.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
// Pop the stack returning to whatever was last presented.
try await app.assertScreenshot(step: Step.clearedStack)
@@ -110,7 +110,7 @@ class AppLockSetupUITests: XCTestCase {
try await app.assertScreenshot(step: Step.settings)
app.buttons[A11yIdentifiers.appLockSetupSettingsScreen.removePIN].tap()
app.alerts.element.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.alerts.element.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
// Pop the stack returning to whatever was last presented.
try await app.assertScreenshot(step: Step.clearedStack)

View File

@@ -102,7 +102,7 @@ class AppLockUITests: XCTestCase {
// Then then the app should sign the user out.
try await app.assertScreenshot(step: Step.logoutAlert)
app.alerts.element.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.alerts.element.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
try await app.assertScreenshot(step: Step.forcedLogout)
}

View File

@@ -32,9 +32,9 @@ enum Application {
}
private static func checkEnvironments() {
let requirediPhoneSimulator = "iPhone17,3" // iPhone 16
let requirediPadSimulator = "iPad13,18" // iPad (10th generation)
let requiredOSVersion = 18
let requirediPhoneSimulator = "iPhone18,3" // iPhone 17
let requirediPadSimulator = "iPad15,7" // iPad (A16)
let requiredOSVersion = 26
let osVersion = ProcessInfo().operatingSystemVersion
guard osVersion.majorVersion == requiredOSVersion else {
@@ -47,7 +47,7 @@ enum Application {
guard deviceModel == requirediPhoneSimulator || deviceModel == requirediPadSimulator else {
fatalError("Running on \(deviceModel) but we only support \(requirediPhoneSimulator) and \(requirediPadSimulator).")
}
guard UIDevice.current.snapshotName == "iPhone-18.5" || UIDevice.current.snapshotName == "iPad-18.5" else {
guard UIDevice.current.snapshotName == "iPhone-26.0" || UIDevice.current.snapshotName == "iPad-26.0" else {
fatalError("Running on a simulator that hasn't been renamed to match the expected snapshot filenames.")
}
}

View File

@@ -25,7 +25,7 @@ class EncryptionResetUITests: XCTestCase {
// Confirm the intent to reset.
app.buttons[A11yIdentifiers.encryptionResetScreen.continueReset].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
try await Task.sleep(for: .seconds(2.0))

View File

@@ -37,7 +37,7 @@ class EncryptionSettingsUITests: XCTestCase {
// Confirm deletion of keys.
app.buttons[A11yIdentifiers.secureBackupKeyBackupScreen.deleteKeyStorage].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
try await app.assertScreenshot(step: Step.secureBackupScreenDisabled)
// Toggle key storage back on and set up recovery.
@@ -52,7 +52,7 @@ class EncryptionSettingsUITests: XCTestCase {
app.buttons[A11yIdentifiers.secureBackupRecoveryKeyScreen.generateRecoveryKey].tap()
app.buttons[A11yIdentifiers.secureBackupRecoveryKeyScreen.copyRecoveryKey].tap()
app.buttons[A11yIdentifiers.secureBackupRecoveryKeyScreen.done].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
try await app.assertScreenshot(step: Step.secureBackupScreenSetUp)
// Change the recovery key.
@@ -63,7 +63,7 @@ class EncryptionSettingsUITests: XCTestCase {
app.buttons[A11yIdentifiers.secureBackupRecoveryKeyScreen.generateRecoveryKey].tap()
app.buttons[A11yIdentifiers.secureBackupRecoveryKeyScreen.copyRecoveryKey].tap()
app.buttons[A11yIdentifiers.secureBackupRecoveryKeyScreen.done].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].tap()
app.buttons[A11yIdentifiers.alertInfo.primaryButton].firstMatch.tap()
try await app.assertScreenshot(step: Step.secureBackupScreenSetUp)
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac651e7e13db6f05475eedfacb4ba01c130a823a165e7742c4006a1ee19b8e38
size 105769

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac651e7e13db6f05475eedfacb4ba01c130a823a165e7742c4006a1ee19b8e38
size 105769

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac696fb26f2b47c959e0f88d4f21768ee87a0228ba2807d78600ce80cbc1c02a
size 106916

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eac8e4656d81e4da09144b71bb38bedb7eb45f9263c40a608c3032d5013a7058
size 206598

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e925f3dfe691dc7c1c8734e031cf791330e3b6e913fe7fbdbd935d2595bb3e77
size 117363

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e795d4736792868f0a9ef5eecd5f4e7436c6daaed4ec36c1c01e4adc926022ee
size 283000

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6a34d175cda50bf40353aa645a9c695a0fc68d274cf9ee31b4d203ca9582d9d
size 136298

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b270176574e520595e9139e42342849edc3ed3d5a5453fceb7cece0feb3a1741
size 150888

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6aef78c6268877183ced5bfd0f93057bb7472bf6f0c0587d9225d7149a1bfd1
size 97613

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c6f79472e7bb1d9ff09685845bd5372f043d4300fda652f1b62e7e4c4fd2d9b
size 160723

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6563e03daf4456b34c569d79638b0932623623934514757323c4b3883cf7e8cb
size 160350

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b1767d36d688cea8f9cf9cb6fbf4ed80397a9f6ad1a6839dc3cbc11b8ffccff6
size 157474

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c570607a3aba6be6c2ea76361f6a7c1f9e3b673d085274356d2b72589cfac4c1
size 89471

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82b97e64f7c13108abcefccb4bf1f089cfdd4e8c06e693121133b7226db86a50
size 182885

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1da2917d95e54794944240932f047b89ca175cf632a74ab6a4894883f9ba13ec
size 182562

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9195429dc43b9c92b0a5582a7da3c9b5e84c327f5230845b4275817959bb7bb5
size 113106

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:687698f753989ed6e56f33bd8a713509eb6b8a85f9d7075f33a2cd2a5022da7d
size 112794

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4fa067bd5be1b6453a691b630bedfeb61e3cb2ee6b80b1be31db4bdf0a3d834a
size 96840

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a22c7f49e11d6aec1df3c89ddf5fb894389398670361b925ee0171bdfa36b6f
size 96797

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3123e2b76c95d6a9b577bff6018cf871b2855d3399d9fec3aea7a4ab46106a30
size 90020

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e7dd0c12a98007dfb715ad456f2a9def06bcc621afa22d05ba6e13b76497770
size 89645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04783eca3e3d7a1809400459a9a37dd32bf9ce8762ed154e9061ffd4939ee50f
size 95250

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d5f213d1e3a462dbaf5c121fb97b0cc9f6a9494b959be559591bab8df66df4d
size 96025

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa4b77e99c7d7cfff135f9705d12c8554b429dd6647de3ac0bde41b37145a165
size 95695

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9c44ec61d6260f5827b7ee1df4f36a07283d8ccc5338b168446587e7830dd96
size 94006

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb124bde740cef7111ecb1d99861e61211a4bef8aa344c3ffeb4eebbe909a807
size 89233

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d7b679d58e61d33016271174a2406e38cefad9401f6d12c189bef40c8836bbd
size 64851

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b270176574e520595e9139e42342849edc3ed3d5a5453fceb7cece0feb3a1741
size 150888

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c92e0dbcd3e62fe3199d0b1eeb65466dad8dbfac95c53bb76f03577e637e420e
size 96096

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62db170af19fada87338877411a140c2e1f61606e3fae7a71a752547cda182ed
size 56600

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6aef78c6268877183ced5bfd0f93057bb7472bf6f0c0587d9225d7149a1bfd1
size 97613

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64d283050c18528b65d0c5673dfe8dc93919566d3675a6bf70e4e03bebd11655
size 88373

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:038f618baedba80265302e747731d316dde2085daf38adbda742770504b76e2b
size 95499

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7350536cbd2df46273bed43f34223673670c2796981eb8321aaf7e2489933f03
size 126145

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8179c0ca1daef459508a814105d463056f87be00cc546d447726ef412c38574
size 173104

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:501ce2d47a3fef0852b6a350d03846f4f67e872be539f5f30413ac78fbad55fd
size 1335528

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d4c0a10ab124ea80d11b5c79788e64e5780323dfb97a6ff28f860616d31be24
size 1227131

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1664640bc38ed657919178e5279e8a8ce2edde670a082ce3bffaea8e542375d6
size 1374894

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8df75e794b2ada5479aaeba62372b04b39203229cc6ec0e2f76dbb86a65784e
size 1232531

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e76bd2301abab5b21f6cff371360bdccd4bda638101c842c77480043a761f43
size 1337022

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7c7804db7463fc7c50088a170b8786de4bf620b128c6d963798a1e59bca959f
size 1229251

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f75f821050ef38e4b7d2cf72c73e8fcfb25ae62970981c50e883a3ea86ce853
size 155401

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d3a44006fd8d7ed4842a41ec7285a96cbd58a0de38774b3bd923bea6b3f8c88f
size 195560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5f1b10e01eb43325178ea16ab2e8620d7dc69de3dd4e8ef4c7af2c5720d3085
size 217467

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9fc6af8475323c0cd06245f2866bbbb4d4cf23f84df3349d28d5f0b578fde4d7
size 298385

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7f1df1c44ab082fbd104a7592797071e0a712983e57647e2c03999679f86ada
size 152441

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:683987d24c97e644809dd4b7040de248b4e44b64c4a8c6712396f1ece2d6707e
size 188769

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7401a80faf27905fbbd2012f7b37257e839630ce4e9390d4173182958b16101b
size 131638

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:feb3a70fa8dd31a3d73487a269b258cf37a5d1e76230946e5dc781bc351e6e99
size 160048

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ca3c14a94ce74a6a2b5d1175ec5512bfce5517fab9968c3022173b82f7503eb
size 149286

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57db6b246c5dc12fce995edab0cb578588f8ffc0fbf7e6381c139577f891a852
size 183818

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab10599096ae67fa6418221b3dc9caa99b68d38b3afecdc806866cd866218d3d
size 136758

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b07c63500385de481b39d04f8c98873f4dfbb41037c228d47f8d78528f15084f
size 95111

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef96108d7ff3a4426b14ad794a52af283671b1601b8e615148ca1dca52b0968d
size 145929

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac5119e4721222adc70e0192d81d40cfc45adc9dab4687b73629bf4e7337cb2c
size 171307

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bac8342b55a921360476a01cdca1674320607684eba9cf941d36ddc0830317b7
size 104863

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed4d950e72fb0bcbf1fd3b183e912582d90a8622fd90582075dcb123eeede7e6
size 181855

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c094eb1dd7076479d043610191b02eeab889fcd4bcfc9545a92833e9fc25ed0
size 126968

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5605b681b26006efa5cc8955d3e54e8f9d8eb477d4aa5a9aca255ad147d2af5
size 251627

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e3c5ff5bdc1f8705c7376ce3924d71a8136cfd82978bdd1d6d5c8fceae51d59
size 110015

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4dc20bb086897e2ca08437eaf733cf81c384231d3f0b4915a3ad3266d3dbaff
size 230248

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:494f3e50bdbee474c329e311e4dd56c228eaee1fa9b3984c6a7a86f049a65d84
size 229005

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb7d414e6d15c8e75306d8a48605f3a7d0d63c76ba572262a4c0f4568445ea9b
size 152873

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94968750fb579e74312fedc1b639d02a1ba4f3f247f9ec4e1bcaa0a729e24d8b
size 169467

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6001c969b97b9c034b3c9266f27f6021b1d8c020f92afe091407033b58225e14
size 123592

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c443e9d6b6c05f9fe4677c81613c9b137c57f5a179352596cedec14ac1da6a95
size 135471

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fe7a76cab3533a5810d11101ce223124353138ca31cde022f624e3c4de3a012
size 133965

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c094eb1dd7076479d043610191b02eeab889fcd4bcfc9545a92833e9fc25ed0
size 126968

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3aad8192095a1dd8fabb63d87d3c949e89b079bcc9829204bbcf7c6bb34f1e1b
size 84534

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:373d76b5604037dcfc54058ed7beba161f3d743d74c04354bdd6ba677a1a558d
size 177784

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb7d414e6d15c8e75306d8a48605f3a7d0d63c76ba572262a4c0f4568445ea9b
size 152873

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8126a3d958362b8b84cc795b257bdb146aa3195ee4e5d1b54e772467c2e4ff45
size 85670

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:34844d39473ed6e0090891a10e11e337c2cbcb601aea6c2352b845386be0174c
size 113377

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52647b6e8bfe4686084e2054b055d474ed80841433a545caad9c2aecfdbf93e5
size 118556

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b69e33d51af5699e21c3f47b0abe478a99c994d893eafed0d1fe5c0647e27613
size 140051

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f0fe60b1bc9cc9d0d48a34ade38b8448ceb91f7f9c737419bcfa325d3773344
size 112128

Some files were not shown because too many files have changed in this diff Show More