-
Notifications
You must be signed in to change notification settings - Fork 363
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 e2e experiment list pagination test #9993
Conversation
This adds a pagination test to the e2e experiment list test suite. We check page url parameter after interacting with the pagination element. Because the table rows are virtualized, we cannot directly check the row count based on what is in the html dom.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9993 +/- ##
==========================================
- Coverage 54.53% 50.47% -4.06%
==========================================
Files 1257 948 -309
Lines 156935 128341 -28594
Branches 3614 3613 -1
==========================================
- Hits 85578 64776 -20802
+ Misses 71224 63432 -7792
Partials 133 133
Flags with carried forward coverage won't be shown. Click here to find out more. |
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -109,6 +109,14 @@ test.describe('Experiment List', () => { | |||
await tableFilter.close(); | |||
await waitTableStable(); | |||
}); | |||
await test.step('Ensure pagination options', async () => { |
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 good.
return res.url().endsWith('experiments-search'); | ||
}); | ||
const params = new URL(projectDetailsPage._page.url()).searchParams; | ||
expect(params.get('page')).toBe(pageParam); |
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.
cool
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.
just one comment about keeping the environment cleaner for the non-pagination tests. it's your spec, so it's up to you
Ticket
ET-754
Description
This adds a pagination test to the e2e experiment list test suite. We check page url parameter after interacting with the pagination element. Because the table rows are virtualized, we cannot directly check the row count based on what is in the html dom.
Test Plan
React-e2e tests should pass
Checklist
docs/release-notes/
See Release Note for details.