@duckduckgo/autoconsent 18.2.0 → 18.3.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 (114) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +92 -36
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rule-index.json +1 -1
  6. package/dist/addon-firefox/rules.json +1 -1
  7. package/dist/addon-mv3/compact-rules.json +1 -1
  8. package/dist/addon-mv3/content.bundle.js +92 -36
  9. package/dist/addon-mv3/manifest.json +1 -1
  10. package/dist/addon-mv3/rule-index.json +1 -1
  11. package/dist/addon-mv3/rules.json +1 -1
  12. package/dist/autoconsent.cjs.js +92 -36
  13. package/dist/autoconsent.esm.js +92 -36
  14. package/dist/autoconsent.playwright.js +92 -36
  15. package/dist/autoconsent.standalone.js +93 -37
  16. package/dist/heuristics.cjs.js +92 -38
  17. package/dist/heuristics.mjs +92 -37
  18. package/dist/types/heuristic-patterns.d.ts +0 -1
  19. package/lib/heuristic-literals.ts +39 -12
  20. package/lib/heuristic-negatives.ts +0 -9
  21. package/lib/heuristic-patterns.ts +54 -16
  22. package/package.json +1 -1
  23. package/rules/autoconsent/adaptivemedia.json +30 -0
  24. package/rules/autoconsent/adeac-jp.json +29 -0
  25. package/rules/autoconsent/agenziaentrate-geoportale.json +35 -0
  26. package/rules/autoconsent/alertnotification-alert-bar.json +27 -0
  27. package/rules/autoconsent/amasty-gdpr-hyva.json +6 -6
  28. package/rules/autoconsent/betheme.json +10 -0
  29. package/rules/autoconsent/biblia-online.pl.json +40 -0
  30. package/rules/autoconsent/bitauto.json +57 -0
  31. package/rules/autoconsent/bt-com-au.json +13 -0
  32. package/rules/autoconsent/calclife.net.json +43 -0
  33. package/rules/autoconsent/casino-guru.json +28 -0
  34. package/rules/autoconsent/code3-cookies-consent.json +48 -0
  35. package/rules/autoconsent/complianz-opt-out.json +7 -2
  36. package/rules/autoconsent/cookie-use-notice.json +12 -0
  37. package/rules/autoconsent/cookieinfo-zamknij.json +30 -0
  38. package/rules/autoconsent/cookiesbanner-preference.json +14 -0
  39. package/rules/autoconsent/cookiesmodal-pl.json +18 -0
  40. package/rules/autoconsent/creditunionsa.json +12 -0
  41. package/rules/autoconsent/cstudios.json +35 -0
  42. package/rules/autoconsent/dandomain.json +41 -0
  43. package/rules/autoconsent/datezone.json +22 -0
  44. package/rules/autoconsent/dlibra.json +32 -0
  45. package/rules/autoconsent/dnb.json +30 -0
  46. package/rules/autoconsent/e-file.json +44 -0
  47. package/rules/autoconsent/erli-pl.json +36 -0
  48. package/rules/autoconsent/fellow-pl.json +16 -0
  49. package/rules/autoconsent/fn-se.json +17 -0
  50. package/rules/autoconsent/icom-co-jp.json +34 -0
  51. package/rules/autoconsent/intermedia-cms-fsi.json +30 -0
  52. package/rules/autoconsent/lieder.net.json +13 -0
  53. package/rules/autoconsent/menti-com.json +37 -0
  54. package/rules/autoconsent/mos-cudzoziemcy-gov-pl.json +29 -0
  55. package/rules/autoconsent/octoparse.json +33 -0
  56. package/rules/autoconsent/oresundstag.json +40 -0
  57. package/rules/autoconsent/renaud-bray.json +44 -0
  58. package/rules/autoconsent/saos-org-pl.json +35 -0
  59. package/rules/autoconsent/shopgold.json +83 -0
  60. package/rules/autoconsent/shueisha-hpplus.json +27 -0
  61. package/rules/autoconsent/synergy-net-au.json +33 -0
  62. package/rules/autoconsent/teeshoppen.json +42 -0
  63. package/rules/autoconsent/tullys-jp.json +11 -0
  64. package/rules/autoconsent/worldbank.json +5 -5
  65. package/rules/autoconsent/wuerth.json +57 -0
  66. package/rules/autoconsent/ynjn.json +34 -0
  67. package/rules/compact-rules.json +1 -1
  68. package/rules/rule-index.json +1 -1
  69. package/rules/rules.json +1 -1
  70. package/tests/adaptivemedia.spec.ts +3 -0
  71. package/tests/adeac-jp.spec.ts +3 -0
  72. package/tests/agenziaentrate-geoportale.spec.ts +5 -0
  73. package/tests/alertnotification-alert-bar.spec.ts +11 -0
  74. package/tests/amasty-gdpr-hyva.spec.ts +1 -0
  75. package/tests/betheme.spec.ts +9 -0
  76. package/tests/biblia-online.pl.spec.ts +3 -0
  77. package/tests/bitauto.spec.ts +3 -0
  78. package/tests/bt-com-au.spec.ts +3 -0
  79. package/tests/calclife.net.spec.ts +3 -0
  80. package/tests/casino-guru.spec.ts +15 -0
  81. package/tests/code3-cookies-consent.spec.ts +8 -0
  82. package/tests/complianz-opt-out.spec.ts +13 -3
  83. package/tests/cookie-use-notice.spec.ts +6 -0
  84. package/tests/cookieinfo-zamknij.spec.ts +3 -0
  85. package/tests/cookiesbanner-preference.spec.ts +8 -0
  86. package/tests/cookiesmodal-pl.spec.ts +3 -0
  87. package/tests/creditunionsa.spec.ts +3 -0
  88. package/tests/cstudios.spec.ts +3 -0
  89. package/tests/dandomain.spec.ts +18 -0
  90. package/tests/datezone.spec.ts +3 -0
  91. package/tests/dlibra.spec.ts +8 -0
  92. package/tests/dnb.spec.ts +5 -0
  93. package/tests/e-file.spec.ts +9 -0
  94. package/tests/erli-pl.spec.ts +4 -0
  95. package/tests/fellow-pl.spec.ts +5 -0
  96. package/tests/fn-se.spec.ts +3 -0
  97. package/tests/icom-co-jp.spec.ts +3 -0
  98. package/tests/intermedia-cms-fsi.spec.ts +8 -0
  99. package/tests/lieder.net.spec.ts +3 -0
  100. package/tests/menti-com.spec.ts +3 -0
  101. package/tests/mos-cudzoziemcy-gov-pl.spec.ts +3 -0
  102. package/tests/octoparse.spec.ts +6 -0
  103. package/tests/oresundstag.spec.ts +3 -0
  104. package/tests/renaud-bray.spec.ts +5 -0
  105. package/tests/saos-org-pl.spec.ts +3 -0
  106. package/tests/shopgold.spec.ts +3 -0
  107. package/tests/shueisha-hpplus.spec.ts +3 -0
  108. package/tests/synergy-net-au.spec.ts +8 -0
  109. package/tests/teeshoppen.spec.ts +7 -0
  110. package/tests/tullys-jp.spec.ts +3 -0
  111. package/tests/worldbank.spec.ts +1 -0
  112. package/tests/wuerth.spec.ts +8 -0
  113. package/tests/ynjn.spec.ts +3 -0
  114. package/tests-wtr/heuristics/heuristics-utils.test.ts +82 -4
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('adaptivemedia', ['https://www.referenceaudio.se/', 'https://www.teamworkwear.se/', 'https://www.durables.se/'], {});
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('adeac-jp', ['https://adeac.jp/']);
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('agenziaentrate-geoportale', [
4
+ 'https://geoportale.cartografia.agenziaentrate.gov.it/age-inspire/srv/ita/catalog.search#/home',
5
+ ]);
@@ -0,0 +1,11 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('alertnotification-alert-bar', [
4
+ 'https://www.defencebank.com.au/',
5
+ 'https://www.peoplecare.com.au/',
6
+ 'https://www.onemedifund.com.au/',
7
+ 'https://www.myrbhs.com.au/',
8
+ 'https://www.policehealth.com.au/',
9
+ 'https://www.vegkit.com.au/',
10
+ 'https://www.thegoodmoodfood.com.au/',
11
+ ]);
@@ -9,6 +9,7 @@ generateCMPTests('amasty-gdpr-hyva', [
9
9
  'https://www.biocare.co.uk/',
10
10
  'https://www.wrendaledesigns.co.uk/',
11
11
  'https://www.snaintongolf.co.uk/',
12
+ 'http://aeschbach-chaussures.ch/',
12
13
  ]);
