mirror of
https://github.com/Anarios/return-youtube-dislike.git
synced 2026-09-12 10:22:10 +02:00
3657de9b2c
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.
26 lines
740 B
JavaScript
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",
|
|
});
|