mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add UI tests for optional app lock setup. (#2046)
This commit is contained in:
+2
@@ -49,6 +49,7 @@ struct AppLockSetupBiometricsScreen: View {
|
||||
.font(.system(size: 72))
|
||||
.padding(.top, 58)
|
||||
.padding(.bottom, 26)
|
||||
.accessibilityHidden(true)
|
||||
|
||||
Text(context.viewState.title)
|
||||
.font(.compound.headingMDBold)
|
||||
@@ -66,6 +67,7 @@ struct AppLockSetupBiometricsScreen: View {
|
||||
VStack(spacing: 16) {
|
||||
Button(context.viewState.title) { context.send(viewAction: .allow) }
|
||||
.buttonStyle(.compound(.primary))
|
||||
.accessibilityIdentifier(A11yIdentifiers.appLockSetupBiometricsScreen.allow)
|
||||
|
||||
Button { context.send(viewAction: .skip) } label: {
|
||||
Text(L10n.screenAppLockSetupBiometricUnlockSkip)
|
||||
|
||||
+1
@@ -83,6 +83,7 @@ struct AppLockSetupPINScreen: View {
|
||||
Button(L10n.actionCancel) {
|
||||
context.send(viewAction: .cancel)
|
||||
}
|
||||
.accessibilityIdentifier(A11yIdentifiers.appLockSetupPINScreen.cancel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user