describe('template spec', () => { beforeEach(() => { cy.visit('./../smart-tag.html') }) it('Affiche le tag au survol du bouton See more', () => { cy.contains('See more').trigger('mouseover') cy.get('div.absolute').should('not.have.attr', 'style') }) it('Le tag disparaît à la sortie du survol du bouton See more', () => { cy.contains('See more').trigger('mouseover') cy.get('div.absolute').should('not.have.attr', 'style') cy.get('body').trigger('mousemove', 0, 0) cy.get('div.absolute').should('have.attr', 'style') }) })