mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 01:32:40 +00:00
Organize community plugins by what Paseo does and verify the category layout with a static registry fixture.
30 lines
910 B
TypeScript
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",
|
|
},
|
|
},
|
|
],
|
|
});
|