13
14
 
14
15
  // no banner shown in the US
@@ -0,0 +1,9 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('betheme', [
4
+ 'https://sangbogen.dk/',
5
+ 'https://hakmar.com.tr/',
6
+ 'https://dietetycy.org.pl/',
7
+ 'https://marketingyconsumo.com/',
8
+ 'https://webwinkelcompany.nl/',
9
+ ]);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('biblia-online.pl', ['https://biblia-online.pl/', 'https://biblia-online.pl/Biblia/Warszawska']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('bitauto', ['https://www.bitauto.com/au/', 'https://www.bitauto.com/de-global/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('bt-com-au', ['https://www.bt.com.au/', 'https://www.bt.com.au/asgard.html']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('calclife.net', ['https://calclife.net/']);
@@ -0,0 +1,15 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests(
4
+ 'casino-guru',
5
+ [
6
+ 'https://casino.guru/',
7
+ 'https://www.kasinoguru-cz.com/',
8
+ 'https://oficialnekasina.sk/',
9
+ 'https://lotteryguru.com/',
10
+ 'https://loteria.guru/',
11
+ ],
12
+ {
13
+ skipRegions: ['US'],
14
+ },
15
+ );
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('code3-cookies-consent', [
4
+ 'https://www.ordrepsy.qc.ca/',
5
+ 'https://code3.ca/',
6
+ 'https://aufildutemps.quebec/',
7
+ 'https://chop.raic.ca/',
8
+ ]);
@@ -1,5 +1,15 @@
1
1
  import generateCMPTests from '../playwright/runner';
2
2
 
3
- generateCMPTests('Complianz opt-out', ['https://www.thefoxandpheasant.com/food-menu/', 'https://www.museum.de/', 'https://www.dtv.de/'], {
4
- testOptIn: false,
5
- });
3
+ generateCMPTests(
4
+ 'Complianz opt-out',
5
+ [
6
+ 'https://www.thefoxandpheasant.com/food-menu/',
7
+ 'https://www.museum.de/',
8
+ 'https://www.dtv.de/',
9
+ // Securiti flavor: preference center with only the read-only essential category and no reject-all button
10
+ 'https://www.beallsinc.com/',
11
+ ],
12
+ {
13
+ testOptIn: false,
14
+ },
15
+ );
@@ -0,0 +1,6 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ // the notice is only shown in the EEA, the UK, Brazil and Canada
4
+ generateCMPTests('cookie-use-notice', ['https://chatrandom.com/', 'https://privr.com/'], {
5
+ onlyRegions: ['GB', 'DE', 'FR', 'NL', 'NO', 'CA'],
6
+ });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('cookieinfo-zamknij', ['https://ksp.policja.gov.pl/', 'https://policja.pl/', 'https://strazgraniczna.pl/']);
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('cookiesbanner-preference', [
4
+ 'https://www.caisseavsvaud.ch/',
5
+ 'https://www.aaeb.ch/',
6
+ 'https://www.steveguerdat.com/',
7
+ 'https://www.epackstart.ch/',
8
+ ]);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('cookiesmodal-pl', ['https://www.netgun.pl/', 'https://m.optykamysliwska.pl/'], {});
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('creditunionsa', ['https://www.creditunionsa.com.au/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('cstudios', ['http://pesel.cstudios.pl/', 'http://www.cstudios.pl/']);
@@ -0,0 +1,18 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests(
4
+ 'dandomain',
5
+ [
6
+ 'https://www.lamper.dk/',
7
+ 'https://www.fruskov.dk/',
8
+ 'https://www.bestman.dk/',
9
+ 'https://www.whisky.dk/',
10
+ 'https://www.skiltex.dk/',
11
+ 'https://www.fashiongirls.se/',
12
+ 'https://www.plastbutikken.no/',
13
+ ],
14
+ {
15
+ // saving consent reloads the page, which can drop the self-test message
16
+ testSelfTest: false,
17
+ },
18
+ );
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('datezone', ['https://pl.datezone.com/', 'https://de.datezone.com/', 'https://en.datezone.com/']);
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('dlibra', [
4
+ 'https://kpbc.umk.pl/dlibra',
5
+ 'https://zbc.uz.zgora.pl/dlibra',
6
+ 'https://www.dbc.wroc.pl/dlibra',
7
+ 'https://pbc.biaman.pl/dlibra',
8
+ ]);
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ const urls = ['https://sbanken.no/', 'https://www.dnb.no/'];
4
+
5
+ generateCMPTests('dnb', urls);
@@ -0,0 +1,9 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('e-file', [
4
+ 'https://www.e-pity.pl/',
5
+ 'https://www.e-file.pl/',
6
+ 'https://www.fillup.pl/',
7
+ 'https://e-zus.pl/',
8
+ 'https://jpk.info.pl/',
9
+ ]);
@@ -0,0 +1,4 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ // Non-PL traffic often gets a bot check page in front of the site
4
+ generateCMPTests('erli-pl', ['https://erli.pl/'], { onlyRegions: ['PL'] });
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ // the close link navigates away, so the self-test cannot run on the original page
4
+ generateCMPTests('fellow.pl', ['https://fellow.pl/', 'https://fll.pl/'], { mobile: false, testSelfTest: false });
5
+ generateCMPTests('fellow.pl', ['https://m.fellow.pl/', 'https://m.fll.pl/'], { mobile: true, testSelfTest: false });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('fn-se', ['https://fn.se/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('icom-co-jp', ['https://www.icom.co.jp/']);
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('intermedia-cms-fsi', [
4
+ 'https://zs3.stalowowolski.pl/',
5
+ 'https://www.stalowowolski.pl/',
6
+ 'https://www.powiat-chelmno.pl/',
7
+ 'https://i.media.pl/',
8
+ ]);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('lieder.net', ['https://www.lieder.net/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('menti.com', ['https://www.menti.com/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('mos-cudzoziemcy-gov-pl', ['https://mos.cudzoziemcy.gov.pl/']);
@@ -0,0 +1,6 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ const urls = ['https://www.octoparse.jp/', 'https://www.octoparse.com/', 'https://www.octoparse.de/'];
4
+
5
+ generateCMPTests('octoparse', urls, { mobile: true });
6
+ generateCMPTests('octoparse', urls, { mobile: false });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('oresundstag', ['https://www.oresundstag.se/']);
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('renaud-bray', ['https://www.renaud-bray.com/'], {
4
+ onlyRegions: ['CA'],
5
+ });
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('saos-org-pl', ['https://www.saos.org.pl/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('shopgold', ['https://www.puchacz.net/', 'https://clarias.pl/', 'https://gotronik.pl/', 'https://bialaryba.pl/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('shueisha-hpplus', ['https://spur.hpplus.jp/', 'https://maquia.hpplus.jp/', 'https://baila.hpplus.jp/']);
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ const urls = ['https://www.synergy.net.au/'];
4
+ // the site returns an error page to visitors from some regions, e.g. US
5
+ const onlyRegions = ['AU', 'GB', 'DE'];
6
+
7
+ generateCMPTests('synergy-net-au', urls, { mobile: true, onlyRegions });
8
+ generateCMPTests('synergy-net-au', urls, { mobile: false, onlyRegions });
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('teeshoppen', [
4
+ 'https://teeshoppen.se/collections/kop-mossa-fa-vinterjacka-for-0-kr-herr',
5
+ 'https://teeshoppen.dk/',
6
+ 'https://teeshoppen.de/',
7
+ ]);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('tullys-jp', ['https://www.tullys.co.jp/']);
@@ -4,4 +4,5 @@ generateCMPTests('worldbank', [
4
4
  'https://www.worldbank.org/en/programs/lsms/overview',
5
5
  'https://www.devcommittee.org/',
6
6
  'https://www.subsidydata.org/',
7
+ 'https://data.worldbank.org/',
7
8
  ]);
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('wuerth', [
4
+ 'https://www.wuerth.no/',
5
+ 'https://www.wurth.gr/',
6
+ 'https://www.wuerth.ro/',
7
+ 'https://www.wuerth-industrie.com/',
8
+ ]);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('ynjn', ['https://ynjn.jp/']);
@@ -157,6 +157,33 @@ describe('checkHeuristicPatterns with Italian popups', () => {
157
157
  });
158
158
  });
159
159
 
160
+ describe('checkHeuristicPatterns with French popups', () => {
161
+ it('detects French cookie notices', () => {
162
+ const texts = [
163
+ // change.org
164
+ 'Vos paramètres de confidentialité. Nous utilisons nos propres cookies et ceux de tiers. Accepter les cookies Rejeter les cookies non essentiels Gérer les cookies',
165
+ 'Nous utilisons nos propres cookies et ceux de tiers',
166
+ ];
167
+ for (const text of texts) {
168
+ expect(checkHeuristicPatterns(text).patterns.length, text).to.be.greaterThan(0);
169
+ }
170
+ });
171
+
172
+ it('does not detect unrelated French text', () => {
173
+ const texts = [
174
+ 'Rejeter les candidatures incomplètes',
175
+ // "refuser/rejeter les cookies" alone also appears outside consent notices, e.g. browser help
176
+ 'Vous pouvez rejeter les cookies dans les paramètres de votre navigateur.',
177
+ 'Vous pouvez refuser les cookies dans les paramètres de votre navigateur.',
178
+ // "cookies" more than two words after "nous utilisons"
179
+ 'Nous utilisons nos propres recettes pour préparer les cookies.',
180
+ ];
181
+ for (const text of texts) {
182
+ expect(checkHeuristicPatterns(text).patterns, text).to.have.length(0);
183
+ }
184
+ });
185
+ });
186
+
160
187
  describe('checkHeuristicPatterns with Swedish popups', () => {
161
188
  it('detects Swedish cookie notices', () => {
162
189
  const texts = [
@@ -223,9 +250,10 @@ describe('checkHeuristicPatterns with inputs and context negatives', () => {
223
250
  ).to.have.length(1);
224
251
  });
225
252
 
226
- it('does not count "accept all" in prose', () => {
227
- expect(checkHeuristicPatterns('We accept all major credit cards.', 'page').patterns).to.not.include('/accept all/gi');
228
- expect(checkHeuristicPatterns('Cookies help us.\nAccept all\nReject all', 'popup').patterns).to.include('/accept all/gi');
253
+ it('does not count bare "accept all" / "reject all" labels, only labels with the cookie noun', () => {
254
+ expect(checkHeuristicPatterns('We accept all major credit cards.', 'page').patterns).to.have.length(0);
255
+ expect(checkHeuristicPatterns('Accept all\nReject all', 'popup').patterns).to.have.length(0);
256
+ expect(checkHeuristicPatterns('Manage settings\nACCEPT ALL COOKIES', 'popup').patterns).to.include('/accept all cookies/gi');
229
257
  });
230
258
 
231
259
  it('drops page matches next to an age gate with a leave button, not next to a consent control', () => {
@@ -462,7 +490,6 @@ describe('checkHeuristicPatterns with more Swedish wording', () => {
462
490
  'Kakor för en bättre upplevelse Med kakor (cookies) kan vi erbjuda dig säker inloggning. Godkänn nödvändiga kakor Godkänn alla kakor',
463
491
  'Tillåt alla cookies Endast nödvändiga cookies Cookie-inställningar',
464
492
  'Välj nedan vilka cookies du tillåter oss att använda. Acceptera alla Endast nödvändiga',
465
- 'Godkänn alla Avvisa alla',
466
493
  'momondo och dess partners vill använda cookies eller liknande teknik för att lagra och/eller komma åt information på och om din enhet',
467
494
  'Lagra och/eller få åtkomst till information på en enhet',
468
495
  ]);
@@ -1345,3 +1372,54 @@ describe('getButtonData', () => {
1345
1372
  expect(buttons[0].text).to.equal('Spaced Text');
1346
1373
  });
1347
1374
  });
1375
+
1376
+ describe('checkHeuristicPatterns without bare accept-all / reject-all labels', () => {
1377
+ it('does not detect bare choice labels in any language', () => {
1378
+ expectNotDetected([
1379
+ 'Accept all\nReject all',
1380
+ 'Tout accepter\nTout refuser',
1381
+ 'Alle akzeptieren\nAlle ablehnen',
1382
+ 'Alles accepteren\nWijs alles af',
1383
+ 'Aceptar todas\nRechazar todas',
1384
+ 'Accetta tutti\nRifiuta tutti',
1385
+ 'Godkänn alla Avvisa alla',
1386
+ // a moderation queue row with bulk actions
1387
+ '(diff | preview) . . Main Page 10:03 . . (+42) . . 192.0.2.1 [?] (fix typo) [Approve Approve all . . Reject Reject all] [Mark as spammer]',
1388
+ ]);
1389
+ });
1390
+
1391
+ it('detects notices that explain the choice buttons', () => {
1392
+ expectDetected([
1393
+ 'By clicking "Accept all", you agree to the storing of cookies on your device to improve your experience.',
1394
+ 'By clicking "OK" you allow cookies that help us improve the site.',
1395
+ 'Settings\nReject non-essential\nAccept all',
1396
+ 'Accept all cookies',
1397
+ 'You can choose which cookies you accept.',
1398
+ 'Example Corp stores cookies on your device to analyse traffic.',
1399
+ 'We would like your consent to collect data on how you use the site.',
1400
+ 'Powered by Usercentrics Consent Management',
1401
+ 'En cliquant sur « Tout accepter », vous acceptez le dépôt de cookies sur votre appareil.',
1402
+ 'Les cookies nous permettent de mesurer l’audience.',
1403
+ 'Nous pouvons utiliser des traceurs optionnels pour mesurer l’audience.',
1404
+ 'Wenn Sie auf „Alle akzeptieren“ klicken, stimmen Sie der Speicherung von Cookies zu.',
1405
+ 'Durch Klicken auf „Alle akzeptieren“ gestatten Sie den Einsatz folgender Dienste.',
1406
+ 'Um diese Dienste verwenden zu dürfen, benötigen wir Ihre Einwilligung.',
1407
+ 'Hier legen Sie fest, welche Cookies Sie zulassen.',
1408
+ 'Dies geschieht meist in Form von Cookies.',
1409
+ 'Realisiert mit Klaro!',
1410
+ 'Door op "Alle cookies accepteren" te klikken, gaat u akkoord met het opslaan van cookies.',
1411
+ 'Wij vragen toestemming voor het plaatsen van cookies.',
1412
+ 'Al hacer clic en "Aceptar todas las cookies", usted acepta que las cookies se guarden en su dispositivo.',
1413
+ 'Nosotros y nuestros socios deseamos almacenar o acceder a información en su dispositivo.',
1414
+ 'Cliccando su "Accetta tutti i cookie", accetti la memorizzazione dei cookie sul dispositivo.',
1415
+ 'Noi e i nostri partner archiviamo informazioni su un dispositivo.',
1416
+ ]);
1417
+ });
1418
+
1419
+ it('does not detect sign-up terms that start like a consent notice', () => {
1420
+ expectNotDetected([
1421
+ 'En cliquant sur "Créer un compte", vous acceptez les conditions d’utilisation et la politique de confidentialité.',
1422
+ 'By clicking "Sign up", you agree to our Terms of Service.',
1423
+ ]);
1424
+ });
1425
+ });