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
+11
-1
@@ -147,6 +147,16 @@ try {
|
||||
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
);
|
||||
await p.locator('.nav-links [data-page="users"]').click();
|
||||
await p.waitForTimeout(300);
|
||||
assert.equal(
|
||||
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
);
|
||||
assert.equal(
|
||||
await p.locator(".main-column").evaluate((el) => el.inert),
|
||||
true,
|
||||
);
|
||||
await p.mouse.move(380, 400);
|
||||
await p.waitForTimeout(450);
|
||||
assert.equal(
|
||||
@@ -174,7 +184,7 @@ try {
|
||||
await touch.close();
|
||||
passed++;
|
||||
await p.emulateMedia({ reducedMotion: "reduce" });
|
||||
await p.reload();
|
||||
await p.goto(`${base}/?page=dashboard`);
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".panel")
|
||||
|
||||
@@ -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