diff --git a/tests/helpers/data-validation.mjs b/tests/helpers/data-validation.mjs index 8ef5ab2..ca746d8 100644 --- a/tests/helpers/data-validation.mjs +++ b/tests/helpers/data-validation.mjs @@ -76,10 +76,16 @@ export function validateSiteContent(site) { "toolboxes.storageHelp.text", "toolboxes.modules.notepad.placeholder", "toolboxes.modules.checklist.itemPlaceholder", + "toolboxes.modules.checklist.sectionPlaceholder", "toolboxes.modules.checklist.quantityLabel", "toolboxes.modules.checklist.addButton", "toolboxes.modules.checklist.importPlaceholder", + "toolboxes.modules.checklist.importOpenButton", + "toolboxes.modules.checklist.importModalTitle", "toolboxes.modules.checklist.importButton", + "toolboxes.modules.checklist.hideCompletedSectionsTitle", + "toolboxes.modules.checklist.showCompletedSectionTitle", + "toolboxes.modules.checklist.hideCompletedSectionTitle", "toolboxes.modules.checklist.decrementLabel", "toolboxes.modules.checklist.incrementLabel", "toolboxes.modules.checklist.currentQuantityLabel", @@ -97,6 +103,8 @@ export function validateSiteContent(site) { "toolboxes.modules.links.urlPlaceholder", "toolboxes.modules.links.addButton", "toolboxes.modules.links.importPlaceholder", + "toolboxes.modules.links.importOpenButton", + "toolboxes.modules.links.importModalTitle", "toolboxes.modules.links.importButton", "toolboxes.modules.links.copyTitle", "toolboxes.modules.links.copiedTitle", diff --git a/tests/static-smoke.test.mjs b/tests/static-smoke.test.mjs index b1277f9..3bf1734 100644 --- a/tests/static-smoke.test.mjs +++ b/tests/static-smoke.test.mjs @@ -51,6 +51,7 @@ test("react application defines the expected local toolbox primitives", async () const screenshotsModule = await readFile("website/src/features/toolboxes/modules/ScreenshotsModule.jsx", "utf8"); const imageAnnotationModule = await readFile("website/src/features/toolboxes/modules/ImageAnnotationModule.jsx", "utf8"); const linksModule = await readFile("website/src/features/toolboxes/modules/LinksModule.jsx", "utf8"); + const textImportModal = await readFile("website/src/features/toolboxes/modules/TextImportModal.jsx", "utf8"); const countersModule = await readFile("website/src/features/toolboxes/modules/CountersModule.jsx", "utf8"); const textImport = await readFile("website/src/features/toolboxes/modules/textImport.js", "utf8"); const reorderHook = await readFile("website/src/hooks/usePointerReorder.js", "utf8"); @@ -90,12 +91,15 @@ test("react application defines the expected local toolbox primitives", async () assert.match(styleToolboxes, /\.toolbox-game-icon/); assert.match(styleToolboxes, /\.toolbox-hero-link/); assert.match(styleToolboxes, /\.toolbox-actions-row/); - assert.match(styleToolboxes, /\.text-import-form/); + assert.match(styleToolboxes, /\.text-import-actions/); assert.match(styleIcons, /ui-icon-drag/); assert.match(styleIcons, /ui-icon-dropdown/); assert.match(styleIcons, /ui-icon-enter/); assert.match(styleIcons, /ui-icon-calculator/); assert.match(styleIcons, /ui-icon-scrollable/); + assert.match(styleIcons, /ui-icon-hide/); + assert.match(styleIcons, /ui-icon-chevron-down/); + assert.match(styleIcons, /ui-icon-chevron-up/); assert.match(styleIcons, /ui-icon-flip/); assert.match(styleIcons, /ui-icon-add/); assert.match(styleMhwilds, /\.mhwilds-card/); @@ -180,6 +184,13 @@ test("react application defines the expected local toolbox primitives", async () assert.match(calculatorModule, /--calculator-scroll-height/); assert.match(calculatorModule, /CalculatorEntries/); assert.match(checklistModule, /export function ChecklistModule/); + assert.match(checklistModule, /TextImportModal/); + assert.match(textImportModal, /createPortal/); + assert.match(textImportModal, /lockBodyScroll/); + assert.match(checklistModule, /Icon name="import"/); + assert.match(styleToolboxes, /\.text-import-modal-dialog/); + assert.match(linksModule, /TextImportModal/); + assert.match(linksModule, /Icon name="import"/); assert.match(screenshotsModule, /export function ScreenshotsModule/); assert.match(imageAnnotationModule, /export function ImageAnnotationModule/); assert.match(linksModule, /export function LinksModule/); @@ -241,11 +252,18 @@ test("react application defines the expected local toolbox primitives", async () assert.match(moduleRegistry, /tool-add-card/); assert.match(moduleRegistry, /tool-quick-add-button/); assert.match(moduleRegistry, /tool-add-quick-toggle/); + assert.match(moduleRegistry, /scrollable: true/); + assert.match(moduleRegistry, /module-content/); + assert.match(moduleRegistry, /module-scroll-button/); assert.match(moduleRegistry, /Icon name="dropdown"/); assert.match(moduleRegistry, /aria-expanded=\{quickOpen\}/); assert.doesNotMatch(source, / setSectionTitle(event.target.value)} /> setLabel(event.target.value)} /> setQty(event.target.value)} aria-label={textContent.quantityLabel || "Quantité cible"} /> -
-