From 8c74334ba73839a6ea04ea65201fcb55900a26ce Mon Sep 17 00:00:00 2001 From: Dale Frey Date: Mon, 27 Jan 2025 13:44:08 -0500 Subject: [PATCH] USAGOV-2201: USAGOV-2201 - Block Google Tag Manager from cypress tests --- automated_tests/e2e-cypress/cypress.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/automated_tests/e2e-cypress/cypress.config.js b/automated_tests/e2e-cypress/cypress.config.js index 73b84b6722..447ba670cb 100644 --- a/automated_tests/e2e-cypress/cypress.config.js +++ b/automated_tests/e2e-cypress/cypress.config.js @@ -16,7 +16,14 @@ module.exports = defineConfig({ }, chromeWebSecurity: false, responsetimeout: 10000, - "blockHosts": ["www.google-analytics.com", "ssl.google-analytics.com"], + blockHosts: [ + "www.google-analytics.com", + "ssl.google-analytics.com", + "*.googletagmanager.com", + "www.googletagmanager.com", + "tagmanager.google.com", + "www.tagmanager.google.com" + ], experimentalRunAllSpecs: true, setupNodeEvents(on, config) {