diff --git a/e2e-local.sh b/e2e-local.sh old mode 100644 new mode 100755 diff --git a/playwright.config.ts b/playwright.config.ts index 21b624218..cb3542a0e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -19,11 +19,6 @@ if (!isA11y && !isVrt) { isVrt = true; } -const baseViewport = { - width: 1000, - height: 660 -}; - const chromeLaunchOptions = { args: [ '--disable-skia-runtime-opts', @@ -95,7 +90,6 @@ export default defineConfig({ use: { baseURL: `http://${localAddress}:${port}`, launchOptions: chromeLaunchOptions, - viewport: baseViewport, actionTimeout: 0, /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry' @@ -105,7 +99,13 @@ export default defineConfig({ projects: [ { name: 'chromium', - use: { ...devices['Desktop Chrome'] } + use: { + ...devices['Desktop Chrome'], + viewport: { + width: 1280, + height: 780 + } + } } ], diff --git a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--empty-chromium-linux.png b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--empty-chromium-linux.png index 2326256f2..fe256dd1d 100644 --- a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--empty-chromium-linux.png +++ b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--empty-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:29914c7e2ef15d4cb66e3aa691004961bd76acb71d5fe66fc3c7d3cce1bbef56 -size 54101 +oid sha256:b14a3c224d86fa54155dd240845a932dc2e01c30afafd3769c61b0f4366d2f58 +size 54076 diff --git a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--filtered-chromium-linux.png b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--filtered-chromium-linux.png index e1e87a029..c4f57cc96 100644 --- a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--filtered-chromium-linux.png +++ b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--filtered-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6384868d96f3546307ad4de39d4a45329c0426d70c06b474d514fa86c937669a -size 53757 +oid sha256:bd01858c89860723a60f6ce4c76b9162d54b48d993235631423ff154aee58bff +size 53735 diff --git a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--next-page-chromium-linux.png b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--next-page-chromium-linux.png index 2b61a9910..6efa1c0a9 100644 --- a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--next-page-chromium-linux.png +++ b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter--next-page-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f4a59a3e5823cde46a42cfe670232728fd45b116851cc6a501eccdd24144afa4 -size 82061 +oid sha256:0f8d48d8e716be0b4aeac8dc579c39b6a5e3f24672a7edf7100f7c631386102f +size 81884 diff --git a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter-chromium-linux.png b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter-chromium-linux.png index 418f91aa1..6b62ef094 100644 --- a/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter-chromium-linux.png +++ b/playwright/snapshots/e2e/filter.spec.ts-snapshots/filter-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:33d7c7f6f3494720709cf293c56e7906451659433f70b53b6098dba660e60324 -size 84359 +oid sha256:7a2465905fc56c66cf4a22b9b6ba7f792afdb93b3138308a5adcec305a855b0a +size 84244 diff --git a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--default-chromium-linux.png b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--default-chromium-linux.png index 0d3250991..5ad0a1c64 100644 --- a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--default-chromium-linux.png +++ b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--default-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1dfd6a166d80945ccf7356b395f3e01b3a985acf0e7ace3d728b936a777e5c0 -size 79891 +oid sha256:f2a0e6048ffb511c11bf2f6c84c4caff7898de2352227bc35be3d163b3533f7d +size 83189 diff --git a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-collapsed-chromium-linux.png b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-collapsed-chromium-linux.png index 2ff394d9e..3dde4b845 100644 --- a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-collapsed-chromium-linux.png +++ b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-collapsed-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e86a365017cc4665c94fc30411bee60549ed87774d3e4173ed58434d048b90a0 -size 67621 +oid sha256:2b6478c17ae0cc9bff34bd9804c9c93af50c345828a9e3d85a9ef626cce05811 +size 70169 diff --git a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-expanded-chromium-linux.png b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-expanded-chromium-linux.png index 0d3250991..5ad0a1c64 100644 --- a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-expanded-chromium-linux.png +++ b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-expanded-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1dfd6a166d80945ccf7356b395f3e01b3a985acf0e7ace3d728b936a777e5c0 -size 79891 +oid sha256:f2a0e6048ffb511c11bf2f6c84c4caff7898de2352227bc35be3d163b3533f7d +size 83189 diff --git a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-selected-chromium-linux.png b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-selected-chromium-linux.png index 7a30546ff..0c726ed61 100644 --- a/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-selected-chromium-linux.png +++ b/playwright/snapshots/e2e/row-group.spec.ts-snapshots/row-grouping--group-selected-chromium-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:295b259b4a1e86b7e6dc0e006691b9f6d559dd3c7cdf94c8da9562837fa8c41b -size 80388 +oid sha256:6797f3a88b8260a8ab262a71944658a7c7392815a9a322d5a6bbbac693b11bbc +size 83702 diff --git a/playwright/support/test-helpers.ts b/playwright/support/test-helpers.ts index 07d11a715..043cf349d 100644 --- a/playwright/support/test-helpers.ts +++ b/playwright/support/test-helpers.ts @@ -58,7 +58,7 @@ class SiTestHelpers { private testInfo: TestInfo ) {} - public async visitExample(name: string, autoScaleViewport = true): Promise { + public async visitExample(name: string): Promise { await test.step( 'visitExample: ' + name, async () => { @@ -71,18 +71,6 @@ class SiTestHelpers { await this.page.goto(newHash); await this.page.evaluate(() => document.fonts.ready); - - if (autoScaleViewport) { - const height = await this.page.evaluate(() => document.body.scrollHeight); - const width = await this.page.evaluate(() => document.body.scrollWidth); - const viewportSize = this.page.viewportSize(); - if (!viewportSize || viewportSize.height < height || viewportSize.width < width) { - await this.page.setViewportSize({ - height: Math.max(height, viewportSize?.height ?? 0), - width: Math.max(width, viewportSize?.width ?? 0) - }); - } - } }, { box: true } );