Files
paseo/packages/website/playwright.config.ts
Mohamed Boudra 55a7590952 Sort sidebar workspaces and keep active overflow visible (#7635)
Order ordinary sidebar workspaces by Created or Last prompt, preserve project and pin ordering, and keep later active or unacknowledged work visible beyond the first seven rows. Preserve reveal state through live updates and verify sorting, visibility, compatibility, and rendering behavior.
2026-10-22 19:59:28 +07:00

32 lines
1.0 KiB
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: "node e2e/registry-server.mjs",
url: "http://127.0.0.1:8188/index.json",
},
{
command: "npm run build && npm run preview -- --host 127.0.0.1 --port 8187 --strictPort",
// Probe the server without running the homepage loader's live GitHub requests.
url: new URL("/logo.svg", baseURL).href,
stdout: "pipe",
env: {
CLOUDFLARE_INCLUDE_PROCESS_ENV: "true",
PLUGINS_REGISTRY_URL: "http://127.0.0.1:8188",
},
},
],
});