25 lines
555 B
JavaScript
25 lines
555 B
JavaScript
const { defineConfig } = require("@playwright/test");
|
|
|
|
const viewports = [
|
|
["mobile", 375, 812],
|
|
["tablet", 768, 1024],
|
|
["desktop-small", 1024, 768],
|
|
["desktop-wide", 1440, 900]
|
|
];
|
|
|
|
module.exports = defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
timeout: 30_000,
|
|
reporter: "line",
|
|
use: {
|
|
baseURL: process.env.CHORUS_E2E_BASE_URL || "http://127.0.0.1:18082",
|
|
trace: "retain-on-failure"
|
|
},
|
|
projects: viewports.map(([name, width, height]) => ({
|
|
name,
|
|
use: { viewport: { width, height } }
|
|
}))
|
|
});
|