Beyond unit tests, verify the whole widget works in a real browser: scrolling the feed should toggle the .active class, trigger ad fetches, and update the ad slot. Write a Cypress test suite that loads index.html, scrolls the feed programmatically, and asserts that the ad container receives the expected placeholder markup.