diff --git a/packages/npm/@amazeelabs/image/test/image.spec.ts b/packages/npm/@amazeelabs/image/test/image.spec.ts index 912f671c2..f743ad5e0 100644 --- a/packages/npm/@amazeelabs/image/test/image.spec.ts +++ b/packages/npm/@amazeelabs/image/test/image.spec.ts @@ -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, + // }); });