Skip to content

Commit 495bb53

Browse files
committed
move inject
1 parent cc11fd5 commit 495bb53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/frontend/tests/setup/globalSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const healthCheckUrl = `http://127.0.0.1:${
2727
}`; // TODO: if there is a backend, check that too, even if it's a docker-compose situation
2828

2929
export async function setup(project: TestProject) {
30+
project.provide("baseUrl", BASE_URL);
3031
if (isE2E) {
3132
if (isBuiltBackendE2E) {
3233
console.log(`Starting app at ${executablePath} ...`);
@@ -45,7 +46,6 @@ export async function setup(project: TestProject) {
4546
});
4647
}
4748
browser = await chromium.launch(); // headless by default
48-
project.provide("baseUrl", BASE_URL);
4949
// Wait for /api/healthcheck to become available
5050
const maxAttempts = 10;
5151
let attempts = 0;

0 commit comments

Comments
 (0)