File tree Expand file tree Collapse file tree 4 files changed +0
-111
lines changed
dev-packages/e2e-tests/test-applications
react-router-7-cross-usage Expand file tree Collapse file tree 4 files changed +0
-111
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -77,19 +77,6 @@ const ViewsRoutes = () =>
7777 } ,
7878 ] ) ;
7979
80- const LazyRoutes = ( ) =>
81- sentryUseRoutes ( [
82- {
83- path : 'inner-lazy' ,
84- handle : {
85- lazyChildren : async ( ) =>
86- import ( './pages/InnerLazyRoutes' ) . then (
87- ( module ) => module . someMoreNestedRoutes ,
88- ) ,
89- } ,
90- }
91- ] ) ;
92-
9380const ProjectsRoutes = ( ) => (
9481 < SentryRoutes >
9582 < Route path = "projects" element = { < Outlet /> } >
@@ -98,7 +85,6 @@ const ProjectsRoutes = () => (
9885 < Route path = ":projectId/*" element = { < ViewsRoutes /> } />
9986 </ Route >
10087 </ Route >
101- < Route path = "/lazy/*" element = { < LazyRoutes /> } />
10288 </ SentryRoutes >
10389) ;
10490
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -136,26 +136,3 @@ test('sends a navigation transaction with a parameterized URL - alternative rout
136136 } ,
137137 } ) ;
138138} ) ;
139-
140- test ( 'sends a pageload transaction for lazy route' , async ( { page } ) => {
141- const transactionPromise = waitForTransaction ( 'react-router-7-cross-usage' , async transactionEvent => {
142- console . debug ( 'Lazy route transaction event' , transactionEvent ) ;
143- return (
144- ! ! transactionEvent ?. transaction &&
145- transactionEvent . contexts ?. trace ?. op === 'pageload' &&
146- transactionEvent . transaction === '/lazy/inner-lazy/inner-inner-lazy'
147- ) ;
148- } ) ;
149-
150- // Try to navigate to the full nested path
151- await page . goto ( '/lazy/level-1/123/456/789' ) ;
152-
153- console . debug ( 'Navigated to lazy route' ) ;
154- console . debug ( 'ROOT' , await page . innerHTML ( '#root' ) ) ;
155-
156- const event = await transactionPromise ;
157-
158- expect ( event . transaction ) . toBe ( '/lazy/inner-lazy/inner-inner-lazy' ) ;
159- expect ( event . type ) . toBe ( 'transaction' ) ;
160- expect ( event . contexts ?. trace ?. op ) . toBe ( 'pageload' ) ;
161- } ) ;
You can’t perform that action at this time.
0 commit comments