31 lines
872 B
TypeScript
31 lines
872 B
TypeScript
// SPDX-FileCopyrightText: 2026 Milovann Yanatchkov
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
// Studio smoke tests. The dev server provides the forge proxies, so run against
|
|
// `npm run dev` rather than the production preview.
|
|
export default defineConfig({
|
|
testDir: "./tests",
|
|
timeout: 30_000,
|
|
fullyParallel: true,
|
|
reporter: [["list"]],
|
|
use: {
|
|
baseURL: "http://localhost:5173",
|
|
trace: "on-first-retry",
|
|
},
|
|
webServer: {
|
|
command: "npm run dev",
|
|
url: "http://localhost:5173",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 60_000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
// Use the full Chrome for Testing build (cached) instead of the headless
|
|
// shell, which may not be installed.
|
|
use: { ...devices["Desktop Chrome"], channel: "chromium" },
|
|
},
|
|
],
|
|
});
|