Cover toolbox image persistence and replacement workflows
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s

This commit is contained in:
Shinuwa 2026-09-14 14:11:41 +02:00
parent e52d6e66eb
commit 7b160bac9c
4 changed files with 126 additions and 18 deletions

View file

@ -51,20 +51,6 @@ test("toolbox cards and pages retain their public UI conventions", async () => {
assert.match(resetUtils, /export function getLatestDailyReset/);
assert.match(resetUtils, /export function getLatestWeeklyReset/);
assert.match(toolboxStorage, /nextId\("calendar"\)/);
assert.match(toolboxCard, /DEFAULT_TOOLBOX_ICON/);
assert.match(toolboxCard, /toolbox\.customCover/);
assert.match(toolboxCard, /customCoverImage = !gameCoverImage/);
assert.match(toolboxCard, /triggerImage = toolbox\.customCover \|\| icon/);
assert.match(toolboxCard, /has-custom-cover/);
assert.match(toolboxCard, /toolbox-cover-menu-action nds-button/);
assert.match(toolboxCard, /!toolbox\.customCover && path === icon/);
assert.match(toolboxCard, /aria-pressed=\{Boolean\(toolbox\.customCover\)\}/);
assert.match(toolboxCard, /<span>Image personnalisée<\/span>/);
assert.match(toolboxCard, /onChange\(path, ""\)/);
assert.match(toolboxCard, /ToolboxCoverEditor/);
assert.match(toolboxCard, /accept="image\/\*"/);
assert.doesNotMatch(toolboxCard, /Modifier l'image de card/);
assert.doesNotMatch(toolboxCoverEditor, /Supprimer l'image/);
assert.match(toolboxCard, /export function ToolboxCard/);
assert.match(toolboxCard, /export function ToolboxIconPicker/);
assert.match(toolboxCard, /export function ToolboxGameIcon/);
@ -73,7 +59,6 @@ test("toolbox cards and pages retain their public UI conventions", async () => {
assert.match(toolboxCard, /toolbox-card-cover-link/);
assert.match(toolboxCard, /toolbox-icon-cover/);
assert.match(toolboxPages, /\.\/ToolboxCard\.jsx/);
assert.match(toolboxPages, /customCover = toolbox\.customCover/);
assert.match(toolboxPages, /updateToolboxOrder/);
assert.match(toolboxPages, /useGroupedReorder/);
assert.match(toolboxPages, /useInlineEdit/);
@ -98,9 +83,6 @@ test("toolbox cards and pages retain their public UI conventions", async () => {
assert.match(storageQuota, /role="progressbar"/);
assert.match(importButton, /export function ImportButton/);
assert.match(importButton, /accept="application\/json"/);
assert.match(toolboxCoverEditor, /image\/webp/);
assert.match(toolboxCoverEditor, /OUTPUT_WIDTH = 620/);
assert.match(toolboxCoverEditor, /OUTPUT_HEIGHT = 248/);
assert.doesNotMatch(toolboxCoverEditor, /react-easy-crop|react-image-crop/);
});