test(web-modules): I-4 адрес карточки /issues/KEY без project
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b9ae918617
commit
8415640d1b
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user