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: experiement list tests [INFENG-457] #9299

Merged
merged 17 commits into from
May 8, 2024

Conversation

JComins000
Copy link
Contributor

@JComins000 JComins000 commented May 2, 2024

Ticket

INFENG-457

Description

note this is just to get tests on the board. more page models and test scenarios are scoped to other tickets

  • update the playwright context to remove bash env from playwright circle ci command
  • detCLI
  • unskip the experiment list test with a new beforeAll
  • page model changes
  • a little fix for firefox using innerHTML

Test Plan

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.

@cla-bot cla-bot bot added the cla-signed label May 2, 2024
Copy link

netlify bot commented May 2, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 50362fc
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/663be5a323e7c700080f98d7
😎 Deploy Preview https://deploy-preview-9299--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 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.50%. Comparing base (cc82cc9) to head (50362fc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9299      +/-   ##
==========================================
+ Coverage   45.13%   46.50%   +1.36%     
==========================================
  Files        1230      743     -487     
  Lines      154523   106570   -47953     
  Branches     2405     2404       -1     
==========================================
- Hits        69740    49556   -20184     
+ Misses      84588    56819   -27769     
  Partials      195      195              
Flag Coverage Δ
backend 34.27% <ø> (-7.44%) ⬇️
harness 64.09% <ø> (ø)
web 36.06% <ø> (ø)

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

see 487 files with indirect coverage changes

@JComins000 JComins000 force-pushed the jcom/INFENG-457/experiement-list-tests branch from 9feafa1 to a06e640 Compare May 6, 2024 17:12
@JComins000 JComins000 force-pushed the jcom/INFENG-457/experiement-list-tests branch from a06e640 to 5cc5be7 Compare May 6, 2024 21:47
@JComins000 JComins000 marked this pull request as ready for review May 8, 2024 17:54
@JComins000 JComins000 requested review from a team as code owners May 8, 2024 17:54
await expect(
projectDetailsPageSetupTeardown.f_experiemntList.tableActionBar.pwLocator,
).toBeVisible();
// wait for it to not say "loading experiments..."
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'll get to this in a future PR

- run: echo 'export PW_PASSWORD=' >> $BASH_ENV
- run: echo 'export DET_WEBPACK_PROXY_URL="http://localhost:8082"' >> $BASH_ENV
- run: echo 'export DET_WEBSOCKET_PROXY_URL="ws://localhost:8082"' >> $BASH_ENV
# - run: echo 'export PW_DET_PATH="/tmp/venv/bin/det"' >> $BASH_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these have moved to playwright context. I thought it might be good to comment the values for now since circle ci hides them. is there any other place we should store them for reference?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would just delete them here. Add them to the readme if not there already?

Copy link
Contributor

@djanicekpach djanicekpach left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple small cleanup comments

- run: echo 'export PW_PASSWORD=' >> $BASH_ENV
- run: echo 'export DET_WEBPACK_PROXY_URL="http://localhost:8082"' >> $BASH_ENV
- run: echo 'export DET_WEBSOCKET_PROXY_URL="ws://localhost:8082"' >> $BASH_ENV
# - run: echo 'export PW_DET_PATH="/tmp/venv/bin/det"' >> $BASH_ENV
Copy link
Contributor

Choose a reason for hiding this comment

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

I would just delete them here. Add them to the readme if not there already?

import { execSync } from 'child_process';
import path from 'path';

if (process.env.PW_DET_PATH === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we have a default of just det or something for running locally for those of us who have det on our $PATH?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it might not work if you have det in a conda environment. I'll make a default, but you'll probably have to use which det from inside your conda env to get the path

@JComins000 JComins000 merged commit 3c0eac6 into main May 8, 2024
82 of 96 checks passed
@JComins000 JComins000 deleted the jcom/INFENG-457/experiement-list-tests branch May 8, 2024 22:16
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