Skip to content

Commit 728fb60

Browse files
committed
Remove updates on other test apps.
1 parent 04ce64a commit 728fb60

File tree

4 files changed

+0
-111
lines changed

4 files changed

+0
-111
lines changed

dev-packages/e2e-tests/test-applications/react-router-6/tests/lazy.test.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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-
9380
const 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

dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/pages/InnerLazyRoutes.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/tests/transactions.test.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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-
});

0 commit comments

Comments
 (0)