feat: add tackle combination analytics
This commit is contained in:
@@ -23,3 +23,12 @@ test("unknown tackle detail has a navigable not-found state", async ({ page }) =
|
||||
await expect(page.getByRole("heading", { name: "Такой карточки нет в каталоге" })).toBeVisible();
|
||||
await expect(page.getByRole("link", { name: "Открыть каталог" })).toHaveAttribute("href", "/tackle");
|
||||
});
|
||||
|
||||
test("tackle analytics keeps an honest empty state", async ({ page }) => {
|
||||
await page.goto("/tackle/analytics");
|
||||
|
||||
await expect(page.getByRole("heading", { name: "Сочетания снастей" })).toBeVisible();
|
||||
await expect(page.getByLabel("Фильтры сочетаний снастей")).toBeVisible();
|
||||
await expect(page.locator("[data-analytics-results]")).toBeVisible();
|
||||
await expect(page.getByText(/не рейтинг снасти/i)).toBeVisible();
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
const routes = [
|
||||
"/", "/spots/vyunok-6331x6332", "/plan", "/waterbodies", "/tackle", "/records", "/report", "/status", "/media", "/rules",
|
||||
"/", "/spots/vyunok-6331x6332", "/plan", "/waterbodies", "/tackle", "/tackle/analytics", "/records", "/report", "/status", "/media", "/rules",
|
||||
"/waterbodies/р-вьюнок", "/fish/pike", "/admin", "/admin/moderation",
|
||||
"/admin/external-sources", "/admin/media",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user