Skip to content

Commit 2f75783

Browse files
authored
Merge pull request #445 from bcorfman/perstestplan
Added test bridge and cloud-enabled test plan
2 parents c702d84 + 49f18f3 commit 2f75783

3 files changed

Lines changed: 812 additions & 1 deletion

File tree

.github/workflows/deploy-frontend-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
- name: Build
6868
env:
6969
VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL }}
70+
VITE_E2E_TEST_BRIDGE: '1'
7071
run: npm run build
7172

7273
- name: Build docs

playwright.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ export function resolveE2EWebServerConfig(env: EnvLike): { command: string; port
2020
};
2121
}
2222

23+
export function resolveE2EBaseUrl(env: EnvLike): string {
24+
const explicit = env.PW_BASE_URL?.trim();
25+
return explicit && explicit.length > 0 ? explicit : 'http://127.0.0.1:4173';
26+
}
27+
2328
export function resolveE2EProjectNames(env: EnvLike): E2EProjectName[] {
2429
const explicitProjects = env.PW_PROJECTS?.split(',')
2530
.map((value) => value.trim())
@@ -62,7 +67,7 @@ export default defineConfig({
6267
workers: process.env.PW_WORKERS ? parseInt(process.env.PW_WORKERS) : 3,
6368
reporter: process.env.CI ? [['github'], ['html', { open: 'never' }]] : [['list']],
6469
use: {
65-
baseURL: 'http://127.0.0.1:4173',
70+
baseURL: resolveE2EBaseUrl(process.env),
6671
trace: 'on-first-retry',
6772
screenshot: 'only-on-failure',
6873
video: 'retain-on-failure',

0 commit comments

Comments
 (0)