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

Fix e2e #1105

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Fix e2e #1105

merged 1 commit into from
Jan 13, 2023

Conversation

dottorblaster
Copy link
Contributor

@dottorblaster dottorblaster commented Jan 12, 2023

Turns out opening a dropdown, selecting an item and then reopening it right after makes an end to end test extremely prone to flakiness.

In this PR we try to use the clear function of a filter, that should avoid the second dropdown interaction, therefore making the test more reliable.

@dottorblaster dottorblaster self-assigned this Jan 12, 2023
@dottorblaster dottorblaster marked this pull request as ready for review January 13, 2023 08:41
@fabriziosestito
Copy link
Member

best pr 2023

return (
<div className="w-64 w-72 top-16 mr-4" ref={ref}>
<div className="mt-1 relative">
{value !== '' && (
<button
type="button"
data-testid={`filter-${title}-clear`}
Copy link
Member

Choose a reason for hiding this comment

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

will we remember to remove testid related stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I'll create a card for that

@dottorblaster dottorblaster merged commit 09b5b99 into main Jan 13, 2023
@dottorblaster dottorblaster deleted the fix-e2e branch January 13, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants