"enableJavaScript: true" disables discovery.cookies #1147
Unanswered
philipp-winterle
asked this question in
Support
Replies: 1 comment 6 replies
-
Found out the cookie seems to be set and not at the same time. I found things on the snapshot that only exists if cookie is set. Same time I find things on the snapshot that only exists if cookie is NOT set. Strange Seems like snapshots from local differ from online |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
If using enableJavaScript: true the discovery.cookies settings are ignored.
Environment
@percy/cli
version: 1.16.0Details
Iam trying to scan our pages. To get the full page screen I need to get rid of our cookie consent overlay. I can use cookies for that to simulate a already visited user.
If I set enableJavaScript to false I get the full page screen without the cookie banner. If I set it to true the same snapshot test will result in a page with cookie banner as if there are no cookies set.
Code to reproduce issue
Given the above settings just run
npx percy snapshot snapshot.yml
Beta Was this translation helpful? Give feedback.
All reactions