bahmutov / cypress-cookie-banner-example

Control the cookie consent banner from Cypress tests
https://cypress.tips/courses/cypress-plugins
MIT License
3 stars 0 forks source link

Unable to handle cookie pop-up- cypress-V13.3.3 #2

Open SubramanyamPalla opened 3 months ago

SubramanyamPalla commented 3 months ago

Hi @bahmutov

We have handled cookie pop up in our project as per the below setup, When the site loads, the pop up will close but when the user navigates to the next page ( like Signin page) the cookiespop up is reappearing. Due to that issue, we are seeing many automation failures.

I've tried using the cy.setCookie('CookieName','CookieValue'), unable to configure this one in globally. At present i've updated this value at every spec beforeEach hook but still have the issue.

https://kittygiraudel.com/2020/03/15/preventing-cookie-banners-with-cypress/

bahmutov commented 3 months ago

I'm sorry I don't understand your issue. Do you have a full example? Can you update this repo to show the problem? Tip: you can always search my blog posts and examples for more posts related to cookies https://cypress.tips/search