-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-implement AMP page checks. #1033
base: main
Are you sure you want to change the base?
Conversation
|
const cookies = await page.context().cookies(); | ||
|
||
for(const cookie of cookies) { | ||
await page.context().clearCookies(cookie); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this better than clearCookies()
? Could maybe do with a comment for future travellers so nobody ends up "optimizing" this and reverting your change!
What does this change?
page.context().clearCookies()
to iteratively clear the list of cookies.run.sh
to callyarn start
repeatedly.CheckPagesProps
type to tcfv2 function.Why?
AMP pages were not clearing cookies effectively.
This has been tested locally and in CODE.
Link to Trello