Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Set Accessibility Identifiers for Startup, Signin. Register, WhatsNew Screens #243

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

saeedbashir
Copy link
Contributor

This PR sets accessibility identifiers for startup, signin, forgot password and whats new screens. These accessibility identifiers will be used by the QA team to automate the testing flow.

rnr
rnr previously approved these changes Jan 18, 2024
@@ -128,6 +140,7 @@ public struct ResetPasswordView: View {
.shadowCardStyle(bgColor: Theme.Colors.accentColor,
textColor: Theme.Colors.white)
.padding(.top, 80)
.accessibilityIdentifier("showalert_text")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to replace name with show_alert_text

@@ -144,6 +157,7 @@ public struct ResetPasswordView: View {
VStack {
Spacer()
SnackBarView(message: viewModel.errorMessage)
.accessibilityIdentifier("showerror_snackbar")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to replace identifier with show_error_snackbar

@@ -85,6 +89,7 @@ public struct StartupView: View {
.font(Theme.Fonts.bodyLarge)
}
.padding(.top, isHorizontal ? 0 : 5)
.accessibilityIdentifier("explorer_courses_button")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to replace identifier with explore_courses_button

@@ -37,6 +37,7 @@ public struct HTMLFormattedText: UIViewRepresentable {
textView.textContainerInset = .zero
textView.textContainer.lineFragmentPadding = 0
textView.delegate = context.coordinator
textView.accessibilityIdentifier = "honer_code_textarea"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to replace identifier with honer_code_text_area

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textarea is used for field type like textfield.

@@ -41,6 +41,7 @@ public struct WhatsNewView: View {
.scaledToFit()
.frame(minWidth: 250, maxWidth: 300)
.padding(24)
.accessibilityIdentifier("whatsnew_image")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to replace with whats_new_image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whatsnew is actually a feature name and pronounced as single entity.

@@ -124,6 +130,7 @@ public struct WhatsNewView: View {
.allowsHitTesting(false)
.padding(.top, isHorizontal ? 0 : 170)
.padding(.bottom, 8)
.accessibilityIdentifier("whatsnew_pagecontrol")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion to replace with whats_new_page_control

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here pagecontrol is single entity.

Copy link
Contributor

@shafqat-muneer shafqat-muneer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@saeedbashir saeedbashir merged commit fe14ca8 into develop Jan 22, 2024
3 checks passed
@saeedbashir saeedbashir deleted the saeed/accessibility_identifiers branch January 22, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants