22541 map myportal results pair routes through unified breadcrumb resolver

This commit is contained in:
2026-04-09 10:16:45 +01:00
parent 786f906ab8
commit ee3f3eae74
3 changed files with 85 additions and 36 deletions
@@ -42,6 +42,18 @@ test("breadcrumbs/simple-link-text map includes address and advanced search resu
true,
"Expected /myportal/viewall to be mapped in getSimpleMyPortalRouteRenderer"
);
assert.strictEqual(
source.includes('"/myportal/advancedsearchresults": () => ('),
true,
"Expected /myportal/advancedsearchresults to be mapped in getSimpleMyPortalRouteRenderer"
);
assert.strictEqual(
source.includes('"/myportal/addresssearchresults": () => ('),
true,
"Expected /myportal/addresssearchresults to be mapped in getSimpleMyPortalRouteRenderer"
);
});
test("breadcrumbs/merged resolver renders mapped routes through single helper invocation", async () => {
@@ -66,6 +78,18 @@ test("breadcrumbs/merged resolver renders mapped routes through single helper in
true,
"Expected breadcrumb JSX to use single mapped route render invocation"
);
assert.strictEqual(
source.includes('isPath("/myportal/advancedsearchresults")'),
false,
"Expected /myportal/advancedsearchresults explicit branch to be removed after mapping"
);
assert.strictEqual(
source.includes('isPath("/myportal/addresssearchresults")'),
false,
"Expected /myportal/addresssearchresults explicit branch to be removed after mapping"
);
});
test("breadcrumbs/dynamic callback branch remains explicit for myportal case incident route", async () => {