mirror of
https://github.com/db9979/tidefront.git
synced 2026-12-05 12:24:13 +01:00
E2E Desktop: große Karte unter Last länger abwarten
This commit is contained in:
1 parent
110bf8df5d
commit
351d52a45b
1 file changed
+4
-3
@@ -181,12 +181,13 @@ test.describe("Desktop 1440 px", () => {
|
||||
// „Karte groß“ holt die Karte über die Textansicht; erneut tippen kehrt zur Verwaltung zurück.
|
||||
const big = rail.getByRole("button", { name: /^Karte groß/ });
|
||||
await expect(big).toHaveAttribute("aria-pressed", "false");
|
||||
await big.click();
|
||||
await expect(big).toHaveAttribute("aria-pressed", "true");
|
||||
// Die große Karte baut beim ersten Mal die ganze Welt in voller Breite auf; unter Last kann das dauern (Karte 0.51).
|
||||
await big.click({ timeout: 30_000 });
|
||||
await expect(big).toHaveAttribute("aria-pressed", "true", { timeout: 30_000 });
|
||||
await expect(map).toBeVisible();
|
||||
await expect(map.locator("canvas").first()).toBeVisible();
|
||||
await expect(side).toHaveCount(0);
|
||||
expect((await map.boundingBox())!.width).toBeGreaterThan(1200);
|
||||
expect((await map.boundingBox({ timeout: 30_000 }))!.width).toBeGreaterThan(1200);
|
||||
await shot(page, "d-karte-gross");
|
||||
await big.click();
|
||||
await expect(page.getByRole("heading", { name: "Verwaltung", level: 1 })).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user