Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect, test } from '@playwright/test';
import { waitForTransaction } from '@sentry-internal/test-utils';

test('Creates a pageload transaction for app router routes', async ({ page }) => {
test.slow();
const randomRoute = String(Math.random());

const clientPageloadTransactionPromise = waitForTransaction('nextjs-app-dir', transactionEvent => {
Expand Down Expand Up @@ -134,6 +135,8 @@ test('Creates a navigation transaction for `router.forward()`', async ({ page })
});

test('Creates a navigation transaction for `<Link />`', async ({ page }) => {
test.slow();

const navigationTransactionPromise = waitForTransaction('nextjs-app-dir', transactionEvent => {
return (
transactionEvent?.transaction === `/navigation/42/link` &&
Expand All @@ -149,6 +152,8 @@ test('Creates a navigation transaction for `<Link />`', async ({ page }) => {
});

test('Creates a navigation transaction for `<Link replace />`', async ({ page }) => {
test.slow();

const navigationTransactionPromise = waitForTransaction('nextjs-app-dir', transactionEvent => {
return (
transactionEvent?.transaction === `/navigation/42/link-replace` &&
Expand Down
Loading