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 no floating promises [INFENG-668] #9283

Merged
merged 2 commits into from
May 1, 2024

Conversation

JComins000
Copy link
Contributor

@JComins000 JComins000 commented May 1, 2024

Ticket

INFENG-668

Description

show linting errors on floating promises

Test Plan

Here's an example of a successful lint

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 review from a team as code owners May 1, 2024 21:43
@cla-bot cla-bot bot added the cla-signed label May 1, 2024
Copy link

netlify bot commented May 1, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 6040a9e
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/6632bab9deda1d0008159692
😎 Deploy Preview https://deploy-preview-9283--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 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 37.91%. Comparing base (7a296fa) to head (6040a9e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9283      +/-   ##
==========================================
- Coverage   44.58%   37.91%   -6.67%     
==========================================
  Files        1275      951     -324     
  Lines      156216   116426   -39790     
  Branches     2451     2451              
==========================================
- Hits        69650    44146   -25504     
+ Misses      86326    72040   -14286     
  Partials      240      240              
Flag Coverage Δ
harness ?
web 35.00% <0.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
webui/react/src/e2e/fixtures/auth.fixture.ts 0.00% <0.00%> (ø)
webui/react/src/e2e/models/hew/DataGrid.ts 0.00% <0.00%> (ø)

... and 324 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.

I like this as long as it doesn't cause problems for non-test frontend code.

@@ -290,7 +290,7 @@ export class HeadRow extends NamedComponent {
if (index === null) throw new Error();
this.#columnDefs.set(await cell.innerText(), +index);
} catch {
Promise.reject(
await Promise.reject(
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just throw the error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, sure!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

check again, please!

@JComins000 JComins000 force-pushed the jcom/INFENG-668/e2e-no-floating-promises branch from 7384881 to 6040a9e Compare May 1, 2024 21:57
@JComins000 JComins000 merged commit a9c8700 into main May 1, 2024
83 of 96 checks passed
@JComins000 JComins000 deleted the jcom/INFENG-668/e2e-no-floating-promises branch May 1, 2024 22:20
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