fix: type admin API contracts
CI / backend-and-migrations (push) Canceled after 0s
CI / astro-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
CI / compose-e2e (push) Canceled after 0s

This commit is contained in:
ik
2026-09-16 20:09:41 +07:00
parent efd5f7b172
commit c216229c61
5 changed files with 316 additions and 21 deletions
+2
View File
@@ -107,6 +107,8 @@ for (const viewport of [{ name: "desktop", width: 1280, height: 900 }, { name: "
await page.getByRole("button", { name: "Открыть медиатеку" }).click();
await expect(page.locator(".media-library__card")).toContainText("Щука");
await expect(page.locator(".media-library__card")).toContainText("upgrade_stored");
await expect(page.getByRole("navigation", { name: "Разделы админ-панели" })).toBeVisible();
await expect(page.getByRole("link", { name: "Медиатека" })).toHaveAttribute("aria-current", "page");
expect(mutations).toBe(0);
const dimensions = await page.evaluate(() => ({ width: document.documentElement.clientWidth, scroll: document.documentElement.scrollWidth }));
expect(dimensions.scroll).toBeLessThanOrEqual(dimensions.width);