1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Add Playwright configuration and visual regression tests (#2170)

This commit is contained in:
Paweł Kuna
2025-02-19 00:58:10 +01:00
committed by GitHub
parent 9cd532745a
commit a2640e2147
6 changed files with 498 additions and 2 deletions

21
playwright.config.ts Normal file
View File

@@ -0,0 +1,21 @@
import { defineConfig, devices } from "@playwright/test"
export default defineConfig({
testDir: "./tests",
timeout: 10000,
fullyParallel: true,
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
use: {
trace: "on-first-retry",
screenshot: "only-on-failure",
},
reporter: [
process.env.CI ? ["dot"] : ["list"],
["@argos-ci/playwright/reporter", { uploadToArgos: !!process.env.CI }],
],
})