Skip to content

Commit

Permalink
test(SLB-354): dont do snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Aug 13, 2024
1 parent 635a9fc commit 69f067e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions packages/npm/@amazeelabs/image/test/image.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { expect, test } from '@playwright/test';

test('server', async ({ page }) => {
await page.goto('http://localhost:8080/server');
await expect(page).toHaveScreenshot({
fullPage: true,
});
const response = await page.goto('http://localhost:8080/server');
expect(response?.status()).toBe(200);
// await expect(page).toHaveScreenshot({
// fullPage: true,
// });
});

test('client', async ({ page }) => {
await page.goto('http://localhost:8080/client');
await expect(page).toHaveScreenshot({
fullPage: true,
page.on('pageerror', (error) => {
throw error;
});
await page.goto('http://localhost:8080/client');
// await expect(page).toHaveScreenshot({
// fullPage: true,
// });
});

0 comments on commit 69f067e

Please sign in to comment.