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: e2e refactors [TESTENG-2] #9549

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

JComins000
Copy link
Contributor

@JComins000 JComins000 commented Jun 20, 2024

Ticket

TESTENG-2

Description

refactors some common functionality into base models

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 June 20, 2024 22:00
@cla-bot cla-bot bot added the cla-signed label Jun 20, 2024
Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit b13400f
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66799f59e0053e0008a12e56
😎 Deploy Preview https://deploy-preview-9549--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.

@JComins000 JComins000 force-pushed the jcom/TESTENG-2/low-hanging-test-refactors branch from 8e4ad33 to 334b129 Compare June 20, 2024 22:57
@JComins000 JComins000 force-pushed the jcom/TESTENG-2/low-hanging-test-refactors branch from 334b129 to 43cd240 Compare June 20, 2024 23:55
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.19%. Comparing base (5942544) to head (b13400f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9549      +/-   ##
==========================================
- Coverage   49.83%   45.19%   -4.64%     
==========================================
  Files        1247      923     -324     
  Lines      162233   121899   -40334     
  Branches     2888     2888              
==========================================
- Hits        80845    55093   -25752     
+ Misses      81216    66634   -14582     
  Partials      172      172              
Flag Coverage Δ
harness ?
web 46.16% <ø> (ø)

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

see 331 files with indirect coverage changes

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.

This looks good. Could we even go a step further though? I'm thinking ahead a bit so some details aren't clear, but what do you think about having a common folder housing base, ant, and hew? It would be nice if when another repo comes and asks about using UI tests, we could just lift the common folder into it's own repo.

@@ -38,7 +38,7 @@ export class UserManagement extends AdminPage {
selector: '[data-testid="statusSelect"]',
});
readonly actions = new ActionDropdownMenu({
childNode: new BaseComponent({
clickThisComponentToOpen: new BaseComponent({
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 this name a lot better!

@@ -1,4 +1,4 @@
import { BaseReactFragment } from 'e2e/models/BaseComponent';
import { BaseReactFragment } from 'e2e/models/base/BaseReactFragment';

/**
* Represents the PageComponent component in src/components/Page.tsx
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this PageComponent file be in a common or base folder too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since they have a Page.tsx, we have a Page.ts model.

@JComins000
Copy link
Contributor Author

@djanicekpach

This looks good. Could we even go a step further though? I'm thinking ahead a bit so some details aren't clear, but what do you think about having a common folder housing base, ant, and hew?

Good idea. I think base ant and hew will all eventually live in node modules-- but for now they can live in common

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this isnt actually deleted, just moved

@JComins000 JComins000 merged commit 63d69a1 into main Jun 24, 2024
84 of 97 checks passed
@JComins000 JComins000 deleted the jcom/TESTENG-2/low-hanging-test-refactors branch June 24, 2024 16:55
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.

None yet

2 participants