Skip to content

Commit fd25611

Browse files
committed
Tests - Update to match Chrome v128 default transition computation
1 parent 747500d commit fd25611

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/vue-collapsed/tests/Collapse.cy.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import App from './App.vue'
2+
23
import { getRandomIntInclusive, isFirefox } from '../cypress/support/component'
34

45
describe('Collapse', () => {
@@ -275,13 +276,7 @@ describe('Collapse', () => {
275276

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

278-
cy.get('#Collapse').should(
279-
'have.css',
280-
'transition',
281-
isFirefox
282-
? transition // Firefox >= 124 doesn't include '0s' by default anymore
283-
: `${transition} 0s`
284-
)
279+
cy.get('#Collapse').should('have.css', 'transition', transition)
285280

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

0 commit comments

Comments
 (0)