Refocus responsive layouts on compact desktop use
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
96d058293d
commit
0ac1a0974e
27 changed files with 610 additions and 190 deletions
14
tests/toolbox-alert-visibility.test.mjs
Normal file
14
tests/toolbox-alert-visibility.test.mjs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Rôle : vérifie que les alertes visibles suivent la vue toolbox réellement affichée.
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { getVisibleToolboxIds } from "../website/src/hooks/useToolboxAlerts.js";
|
||||
|
||||
test("a mounted compact drawer is visible only while its toolbox view is selected", () => {
|
||||
const links = { mhwilds: "linked" };
|
||||
assert.deepEqual([...getVisibleToolboxIds("/games/mhwilds/monsters", "", links)], []);
|
||||
assert.deepEqual([...getVisibleToolboxIds("/games/mhwilds/monsters", "mhwilds", links)], ["linked"]);
|
||||
});
|
||||
|
||||
test("a full toolbox page remains visible independently of the game drawer", () => {
|
||||
assert.deepEqual([...getVisibleToolboxIds("/toolbox/personal", "", {})], ["personal"]);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue