@duckduckgo/autoconsent 14.93.0 → 14.95.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.
@@ -4,7 +4,6 @@ generateCMPTests(
4
4
  'didomi',
5
5
  [
6
6
  'https://nothing.tech/',
7
- 'https://www.planet.fr/',
8
7
  'http://www.allocine.fr/',
9
8
  'https://www.boursorama.com/',
10
9
  'https://www.theoriginalshotels.com/en/hotels/la-villa-vicha',
@@ -15,7 +14,7 @@ generateCMPTests(
15
14
  // Self-test is disabled because some sites (e.g. planet.fr) navigate away
16
15
  // after clicking the disagree button, which destroys the Didomi state.
17
16
  testSelfTest: false,
18
- skipRegions: ['US'],
17
+ onlyRegions: ['US', 'FR'],
19
18
  },
20
19
  );
21
20
 
@@ -0,0 +1,9 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ const urls = ['https://www.yachtclubgames.com/'];
4
+
5
+ generateCMPTests('yachtclubgames.com', urls);
6
+
7
+ generateCMPTests('yachtclubgames.com', urls, {
8
+ mobile: true,
9
+ });
@@ -156,7 +156,9 @@ describe('Autoconsent.findCmp', () => {
156
156
  optIn: [],
157
157
  optOut: [],
158
158
  });
159
- const found = await autoconsent.findCmp(0);
159
+ // force findCmpAttempts to 1 so heuristic CMP is run on the first attempt
160
+ autoconsent.state.findCmpAttempts = 1;
161
+ const found = await autoconsent.findCmp(1);
160
162
 
161
163
  expect(found).to.have.length(1);
162
164
  expect(found[0].name).to.equal('HEURISTIC');