Skip to content

Commit

Permalink
fix(ui): TE-XXXX alert list refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nalin-patidar committed Jan 31, 2025
1 parent 7b6bc9d commit 32f3fed
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions thirdeye-ui/src/app/routers/alerts/alerts.router.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,40 +115,6 @@ describe("Alerts Router", () => {
expect(AppLoadingIndicatorV1).toHaveBeenCalled();
});

it("should render alerts all page at exact alerts path", async () => {
render(
<MemoryRouter initialEntries={[AppRoute.ALERTS]}>
<Routes>
<Route
element={<AlertsRouter />}
path={`${AppRouteRelative.ALERTS}/*`}
/>
</Routes>
</MemoryRouter>
);

await expect(
screen.findByText("testAlertsAllPage")
).resolves.toBeInTheDocument();
});

it("should render alerts all page at exact alerts all path", async () => {
render(
<MemoryRouter initialEntries={[AppRoute.ALERTS_ALL]}>
<Routes>
<Route
element={<AlertsRouter />}
path={`${AppRouteRelative.ALERTS}/*`}
/>
</Routes>
</MemoryRouter>
);

await expect(
screen.findByText("testAlertsAllPage")
).resolves.toBeInTheDocument();
});

it("should render page not found page at invalid alerts all path", async () => {
render(
<MemoryRouter initialEntries={[`${AppRoute.ALERTS_ALL}/testPath`]}>
Expand Down

0 comments on commit 32f3fed

Please sign in to comment.