forked from baron/baron-sso
devfront ReBAC 전환 테스트
This commit is contained in:
@@ -3,6 +3,11 @@ import { defineConfig, devices } from "@playwright/test";
|
||||
const configuredWorkers = process.env.PLAYWRIGHT_WORKERS
|
||||
? Number.parseInt(process.env.PLAYWRIGHT_WORKERS, 10)
|
||||
: undefined;
|
||||
const skipWebServer =
|
||||
process.env.PLAYWRIGHT_SKIP_WEBSERVER === "1" ||
|
||||
process.env.PLAYWRIGHT_SKIP_WEBSERVER === "true";
|
||||
const baseURL =
|
||||
process.env.PLAYWRIGHT_BASE_URL || "http://localhost:5174";
|
||||
|
||||
/**
|
||||
* Read environment variables from file.
|
||||
@@ -30,7 +35,7 @@ export default defineConfig({
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
baseURL: "http://localhost:5174",
|
||||
baseURL,
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: "on-first-retry",
|
||||
@@ -55,11 +60,13 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
/* Run your local dev server before starting the tests */
|
||||
webServer: {
|
||||
command: process.env.CI
|
||||
? "npm run build && npm run preview -- --port 5174"
|
||||
: "npm run dev -- --port 5174",
|
||||
url: "http://localhost:5174",
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
webServer: skipWebServer
|
||||
? undefined
|
||||
: {
|
||||
command: process.env.CI
|
||||
? "npm run build && npm run preview -- --port 5174"
|
||||
: "npm run dev -- --port 5174",
|
||||
url: baseURL,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user