Skip to content

Commit

Permalink
test: update snapshot naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Mar 1, 2024
1 parent ee36c00 commit 842c292
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions tests/express.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ import { openPanel, gotoPage } from './utils';
test('Express loads', async ({ page }) => {
await gotoPage(page, '');
await openPanel(page, 'express_fig', '.js-plotly-plot');
await expect(page.locator('.iris-chart-panel')).toHaveScreenshot(
'express_fig.png'
);
await expect(page.locator('.iris-chart-panel')).toHaveScreenshot();
});
2 changes: 1 addition & 1 deletion tests/matplotlib.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ test('Matplotlib loads', async ({ page }) => {
await openPanel(page, 'matplotlib_fig', '.matplotlib-view');
await expect(
page.getByRole('img', { name: 'Matplotlib render' })
).toHaveScreenshot('matplotlib_plot.png');
).toHaveScreenshot();
});
4 changes: 1 addition & 3 deletions tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ import { openPanel, gotoPage } from './utils';
test('UI loads', async ({ page }) => {
await gotoPage(page, '');
await openPanel(page, 'ui_component', '.ui-portal-panel');
await expect(page.locator('.ui-portal-panel')).toHaveScreenshot(
'ui_component.png'
);
await expect(page.locator('.ui-portal-panel')).toHaveScreenshot();
});

0 comments on commit 842c292

Please sign in to comment.