Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions e2e/a11y.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ for (const route of keyRoutes) {
await page.screenshot({
path: `test-results/screenshots/${route.name}-${theme}-${info.project.name}.png`,
fullPage: true,
// CSS-pixel scale keeps tall pages under WebKit's 32,767 px screenshot limit
// on high-density phone profiles.
scale: "css",
});
expect(errors).toEqual([]);
});
Expand Down
16 changes: 11 additions & 5 deletions playwright.perf.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ export default defineConfig({
name: "chromium-desktop",
use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } },
},
{
name: "webkit-desktop",
use: { ...devices["Desktop Safari"], viewport: { width: 1440, height: 900 } },
},
{ name: "webkit-iphone", use: { ...devices["iPhone 15"] } },
// Headless WebKit on Linux CI runners has no GPU and throttles animation
// frames, so its timings mean nothing there. WebKit runs locally (macOS).
...(process.env.CI
? []
: [
{
name: "webkit-desktop",
use: { ...devices["Desktop Safari"], viewport: { width: 1440, height: 900 } },
},
{ name: "webkit-iphone", use: { ...devices["iPhone 15"] } },
]),
],
webServer: {
command: "pnpm start",
Expand Down
Loading