Files
davegilligan-new/playwright.config.ts
daveadmin c2975f9a89
Deploy Astro Frontend / deploy (push) Waiting to run
feat(business): wire BusinessIssue island to live PHP backend
Render the DB-driven BusinessIssue island on the Business page and let
the Playwright config target a remote BASE_URL for live verification.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 06:49:12 +02:00

23 lines
596 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
const baseURL = process.env.BASE_URL ?? "http://localhost:4321";
const isRemote = Boolean(process.env.BASE_URL);
export default defineConfig({
testDir: "./tests",
timeout: 15_000,
use: { baseURL },
webServer: isRemote
? undefined
: {
command: "npm run preview",
url: "http://localhost:4321",
reuseExistingServer: true,
timeout: 30_000,
},
projects: [
{ name: "desktop", use: { ...devices["Desktop Chrome"] } },
{ name: "mobile", use: { ...devices["Pixel 5"] } },
],
});