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: User Management, Sort and Filter [CM-469] #10158

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

johnkim-det
Copy link
Contributor

@johnkim-det johnkim-det commented Oct 30, 2024

Ticket

CM-469

Description

Adds test for Sorting and Filters users on User Management page. Also includes:

  • fixes for sorting behavior.
  • disabling role dropdown with RBAC to be consistent with removal of role column.

Test Plan

No manual testing required. Automated 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

Copy link

netlify bot commented Oct 30, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 85728aa
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/6723ddbf317acf0008fc1333
😎 Deploy Preview https://deploy-preview-10158--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.

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 4 lines in your changes missing coverage. Please review.

Project coverage is 54.26%. Comparing base (8c95047) to head (85728aa).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
webui/react/src/pages/Admin/UserManagement.tsx 82.35% 3 Missing ⚠️
master/internal/api_user.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10158      +/-   ##
==========================================
- Coverage   54.27%   54.26%   -0.01%     
==========================================
  Files        1259     1259              
  Lines      157285   157291       +6     
  Branches     3644     3642       -2     
==========================================
  Hits        85359    85359              
- Misses      71793    71799       +6     
  Partials      133      133              
Flag Coverage Δ
backend 45.91% <80.00%> (-0.01%) ⬇️
harness 71.15% <ø> (ø)
web 54.30% <82.35%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
master/internal/api_user.go 71.56% <80.00%> (-0.11%) ⬇️
webui/react/src/pages/Admin/UserManagement.tsx 83.55% <82.35%> (-0.23%) ⬇️

... and 3 files with indirect coverage changes

@@ -150,6 +150,10 @@ class UserRow extends Row {
parent: this,
selector: '[data-testid="user"]',
});
readonly username = new BaseComponent({
parent: this,
selector: '[class^="Nameplate_text"] div:last-child',
Copy link
Contributor

Choose a reason for hiding this comment

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

webui/react/src/e2e/models/common/hew/Nameplate.ts

await userManagementPage.table.table.headRow[columnId].pwLocator.click();
},
),
).toPass();
Copy link
Contributor

Choose a reason for hiding this comment

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

might want to consider a timeout on these. i dont remember the default but it might be infinite

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.

requesting some small changes but very good work. merge when you're ready

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