Files
flights_web/tests/e2e/popular.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

18 lines
571 B
TypeScript

import { test, expect } from "@playwright/test";
test.describe("Popular Requests", () => {
test("/ru/popular renders", async ({ page }) => {
await page.goto("/ru/popular");
await page.waitForLoadState("domcontentloaded");
// The page should render without crashing. The PopularRequestsPanel
// is lazy-loaded, so we wait for either the panel or the loading fallback.
await expect(
page.locator("main, [aria-busy='true'], body"),
).not.toBeEmpty();
// URL should be correct
expect(page.url()).toContain("/ru/popular");
});
});