-
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 Checkbox #2302
base: main
Are you sure you want to change the base?
Conversation
import { Typography } from "./Typography"; | ||
|
||
export const CheckboxTestSelectors = { | ||
// feature: { |
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.
leaving as comment because we will eventually convert this as either a label or a different selector as discussed with @KevinGhadyani-Okta
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.
Can we commented this as:
// feature: { | |
// label: ["hint"] |
That'll make it easier in the future because the API won't match the feature API.
@@ -261,6 +262,17 @@ export const Hint: StoryObj<typeof Checkbox> = { | |||
}, | |||
play: async ({ canvasElement, step }) => { | |||
await checkTheBox({ canvasElement, step })("Checkbox Hint"); | |||
// await step("has visible hint", async () => { |
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.
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.
@bryancunningham-okta We'll want this noted in a ticket.
For some reason, the hint is setup as part of the label and not the description in Checkbox.
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.
@AnirudhMani-okta Can you put a comment above it saying "This is commented because there's a separate ticket to cover this work: OKTA-XXXXXX".
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, added ticket: https://oktainc.atlassian.net/browse/OKTA-793465
0a5db23
to
c15c07a
Compare
58ff20c
to
d0faf57
Compare
d0faf57
to
e00b863
Compare
The updated Test Selectors code is merged. |
You'd have to merge |
OKTA-754187
Summary
Testing & Screenshots