Add Playwright and Tailwind workflow
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user