Skip to content

Commit 2568d39

Browse files
committed
e2e test fix for new FE behavior on unreachable DB server
Signed-off-by: Mike Lischke <mike@lischke-online.de>
1 parent 9cffa52 commit 2568d39

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/e2e/backend-setup.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,15 @@ test.describe("Setup: fresh start, database has data", () => {
290290
// ── Unreachable ──
291291

292292
test.describe("Setup: backend unreachable", () => {
293-
test("shows progress indicator when backend is unreachable", async ({ page }) => {
293+
test("shows server unreachable error when backend is unreachable", async ({ page }) => {
294294
await page.route("**/api**", async (route) => {
295295
await route.fulfill({ status: 502, contentType: "text/plain", body: "Bad Gateway" });
296296
});
297297

298298
await page.goto("/");
299299

300-
// The app stays on the splash screen with a progress indicator.
301-
await expect(page.locator(".progressIndicatorCard")).toBeVisible({ timeout: 5000 });
300+
// The app shows a "Server Unreachable" error card with a retry button.
301+
await expect(page.locator(".backend-unreachable-card")).toBeVisible({ timeout: 5000 });
302+
await expect(page.locator(".backend-unreachable-card")).toContainText("Server Unreachable");
302303
});
303304
});

0 commit comments

Comments
 (0)