UNPKG

alpine-turbo-drive-adapter

Version:

Bridge library to enable full support for Alpine components in pages using Turbolinks/Turbo Drive

16 lines (12 loc) 464 B
/* global describe, it, cy */ describe('mutation observer', () => { it('works correctly when used with turbolinks', () => { cy.visit('/tests/res/turbo/mutation/index.html') // Add new Alpine component cy.get('button').click() // Check component is added correctly cy.get('#container').find('p').should('have.length', 1) // Check component is initialised correctly cy.get('#container').find('span').should('have.length', 1) }) })