Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import type { PlaywrightTestConfig } from "@playwright/test";
- import { devices } from "@playwright/test";
- const config: PlaywrightTestConfig = {
- testDir: "./e2e",
- timeout: 30 * 1000,
- expect: {
- timeout: 5000,
- },
- forbidOnly: !!process.env.CI,
- retries: process.env.CI ? 2 : 0,
- workers: process.env.CI ? 1 : undefined,
- reporter: "html",
- use: {
- actionTimeout: 0,
- baseURL: "http://localhost:5173",
- trace: "on-first-retry",
- headless: !!process.env.CI,
- },
- projects: [
- {
- name: "chromium",
- use: {
- ...devices["Desktop Chrome"],
- },
- },
- {
- name: "firefox",
- use: {
- ...devices["Desktop Firefox"],
- },
- },
- ],
- webServer: {
- command: process.env.CI ? "vite preview --port 5173" : "vite dev",
- port: 5173,
- reuseExistingServer: !process.env.CI,
- },
- };
- export default config;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement