memos/web/playwright.config.ts

20 lines
445 B
TypeScript
Raw Normal View History

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e-tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: [["html", { outputFolder: "playwright-report", open: "never" }]],
use: {
trace: "on-first-retry",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});