Consolidate toolbox loaders and reset helpers
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
This commit is contained in:
parent
6c61e11f9a
commit
865a4ffd97
7 changed files with 61 additions and 75 deletions
|
|
@ -17,6 +17,7 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
const homeOnboarding = await readFile("website/src/pages/HomeOnboardingSection.jsx", "utf8");
|
||||
const aboutPage = await readFile("website/src/pages/AboutPage.jsx", "utf8");
|
||||
const libraryPage = await readFile("website/src/pages/LibraryPage.jsx", "utf8");
|
||||
const moduleRegistry = await readFile("website/src/features/toolboxes/toolboxModuleRegistry.js", "utf8");
|
||||
const hashRouter = await readFile("website/src/router/hashRouter.js", "utf8");
|
||||
const routeContent = await readFile("website/src/router/RouteContent.jsx", "utf8");
|
||||
const bodyScrollLock = await readFile("website/src/utils/bodyScrollLock.js", "utf8");
|
||||
|
|
@ -83,8 +84,11 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
assert.match(aboutPage, /about-tool-examples/);
|
||||
assert.match(libraryPage, /export function LibraryPage/);
|
||||
assert.match(libraryPage, /LIBRARY_TOOLBOX_ID/);
|
||||
assert.match(libraryPage, /TaskPlannerModule/);
|
||||
assert.match(libraryPage, /EquipmentPlannerModule/);
|
||||
assert.match(libraryPage, /TOOLBOX_MODULE_LOADERS/);
|
||||
assert.match(libraryPage, /Object\.entries\(TOOLBOX_MODULE_LOADERS\)/);
|
||||
assert.match(moduleRegistry, /export const TOOLBOX_MODULE_LOADERS/);
|
||||
assert.match(moduleRegistry, /taskPlanner: \(\) => import\("\.\/modules\/TaskPlannerModule\.jsx"\)/);
|
||||
assert.match(moduleRegistry, /equipmentPlanner: \(\) => import\("\.\/modules\/EquipmentPlannerModule\.jsx"\)/);
|
||||
assert.match(libraryPage, /normalizeEquipmentPlannerData/);
|
||||
assert.match(libraryPage, /summarizeEquipmentPlannerData/);
|
||||
assert.match(bodyScrollLock, /modalLocks/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue