test(web-modules): I-4 адрес карточки /issues/KEY без project

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-10-24 15:18:37 +04:00
parent f116be4f7f
commit 36565d23b5

View File

@ -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");