Skip to content

Commit

Permalink
test: replace test img
Browse files Browse the repository at this point in the history
  • Loading branch information
etowahadams committed Nov 16, 2023
1 parent 8417a28 commit b921f67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Binary file modified e2e/assets/example-spec-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions e2e/performance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ test('Measure zoom time', async ({ page, browser }, testInfo) => {

// Wait for the visualization to render
const gosComponent = page.getByLabel('Gosling visualization');
await delay(5000);
const screenshot = await gosComponent.screenshot();
await testInfo.attach('gosComponentScreenshot', {
body: screenshot,
contentType: 'image/png',
});

// Uncomment this to see the screenshot of the component in the report
// const screenshot = await gosComponent.screenshot();
// await testInfo.attach('gosComponentScreenshot', {
// body: screenshot,
// contentType: 'image/png',
// });

await checkScreenshotUntilMatches(
gosComponent,
Expand Down

0 comments on commit b921f67

Please sign in to comment.