Skip to content

Commit 63dd97d

Browse files
committed
Test transaction titles in createHashRouter e2e test.
1 parent 099e446 commit 63dd97d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ test('Sends a pageload transaction to Sentry', async ({ page }) => {
7979
);
8080

8181
if (response.data.contexts.trace.op === 'pageload') {
82+
expect(response.data.title).toBe('/');
8283
hadPageLoadTransaction = true;
8384
}
8485

@@ -144,6 +145,7 @@ test('Sends a navigation transaction to Sentry', async ({ page }) => {
144145
);
145146

146147
if (response.data.contexts.trace.op === 'navigation') {
148+
expect(response.data.title).toBe('/user/:id');
147149
hadPageNavigationTransaction = true;
148150
}
149151

0 commit comments

Comments
 (0)