diff --git a/web/src/projects/projects.test.tsx b/web/src/projects/projects.test.tsx index 2616092..406f9c6 100644 --- a/web/src/projects/projects.test.tsx +++ b/web/src/projects/projects.test.tsx @@ -213,6 +213,16 @@ describe("адреса модулей и заголовок вкладки", () await waitFor(() => expect(router.state.location.pathname + router.state.location.search).toBe("/app/jira/issues?project=AWPCA")); }); + it("I-4: legacy card address без project: /issues/KEY → /jira/issues/KEY, окно поверх списка, закрытие — список с проектом оболочки", async () => { + hub(); + const router = open("/app/issues/AURORA-9001"); + expect(await screen.findByTestId("issue-card")).toBeInTheDocument(); + expect(router.state.location.pathname).toBe("/app/jira/issues/AURORA-9001"); + expect(await screen.findByTestId("page-issues")).toBeInTheDocument(); + await userEvent.click(within(screen.getByRole("dialog")).getByRole("button", { name: /Закрыть/ })); + await waitFor(() => expect(router.state.location.pathname + router.state.location.search).toBe("/app/jira/issues?project=AWPCA")); + }); + it("прежние /board, /issues, /feed перенаправляют с сохранением search, replace", async () => { hub(); const router = open("/app/board?project=STOCKS_DRRK&x=1");