Files
paseo/packages/website/playwright.config.ts
T
Mohamed Boudra 5aee41952e feat(website): browse plugins by nine community categories (#6068)
Organize community plugins by what Paseo does and verify the category layout with a static registry fixture.
2026-10-04 17:12:11 +01:00

30 lines
910 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: "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",
url: baseURL,
env: {
CLOUDFLARE_INCLUDE_PROCESS_ENV: "true",
PLUGINS_REGISTRY_URL: "http://127.0.0.1:8188",
},
},
],
});