Skip to content

Commit

Permalink
fix(cypress): wait for cookie control button mount
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Dec 14, 2022
1 parent 6e79099 commit a58948c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions cypress/e2e/index.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ describe('index page', () => {
cy.setCookie('cookie_control_consent', 'true')
cy.visit('/')
cy.get('[data-is-loading="false"]').should('be.visible')
cy.get('[data-testid="nuxt-cookie-control-control-button"]').should(
'be.visible'
)
cy.compareSnapshot('index')
})
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.3.0",
"@dargmuesli/nuxt-cookie-control": "2.1.0",
"@dargmuesli/nuxt-cookie-control": "2.2.0",
"@funken-studio/sitemap-nuxt-3": "4.0.4",
"@intlify/eslint-plugin-vue-i18n": "2.0.0",
"@nuxtjs/eslint-config-typescript": "12.0.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a58948c

Please sign in to comment.