Skip to content

Commit

Permalink
block the percy snapshot until the collapsible animation has finished
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann committed Aug 10, 2020
1 parent daeab10 commit 01cc5e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/desktop-gui/cypress/integration/settings_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,17 @@ describe('Settings', () => {
.should('not.contain', '0:Chrome')

cy.contains('span', 'browsers').parents('div').first().find('span').first().click()

cy.get('.config-vars').invoke('text')
.should('contain', '0:Chrome')

// make sure the main collapsible content
// has finished animating and that it has
// an empty inline style attribute
cy.get('.rc-collapse-content')
.should('not.have.class', 'rc-collapse-anim')
.should('have.attr', 'style', '')

cy.percySnapshot()
})

Expand Down

0 comments on commit 01cc5e9

Please sign in to comment.