-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: main
Are you sure you want to change the base?
Add Test Selector for Banner Component #2304
Conversation
close: { | ||
selector: { | ||
method: "ByLabelText", | ||
text: "${labelText}", | ||
templateVariableNames: ["labelText"], | ||
}, | ||
}, | ||
}, |
There was a problem hiding this comment.
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".
close: { | |
selector: { | |
method: "ByLabelText", | |
text: "${labelText}", | |
templateVariableNames: ["labelText"], | |
}, | |
}, | |
}, | |
closeButton: { | |
selector: { | |
method: "ByRole", | |
options: { | |
name: "${labelText}", | |
}, | |
role: "button", | |
templateVariableNames: ["labelText"], | |
}, | |
}, | |
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
59b664d
to
73a3b09
Compare
73a3b09
to
b9f6cea
Compare
b9f6cea
to
c75b8db
Compare
Updated Test Selectors code is merged. |
OKTA-754442
Summary
Testing & Screenshots