When you click on the Popover or the Tooltip custom JS will remove the component from the DOM. This test verifies that the disconnected callback fires on removal and the Popover/Tooltip disappears and is destroyed.
This example shows a popover and a tooltip inside another web component which may trigger disconnectedCallback if the outer component loads last.