πŸ§ͺ Fixture 11 β€” Minimize / Collapse

⚠ Manual Test Checklist

Panel status: collapsed

πŸ“‘ PostMessage Event Log

Listening for hea-collapse, hea-expand, hea-ready messages…

Minimize ↔ Collapse Flow

Tests that the minimize button inside the chat iframe sends a hea-collapse postMessage to the host, which then collapses the entire side panel.

Expected Message Flow

When the user clicks the minimize (β€”) button inside the widget iframe:

User clicks β€” (minimize) β†’ Widget iframe β†’ postMessage('hea-collapse')
hea_embed.js receives β†’ Panel collapses β†’ Body margin removed

On re-expand via the tab handle, the conversation inside the iframe should still be present β€” no reload should occur.

Related Behaviors

Architecture Notes

The side panel is implemented as a position: fixed container on the right edge of the viewport. It contains an iframe that loads the widget HTML. Communication between the iframe and the host page happens via postMessage.

The embed script manages all host-side behavior: margin push, tab handle rendering, keyboard shortcuts, and message routing. The widget inside the iframe is unaware of the host page structure.

↓ Keep scrolling ↓

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec velit neque, auctor sit amet aliquam vel.

Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla porttitor accumsan tincidunt. Proin eget tortor risus.

Mauris blandit aliquet elit, eget tincidunt nibh pulvinar a. Cras ultricies ligula sed magna dictum porta. Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus.