Polish approved 1.0 scope and verify portable previews

This commit is contained in:
SantaSpeen committed 2026-12-02 16:12:49 +03:00
1 parent 1819f35f91
commit 2b45df2816
181 files changed
+996 -139

No files matched your search

+6 -4
View File
@@ -90,7 +90,7 @@ try {
await p.waitForTimeout(220);
assert.equal(await parent.getAttribute("aria-expanded"), "true");
assert.equal(await submenu.evaluate((e) => e.inert), false);
assert.equal(await submenu.locator("button").count(), 2);
assert.equal(await submenu.locator("button").count(), 3);
const textBounds = await parent
.locator(".nav-group-label")
.evaluate((e) => {
@@ -110,7 +110,7 @@ try {
await p.locator(".xterm-rows").waitFor();
assert.equal(
await p.locator(".dock-brand").getAttribute("aria-expanded"),
"true",
width <= 600 ? "false" : "true",
);
assert.equal(
await p.locator(".nav-group-toggle").getAttribute("data-active"),
@@ -122,20 +122,22 @@ try {
.getAttribute("aria-current"),
"page",
);
if (width <= 600) await p.locator(".dock-brand").click();
await p.locator("#administration-submenu [data-page=logs]").click();
await p.locator(".log-row").first().waitFor();
assert.equal(
await p.locator(".dock-brand").getAttribute("aria-expanded"),
"true",
width <= 600 ? "false" : "true",
);
assert.equal(
await p.locator(".nav-group-toggle").getAttribute("aria-expanded"),
"true",
width <= 600 ? "false" : "true",
);
if (locale === "ru")
await p.locator(".navigation").screenshot({
path: `references/navigation-feedback/submenu-${theme}-${width}.png`,
});
if (width <= 600) await p.locator(".dock-brand").click();
await p.locator(".nav-group-toggle").focus();
await p.keyboard.press("ArrowLeft");
assert.equal(