Skip to content
Prev Previous commit
Next Next commit
Remove piTracker test from shell
  • Loading branch information
RoyEJohnson committed Oct 6, 2025
commit 61d1880a2f5b28dfa1eecb5dfe853f9d4d004793
15 changes: 0 additions & 15 deletions test/src/components/shell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,6 @@ describe('shell', () => {
await screen.findByText('What is your question about?');
expect(screen.queryAllByRole('navigation')).toHaveLength(0);
});
it('handles piTracker ', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is tested in use-link-handler, and the test here is flaky.

type WindowWithPiTracker = (typeof window) & {
piTracker?: (path: string) => void;
}
const w = window as WindowWithPiTracker;
const piTracker = jest.fn();

w.piTracker = (path: string) => piTracker(path);
mockBrowserInitialEntries(['/']);

render(AppElement);

await waitFor(() => expect(piTracker).toHaveBeenCalled());
delete w.piTracker;
});
it('(skip to main content link) works', async () => {
window.scrollBy = jest.fn();
mockBrowserInitialEntries(['/']);
Expand Down
Loading