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

Add Test Selector for Banner Component #2304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AnirudhMani-okta
Copy link
Contributor

OKTA-754442

Summary

Testing & Screenshots

  • I have confirmed this change with my designer and the Odyssey Design Team.

Comment on lines 42 to 52
close: {
selector: {
method: "ByLabelText",
text: "${labelText}",
templateVariableNames: ["labelText"],
},
},
},
Copy link
Contributor

@KevinGhadyani-Okta KevinGhadyani-Okta Jul 26, 2024

Choose a reason for hiding this comment

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

We should probably use ByRole where we can. In this case, we're looking for a button with a label "Close", not the just the text "Close".

Suggested change
close: {
selector: {
method: "ByLabelText",
text: "${labelText}",
templateVariableNames: ["labelText"],
},
},
},
closeButton: {
selector: {
method: "ByRole",
options: {
name: "${labelText}",
},
role: "button",
templateVariableNames: ["labelText"],
},
},
},

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@AnirudhMani-okta AnirudhMani-okta force-pushed the am-OKTA-754442-banner-component-test-selector branch from 59b664d to 73a3b09 Compare August 14, 2024 22:08
@AnirudhMani-okta AnirudhMani-okta marked this pull request as ready for review August 14, 2024 22:08
@AnirudhMani-okta AnirudhMani-okta requested a review from a team as a code owner August 14, 2024 22:08
@AnirudhMani-okta AnirudhMani-okta force-pushed the am-OKTA-754442-banner-component-test-selector branch from 73a3b09 to b9f6cea Compare August 22, 2024 22:08
@AnirudhMani-okta AnirudhMani-okta force-pushed the am-OKTA-754442-banner-component-test-selector branch from b9f6cea to c75b8db Compare August 26, 2024 22:06
@KevinGhadyani-Okta
Copy link
Contributor

Updated Test Selectors code is merged.

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.

2 participants