@duckduckgo/autoconsent 16.60.0 → 16.61.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/manifest.json +1 -1
  4. package/dist/addon-firefox/rule-index.json +1 -1
  5. package/dist/addon-firefox/rules.json +1 -1
  6. package/dist/addon-mv3/compact-rules.json +1 -1
  7. package/dist/addon-mv3/manifest.json +1 -1
  8. package/dist/addon-mv3/rule-index.json +1 -1
  9. package/dist/addon-mv3/rules.json +1 -1
  10. package/dist/autoconsent.standalone.js +1 -1
  11. package/package.json +1 -1
  12. package/rules/autoconsent/airbnb.json +32 -0
  13. package/rules/autoconsent/appconsent.json +6 -1
  14. package/rules/autoconsent/com-consent-layer.json +10 -0
  15. package/rules/autoconsent/fastweb-cookie-center.json +13 -0
  16. package/rules/autoconsent/futurabolzano-it.json +35 -0
  17. package/rules/autoconsent/gobasic.json +10 -0
  18. package/rules/autoconsent/livsmedelsverket.json +18 -0
  19. package/rules/autoconsent/newsbreak.json +16 -0
  20. package/rules/autoconsent/nhsapp.json +10 -0
  21. package/rules/autoconsent/sas.json +6 -6
  22. package/rules/autoconsent/scb.se.json +13 -0
  23. package/rules/autoconsent/studentapan.json +16 -0
  24. package/rules/autoconsent/tv2reg-cookie-notice.json +39 -0
  25. package/rules/compact-rules.json +1 -1
  26. package/rules/rule-index.json +1 -1
  27. package/rules/rules.json +1 -1
  28. package/tests/airbnb.spec.ts +3 -0
  29. package/tests/appconsent.spec.ts +6 -0
  30. package/tests/com-consent-layer.spec.ts +6 -0
  31. package/tests/fastweb-cookie-center.spec.ts +3 -0
  32. package/tests/futurabolzano-it.spec.ts +3 -0
  33. package/tests/gobasic.spec.ts +3 -0
  34. package/tests/livsmedelsverket.spec.ts +5 -0
  35. package/tests/newsbreak.spec.ts +3 -0
  36. package/tests/nhsapp.spec.ts +3 -0
  37. package/tests/sas.spec.ts +1 -1
  38. package/tests/scb.se.spec.ts +4 -0
  39. package/tests/studentapan.spec.ts +3 -0
  40. package/tests/tv2reg-cookie-notice.spec.ts +16 -0
  41. package/rules/generated/auto_AU_flysas.com_r1s.json +0 -40
  42. package/rules/generated/auto_CH_airbnb.de_83z.json +0 -40
  43. package/rules/generated/auto_US_newsbreak.com_0.json +0 -28
  44. package/tests/generated/auto_AU_flysas.com_r1s.spec.ts +0 -2
  45. package/tests/generated/auto_CH_airbnb.de_83z.spec.ts +0 -2
  46. package/tests/generated/auto_US_newsbreak.com_0.spec.ts +0 -2
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('airbnb', ['https://www.airbnb.it/', 'https://www.airbnb.de/', 'https://www.airbnb.co.uk/', 'https://www.airbnb.fr/']);
@@ -5,3 +5,9 @@ generateCMPTests('AppConsent', ['https://magasin.darty.com/'], {
5
5
  testOptOut: true,
6
6
  onlyRegions: ['US', 'FR'],
7
7
  });
8
+
9
+ generateCMPTests('AppConsent', ['https://www.bestwordlist.com/', 'https://www.sportsmole.co.uk/'], {
10
+ testOptIn: false,
11
+ testOptOut: true,
12
+ onlyRegions: ['GB', 'US', 'DE'],
13
+ });
@@ -0,0 +1,6 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ const urls = ['https://www.comdirect.de/', 'https://magazin.comdirect.de/', 'https://akademie.comdirect.de/'];
4
+
5
+ generateCMPTests('com-consent-layer', urls, { mobile: false });
6
+ generateCMPTests('com-consent-layer', urls, { mobile: true });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('fastweb-cookie-center', ['https://www.fastweb.it/', 'https://www.fastwebvodafone.it/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('futurabolzano.it', ['https://futurabolzano.it/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('gobasic', ['https://www.su.dk/', 'https://www.vallensbaek.dk/', 'https://www.finanstilsynet.dk/']);
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('livsmedelsverket', ['https://www.livsmedelsverket.se/'], {
4
+ testSelfTest: false,
5
+ });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('newsbreak', ['https://www.newsbreak.com/'], { testSelfTest: true });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('nhsapp', ['https://www.nhsapp.service.nhs.uk/']);
package/tests/sas.spec.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import generateCMPTests from '../playwright/runner';
2
2
 
3
- generateCMPTests('sas', ['https://www.flysas.com/']);
3
+ generateCMPTests('sas', ['https://www.flysas.com/en', 'https://www.sas.dk/', 'https://www.sas.se/', 'https://www.sas.no/']);
@@ -0,0 +1,4 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ // opting out submits a form that reloads the page, so the self test runs against the page being unloaded
4
+ generateCMPTests('scb.se', ['https://www.scb.se/', 'https://www.scb.se/en/'], { testSelfTest: false });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('studentapan', ['https://www.studentapan.se/']);
@@ -0,0 +1,16 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests(
4
+ 'tv2reg-cookie-notice',
5
+ [
6
+ 'https://www.tv2ostjylland.dk/',
7
+ 'https://www.tv2fyn.dk/',
8
+ 'https://www.tv2nord.dk/',
9
+ 'https://www.tvmidtvest.dk/',
10
+ 'https://www.tvsyd.dk/',
11
+ 'https://www.tv2east.dk/',
12
+ 'https://www.tv2kosmopol.dk/',
13
+ 'https://www.tv2bornholm.dk/',
14
+ ],
15
+ {},
16
+ );
@@ -1,40 +0,0 @@
1
- {
2
- "name": "auto_AU_flysas.com_r1s",
3
- "cosmetic": false,
4
- "_metadata": {
5
- "vendorUrl": "http://www.flysas.com/"
6
- },
7
- "runContext": {
8
- "main": true,
9
- "frame": false,
10
- "urlPattern": "^https?://(www\\.)?flysas\\.com/"
11
- },
12
- "prehideSelectors": [],
13
- "detectCmp": [
14
- {
15
- "exists": "body > dialog:not([id]) > div:not([id]) > div:nth-child(3):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > button:nth-child(2)#deny-consent-button"
16
- }
17
- ],
18
- "detectPopup": [
19
- {
20
- "visible": "body > dialog:not([id]) > div:not([id]) > div:nth-child(3):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > button:nth-child(2)#deny-consent-button"
21
- }
22
- ],
23
- "optIn": [],
24
- "optOut": [
25
- {
26
- "wait": 500
27
- },
28
- {
29
- "waitForThenClick": "body > dialog:not([id]) > div:not([id]) > div:nth-child(3):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > button:nth-child(2)#deny-consent-button",
30
- "comment": "Deny"
31
- }
32
- ],
33
- "test": [
34
- {
35
- "waitForVisible": "body > dialog:not([id]) > div:not([id]) > div:nth-child(3):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > button:nth-child(2)#deny-consent-button",
36
- "timeout": 1000,
37
- "check": "none"
38
- }
39
- ]
40
- }
@@ -1,40 +0,0 @@
1
- {
2
- "name": "auto_CH_airbnb.de_83z",
3
- "cosmetic": false,
4
- "_metadata": {
5
- "vendorUrl": "http://www.airbnb.de/"
6
- },
7
- "runContext": {
8
- "main": true,
9
- "frame": false,
10
- "urlPattern": "^https?://(www\\.)?airbnb\\.de/"
11
- },
12
- "prehideSelectors": [],
13
- "detectCmp": [
14
- {
15
- "exists": "body > div#react-application > div:not([id]) > div:not([id])[data-testid=\"linaria-injector\"] > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id])[data-testid=\"main-cookies-banner-container\"] > section:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(2):not([id]) > button:not([id])"
16
- }
17
- ],
18
- "detectPopup": [
19
- {
20
- "visible": "body > div#react-application > div:not([id]) > div:not([id])[data-testid=\"linaria-injector\"] > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id])[data-testid=\"main-cookies-banner-container\"] > section:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(2):not([id]) > button:not([id])"
21
- }
22
- ],
23
- "optIn": [],
24
- "optOut": [
25
- {
26
- "wait": 500
27
- },
28
- {
29
- "waitForThenClick": "body > div#react-application > div:not([id]) > div:not([id])[data-testid=\"linaria-injector\"] > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id])[data-testid=\"main-cookies-banner-container\"] > section:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(2):not([id]) > button:not([id])",
30
- "comment": "Nur notwendige"
31
- }
32
- ],
33
- "test": [
34
- {
35
- "waitForVisible": "body > div#react-application > div:not([id]) > div:not([id])[data-testid=\"linaria-injector\"] > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id])[data-testid=\"main-cookies-banner-container\"] > section:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(2):not([id]) > button:not([id])",
36
- "timeout": 1000,
37
- "check": "none"
38
- }
39
- ]
40
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "auto_US_newsbreak.com_0",
3
- "vendorUrl": "https://www.newsbreak.com/",
4
- "cosmetic": false,
5
- "runContext": {
6
- "main": true,
7
- "frame": false,
8
- "urlPattern": "^https?://(www\\.)?newsbreak\\.com/"
9
- },
10
- "prehideSelectors": [],
11
- "detectCmp": [
12
- {
13
- "exists": "body:not([id]) > div#__next > div:not([id]) > main:nth-child(3):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(27):not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > button:nth-child(2):not([id])"
14
- }
15
- ],
16
- "detectPopup": [
17
- {
18
- "visible": "body:not([id]) > div#__next > div:not([id]) > main:nth-child(3):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(27):not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > button:nth-child(2):not([id])"
19
- }
20
- ],
21
- "optIn": [],
22
- "optOut": [
23
- {
24
- "waitForThenClick": "body:not([id]) > div#__next > div:not([id]) > main:nth-child(3):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(27):not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > button:nth-child(2):not([id])",
25
- "comment": "Reject"
26
- }
27
- ]
28
- }
@@ -1,2 +0,0 @@
1
- import generateCMPTests from '../../playwright/runner';
2
- generateCMPTests('auto_AU_flysas.com_r1s', ['https://www.flysas.com/en'], { testOptIn: false, testSelfTest: true, onlyRegions: ['AU'] });
@@ -1,2 +0,0 @@
1
- import generateCMPTests from '../../playwright/runner';
2
- generateCMPTests('auto_CH_airbnb.de_83z', ['https://www.airbnb.de/'], { testOptIn: false, testSelfTest: true, onlyRegions: ['CH'] });
@@ -1,2 +0,0 @@
1
- import generateCMPTests from '../../playwright/runner';
2
- generateCMPTests('auto_US_newsbreak.com_0', ['https://www.newsbreak.com/'], { testOptIn: false, testSelfTest: false, onlyRegions: ['US'] });