Skip to content

Commit

Permalink
chore: try update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhudev committed Oct 8, 2024
1 parent 91e3586 commit 89850bc
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions e2e/visual-comparison/docs/docs-visual-comparison.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions e2e/visual-comparison/sheet/sheets-visual-comparison.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ 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 }) => {
await page.goto('http://localhost:3000/sheets/');
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 });
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 89850bc

Please sign in to comment.