-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix existing eslint warnings, configure eslint to fail on warning #5258
Conversation
- Resolves `vue/require-default-prop` warning
- Disable the rule for now as the implementation they suggest doesn't match lodash `_.get()` functionality, and fails a bunch of our tests. See you-dont-need/You-Dont-Need-Lodash-Underscore#311 and you-dont-need/You-Dont-Need-Lodash-Underscore#294
Codecov Report
@@ Coverage Diff @@
## master #5258 +/- ##
==========================================
- Coverage 50.21% 49.97% -0.24%
==========================================
Files 548 548
Lines 20127 20127
Branches 1864 1864
==========================================
- Hits 10106 10058 -48
- Misses 9539 9588 +49
+ Partials 482 481 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick changes
@@ -82,7 +82,7 @@ | |||
"clean": "rm -rf ./dist ./node_modules ./package-lock.json", | |||
"clean-test-lint": "npm run clean; npm install; npm run test; npm run lint", | |||
"start": "node app.js", | |||
"lint": "eslint example src e2e --ext .js,.vue openmct.js", | |||
"lint": "eslint example src e2e --ext .js,.vue openmct.js --max-warnings=0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woah
- Add exception and FIXME for timeout - Add comment on fixme test to discourage community contribution
- remove unnecessary awaits - update locators to use data-testid where possible - remove unnecessary wait
// FIXME: This defaults to 5000 ms in execution, but there's a bug | ||
// which causes the historical images to not populate for certain delay values. | ||
// Update the value to 5000 ms when the bug is fixed. | ||
// See: https://github.com/nasa/openmct/issues/5265 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would maybe add the testannotation for this github issue so that we can track it in the test reporting
await page.waitForTimeout(21); | ||
let imageCount = await page.locator('.c-imagery__thumb').count(); | ||
try { | ||
// Wait for at least one new image to stream in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also consider polling until true here https://playwright.dev/docs/test-assertions#polling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!! This is what I was looking for. Awesome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! We'll need to keep the async polling method in our minds for when we write the FAQ and recipe section of the e2e contribution guide
Closes #5231
Describe your changes:
Resolve all existing eslint warnings, and configure lint step to fail if it encounters > 0 warnings.
All Submissions:
Author Checklist
Reviewer Checklist