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 @@ -5,7 +5,9 @@ import { APP_NAME } from '../constants';
test.describe('client - navigation performance', () => {
test('should create navigation transaction', async ({ page }) => {
const navigationPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/ssr';
return (
transactionEvent.transaction === '/performance/ssr' && transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down Expand Up @@ -56,7 +58,10 @@ test.describe('client - navigation performance', () => {

test('should update navigation transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { APP_NAME } from '../constants';
test.describe('client - pageload performance', () => {
test('should send pageload transaction', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance';
return transactionEvent.transaction === '/performance' && transactionEvent.contexts?.trace?.op === 'pageload';
});

await page.goto(`/performance`);
Expand Down Expand Up @@ -55,7 +55,10 @@ test.describe('client - pageload performance', () => {

test('should update pageload transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/with/sentry`);
Expand Down Expand Up @@ -105,7 +108,9 @@ test.describe('client - pageload performance', () => {

test('should send pageload transaction for prerendered pages', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/static';
return (
transactionEvent.transaction === '/performance/static' && transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/static`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { APP_NAME } from '../constants';
test.describe('client - navigation performance', () => {
test('should create navigation transaction', async ({ page }) => {
const navigationPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/ssr';
return (
transactionEvent.transaction === '/performance/ssr' && transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down Expand Up @@ -56,7 +58,10 @@ test.describe('client - navigation performance', () => {

test('should update navigation transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { APP_NAME } from '../constants';
test.describe('client - pageload performance', () => {
test('should send pageload transaction', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance';
return transactionEvent.transaction === '/performance' && transactionEvent.contexts?.trace?.op === 'pageload';
});

await page.goto(`/performance`);
Expand Down Expand Up @@ -55,7 +55,10 @@ test.describe('client - pageload performance', () => {

test('should update pageload transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/with/sentry`);
Expand Down Expand Up @@ -105,7 +108,9 @@ test.describe('client - pageload performance', () => {

test('should send pageload transaction for prerendered pages', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/static';
return (
transactionEvent.transaction === '/performance/static' && transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/static`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { APP_NAME } from '../constants';
test.describe('client - navigation performance', () => {
test('should update navigation transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { APP_NAME } from '../constants';
test.describe('client - pageload performance', () => {
test('should send pageload transaction', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance';
return transactionEvent.transaction === '/performance' && transactionEvent.contexts?.trace?.op === 'pageload';
});

await page.goto(`/performance`);
Expand Down Expand Up @@ -55,7 +55,10 @@ test.describe('client - pageload performance', () => {

test('should update pageload transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/with/sentry`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { APP_NAME } from '../constants';
test.describe('client - navigation performance', () => {
test('should update navigation transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { APP_NAME } from '../constants';
test.describe('client - pageload performance', () => {
test('should send pageload transaction', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance';
return transactionEvent.transaction === '/performance' && transactionEvent.contexts?.trace?.op === 'pageload';
});

await page.goto(`/performance`);
Expand Down Expand Up @@ -55,7 +55,10 @@ test.describe('client - pageload performance', () => {

test('should update pageload transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/with/sentry`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { APP_NAME } from '../constants';
test.describe('client - navigation performance', () => {
test('should create navigation transaction', async ({ page }) => {
const navigationPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/ssr';
return (
transactionEvent.transaction === '/performance/ssr' && transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down Expand Up @@ -56,7 +58,10 @@ test.describe('client - navigation performance', () => {

test('should create navigation transaction when navigating with object `to` prop', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down Expand Up @@ -106,7 +111,10 @@ test.describe('client - navigation performance', () => {

test('should update navigation transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'navigation'
);
});

await page.goto(`/performance`); // pageload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { APP_NAME } from '../constants';
test.describe('client - pageload performance', () => {
test('should send pageload transaction', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance';
return transactionEvent.transaction === '/performance' && transactionEvent.contexts?.trace?.op === 'pageload';
});

await page.goto(`/performance`);
Expand Down Expand Up @@ -55,7 +55,10 @@ test.describe('client - pageload performance', () => {

test('should update pageload transaction for dynamic routes', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/with/:param';
return (
transactionEvent.transaction === '/performance/with/:param' &&
transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/with/sentry`);
Expand Down Expand Up @@ -105,7 +108,9 @@ test.describe('client - pageload performance', () => {

test('should send pageload transaction for prerendered pages', async ({ page }) => {
const txPromise = waitForTransaction(APP_NAME, async transactionEvent => {
return transactionEvent.transaction === '/performance/static';
return (
transactionEvent.transaction === '/performance/static' && transactionEvent.contexts?.trace?.op === 'pageload'
);
});

await page.goto(`/performance/static`);
Expand Down
Loading