Skip to content

Commit

Permalink
Rely on the default granted test setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec committed Jun 4, 2024
1 parent 88f9ea3 commit cd95c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/specs/js-scripts/wp-consent-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test.describe( 'WP Consent API Integration', () => {
test( 'Consent update denying `analytics_storage` is sent when WP Consent API `statistics` category is `denied`', async ( {
page,
} ) => {
await page.goto( 'shop?consent_default=granted' );
await page.goto( 'shop' );
await page.evaluate( () =>
window.wp_set_consent( 'statistics', 'deny' )
);
Expand All @@ -113,7 +113,7 @@ test.describe( 'WP Consent API Integration', () => {
test( 'Consent update denying `ad_storage`, `ad_user_data`, `ad_personalization` is sent when WP Consent API `marketing` category is `denied`', async ( {
page,
} ) => {
await page.goto( 'shop?consent_default=granted' );
await page.goto( 'shop' );
await page.evaluate( () =>
window.wp_set_consent( 'marketing', 'deny' )
);
Expand Down

0 comments on commit cd95c0b

Please sign in to comment.