Skip to content

Commit

Permalink
update test to match firefox 124 behavior, set node to 21 to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Apr 8, 2024
1 parent 40211f5 commit 57e65cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chrome-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 21
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firefox-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 21
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: '21.x'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down
6 changes: 5 additions & 1 deletion packages/vue-collapsed/tests/Collapse.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,14 @@ describe('With baseHeight > 0', () => {

cy.get('#TriggerButton').click()

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

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

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

0 comments on commit 57e65cd

Please sign in to comment.