Fix UI tests for Xcode 26

This commit is contained in:
Stefan Ceriu
2025-09-22 15:33:47 +03:00
parent f31eda10dc
commit 0cf1058283
214 changed files with 636 additions and 12 deletions
@@ -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)
}