diff --git a/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts b/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts index 190e073dcaf..d1c366ed7d3 100644 --- a/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts +++ b/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts @@ -21,7 +21,5 @@ test('diff default doc content', async ({ page }) => { await page.waitForTimeout(2000); await page.evaluate(() => window.E2EControllerAPI.loadDefaultDoc()); - await page.waitForTimeout(5000); - - await expect(page).toHaveScreenshot({ maxDiffPixels: 30 }); + await expect(page).toHaveScreenshot({ maxDiffPixels: 30, timeout: 5000 }); }); diff --git a/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/diff-default-doc-content-1-chromium-linux.png b/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/diff-default-doc-content-1-chromium-linux.png index 5010402b62a..03a90a7debc 100644 Binary files a/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/diff-default-doc-content-1-chromium-linux.png and b/e2e/visual-comparison/docs/docs-visual-comparison.spec.ts-snapshots/diff-default-doc-content-1-chromium-linux.png differ diff --git a/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts b/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts index 7f9bff6753d..cb245fcac12 100644 --- a/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts +++ b/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts @@ -21,9 +21,7 @@ test('diff default sheet content', async ({ page }) => { await page.waitForTimeout(2000); await page.evaluate(() => window.E2EControllerAPI.loadDefaultSheet()); - await page.waitForTimeout(5000); - - await expect(page).toHaveScreenshot({ maxDiffPixels: 5 }); + await expect(page).toHaveScreenshot({ maxDiffPixels: 5, timeout: 5000 }); }); test('diff demo sheet content', async ({ page }) => { @@ -31,7 +29,5 @@ test('diff demo sheet content', async ({ page }) => { await page.waitForTimeout(2000); await page.evaluate(() => window.E2EControllerAPI.loadDemoSheet()); - await page.waitForTimeout(5000); - - await expect(page).toHaveScreenshot({ maxDiffPixels: 5 }); + await expect(page).toHaveScreenshot({ maxDiffPixels: 5, timeout: 5000 }); }); diff --git a/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-default-sheet-content-1-chromium-linux.png b/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-default-sheet-content-1-chromium-linux.png index 85e8c788d06..1560378724b 100644 Binary files a/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-default-sheet-content-1-chromium-linux.png and b/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-default-sheet-content-1-chromium-linux.png differ diff --git a/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-demo-sheet-content-1-chromium-linux.png b/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-demo-sheet-content-1-chromium-linux.png index 75da2052ba0..ad3754d7fbb 100644 Binary files a/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-demo-sheet-content-1-chromium-linux.png and b/e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts-snapshots/diff-demo-sheet-content-1-chromium-linux.png differ diff --git a/playwright.config.ts b/playwright.config.ts index 8310f372058..5fb1146e6f9 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -81,7 +81,7 @@ export default defineConfig({ webServer: { command: 'pnpm serve:e2e', - url: 'http://localhost:3000/sheets', + url: 'http://localhost:3000', reuseExistingServer: !isCI, timeout: 10000, stdout: 'pipe',