From 22b2da1bf4a2795ce4e2a2f5eb209d794b73c6be Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 17 Jan 2025 12:08:40 +0100 Subject: [PATCH] fix tests --- .../tracing/metrics/web-vitals-cls-standalone-spans/test.ts | 4 ++++ .../suites/tracing/metrics/web-vitals-inp-late/test.ts | 1 + .../tracing/metrics/web-vitals-inp-parametrized-late/test.ts | 1 + .../tracing/metrics/web-vitals-inp-parametrized/test.ts | 1 + .../suites/tracing/metrics/web-vitals-inp/test.ts | 1 + .../create-remix-app/tests/client-inp.test.ts | 1 + .../test-applications/react-17/tests/transactions.test.ts | 1 + .../react-router-6/tests/transactions.test.ts | 1 + .../react-router-7-spa/tests/transactions.test.ts | 1 + 9 files changed, 12 insertions(+) diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-cls-standalone-spans/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-cls-standalone-spans/test.ts index 02431dae3b79..9018252f37cb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-cls-standalone-spans/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-cls-standalone-spans/test.ts @@ -69,6 +69,7 @@ sentryTest('captures a "GOOD" CLS vital with its source as a standalone span', a transaction: expect.stringContaining('index.html'), 'user_agent.original': expect.stringContaining('Chrome'), 'sentry.pageload.span_id': expect.stringMatching(/[a-f0-9]{16}/), + 'client.address': '{{auto}}', }, description: expect.stringContaining('body > div#content > p'), exclusive_time: 0, @@ -137,6 +138,7 @@ sentryTest('captures a "MEH" CLS vital with its source as a standalone span', as transaction: expect.stringContaining('index.html'), 'user_agent.original': expect.stringContaining('Chrome'), 'sentry.pageload.span_id': expect.stringMatching(/[a-f0-9]{16}/), + 'client.address': '{{auto}}', }, description: expect.stringContaining('body > div#content > p'), exclusive_time: 0, @@ -203,6 +205,7 @@ sentryTest('captures a "POOR" CLS vital with its source as a standalone span.', transaction: expect.stringContaining('index.html'), 'user_agent.original': expect.stringContaining('Chrome'), 'sentry.pageload.span_id': expect.stringMatching(/[a-f0-9]{16}/), + 'client.address': '{{auto}}', }, description: expect.stringContaining('body > div#content > p'), exclusive_time: 0, @@ -270,6 +273,7 @@ sentryTest( transaction: expect.stringContaining('index.html'), 'user_agent.original': expect.stringContaining('Chrome'), 'sentry.pageload.span_id': expect.stringMatching(/[a-f0-9]{16}/), + 'client.address': '{{auto}}', }, description: 'Layout shift', exclusive_time: 0, diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/test.ts index fffa85b89ae2..d151772439a1 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/test.ts @@ -71,6 +71,7 @@ sentryTest('should capture an INP click event span after pageload', async ({ bro 'sentry.source': 'custom', transaction: 'test-url', 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, measurements: { inp: { diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized-late/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized-late/test.ts index 65852c734c98..961f98518049 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized-late/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized-late/test.ts @@ -74,6 +74,7 @@ sentryTest( 'sentry.source': 'custom', transaction: 'test-route', 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, measurements: { inp: { diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized/test.ts index 5705fe6863b5..911929471ea4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-parametrized/test.ts @@ -70,6 +70,7 @@ sentryTest( 'sentry.origin': 'auto.http.browser.inp', transaction: 'test-route', 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, measurements: { inp: { diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp/test.ts index b3435a49b002..1be97e2446dc 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp/test.ts @@ -69,6 +69,7 @@ sentryTest('should capture an INP click event span during pageload', async ({ br 'sentry.origin': 'auto.http.browser.inp', transaction: 'test-url', 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, measurements: { inp: { diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app/tests/client-inp.test.ts b/dev-packages/e2e-tests/test-applications/create-remix-app/tests/client-inp.test.ts index 7e9a4fe96972..a92a54a72ae3 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app/tests/client-inp.test.ts +++ b/dev-packages/e2e-tests/test-applications/create-remix-app/tests/client-inp.test.ts @@ -31,6 +31,7 @@ test('sends an INP span during pageload', async ({ page }) => { 'sentry.source': 'custom', replay_id: expect.any(String), 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, description: 'body > div > input#exception-button[type="button"]', op: 'ui.interaction.click', diff --git a/dev-packages/e2e-tests/test-applications/react-17/tests/transactions.test.ts b/dev-packages/e2e-tests/test-applications/react-17/tests/transactions.test.ts index 58e3df1ee8d6..14d8b8b21d65 100644 --- a/dev-packages/e2e-tests/test-applications/react-17/tests/transactions.test.ts +++ b/dev-packages/e2e-tests/test-applications/react-17/tests/transactions.test.ts @@ -83,6 +83,7 @@ test('sends an INP span', async ({ page }) => { 'sentry.exclusive_time': expect.any(Number), replay_id: expect.any(String), 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, description: 'body > div#root > input#exception-button[type="button"]', op: 'ui.interaction.click', diff --git a/dev-packages/e2e-tests/test-applications/react-router-6/tests/transactions.test.ts b/dev-packages/e2e-tests/test-applications/react-router-6/tests/transactions.test.ts index 555e0655c52e..ae9ff366abd4 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6/tests/transactions.test.ts +++ b/dev-packages/e2e-tests/test-applications/react-router-6/tests/transactions.test.ts @@ -83,6 +83,7 @@ test('sends an INP span', async ({ page }) => { 'sentry.exclusive_time': expect.any(Number), replay_id: expect.any(String), 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, description: 'body > div#root > input#exception-button[type="button"]', op: 'ui.interaction.click', diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-spa/tests/transactions.test.ts b/dev-packages/e2e-tests/test-applications/react-router-7-spa/tests/transactions.test.ts index c915d3694742..f0c7c680d07e 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-spa/tests/transactions.test.ts +++ b/dev-packages/e2e-tests/test-applications/react-router-7-spa/tests/transactions.test.ts @@ -83,6 +83,7 @@ test('sends an INP span', async ({ page }) => { 'sentry.exclusive_time': expect.any(Number), replay_id: expect.any(String), 'user_agent.original': expect.stringContaining('Chrome'), + 'client.address': '{{auto}}', }, description: 'body > div#root > input#exception-button[type="button"]', op: 'ui.interaction.click',