Open Dock on hover and document SSO integration prompt

This commit is contained in:
SantaSpeen committed 2026-11-28 03:35:10 +03:00
1 parent 53199205e3
commit d2002071e6
29 files changed
+366 -15

No files matched your search

+44 -1
View File
@@ -118,6 +118,49 @@ try {
"false",
);
passed++;
await p.goto(`${base}/playground/frame.html?concept=dock`);
await p.locator(".dock-toggle").waitFor();
const brand = await p.locator(".navigation .wordmark").boundingBox();
const trigger = await p.locator(".dock-toggle").boundingBox();
assert.ok(brand.y < trigger.y, "Brand is above menu trigger");
await p.locator(".dock-toggle").hover();
await p.waitForTimeout(300);
assert.equal(
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
"true",
);
await p.locator(".nav-links button").first().hover();
await p.waitForTimeout(250);
assert.equal(
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
"true",
);
await p.mouse.move(380, 400);
await p.waitForTimeout(450);
assert.equal(
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
"false",
);
passed++;
const touch = await browser.newContext({
viewport: { width: 390, height: 844 },
hasTouch: true,
isMobile: true,
});
const tp = await touch.newPage();
await tp.goto(`${base}/playground/frame.html?concept=dock`);
await tp.locator(".dock-toggle").tap();
assert.equal(
await tp.locator(".dock-toggle").getAttribute("aria-expanded"),
"true",
);
await tp.locator(".dock-toggle").tap();
assert.equal(
await tp.locator(".dock-toggle").getAttribute("aria-expanded"),
"false",
);
await touch.close();
passed++;
await p.emulateMedia({ reducedMotion: "reduce" });
await p.reload();
assert.equal(
@@ -136,7 +179,7 @@ try {
passed,
errors,
checks:
"6 theme/viewport scenarios: overlay geometry, inert background, scrim, icons/labels, account switch, Escape/outside close; reduced motion",
"6 theme/viewport scenarios: overlay geometry, inert background, scrim, icons/labels, account switch, Escape/outside close; logo order, hover enter/leave, touch fallback; reduced motion",
},
null,
2,