fix: type admin API contracts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user