Skip to content
Merged
Show file tree
Hide file tree
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 @@ -193,7 +193,7 @@ test.describe('performance events', () => {
return txnEvent?.contexts?.trace?.op === 'navigation' && txnEvent?.tags?.runtime === 'browser';
});

await page.goto('/');
await waitForInitialPageload(page, { route: '/' });

const navigationClickPromise = page.locator('#routeWithParamsLink').click();

Expand Down Expand Up @@ -252,8 +252,6 @@ test.describe('performance events', () => {
});

test('captures one navigation transaction per redirect', async ({ page }) => {
await page.goto('/');

const clientNavigationRedirect1TxnPromise = waitForTransaction('sveltekit-2-svelte-5', txnEvent => {
return (
txnEvent?.contexts?.trace?.op === 'navigation' &&
Expand All @@ -278,6 +276,8 @@ test.describe('performance events', () => {
);
});

await waitForInitialPageload(page, { route: '/' });

const navigationClickPromise = page.locator('#redirectLink').click();

const [redirect1TxnEvent, redirect2TxnEvent, redirect3TxnEvent, _] = await Promise.all([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ test.describe('performance events', () => {
return txnEvent?.contexts?.trace?.op === 'navigation' && txnEvent?.tags?.runtime === 'browser';
});

await page.goto('/');
await waitForInitialPageload(page, { route: '/' });

const navigationClickPromise = page.locator('#routeWithParamsLink').click();

Expand Down Expand Up @@ -252,8 +252,6 @@ test.describe('performance events', () => {
});

test('captures one navigation transaction per redirect', async ({ page }) => {
await page.goto('/');

const clientNavigationRedirect1TxnPromise = waitForTransaction('sveltekit-2', txnEvent => {
return (
txnEvent?.contexts?.trace?.op === 'navigation' &&
Expand All @@ -278,6 +276,8 @@ test.describe('performance events', () => {
);
});

await waitForInitialPageload(page, { route: '/' });

const navigationClickPromise = page.locator('#redirectLink').click();

const [redirect1TxnEvent, redirect2TxnEvent, redirect3TxnEvent, _] = await Promise.all([
Expand Down