fix: update Playwright coverage configuration and base URL for consistency across scripts

This commit is contained in:
GitHub Actions
2026-02-15 05:43:57 +00:00
parent 673efbd195
commit c8a6542c06
6 changed files with 19 additions and 18 deletions

View File

@@ -23,9 +23,9 @@ const STORAGE_STATE = join(__dirname, 'playwright/.auth/user.json');
/**
* Coverage reporter configuration for E2E tests
* Enabled by default, disable with PLAYWRIGHT_COVERAGE=0
* Disabled by default; enable with PLAYWRIGHT_COVERAGE=1.
*/
const enableCoverage = process.env.PLAYWRIGHT_COVERAGE !== '0';
const enableCoverage = process.env.PLAYWRIGHT_COVERAGE === '1';
const resolvedBaseURL = process.env.PLAYWRIGHT_BASE_URL || (enableCoverage ? 'http://localhost:5173' : 'http://127.0.0.1:8080');
if (!process.env.PLAYWRIGHT_BASE_URL) {
process.env.PLAYWRIGHT_BASE_URL = resolvedBaseURL;