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:
21
playwright.config.ts
Normal file
21
playwright.config.ts
Normal 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 }],
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user