A continuation of HomeBox the inventory and organization system built for the Home User
import { defineConfig, devices } from "@playwright/test";
import { fileURLToPath } from "node:url";
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 1,
reporter: process.env.CI ? "blob" : "html",
use: {
baseURL: process.env.E2E_BASE_URL || "http://localhost:3000",
trace: "on-all-retries",
video: "retry-with-video",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
{
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},
{
name: "webkit",
use: { ...devices["Desktop Safari"] },
},
],
globalTeardown: fileURLToPath(new URL("./playwright.teardown.ts", import.meta.url)),
});