Add responsive game filters and hybrid toolbox drawer
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
This commit is contained in:
parent
1ee460b94f
commit
00e73f0062
32 changed files with 1202 additions and 241 deletions
|
|
@ -88,7 +88,7 @@ for (const width of [1280, 390]) {
|
|||
await page.locator("body").evaluate((element) => element.classList.add("is-modal-open"));
|
||||
await expect(page.locator("body")).toHaveCSS("overflow", "hidden");
|
||||
|
||||
await mountStyles(page, `<div class="drawer" aria-hidden="false"><div class="drawer-backdrop"></div>
|
||||
await mountStyles(page, `<div class="drawer" aria-hidden="false">
|
||||
<section class="drawer-panel nds-drawer-panel"><div style="height:1400px">Drawer</div></section>
|
||||
<div class="drawer-resize-handle nds-drawer-resize-handle"></div></div>`);
|
||||
const drawer = page.locator(".drawer-panel");
|
||||
|
|
@ -97,7 +97,8 @@ for (const width of [1280, 390]) {
|
|||
await expect(drawer).toHaveCSS("position", "fixed");
|
||||
await expect(drawer).toHaveCSS("overflow-y", "auto");
|
||||
await expect(drawer).toHaveCSS("backdrop-filter", "blur(10px)");
|
||||
await expect(page.locator(".drawer-resize-handle")).toHaveCSS("display", width <= 760 ? "none" : "block");
|
||||
await expect(drawer).toHaveCSS("width", width < 700 ? `${width}px` : "700px");
|
||||
await expect(page.locator(".drawer-resize-handle")).toHaveCSS("display", width < 700 ? "none" : "block");
|
||||
await page.locator(".drawer").evaluate((element) => element.setAttribute("aria-hidden", "true"));
|
||||
await expect(drawer).toBeHidden();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue