@duckduckgo/autoconsent 8.0.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/Jenkinsfile +20 -37
- package/data/coverage.json +507 -531
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/content.bundle.js +2 -3
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +67 -0
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/content.bundle.js +2 -3
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +67 -0
- package/dist/autoconsent.cjs.js +2 -3
- package/dist/autoconsent.esm.js +2 -3
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/cookiebot.ts +1 -4
- package/lib/eval-snippets.ts +1 -0
- package/package.json +2 -1
- package/playwright/runner.ts +1 -0
- package/playwright.config.ts +0 -2
- package/rules/autoconsent/hema-com.json +21 -0
- package/rules/autoconsent/ing-de.json +18 -0
- package/rules/rules.json +67 -0
- package/tests/_sample-test.spec.ts +16 -0
- package/tests/hema.spec.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# v8.1.0 (Wed Jan 10 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Add a rule for ing.de [#337](https://github.com/duckduckgo/autoconsent/pull/337) ([@seia-soto](https://github.com/seia-soto))
|
|
6
|
+
- Add a rule for hema.com [#319](https://github.com/duckduckgo/autoconsent/pull/319) ([@seia-soto](https://github.com/seia-soto) [@muodov](https://github.com/muodov))
|
|
7
|
+
|
|
8
|
+
#### 🐛 Bug Fix
|
|
9
|
+
|
|
10
|
+
- Only use sites where the popup is open by default as examples [#336](https://github.com/duckduckgo/autoconsent/pull/336) ([@sammacbeth](https://github.com/sammacbeth))
|
|
11
|
+
- Test a subset of sites found in the coverage crawl in CI [#323](https://github.com/duckduckgo/autoconsent/pull/323) ([@sammacbeth](https://github.com/sammacbeth))
|
|
12
|
+
|
|
13
|
+
#### Authors: 3
|
|
14
|
+
|
|
15
|
+
- HoJeong Go ([@seia-soto](https://github.com/seia-soto))
|
|
16
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
17
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
1
21
|
# v8.0.0 (Sat Jan 06 2024)
|
|
2
22
|
|
|
3
23
|
#### 💥 Breaking Change
|
package/Jenkinsfile
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
def runPlaywrightTests(resultDir, browser, grep) {
|
|
2
2
|
try {
|
|
3
|
-
timeout(
|
|
4
|
-
sh 'mkdir -p ./test-results'
|
|
3
|
+
timeout(120) {
|
|
5
4
|
sh """
|
|
6
|
-
|
|
5
|
+
rm -f results.xml
|
|
6
|
+
PLAYWRIGHT_JUNIT_OUTPUT_NAME=results.xml npx playwright test tests/_sample-test.spec.ts --project $browser --reporter=junit --grep "$grep"|| true
|
|
7
7
|
"""
|
|
8
8
|
}
|
|
9
9
|
} finally {
|
|
10
10
|
junit 'results.xml'
|
|
11
|
-
sh """
|
|
12
|
-
mkdir -p ${resultDir}/results/${BRANCH_NAME}/${BUILD_NUMBER}/$REGION/
|
|
13
|
-
mkdir -p ./test-results
|
|
14
|
-
mv ./test-results/ ${resultDir}/results/${BRANCH_NAME}/${BUILD_NUMBER}/$REGION/
|
|
15
|
-
"""
|
|
16
11
|
}
|
|
17
12
|
}
|
|
18
13
|
|
|
@@ -29,6 +24,8 @@ pipeline {
|
|
|
29
24
|
string(name: 'TEST_RESULT_ROOT', defaultValue: '/mnt/efs/users/smacbeth/autoconsent/ci', description: 'Where test results and configuration are stored')
|
|
30
25
|
choice(name: 'BROWSER', choices: ['chrome', 'webkit', 'iphoneSE', 'firefox'], description: 'Browser')
|
|
31
26
|
string(name: 'GREP', defaultValue: '', description: 'filter for tests matching a specific string')
|
|
27
|
+
string(name: 'NSITES', defaultValue: '1', description: 'number of sites to test per CMP')
|
|
28
|
+
string(name: 'BRANCH', defaultValue: 'main', description: 'Branch or PR to checkout (e.g. pr/123)')
|
|
32
29
|
}
|
|
33
30
|
environment {
|
|
34
31
|
NODENV_VERSION = "16.16.0"
|
|
@@ -38,7 +35,9 @@ pipeline {
|
|
|
38
35
|
stages {
|
|
39
36
|
stage('Checkout') {
|
|
40
37
|
steps {
|
|
41
|
-
checkout
|
|
38
|
+
checkout([$class: 'GitSCM', branches: [[name: "${params.BRANCH}"]],
|
|
39
|
+
extensions: [[$class: 'LocalBranch']],
|
|
40
|
+
userRemoteConfigs: [[refspec: "+refs/pull/*/head:refs/remotes/origin/pr/*", credentialsId: 'GitHubAccess', url: 'https://github.com/duckduckgo/autoconsent.git']]])
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -49,39 +48,23 @@ pipeline {
|
|
|
49
48
|
npx playwright install
|
|
50
49
|
'''
|
|
51
50
|
script {
|
|
52
|
-
currentBuild.description = "${params.
|
|
51
|
+
currentBuild.description = "${params.BRANCH} - ${params.BROWSER}"
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
stage('Test
|
|
56
|
+
stage('Test') {
|
|
58
57
|
steps {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
stage('Test: GB') {
|
|
74
|
-
steps {
|
|
75
|
-
withEnvFile("${params.TEST_RESULT_ROOT}/gb.env") {
|
|
76
|
-
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
stage('Test: FR') {
|
|
82
|
-
steps {
|
|
83
|
-
withEnvFile("${params.TEST_RESULT_ROOT}/fr.env") {
|
|
84
|
-
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
58
|
+
withEnv(["NSITES=${params.NSITES}}"]) {
|
|
59
|
+
withEnvFile("${params.TEST_RESULT_ROOT}/de.env") {
|
|
60
|
+
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
61
|
+
}
|
|
62
|
+
withEnvFile("${params.TEST_RESULT_ROOT}/us.env") {
|
|
63
|
+
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
64
|
+
}
|
|
65
|
+
withEnvFile("${params.TEST_RESULT_ROOT}/gb.env") {
|
|
66
|
+
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
}
|
|
87
70
|
}
|