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 e2e experiment list pagination test #9993

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

ashtonG
Copy link
Contributor

@ashtonG ashtonG commented Sep 25, 2024

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

  • Changes have been manually QA'd
  • New features have been approved by the corresponding PM
  • User-facing API changes have the "User-facing API Change" label
  • Release notes have been added as a separate file under docs/release-notes/
    See Release Note for details.
  • Licenses have been included for new code which was copied and/or modified from any external code

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.
@ashtonG ashtonG requested a review from a team as a code owner September 25, 2024 20:36
@cla-bot cla-bot bot added the cla-signed label Sep 25, 2024
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.47%. Comparing base (cf9bdc8) to head (2ff8cfb).
Report is 25 commits behind head on main.

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              
Flag Coverage Δ
harness ?
web 54.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 309 files with indirect coverage changes

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 2ff8cfb
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66fab49e216c5b00082e3898
😎 Deploy Preview https://deploy-preview-9993--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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 () => {
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

cool

Copy link
Contributor

@JComins000 JComins000 left a 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

@ashtonG ashtonG merged commit 987b2a5 into main Oct 2, 2024
84 of 96 checks passed
@ashtonG ashtonG deleted the test/ET-754/e2e-experimentlist-pagination-test branch October 2, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants