feat(portal): add service drawers and employee portal preview

This commit is contained in:
DeCentN2Madness committed 2026-10-30 00:03:21 -07:00
1 parent ff80ee516f
commit e97f0ea9b4
39 files changed
+1446 -130

No files matched your search

+4 -3
View File
@@ -155,6 +155,7 @@ test('consultation is isolated-test-only and requires its additional explicit ap
assert.equal(resolveFormAIframe(consultation({ isolatedTestApproved: 'false' })).reason, 'isolated-test-not-approved');
assert.equal(resolveFormAIframe(consultation({ environmentRole: 'staging' })).reason, 'invalid-environment-role');
assert.equal(resolveFormAIframe(consultation({ allowIndexing: 'true' })).reason, 'indexing-enabled');
for (const value of [undefined, '', 'invalid']) assert.equal(resolveFormAIframe(consultation({ allowIndexing: value })).enabled, false);
assert.equal(resolveFormAIframe(consultation({ route: '/es/aba-therapy', locale: 'en' })).reason, 'locale-not-authorized');
assert.equal(resolveFormAIframe(production({ route: '/client-consultation' })).reason, 'route-not-authorized');
assert.equal(resolveFormAIframe(production({ route: '/client-consultation', consultationTestApproved: 'true' })).reason, 'route-not-authorized');
@@ -192,10 +193,10 @@ test('the adapter preserves seven production routes and supports the separate bi
assert.match(shell, /PUBLIC_AIA_FORMS_CONSULTATION_TEST_APPROVED/);
assert.match(shell, /JotformIframe/);
assert.match(drawer, /lang: SupportedLocale/);
assert.match(drawer, /data-service-inquiry-open/);
assert.match(drawer, /data-explicit-activation/);
assert.match(drawer, /data-consultation-test/);
assert.match(drawer, /serviceCopy.heading/);
assert.match(drawer, /deferUntilActivated/);
assert.match(drawer, /aia:jotform-activate/);
assert.match(fs.readFileSync('src/scripts/service-inquiry.ts', 'utf8'), /aia:jotform-activate/);
assert.match(drawer, /Cerrar el formulario de consulta/);
assert.doesNotMatch(drawer, /No WAITLIST!|guarantee your child|now open for enrollment/i);
assert.match(layout, /entry\.data\.lang === 'en' \|\| entry\.data\.lang === 'es'/);