Skip to content

Commit

Permalink
chore: waitAfterIdleCallback before taking screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Sep 27, 2023
1 parent 4d855e6 commit f2779a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/cypress/e2e/visual/bal-nav-menu-bar.visual.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ describe('bal-nav-menu-bar', () => {
)

it('basic component', () => {
cy.platform('fullhd')
cy.platform('fullhd').waitAfterIdleCallback()
cy.compareSnapshot('menu-bar-fullhd')

cy.platform('highDefinition')
cy.platform('highDefinition').waitAfterIdleCallback()
cy.compareSnapshot('menu-bar-highDefinition')

cy.platform('widescreen')
cy.platform('widescreen').waitAfterIdleCallback()
cy.compareSnapshot('menu-bar-widescreen')

cy.platform('desktop')
cy.platform('desktop').waitAfterIdleCallback()
cy.compareSnapshot('menu-bar-desktop')

cy.platform('tablet')
cy.platform('tablet').waitAfterIdleCallback()
cy.compareSnapshot('menu-bar-tablet')

cy.platform('mobile')
cy.platform('mobile').waitAfterIdleCallback()
cy.compareSnapshot('menu-bar-mobile')
})
})
Expand Down

0 comments on commit f2779a0

Please sign in to comment.