Add Aniimo guides and link game cards to toolbox checklists
Some checks failed
Deploy Sokko G / deploy (push) Failing after 3s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 3s
This commit is contained in:
parent
f0797ccf14
commit
13434f72f6
278 changed files with 10025 additions and 57 deletions
|
|
@ -48,12 +48,25 @@ test("badges, notices, progress and chips expose meaningful visual states", asyn
|
|||
await expect(progress.locator("span")).toHaveCSS("width", "99px");
|
||||
await progress.locator("span").evaluate((element) => { element.style.width = "100%"; });
|
||||
await expect(progress.locator("span")).toHaveCSS("width", "198px");
|
||||
await progress.evaluate((element) => { element.dataset.size = "sm"; });
|
||||
await expect(progress).toHaveCSS("height", "4px");
|
||||
}
|
||||
const chip = page.locator(".nds-chip");
|
||||
await expect(chip).toHaveCSS("background-color", "rgba(5, 7, 17, 0.32)");
|
||||
await chip.locator("input").check();
|
||||
await page.mouse.move(0, 0);
|
||||
await expect(chip).toHaveCSS("background-color", "rgba(139, 92, 246, 0.14)");
|
||||
await chip.evaluate((element) => {
|
||||
element.dataset.size = "sm";
|
||||
const image = globalThis.document.createElement("img");
|
||||
image.src = "/static/icons/multiples.svg";
|
||||
image.alt = "";
|
||||
element.append(image);
|
||||
});
|
||||
await expect(chip).toHaveCSS("min-height", "30px");
|
||||
await expect(chip).toHaveCSS("font-size", "12px");
|
||||
await expect(chip.locator("img")).toHaveCSS("width", "16px");
|
||||
await expect(chip.locator("img")).toHaveCSS("height", "16px");
|
||||
});
|
||||
|
||||
for (const width of [1280, 390]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue