Add Playwright and Tailwind workflow

This commit is contained in:
rajchales-monito
2026-08-06 17:18:10 +02:00
parent 6374e0502f
commit 86df1bf0b0
9 changed files with 1344 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
const { defineConfig, devices } = require("@playwright/test");
module.exports = defineConfig({
testDir: "./tests/ui",
timeout: 30_000,
expect: {
timeout: 5_000
},
fullyParallel: false,
retries: 0,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: "http://127.0.0.1:3400",
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure"
},
projects: [
{
name: "desktop",
use: { ...devices["Desktop Chrome"], viewport: { width: 1366, height: 900 } }
},
{
name: "mobile",
use: { ...devices["Pixel 7"] }
}
],
webServer: {
command: "node server.js",
url: "http://127.0.0.1:3400/health",
reuseExistingServer: true,
timeout: 20_000
}
});