-
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
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.
Co-authored-by: Nicolas Stepien <[email protected]>
* -1 * -1 * eslint * Add `testLength` util * Add `getRowByCellName` util * Revert accidental change * -1 * Remove unused * Export * Rename * Add missing import * -1 * -1 * Rename * Rename helper * Pin eslint? * Update test/browser/utils.tsx Co-authored-by: Nicolas Stepien <[email protected]> * Fix types --------- Co-authored-by: Nicolas Stepien <[email protected]>
No description provided.