File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dev-packages/e2e-tests/test-applications
sveltekit-2-svelte-5/test Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ test.describe('performance events', () => {
185
185
} ) ;
186
186
187
187
test ( 'captures a navigation transaction directly after pageload' , async ( { page } ) => {
188
- await page . goto ( '/' ) ;
189
-
190
188
const clientPageloadTxnPromise = waitForTransaction ( 'sveltekit-2-svelte-5' , txnEvent => {
191
189
return txnEvent ?. contexts ?. trace ?. op === 'pageload' && txnEvent ?. tags ?. runtime === 'browser' ;
192
190
} ) ;
@@ -195,6 +193,8 @@ test.describe('performance events', () => {
195
193
return txnEvent ?. contexts ?. trace ?. op === 'navigation' && txnEvent ?. tags ?. runtime === 'browser' ;
196
194
} ) ;
197
195
196
+ await page . goto ( '/' ) ;
197
+
198
198
const navigationClickPromise = page . locator ( '#routeWithParamsLink' ) . click ( ) ;
199
199
200
200
const [ pageloadTxnEvent , navigationTxnEvent , _ ] = await Promise . all ( [
Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ test.describe('performance events', () => {
185
185
} ) ;
186
186
187
187
test ( 'captures a navigation transaction directly after pageload' , async ( { page } ) => {
188
- await page . goto ( '/' ) ;
189
-
190
188
const clientPageloadTxnPromise = waitForTransaction ( 'sveltekit-2' , txnEvent => {
191
189
return txnEvent ?. contexts ?. trace ?. op === 'pageload' && txnEvent ?. tags ?. runtime === 'browser' ;
192
190
} ) ;
@@ -195,6 +193,8 @@ test.describe('performance events', () => {
195
193
return txnEvent ?. contexts ?. trace ?. op === 'navigation' && txnEvent ?. tags ?. runtime === 'browser' ;
196
194
} ) ;
197
195
196
+ await page . goto ( '/' ) ;
197
+
198
198
const navigationClickPromise = page . locator ( '#routeWithParamsLink' ) . click ( ) ;
199
199
200
200
const [ pageloadTxnEvent , navigationTxnEvent , _ ] = await Promise . all ( [
You can’t perform that action at this time.
0 commit comments