Initial Commit
This commit is contained in:
27
packages/localization/i18n/react-i18n/playwright.config.ts
Normal file
27
packages/localization/i18n/react-i18n/playwright.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { devices } from "@playwright/test";
|
||||
import { createPlaywrightConfig } from "@suaveplan/testing-e2e/config";
|
||||
|
||||
export default createPlaywrightConfig({
|
||||
testDir: "./e2e",
|
||||
testMatch: /\.spec\.ts$/,
|
||||
timeout: 30_000,
|
||||
expect: { timeout: 5_000 },
|
||||
reporter: process.env["CI"] ? [["list"], ["html", { open: "never" }]] : [["list"]],
|
||||
projects: [
|
||||
{
|
||||
name: "chromium",
|
||||
use: { ...devices["Desktop Chrome"] },
|
||||
},
|
||||
],
|
||||
webServer: {
|
||||
command: "bunx vite --config e2e/test-app/vite.config.ts",
|
||||
url: "http://127.0.0.1:5273/",
|
||||
reuseExistingServer: !process.env["CI"],
|
||||
timeout: 120_000,
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
},
|
||||
use: {
|
||||
baseURL: "http://127.0.0.1:5273",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user