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
+13
-4
@@ -31,14 +31,18 @@ try {
|
||||
assert.ok(
|
||||
await p
|
||||
.locator(".navigation")
|
||||
.evaluate((el) => el.getBoundingClientRect().width <= 68),
|
||||
.evaluate((el) =>
|
||||
matchMedia("(max-width:600px)").matches
|
||||
? el.getBoundingClientRect().bottom >= innerHeight - 25
|
||||
: el.getBoundingClientRect().width <= 68,
|
||||
),
|
||||
);
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".nav-links button>span")
|
||||
.first()
|
||||
.evaluate((el) => getComputedStyle(el).opacity),
|
||||
"0",
|
||||
width <= 600 ? "1" : "0",
|
||||
);
|
||||
const before = await p.locator(".main-column").boundingBox();
|
||||
await p.screenshot({
|
||||
@@ -124,6 +128,7 @@ try {
|
||||
"false",
|
||||
);
|
||||
passed++;
|
||||
await p.setViewportSize({ width: 1440, height: 900 });
|
||||
await p.goto(`${base}/playground/frame.html?concept=dock&page=identity`);
|
||||
await p.locator("[data-identity=reset]").click();
|
||||
await p.goto(`${base}/playground/frame.html?concept=dock`);
|
||||
@@ -131,10 +136,14 @@ try {
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".navigation")
|
||||
.evaluate((el) => el.firstElementChild.classList.contains("dock-brand")),
|
||||
.evaluate((el) =>
|
||||
[...el.children]
|
||||
.find((node) => node.getBoundingClientRect().width > 0)
|
||||
?.classList.contains("dock-brand"),
|
||||
),
|
||||
true,
|
||||
);
|
||||
assert.equal(await p.locator(".dock-brand svg").count(), 0);
|
||||
assert.equal(await p.locator(".dock-brand > svg").count(), 0);
|
||||
await p.locator(".dock-toggle").hover();
|
||||
await p.waitForTimeout(300);
|
||||
assert.equal(
|
||||
|
||||
Reference in new issue
Block a user