Skip to content

Commit

Permalink
Tests - Update to match Chrome v128 default transition computation
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Aug 5, 2024
1 parent 747500d commit fd25611
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/vue-collapsed/tests/Collapse.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import App from './App.vue'

import { getRandomIntInclusive, isFirefox } from '../cypress/support/component'

describe('Collapse', () => {
Expand Down Expand Up @@ -275,13 +276,7 @@ describe('Collapse', () => {

const transition = 'height 0.3s cubic-bezier(0.33, 1, 0.68, 1)'

cy.get('#Collapse').should(
'have.css',
'transition',
isFirefox
? transition // Firefox >= 124 doesn't include '0s' by default anymore
: `${transition} 0s`
)
cy.get('#Collapse').should('have.css', 'transition', transition)

cy.get('#Collapse').and('have.attr', 'style').and('include', '--vc-auto-duration: 300ms')
})
Expand Down

0 comments on commit fd25611

Please sign in to comment.