Skip to content
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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

akinsola-guardian
Copy link
Contributor

@akinsola-guardian akinsola-guardian commented Jul 1, 2024

What does this change?

  • Moving from using the page.context().clearCookies() to iteratively clear the list of cookies.
  • Created script run.sh to call yarn start repeatedly.
  • Applying CheckPagesProps type to tcfv2 function.

Why?

AMP pages were not clearing cookies effectively.
This has been tested locally and in CODE.

Link to Trello

Copy link

changeset-bot bot commented Jul 1, 2024

⚠️ No Changeset found

Latest commit: c8c9899

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@akinsola-guardian akinsola-guardian marked this pull request as ready for review July 11, 2024 09:15
@akinsola-guardian akinsola-guardian requested a review from a team as a code owner July 11, 2024 09:15
@akinsola-guardian akinsola-guardian changed the title Iterate through list of cookies to clear. Re-implement AMP page checks. Jul 15, 2024
const cookies = await page.context().cookies();

for(const cookie of cookies) {
await page.context().clearCookies(cookie);
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants