Preserve Dock navigation and align account screens
This commit is contained in:
1 parent
17011ebd4d
commit
ef98c2835b
28 files changed
+132
-14
No files matched your search
@@ -76,6 +76,33 @@ try {
|
||||
});
|
||||
await p.locator(".nav-links [data-page=users]").click();
|
||||
await p.locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await p.locator(".dock-brand").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
);
|
||||
assert.equal(
|
||||
await p.locator(".main-column").evaluate((el) => el.inert),
|
||||
true,
|
||||
);
|
||||
const selectedItem = p.locator('.nav-links [aria-current="page"]');
|
||||
await p.mouse.move(width - 12, height - 12);
|
||||
await p.waitForTimeout(200);
|
||||
const selectedColor = await selectedItem.evaluate(
|
||||
(el) => getComputedStyle(el).backgroundColor,
|
||||
);
|
||||
await selectedItem.hover();
|
||||
await p.waitForTimeout(160);
|
||||
assert.equal(
|
||||
await selectedItem.evaluate(
|
||||
(el) => getComputedStyle(el).backgroundColor,
|
||||
),
|
||||
selectedColor,
|
||||
);
|
||||
await selectedItem.click();
|
||||
assert.equal(
|
||||
await p.locator(".dock-brand").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
);
|
||||
assert.equal(new URL(p.url()).searchParams.get("page"), "users");
|
||||
assert.equal(
|
||||
await p
|
||||
|
||||
Reference in new issue
Block a user