Skip to content

Commit a099729

Browse files
committed
test: fix e2e test
1 parent 5d1de64 commit a099729

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

e2e_tests/tests_omni_full/src/app-loading.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ test.describe("App loading", () => {
88
await expect(page).toHaveTitle(/modAI/);
99
});
1010

11-
test.describe("User gets redirected to /chat as fallback", () => {
12-
const testPaths = ["/", "/chat", "/foo"];
11+
test.describe("User gets redirected to /login as fallback if not logged in", () => {
12+
const testPaths = ["/", "/login", "/foo"];
1313

1414
for (const path of testPaths) {
15-
test(`should redirect ${path} to /chat`, async ({ page }) => {
15+
test(`should redirect ${path} to /login`, async ({ page }) => {
1616
await page.goto(path);
1717

1818
// Wait for navigation to complete and check the URL
19-
await expect(page).toHaveURL("/chat");
19+
await expect(page).toHaveURL("/login");
2020
});
2121
}
2222
});

frontend_omni/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "cp public/${MODULES_JSON_NAME:-modules_with_backend.json} public/modules.json && tsc -b && vite build",
8+
"build": "ln -sf ${MODULES_JSON_NAME:-modules_with_backend.json} public/modules.json && tsc -b && vite build",
99
"check": "biome check",
1010
"check:write": "biome check --write",
1111
"preview": "vite preview",
@@ -82,4 +82,4 @@
8282
"vite": "npm:[email protected]"
8383
}
8484
}
85-
}
85+
}

0 commit comments

Comments
 (0)