check:composite-embed-knobs hands each composite its own profile
rega's run at 1a761741 measured 8 cases and left 10 UNMEASURED: gospel-resources, my-upg-100-list,
regions-dashboard and two more drew no map under a knob-only profile-config, because a multi-profile
element must be told which profile is the composite. The target's nested-elements-mfe profile now rides
with the knob under test (the knob still wins on any clash). Browser gate: needs a DOXA_BROWSER=1 seat.
This commit is contained in:
parent
e8b87b8187
commit
8999e7ff01
1 changed files with 5 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ for (const b of manifest.bundles || []) {
|
|||
const byCompose = composes.some((c) => mapBundles.has(c))
|
||||
const profile = (b.profiles || []).find((p) => p.element && (byCompose || p.type === 'nested-elements-mfe'))
|
||||
if (!profile || !b.scriptUrl) continue
|
||||
targets.push({ bundle: b.bundle, element: profile.element, script: `${b.bundle}/${b.bundle}.js` })
|
||||
targets.push({ bundle: b.bundle, element: profile.element, profile: profile.profile, script: `${b.bundle}/${b.bundle}.js` })
|
||||
}
|
||||
if (!targets.length) {
|
||||
console.log('COMPOSITE-EMBED-KNOBS: SKIP — the manifest declares no composite that nests a map.')
|
||||
|
|
@ -153,7 +153,10 @@ try {
|
|||
lines.push(` · ${t.element} [${c.knob}] SKIPPED — no baked token in this tree to hand the host`)
|
||||
continue
|
||||
}
|
||||
const cfg = JSON.stringify(c.config(bakedToken)).replace(/'/g, ''')
|
||||
// The composite's OWN profile rides with the knob under test (rega, 1a761741: gospel-resources,
|
||||
// my-upg-100-list, regions-dashboard and two more drew no map under a knob-only config, because a
|
||||
// multi-profile element needs to be told which profile is the composite). A knob still wins.
|
||||
const cfg = JSON.stringify({ profile: t.profile, ...c.config(bakedToken) }).replace(/'/g, ''')
|
||||
pageHtml = `<!doctype html><html><head><meta charset=utf-8><title>partner</title></head><body style="margin:0">
|
||||
<header style="height:48px;background:#eee">HOST HEADER</header>
|
||||
<script>window.MAP_APP_API_URL="https://pray.doxa.life";</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue