-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Rewrite some tests to reduce flakiness: part 3 #3880
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
base: main
Are you sure you want to change the base?
Conversation
firefox, | ||
firefoxCI | ||
]); | ||
await vi.waitFor(() => { |
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.
test/browser/renderers.test.tsx
Outdated
setup({ columns, rows: noRows, renderers: { noRowsFallback: <NoRowsFallback /> } }); | ||
|
||
expect(getRows()).toHaveLength(0); | ||
await testLength(getRowsNew(), 1); |
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.
I think using page.getByRole('row').elements().slice(1)
causes confusion IMO. We can just check the total row count. Also, we can await now
reactStrictMode: true | ||
}); | ||
|
||
locators.extend({ |
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.
No description provided.