c2975f9a89
Deploy Astro Frontend / deploy (push) Waiting to run
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>
23 lines
596 B
TypeScript
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"] } },
|
|
],
|
|
});
|