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: docstring revisions [TESTENG-5] #9478

Merged
merged 6 commits into from
Jun 7, 2024

Conversation

JComins000
Copy link
Contributor

@JComins000 JComins000 commented Jun 5, 2024

Ticket

TESTENG-5

Description

docstring changes. i discovered a few discrepencies in page models where the original doesn't exist. i tracked them in comments in a different jira ticket im working on this sprint.

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.

@JComins000 JComins000 requested a review from a team as a code owner June 5, 2024 23:10
@cla-bot cla-bot bot added the cla-signed label Jun 5, 2024
Copy link

netlify bot commented Jun 5, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 1e990e5
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/6660f0649972b900080b1ab4
😎 Deploy Preview https://deploy-preview-9478--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 Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.93%. Comparing base (c49eeea) to head (1e990e5).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9478      +/-   ##
==========================================
- Coverage   51.18%   43.93%   -7.25%     
==========================================
  Files         746      422     -324     
  Lines      110899    70932   -39967     
  Branches     2777     2777              
==========================================
- Hits        56759    31163   -25596     
+ Misses      53966    39595   -14371     
  Partials      174      174              
Flag Coverage Δ
harness ?
web 44.28% <ø> (ø)

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

see 324 files with indirect coverage changes

*/
export class Row extends NamedComponent {
readonly defaultSelector = 'tr.ant-table-row';
readonly keyAttribute = 'data-row-key';

Choose a reason for hiding this comment

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

just one NIT, these hardcoded identifiers are in two places? what happens if someone changes the static data, will test just break? is there a better approach to have hardcoded values in one place? Just wondering, i might be totally wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

two places?
image

Choose a reason for hiding this comment

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

hm, guess not sorry. I wasn't sure if these were being used to test the rendered ui elements so if keys for some odd reason changed would test fail.

Copy link
Contributor Author

@JComins000 JComins000 Jun 7, 2024

Choose a reason for hiding this comment

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

yeah this attribute comes from ant. perhaps an update to ant could hurt this test model, but at the point we might have to maintain even more. luckily, there would only be one test edit necessary for each ant locator change.

Copy link

@molinamelendezj molinamelendezj left a comment

Choose a reason for hiding this comment

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

overall great job! love to see more test work going on! love the time spent fixing code smells, readmes, and comments helps when reviewing.

only NITs are around hardcoded identifiers and timeouts in test that could lead to overhead test fix maintenance or flakes, but that just me.

@JComins000 JComins000 merged commit 698ab6c into main Jun 7, 2024
87 of 101 checks passed
@JComins000 JComins000 deleted the jcom/TESTENG-5/docstring-revisions branch June 7, 2024 19:34
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