Visual snapshots were generated on macOS but CI runs on Linux, and font hinting differences between the two would always produce false positives. The job was already continue-on-error and the baselines weren't giving trustworthy signal — remove the spec, baselines, CI job, and now-unneeded snapshot config / --ignore-snapshots flag. Functional e2e coverage in the playwright job is unaffected.
36 lines
886 B
JavaScript
36 lines
886 B
JavaScript
import { defineConfig } from "@playwright/test";
|
|
|
|
const PORT = process.env.PLAYWRIGHT_PORT || "3000";
|
|
const BASE_URL = `http://localhost:${PORT}`;
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
outputDir: "e2e/test-results",
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 1 : 1,
|
|
workers: process.env.CI ? 1 : 4,
|
|
reporter: "html",
|
|
timeout: 60000,
|
|
use: {
|
|
baseURL: BASE_URL,
|
|
trace: "on-first-retry",
|
|
navigationTimeout: 45000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { browserName: "chromium" },
|
|
},
|
|
],
|
|
webServer: {
|
|
command: `PORT=${PORT} npm run build && PORT=${PORT} NODE_ENV=development npm run preview`,
|
|
url: BASE_URL,
|
|
reuseExistingServer: true,
|
|
env: {
|
|
NUXT_PUBLIC_COMING_SOON: "false",
|
|
NODE_ENV: "development",
|
|
ALLOW_DEV_TEST_ENDPOINTS: "true",
|
|
},
|
|
},
|
|
});
|