케이스 이어하기 UI와 공통 탭·이미지 복구를 반영

This commit is contained in:
Yun Chan 2026-09-01 11:45:23 +09:00
parent 72353ecd82
commit f1b80676c1
38 changed files with 3581 additions and 455 deletions

View file

@ -401,13 +401,23 @@ test.describe("uc learner practice/history", () => {
card.getByRole("button", { name: item.action, exact: true }),
).toBeVisible();
}
// 진행 중 카드에는 보관 버튼이 없고, 종료 카드에는 있다.
await expect(
cards.nth(0).getByRole("button", { name: "보관", exact: true }),
).toHaveCount(0);
await expect(
cards.nth(2).getByRole("button", { name: "보관", exact: true }),
).toBeVisible();
// 진행 중 카드에는 보관·다음 회기 버튼이 없고, 종료 카드에는 있다.
await expect(
cards.nth(0).getByRole("button", { name: "보관", exact: true }),
).toHaveCount(0);
await expect(
cards
.nth(0)
.getByRole("button", { name: "다음 회기 이어가기", exact: true }),
).toHaveCount(0);
await expect(
cards.nth(2).getByRole("button", { name: "보관", exact: true }),
).toBeVisible();
await expect(
cards
.nth(2)
.getByRole("button", { name: "다음 회기 이어가기", exact: true }),
).toBeVisible();
await expect(
cards.nth(3).getByRole("button", { name: "복원", exact: true }),
).toBeVisible();
@ -428,8 +438,8 @@ test.describe("uc learner practice/history", () => {
await expect(page).toHaveURL(new RegExp(`/learn/session/${REV_ID}/review$`));
});
// usecase: 종료된 기록 카드에서 '다시 연습'을 눌러 같은 내담자로 새 회기를 연다.
test("기록 카드의 다시 연습 버튼이 같은 내담자 새 회기로 이동한다", async ({
// usecase: 종료된 기록 카드에서 다음 회기를 열어 같은 내담자의 맥락을 이어간다.
test("종료 기록의 다음 회기 이어가기 버튼이 같은 내담자 새 회기로 이동한다", async ({
page,
}) => {
await installFixtures(page);
@ -438,7 +448,7 @@ test.describe("uc learner practice/history", () => {
const endCard = page.locator(".lh-session-card", { hasText: "김도윤" });
await expect(endCard).toHaveCount(1);
await endCard
.getByRole("button", { name: "다시 연습", exact: true })
.getByRole("button", { name: "다음 회기 이어가기", exact: true })
.click();
await expect(page).toHaveURL(/\/learn\/session\/P2$/);
});