Files
return-youtube-dislike/playwright.userscript.config.js
T
Anarios 3657de9b2c Fix Shorts support and add userscript voting
Harden Shorts controls, reaction state, and navigation; share voting logic
with the extension; improve ratio-bar rendering; and add comprehensive Jest,
Playwright, artifact, and live-browser regression coverage.
2026-09-01 23:41:28 +02:00

26 lines
740 B
JavaScript

const { defineConfig, devices } = require("@playwright/test");
module.exports = defineConfig({
testDir: "./Extensions/UserScript/e2e",
testMatch: "**/*.e2e.js",
testIgnore: "**/live/**",
fullyParallel: false,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? 1 : undefined,
timeout: 15_000,
expect: {
timeout: 5_000,
},
reporter: process.env.CI ? [["line"], ["html", { open: "never", outputFolder: "playwright-report" }]] : "list",
use: {
...devices["Desktop Chrome"],
browserName: "chromium",
serviceWorkers: "block",
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "off",
},
outputDir: "test-results/userscript",
});