49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./tests/browser-capabilities",
|
|
forbidOnly: true,
|
|
outputDir: "./artifacts/tests/browser-capabilities/results",
|
|
reporter: [
|
|
["list"],
|
|
[
|
|
"html",
|
|
{
|
|
outputFolder: "./artifacts/tests/browser-capabilities/report",
|
|
open: "never",
|
|
},
|
|
],
|
|
[
|
|
"junit",
|
|
{
|
|
outputFile: "./artifacts/tests/browser-capabilities/results.xml",
|
|
},
|
|
],
|
|
],
|
|
use: {
|
|
baseURL: "http://127.0.0.1:4174",
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure",
|
|
},
|
|
webServer: {
|
|
command:
|
|
"corepack pnpm dev --host 127.0.0.1 --port 4174",
|
|
url: "http://127.0.0.1:4174",
|
|
reuseExistingServer: false,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
{
|
|
name: "firefox",
|
|
use: { ...devices["Desktop Firefox"] },
|
|
},
|
|
{
|
|
name: "webkit",
|
|
use: { ...devices["Desktop Safari"] },
|
|
},
|
|
],
|
|
});
|