-
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(#7552): Fix notebook snapshot image annotations #7555
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7555 +/- ##
==========================================
+ Coverage 56.04% 56.16% +0.11%
==========================================
Files 672 672
Lines 27108 27104 -4
Branches 2629 2630 +1
==========================================
+ Hits 15194 15224 +30
+ Misses 11591 11557 -34
Partials 323 323
... and 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@@ -516,6 +516,30 @@ test.describe('foo test suite', () => { | |||
- Working with multiple pages | |||
There are instances where multiple browser pages will needed to verify multi-page or multi-tab application behavior. Make sure to use the `@2p` annotation as well as name each page appropriately: i.e. `page1` and `page2` or `tab1` and `tab2` depending on the intended use case. Generally pages should be used unless testing `sharedWorker` code, specifically. | |||
|
|||
- Working with file downloads and JSON data | |||
Open MCT has the capability of exporting certain objects in the form of a JSON file handled by the chrome browser. The best example of this type of test can be found in the exportAsJson test. |
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.
This is great, although I'm worried that without something specific to our e2e testing framework we're just reproducing the Playwright docs here?
// Save as JPG | ||
await Promise.all([ | ||
page.waitForEvent('download'), // Waits for the download event | ||
page.getByLabel('Export as JPG').click() // Triggers the download | ||
]); | ||
|
||
// Save as PNG | ||
await expect(page.getByLabel('Modal Overlay').getByRole('img')).toBeVisible(); | ||
await Promise.all([ | ||
page.waitForEvent('download'), // Waits for the download event | ||
page.getByLabel('Export as PNG').click() // Triggers the download | ||
]); |
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.
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.
Looks great, one suggestion.
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.
LGTM
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.
Looks great! Nice work.
Closes #7552
Describe your changes:
Fixes imports for
painterro
as it is exporting CJS, and this is now ESM.Needed to change:
to
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist