Add UI tests for optional app lock setup. (#2046)

This commit is contained in:
Doug
2023-11-08 15:33:40 +00:00
committed by GitHub
parent d3a5c6c983
commit 0bd097fe25
42 changed files with 360 additions and 71 deletions

View File

@@ -25,10 +25,12 @@ struct AppLockSetupSettingsScreen: View {
Section {
ListRow(label: .plain(title: L10n.screenAppLockSettingsChangePin),
kind: .button { context.send(viewAction: .changePINCode) })
.accessibilityIdentifier(A11yIdentifiers.appLockSetupSettingsScreen.changePIN)
if !context.viewState.isMandatory {
ListRow(label: .plain(title: L10n.screenAppLockSettingsRemovePin, role: .destructive),
kind: .button { context.send(viewAction: .disable) })
.accessibilityIdentifier(A11yIdentifiers.appLockSetupSettingsScreen.removePIN)
}
}