-
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
test(e2e): stabilize flaky imagery tests #7765
Conversation
6f103d1
to
d1da4ff
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7765 +/- ##
==========================================
- Coverage 57.07% 56.81% -0.26%
==========================================
Files 674 674
Lines 27273 27278 +5
Branches 2665 2668 +3
==========================================
- Hits 15566 15499 -67
- Misses 11367 11439 +72
Partials 340 340
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
09ecf3c
to
f212823
Compare
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.
2 questions
e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js
Outdated
Show resolved
Hide resolved
e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js
Outdated
Show resolved
Hide resolved
e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js
Outdated
Show resolved
Hide resolved
e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js
Outdated
Show resolved
Hide resolved
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.
1 change
and a few instances of documentation needed as comments
f212823
to
0c90016
Compare
e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js
Outdated
Show resolved
Hide resolved
05f861a
to
f63b97b
Compare
- add class for `is-panning` and wait on it in the tests - use mock clock to fast forward in time - add a11y for thumbnails - increase mouse yDelta for more consistent behavior - some locator improvements but it's still fairly atrocious
// We mock the clock so that we don't need to wait for time driven events | ||
// to verify functionality. | ||
await page.clock.setSystemTime(MISSION_TIME); | ||
await page.clock.resume(); |
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.
@@ -39,7 +39,7 @@ export default merge(common, { | |||
return shouldWrite; | |||
} | |||
}, | |||
watchFiles: ['**/*.css'], | |||
watchFiles: ['src/**/*.css', 'example/**/*.css'], |
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.
Webpack was rebuilding when playwright test reports were being generated and updated so let's be explicit
inject: ['openmct', 'domainObject', 'resetImage', 'handlePanZoomUpdate'], | ||
provide() { | ||
return { | ||
resetImage: this.resetImage, | ||
zoomIn: this.zoomIn, | ||
zoomOut: this.zoomOut, | ||
toggleZoomLock: this.toggleZoomLock | ||
}; | ||
}, |
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.
need to regression test this
Closes #7769
Note: merge #7762 first
Describe your changes:
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist