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

Add autoconsent test page #65

Merged
merged 4 commits into from
Nov 16, 2021
Merged

Conversation

sammacbeth
Copy link
Collaborator

This is a basic test page for consent popup management.

@sammacbeth sammacbeth requested a review from kdzwinel November 8, 2021 10:12
@sammacbeth sammacbeth marked this pull request as ready for review November 12, 2021 13:26
Copy link
Member

@kdzwinel kdzwinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sammacbeth ! Looks great, but please link this test page from index.html + I left one more comment. Feel free to merge after that.

features/autoconsent/index.html Outdated Show resolved Hide resolved
@@ -0,0 +1,82 @@
// populate test sites
const testSites = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this format is easier than keeping it in HTML? We use this format elsewhere and it's easier to update in the future?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way is less verbose, and allows test-cases to be easily copied over to/from the tests in the autoconsent project: https://github.com/cliqz-oss/autoconsent/blob/master/addon/test.ts#L82-L91

@sammacbeth sammacbeth merged commit 41f77f9 into duckduckgo:main Nov 16, 2021
@sammacbeth sammacbeth deleted the sam/autoconsent branch November 16, 2021 13:28
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