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 @@ -185,8 +185,6 @@ test.describe('performance events', () => {
});

test('captures a navigation transaction directly after pageload', async ({ page }) => {
await page.goto('/');

const clientPageloadTxnPromise = waitForTransaction('sveltekit-2-svelte-5', txnEvent => {
return txnEvent?.contexts?.trace?.op === 'pageload' && txnEvent?.tags?.runtime === 'browser';
});
Expand All @@ -195,6 +193,8 @@ test.describe('performance events', () => {
return txnEvent?.contexts?.trace?.op === 'navigation' && txnEvent?.tags?.runtime === 'browser';
});

await page.goto('/');

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

const [pageloadTxnEvent, navigationTxnEvent, _] = await Promise.all([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ test.describe('performance events', () => {
});

test('captures a navigation transaction directly after pageload', async ({ page }) => {
await page.goto('/');

const clientPageloadTxnPromise = waitForTransaction('sveltekit-2', txnEvent => {
return txnEvent?.contexts?.trace?.op === 'pageload' && txnEvent?.tags?.runtime === 'browser';
});
Expand All @@ -195,6 +193,8 @@ test.describe('performance events', () => {
return txnEvent?.contexts?.trace?.op === 'navigation' && txnEvent?.tags?.runtime === 'browser';
});

await page.goto('/');

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

const [pageloadTxnEvent, navigationTxnEvent, _] = await Promise.all([
Expand Down