@duckduckgo/autoconsent 18.5.0 → 18.6.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.
@@ -1,3 +1,3 @@
1
1
  import generateCMPTests from '../playwright/runner';
2
2
 
3
- generateCMPTests('anthropic', ['https://claude.ai/login', 'https://console.anthropic.com/login/']);
3
+ generateCMPTests('anthropic', ['https://claude.ai/login', 'https://console.anthropic.com/login/', 'https://claude.com/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('jobmount', ['https://www.veteranjobs.net/', 'https://www.justjobs.com/']);
@@ -766,6 +766,17 @@ describe('classifyButtonTextRegex', () => {
766
766
  expect(classifyButtonTextRegex('Cookies akzeptieren')).to.equal('accept');
767
767
  });
768
768
 
769
+ it('matches German, Italian and Swedish "I understand" acknowledgements', () => {
770
+ expect(classifyButtonTextRegex('Ich verstehe')).to.equal('acknowledge');
771
+ expect(classifyButtonTextRegex('Ho capito')).to.equal('acknowledge');
772
+ expect(classifyButtonTextRegex('Jag förstår')).to.equal('acknowledge');
773
+ });
774
+
775
+ it('does not treat Polish subscription links as reject', () => {
776
+ expect(classifyButtonTextRegex('Zarządzaj subskrypcjami lub z nich zrezygnuj')).to.equal('other');
777
+ expect(classifyButtonTextRegex('Rezygnuję')).to.equal('reject');
778
+ });
779
+
769
780
  it('returns other for empty string', () => {
770
781
  expect(classifyButtonTextRegex('')).to.equal('other');
771
782
  });