f3fdb17c39
Covers smoke, online-board, schedule, flights-map, popular, and navigation routes with 20 passing tests and 1 fixme (page title).
17 lines
599 B
TypeScript
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 });
|
|
});
|
|
});
|