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 }); }); });