Skip to content

Commit

Permalink
Test transaction titles in createHashRouter e2e test.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Jun 22, 2023
1 parent 71a52d8 commit faa5f29
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit faa5f29

Please sign in to comment.