Files
flights_web/tests/e2e/flights-map.spec.ts
T
gnezim f3fdb17c39
CI / ci (push) Failing after 36s
Deploy / build-and-deploy (push) Failing after 6s
Add Playwright e2e tests for all feature pages
Covers smoke, online-board, schedule, flights-map, popular, and
navigation routes with 20 passing tests and 1 fixme (page title).
2026-04-15 16:56:18 +03:00

17 lines
599 B
TypeScript

import { test, expect } from "@playwright/test";
test.describe("Flights Map", () => {
test("/ru/flights-map renders or shows feature-flag disabled message", async ({
page,
}) => {
await page.goto("/ru/flights-map");
await page.waitForLoadState("domcontentloaded");
// Either the map page renders or the feature-flag-disabled fallback shows
const mapStart = page.locator('[data-testid="flights-map-start"]');
const mapDisabled = page.locator('[data-testid="flights-map-disabled"]');
await expect(mapStart.or(mapDisabled)).toBeVisible({ timeout: 10000 });
});
});