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: workspace and project api [TESTENG-46] #9731

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

JComins000
Copy link
Contributor

@JComins000 JComins000 commented Jul 25, 2024

Ticket

TESTENG-46

Description

adds support for workspace and project created by api as a test fixture

Test Plan

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

@JComins000 JComins000 requested a review from a team as a code owner July 25, 2024 21:04
@cla-bot cla-bot bot added the cla-signed label Jul 25, 2024
Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 459c34f
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66a2d591eb570f00085d0c22
😎 Deploy Preview https://deploy-preview-9731--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.

@@ -111,8 +111,8 @@ test.describe('User Management', () => {
await expect(page).toHaveURL(/login/);
await auth.login({
expectedURL: userManagementPage.url,
password: newAdmin.password,
username: newAdmin.user?.username,
password: newAdmin.request.password,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i wanted to uniformly return "request + response" from all apis.

@JComins000 JComins000 force-pushed the jcom/TESTENG-46/workspace-api branch from 779694e to 2ae8610 Compare July 25, 2024 21:06
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.93%. Comparing base (7260f04) to head (459c34f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9731      +/-   ##
==========================================
- Coverage   53.44%   48.93%   -4.51%     
==========================================
  Files        1257      934     -323     
  Lines      154350   125048   -29302     
  Branches     3298     3298              
==========================================
- Hits        82494    61194   -21300     
+ Misses      71706    63704    -8002     
  Partials      150      150              
Flag Coverage Δ
harness ?
web 51.92% <ø> (ø)

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

see 323 files with indirect coverage changes

},
});
const newProject = await backgroundApiProject.createProject(workspaceId, request);
await use({ request, response: newProject });
Copy link
Contributor

Choose a reason for hiding this comment

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

I like using request and response on all of them. That's a good idea.

@JComins000 JComins000 force-pushed the jcom/TESTENG-46/workspace-api branch from 2ae8610 to 1997749 Compare July 25, 2024 21:22
@JComins000 JComins000 force-pushed the jcom/TESTENG-46/workspace-api branch from 1997749 to 459c34f Compare July 25, 2024 22:45
@JComins000
Copy link
Contributor Author

  Consider splitting slow test files to speed up parallel execution
  1 failed
    [chromium] › tests/userManagement.spec.ts:83:11 › User Management › With User Teardown › With a User for Each Test › Deactivate and Reactivate 
  1 flaky
    [firefox] › tests/userManagement.spec.ts:83:11 › User Management › With User Teardown › With a User for Each Test › Deactivate and Reactivate 

this is a known failure DET-10439

@JComins000 JComins000 merged commit 6c4f69b into main Jul 26, 2024
80 of 95 checks passed
@JComins000 JComins000 deleted the jcom/TESTENG-46/workspace-api branch July 26, 2024 00:38
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