Refine toolbox navigation and local data controls
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
954240adf9
commit
2f2e79d200
27 changed files with 614 additions and 302 deletions
|
|
@ -102,6 +102,7 @@ for (const width of [1920, 1280, 1025, 1024, 960, 768]) {
|
|||
const storageActions = await page.locator(".sidebar-action-button").evaluateAll((elements) => elements.map((element) => element.getBoundingClientRect()));
|
||||
expect(storageActions[1].x).toBeGreaterThan(storageActions[0].x);
|
||||
expect(storageActions[1].y).toBeCloseTo(storageActions[0].y, 0);
|
||||
await expect(page.locator(".sidebar-storage-action-label")).toBeVisible();
|
||||
const secondaryBox = await secondaryLinks.boundingBox();
|
||||
const storageBox = await page.locator(".sidebar-note").boundingBox();
|
||||
expect(secondaryBox.y + secondaryBox.height).toBeLessThan(storageBox.y);
|
||||
|
|
@ -142,7 +143,8 @@ for (const width of [1280, 768]) {
|
|||
<article class="module layout-calculator" data-module-type="calculator"><div class="calculator-module"><div>Formula</div><div class="calculator-result"><strong>12</strong></div></div></article>
|
||||
<div class="task-planner-module"><div class="task-planner-settings"><label>Reset</label><label>Time</label></div></div>
|
||||
<div class="equipment-planner-summary"><div class="equipment-planner-summary-source-grid"><div>Equipment</div><div>Materials</div></div></div>
|
||||
<div class="toolbox-actions-row"><div>Actions</div><div>Preferences</div></div>
|
||||
<section class="page-hero nds-page-hero primary-list-hero toolbox-list-hero"><div><h1>Toolboxes</h1><p>Collection locale</p><div class="toolbox-list-primary-actions nds-toolbar"><button>Créer</button><button>Importer</button></div></div></section>
|
||||
<div class="toolbox-list-actions nds-toolbar"><button>Préférences</button><button>Librairie</button></div>
|
||||
</main>`);
|
||||
await columns(page.locator(".game-layout"), 1);
|
||||
await expect(page.locator(".game-grid")).toHaveCSS("display", "grid");
|
||||
|
|
@ -156,7 +158,10 @@ for (const width of [1280, 768]) {
|
|||
await columns(page.locator(".equipment-planner-summary-source-grid"), width <= 760 ? 1 : 2);
|
||||
await page.locator(".equipment-planner-summary-source-grid").evaluate((element) => element.classList.add("columns-1"));
|
||||
await columns(page.locator(".equipment-planner-summary-source-grid"), 1);
|
||||
await expect(page.locator(".toolbox-actions-row")).toHaveCSS("flex-direction", width <= 760 ? "column" : "row");
|
||||
await columns(page.locator(".toolbox-list-hero"), 2);
|
||||
await expect(page.locator(".toolbox-list-hero")).toHaveCSS("min-height", "195px");
|
||||
await expect(page.locator(".toolbox-list-primary-actions")).toHaveCSS("justify-content", "flex-start");
|
||||
await expect(page.locator(".toolbox-list-actions")).toHaveCSS("justify-content", "flex-end");
|
||||
await page.locator(".modules").evaluate((element) => { element.dataset.layoutCols = "1"; });
|
||||
await columns(page.locator(".modules"), 1);
|
||||
await expectFits(page.locator("main"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue