mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix UI test toggle tapping after compound accessibility change.
This commit is contained in:
committed by
Stefan Ceriu
parent
7ea3321cf5
commit
95f67d9d45
@@ -29,7 +29,10 @@ class EncryptionSettingsUITests: XCTestCase {
|
|||||||
try await app.assertScreenshot(step: Step.secureBackupScreenSetUp)
|
try await app.assertScreenshot(step: Step.secureBackupScreenSetUp)
|
||||||
|
|
||||||
// Toggle key storage off.
|
// Toggle key storage off.
|
||||||
app.switches[A11yIdentifiers.secureBackupScreen.keyStorage].tap()
|
// app.switches[A11yIdentifiers.secureBackupScreen.keyStorage].tap()
|
||||||
|
// Broken by https://github.com/element-hq/compound-ios/pull/140
|
||||||
|
app.switches[A11yIdentifiers.secureBackupScreen.keyStorage].switches.firstMatch.tap()
|
||||||
|
|
||||||
try await app.assertScreenshot(step: Step.keyBackupScreen)
|
try await app.assertScreenshot(step: Step.keyBackupScreen)
|
||||||
|
|
||||||
// Confirm deletion of keys.
|
// Confirm deletion of keys.
|
||||||
@@ -38,8 +41,11 @@ class EncryptionSettingsUITests: XCTestCase {
|
|||||||
try await app.assertScreenshot(step: Step.secureBackupScreenDisabled)
|
try await app.assertScreenshot(step: Step.secureBackupScreenDisabled)
|
||||||
|
|
||||||
// Toggle key storage back on and set up recovery.
|
// Toggle key storage back on and set up recovery.
|
||||||
app.switches[A11yIdentifiers.secureBackupScreen.keyStorage].tap()
|
// app.switches[A11yIdentifiers.secureBackupScreen.keyStorage].tap()
|
||||||
|
// Broken by https://github.com/element-hq/compound-ios/pull/140
|
||||||
|
app.switches[A11yIdentifiers.secureBackupScreen.keyStorage].switches.firstMatch.switches.firstMatch.tap()
|
||||||
app.buttons[A11yIdentifiers.secureBackupScreen.recoveryKey].tap()
|
app.buttons[A11yIdentifiers.secureBackupScreen.recoveryKey].tap()
|
||||||
|
|
||||||
try await app.assertScreenshot(step: Step.setUpRecovery)
|
try await app.assertScreenshot(step: Step.setUpRecovery)
|
||||||
|
|
||||||
// Generate and copy a new recovery key.
|
// Generate and copy a new recovery key.
|
||||||
|
|||||||
Reference in New Issue
Block a user