Polish approved 1.0 scope and verify portable previews
This commit is contained in:
1 parent
1819f35f91
commit
2b45df2816
181 files changed
+996
-139
No files matched your search
+4
-3
@@ -78,11 +78,11 @@ try {
|
||||
await p.locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await p.locator(".dock-brand").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
width <= 600 ? "false" : "true",
|
||||
);
|
||||
assert.equal(
|
||||
await p.locator(".main-column").evaluate((el) => el.inert),
|
||||
true,
|
||||
width > 600,
|
||||
);
|
||||
const selectedItem = p.locator('.nav-links [aria-current="page"]');
|
||||
await p.mouse.move(width - 12, height - 12);
|
||||
@@ -90,6 +90,7 @@ try {
|
||||
const selectedColor = await selectedItem.evaluate(
|
||||
(el) => getComputedStyle(el).backgroundColor,
|
||||
);
|
||||
if (width <= 600) await p.locator(".dock-brand").click();
|
||||
await selectedItem.hover();
|
||||
await p.waitForTimeout(160);
|
||||
assert.equal(
|
||||
@@ -101,7 +102,7 @@ try {
|
||||
await selectedItem.click();
|
||||
assert.equal(
|
||||
await p.locator(".dock-brand").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
width <= 600 ? "false" : "true",
|
||||
);
|
||||
assert.equal(new URL(p.url()).searchParams.get("page"), "users");
|
||||
assert.equal(
|
||||
|
||||
Reference in new issue
Block a user