From 63dd97dd4c7639a6b2cf6c115de82134ba684c6c Mon Sep 17 00:00:00 2001 From: Onur Temizkan Date: Thu, 22 Jun 2023 15:16:11 +0100 Subject: [PATCH] Test transaction titles in createHashRouter e2e test. --- .../react-create-hash-router/tests/behaviour-test.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts b/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts index fb2d291dd70d..c57beb61c8db 100644 --- a/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts +++ b/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts @@ -79,6 +79,7 @@ test('Sends a pageload transaction to Sentry', async ({ page }) => { ); if (response.data.contexts.trace.op === 'pageload') { + expect(response.data.title).toBe('/'); hadPageLoadTransaction = true; } @@ -144,6 +145,7 @@ test('Sends a navigation transaction to Sentry', async ({ page }) => { ); if (response.data.contexts.trace.op === 'navigation') { + expect(response.data.title).toBe('/user/:id'); hadPageNavigationTransaction = true; }