The iframe element is removed from the DOM and a fresh one is appended in its place (reusing id="readd-frame"), mimicking SPA route changes. Tests that stale frameId references and listeners are not reused for the new frame.
id="readd-frame"