Веб под модули: состояние модулей, «Обзор», адреса модулей (#98) #100

Merged
aep merged 19 commits from feat/98-web-modules into main 2026-10-24 14:57:21 +03:00
Showing only changes of commit 36565d23b5 - Show all commits

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