-
Notifications
You must be signed in to change notification settings - Fork 0
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
Checkbox + Dropdown Question Tests #193
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Looks good but asked a couple questions
const confirmedDialogText = screen.getByTestId('dropdown-question'); | ||
|
||
expect(confirmedDialogText.textContent).toContain(exampleContent); | ||
expect(confirmedDialogText.textContent).toContain("Select"); |
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.
should we also be checking that the correct dropdown options render when it is clicked?
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.
^^ this is a rlly good point!
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.
Thanks for working on this Surbhi!
+1 to Dean's comment and also could you please add tests in both files for
- when a question is required - there should be the text that says 'this quesiton is required ' or something
- when the question is disabled you shouldn't be able to click anything
Closes #189.