Add Aniimo guides and link game cards to toolbox checklists
Some checks failed
Deploy Sokko G / deploy (push) Failing after 3s

This commit is contained in:
Shinuwa 2026-09-23 20:05:19 +02:00
parent f0797ccf14
commit 13434f72f6
278 changed files with 10025 additions and 57 deletions

View file

@ -2,6 +2,23 @@
import { test, expect } from "@playwright/test";
import { mountStyles, computed, expectPseudo } from "./fixtures/compiled-styles.js";
test("native ranges support public sizes, keyboard thresholds and disabled states", async ({ page }) => {
for (const [size, height] of [["md", 44], ["sm", 36]]) {
await mountStyles(page, `<label style="display:block;padding:24px;width:260px">Niveau minimum<input class="nds-range" data-size="${size}" type="range" min="1" max="4" step="1" value="1"></label>`);
const range = page.getByRole("slider", { name: "Niveau minimum" });
await expect(range).toHaveCSS("height", `${height}px`);
await range.focus();
await range.press("End");
await expect(range).toHaveValue("4");
await range.press("ArrowLeft");
await expect(range).toHaveValue("3");
await expect(range).toHaveCSS("outline-style", "solid");
await range.evaluate((element) => { element.disabled = true; });
await expect(range).toBeDisabled();
await expect(range).toHaveCSS("cursor", "not-allowed");
}
});
test("fields, selects and date triggers keep public sizes and keyboard focus", async ({ page }) => {
for (const [size, height, textareaHeight] of [["md", 44, 108], ["sm", 36, 88], ["xs", 32, 72]]) {
await mountStyles(page, `<div style="padding:24px;display:grid;gap:12px;width:300px">