From cd95c0b53801816f00b78d6e46cdafd3ed13c4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Tue, 4 Jun 2024 23:45:32 +0200 Subject: [PATCH] Rely on the default granted test setup. Address https://github.com/woocommerce/woocommerce-google-analytics-integration/pull/430/files/88f9ea30ac687eccc84248fbeb557081a61b0280#r1625282895 --- tests/e2e/specs/js-scripts/wp-consent-api.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/specs/js-scripts/wp-consent-api.test.js b/tests/e2e/specs/js-scripts/wp-consent-api.test.js index 1d7eee7f..bce5c8d0 100644 --- a/tests/e2e/specs/js-scripts/wp-consent-api.test.js +++ b/tests/e2e/specs/js-scripts/wp-consent-api.test.js @@ -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' ) ); @@ -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' ) );