2024-09-01 13:37:28 +02:00
|
|
|
import { type PlaywrightTestConfig, devices } from "@playwright/test";
|
2024-08-30 15:48:15 +02:00
|
|
|
|
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
|
|
|
webServer: {
|
|
|
|
|
command: "npm run build && npm run preview",
|
2024-08-31 18:27:25 +02:00
|
|
|
url: "http://localhost:4173"
|
|
|
|
|
},
|
|
|
|
|
use: {
|
2024-09-06 16:08:34 +02:00
|
|
|
baseURL: "http://localhost:4173",
|
|
|
|
|
video: "retain-on-failure"
|
2024-08-30 15:48:15 +02:00
|
|
|
},
|
|
|
|
|
testDir: "tests",
|
2024-09-01 13:37:28 +02:00
|
|
|
testMatch: /(.+\.)?(test|spec)\.ts/,
|
2024-09-06 16:08:34 +02:00
|
|
|
retries: 3,
|
2024-09-01 13:37:28 +02:00
|
|
|
// Firefox and Webkit are not packaged yet, see https://github.com/NixOS/nixpkgs/issues/288826
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: "Chromium",
|
|
|
|
|
use: { ...devices["Desktop Chrome"] }
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-08-30 15:48:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|