Add integration tests support for password saving, notifications and the analytics screen

This commit is contained in:
Stefan Ceriu
2023-04-20 15:54:41 +03:00
committed by Stefan Ceriu
parent 59a4e0ac7c
commit 0ed69d5649
4 changed files with 70 additions and 24 deletions
@@ -64,6 +64,7 @@ struct AnalyticsPrompt: View {
.multilineTextAlignment(.center)
.foregroundColor(.element.primaryContent)
.padding(.bottom, 2)
.accessibilityIdentifier(A11yIdentifiers.analyticsPromptScreen.title)
Text(context.viewState.strings.optInContent)
.font(.element.body)
@@ -100,12 +101,14 @@ struct AnalyticsPrompt: View {
.font(.element.bodyBold)
}
.buttonStyle(.elementAction(.xLarge))
.accessibilityIdentifier(A11yIdentifiers.analyticsPromptScreen.enable)
Button { context.send(viewAction: .disable) } label: {
Text(L10n.actionNotNow)
.font(.element.bodyBold)
.padding(12)
}
.accessibilityIdentifier(A11yIdentifiers.analyticsPromptScreen.notNow)
}
}
}