// cypress/e2e/iframe.spec.js describe('Iframe integration', () => { beforeEach(() => { // Visit the app’s base URL (configured in cypress.config.js) cy.visit('/'); }); it('opens the iframe when an .iframe-link is clicked', () => { // Find the first iframe-link on the page cy.get('.iframe-link').first().then($link => { const href = $link.prop('href'); // Click it cy.wrap($link).click(); // The URL should now include ?iframe= cy.url().should('include', 'iframe=' + encodeURIComponent(href)); // The should have the "fullscreen" class cy.get('body').should('have.class', 'fullscreen'); // And the
should contain a visible