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: create test users through the API [INFENG-673] #9431

Merged
merged 5 commits into from
May 29, 2024

Conversation

djanicekpach
Copy link
Contributor

@djanicekpach djanicekpach commented May 28, 2024

test: create test users through the API INFENG-673

Ticket

https://hpe-aiatscale.atlassian.net/browse/INFENG-673

Description

The playwright test previously created users through the UI. Now they will create and teardown user setup through the API since it is faster and more reliable. There is still a test doing user setup/teardown through the UI so that tests still cover that workflow.

I also spent some time smoothing out flakes. That wound up involving a lot of retries around the 10s refresh for tables but I've gotten bulk actions un-skipped and passing 3+ times in a row in the pipeline which is a good sign.

Test Plan

CI passes several times in a row

Checklist

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

Copy link

netlify bot commented May 28, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 61cdb89
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/665765aecd854700080cd9fc
😎 Deploy Preview https://deploy-preview-9431--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 May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.43%. Comparing base (00bbda6) to head (61cdb89).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9431      +/-   ##
==========================================
- Coverage   48.60%   43.43%   -5.17%     
==========================================
  Files        1233      909     -324     
  Lines      158973   119050   -39923     
  Branches     2777     2777              
==========================================
- Hits        77272    51713   -25559     
+ Misses      81527    67163   -14364     
  Partials      174      174              
Flag Coverage Δ
harness ?
web 44.39% <ø> (ø)

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

see 324 files with indirect coverage changes

@djanicekpach djanicekpach changed the title test: create test users through the API [INFENG-673] test: create test users through the API [INFENG-673] May 28, 2024
Copy link
Contributor

@EmilyBonar EmilyBonar left a comment

Choose a reason for hiding this comment

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

Think it looks good! Just a few minor comments

webui/react/src/e2e/fixtures/api.auth.fixture.ts Outdated Show resolved Hide resolved
webui/react/src/e2e/models/ant/Select.ts Outdated Show resolved Hide resolved
webui/react/src/e2e/tests/userManagement.spec.ts Outdated Show resolved Hide resolved
webui/react/src/e2e/tests/userManagement.spec.ts Outdated Show resolved Hide resolved
@djanicekpach djanicekpach merged commit 0599d0e into main May 29, 2024
88 of 101 checks passed
@djanicekpach djanicekpach deleted the djanicek/infeng-673/user-api branch May 29, 2024 17:45
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.

3 participants