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

test: add test for IndustrySelect #152

Merged
merged 2 commits into from
Feb 14, 2025
Merged

test: add test for IndustrySelect #152

merged 2 commits into from
Feb 14, 2025

Conversation

scally
Copy link
Collaborator

@scally scally commented Feb 14, 2025

does the thing ^

)

await userEvent.type(await screen.findByRole('combobox'), 'Do')
await screen.findByText('Do Things')
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to add an expect here? W/o it the test might never fail.

But yay its finding the things!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

findByText will throw if it doesn't find the text. you can change the value here to "foobar" and watch the test fail

</ThemeProvider>,
)

await screen.findByDisplayValue('Do Things')
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above

Copy link
Contributor

@jeffredodd jeffredodd left a comment

Choose a reason for hiding this comment

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

Chatted w/Sean, tests fail as expected because of the find and waitFor relationship.

@scally scally merged commit ca9c8cf into main Feb 14, 2025
2 checks passed
@scally scally deleted the scally/industry6 branch February 14, 2025 20:42
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