Files
paseo/packages/website/playwright.config.ts
T
Mohamed Boudra 30fb66c8cb fix(app): preserve mobile sidebar scroll position when reopening (#6058)
* fix(app): preserve mobile sidebar scroll position when reopening

Keep hidden native overlays laid out so Android touch cancellation cannot spring retained scroll offsets through a zero scroll range. Hide and gate touch input on the UI thread to preserve panel motion during JS stalls.

* docs(app): quote sidebar replay workspace examples

* test(website): read plugin HTML without waiting for remote images

* test(website): exercise built worker in browser checks

The ordered plugin spec reproduces a no-response navigation timeout against a cold development server. Build and preview the published worker for E2E checks; preserve the original content and metadata assertions.
2026-10-04 14:55:24 +01:00

21 lines
667 B
TypeScript

import { defineConfig, devices } from "playwright/test";
const baseURL = process.env.WEBSITE_TEST_URL ?? "http://127.0.0.1:8187";
export default defineConfig({
testDir: "./e2e",
workers: 1,
use: { baseURL, screenshot: "only-on-failure", trace: "retain-on-failure" },
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
{ name: "webkit", use: { ...devices["Desktop Safari"] } },
],
webServer: process.env.WEBSITE_TEST_URL
? undefined
: {
command: "npm run build && npm run preview -- --host 127.0.0.1 --port 8187 --strictPort",
url: baseURL,
reuseExistingServer: !process.env.CI,
},
});