Skip to content

Commit f7c7f69

Browse files
committed
[e2e] update screenshots
1 parent 1f49032 commit f7c7f69

17 files changed

+19
-17
lines changed
Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
1-
import { test, expect, Page } from "@playwright/test";
1+
import { Page, expect, test } from '@playwright/test';
22

33
const TESTS: Array<{ id: string; play?: (page: Page) => Promise<void> }> = [
4-
{ id: "complete" },
5-
{ id: "custom-renderer" },
6-
{ id: "demo" },
7-
{ id: "drag-n-drop" },
8-
{ id: "events" },
9-
{ id: "external" },
10-
{ id: "layout-circular" },
11-
{ id: "layout-fa2-control" },
12-
{ id: "load-graph-hook" },
13-
{ id: "load-graph-prop" },
14-
{ id: "multi-directed" },
15-
{ id: "multi" },
16-
{ id: "node-border" },
17-
{ id: "edge-curve" },
4+
{ id: 'complete' },
5+
{ id: 'custom-renderer' },
6+
{ id: 'demo' },
7+
{ id: 'drag-n-drop' },
8+
{ id: 'events' },
9+
{ id: 'external' },
10+
{ id: 'layout-circular' },
11+
{ id: 'layout-fa2-control' },
12+
{ id: 'load-graph-hook' },
13+
{ id: 'load-graph-prop' },
14+
{ id: 'multi-directed' },
15+
{ id: 'multi' },
16+
{ id: 'node-border' },
17+
{ id: 'edge-curve' },
18+
{ id: 'graph-search' },
19+
{ id: 'minimap' },
1820
];
1921

2022
function getTestUrl(id: string): string {
2123
return `/iframe.html?args=&id=${id}--default&viewMode=story&seed=foo&faTime=-1`;
2224
}
23-
2425
TESTS.forEach(({ id, play }) => {
2526
test(`Screenshot for "${id}"`, async ({ page }) => {
26-
await page.goto(getTestUrl(id), { waitUntil: "networkidle" });
27+
await page.goto(getTestUrl(id), { waitUntil: 'networkidle' });
2728
if (play) await play(page);
2829
await expect(page).toHaveScreenshot(`${id}.png`, {
2930
maxDiffPixels: 2,
31+
timeout: 10000,
3032
});
3133
});
3234
});
-44.5 KB
Loading
-52.7 KB
Loading
-25.3 KB
Loading
-52.9 KB
Loading
-3.29 KB
Loading
-52.8 KB
Loading
-983 Bytes
Loading
453 KB
Loading
-30.6 KB
Loading

0 commit comments

Comments
 (0)