save checkpoint: save features
This commit is contained in:
@@ -8,6 +8,7 @@ const { resolveChromeBinary } = require('./scripts/chrome-path');
|
||||
const port = process.env.PLAYWRIGHT_PORT
|
||||
? Number.parseInt(process.env.PLAYWRIGHT_PORT, 10)
|
||||
: 4400;
|
||||
const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? `https://127.0.0.1:${port}`;
|
||||
|
||||
const chromiumExecutable = resolveChromeBinary(__dirname) as string | null;
|
||||
|
||||
@@ -16,14 +17,16 @@ export default defineConfig({
|
||||
timeout: 30_000,
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
use: {
|
||||
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? `http://127.0.0.1:${port}`,
|
||||
baseURL,
|
||||
ignoreHTTPSErrors: true,
|
||||
trace: 'retain-on-failure',
|
||||
...(chromiumExecutable ? { launchOptions: { executablePath: chromiumExecutable } } : {}),
|
||||
},
|
||||
webServer: {
|
||||
command: 'npm run serve:test',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
url: `http://127.0.0.1:${port}`,
|
||||
url: baseURL,
|
||||
ignoreHTTPSErrors: true,
|
||||
stdout: 'ignore',
|
||||
stderr: 'ignore',
|
||||
timeout: 120_000,
|
||||
|
||||
Reference in New Issue
Block a user