Files
flights_web/tests/e2e/flights-map.spec.ts
T

18 lines
627 B
TypeScript

import { test, expect } from "./fixtures/console-gate";
test.describe("Flights Map", () => {
test("/ru/flights-map renders or shows feature-flag disabled message", async ({
page,
consoleMessages,
}) => {
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 });
});
});