check:poster-section: add arm G's poison to the self-test

A type whose actions do not block a phone makes arm G fail — so the gate keeps
proving arm G can fire (was hand-proven only). Self-test now 10/10.
This commit is contained in:
Doxa Maps 2026-10-02 16:11:36 +00:00
parent f5141d7d9a
commit aa97a5ac81

View file

@ -143,6 +143,7 @@ try {
['an element config that ignores card-action', { ...real, element: { posterSectionConfig: (el) => { const c = element.posterSectionConfig(el); delete c.cardAction; return c } } }, /^D: card-action="dashboard"/],
['a dashboard event that cannot leave the shadow root', { ...real, viewSrc: viewSrc.replace('composed: true, cancelable', 'composed: false, cancelable') }, /^F: dxm-poster-dashboard is not/],
['a headless section that can still start shut', { ...real, viewSrc: viewSrc.replace(/(const startCollapsed = computed\(\(\) => cfg\.value\.collapsed === true)[^\n]*/, '$1)') }, /^F: a headless section can still start shut/],
['a type whose actions do not block a phone', { ...real, country: { ...country, actions: (p) => { const a = country.actions(p); return { ...a, records: () => Promise.resolve([]), unsupported: () => null } } } }, /^G:/],
]
for (const [name, inp, rx] of poisons) {
const f = await arms(inp); const ok = f.some((x) => rx.test(x))