From cd7f108f93e43f1ca702d884fc27852e2fbcf3ae Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Sat, 6 Apr 2024 14:23:46 +0200 Subject: [PATCH] Ignore transak's CSP errors that are not caused by our CSP --- .changelog/1875.internal.md | 1 + playwright/tests/extension.spec.ts | 1 + playwright/tests/fiat.spec.ts | 1 + 3 files changed, 3 insertions(+) create mode 100644 .changelog/1875.internal.md diff --git a/.changelog/1875.internal.md b/.changelog/1875.internal.md new file mode 100644 index 0000000000..9de625231e --- /dev/null +++ b/.changelog/1875.internal.md @@ -0,0 +1 @@ +Ignore transak's CSP errors that are not caused by our CSP diff --git a/playwright/tests/extension.spec.ts b/playwright/tests/extension.spec.ts index 2f5f95113c..8a3e26ef96 100644 --- a/playwright/tests/extension.spec.ts +++ b/playwright/tests/extension.spec.ts @@ -49,6 +49,7 @@ test.describe('The extension popup should load', () => { if (msg.text().includes('responded with a status of 403')) return true if (msg.text().includes('`sessionKey` is a required property')) return true if (msg.text().includes('[Report Only]')) return true + if (msg.text().includes('script-src https://*.transak.com https://*.google.com')) return true }, }) await page.goto(`${extensionPopupURL}/open-wallet/private-key`) diff --git a/playwright/tests/fiat.spec.ts b/playwright/tests/fiat.spec.ts index e69553c1d1..fded8a8ce8 100644 --- a/playwright/tests/fiat.spec.ts +++ b/playwright/tests/fiat.spec.ts @@ -30,6 +30,7 @@ test.describe('Fiat on-ramp', () => { if (msg.text().includes('responded with a status of 403')) return true if (msg.text().includes('`sessionKey` is a required property')) return true if (msg.text().includes('[Report Only]')) return true + if (msg.text().includes('script-src https://*.transak.com https://*.google.com')) return true }, }) await setup(page)