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 = () =>
77
77
} ,
78
78
] ) ;
79
79
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
-
93
80
const ProjectsRoutes = ( ) => (
94
81
< SentryRoutes >
95
82
< Route path = "projects" element = { < Outlet /> } >
@@ -98,7 +85,6 @@ const ProjectsRoutes = () => (
98
85
< Route path = ":projectId/*" element = { < ViewsRoutes /> } />
99
86
</ Route >
100
87
</ Route >
101
- < Route path = "/lazy/*" element = { < LazyRoutes /> } />
102
88
</ SentryRoutes >
103
89
) ;
104
90
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
136
136
} ,
137
137
} ) ;
138
138
} ) ;
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