학생 회기 모바일 사용성 보정
This commit is contained in:
parent
aaebe4450e
commit
c743e9ccb9
7 changed files with 395 additions and 31 deletions
|
|
@ -513,10 +513,46 @@ test.describe("full-sweep learner home", () => {
|
|||
await expect(coachCard.getByLabel("코칭 힌트")).toContainText(
|
||||
"마지막 반응 먼저 반영",
|
||||
);
|
||||
await coachCard.getByRole("button", { name: "이어하기" }).click();
|
||||
const primaryAction = page.locator("[data-learner-primary-action]");
|
||||
await expect(primaryAction).toHaveAccessibleName("이어하기");
|
||||
await primaryAction.click();
|
||||
await expect(page).toHaveURL(new RegExp(`/learn/session/${ACT_ID}$`));
|
||||
});
|
||||
|
||||
test("naturalizes persisted privacy placeholders in the spotlight recap", async ({
|
||||
page,
|
||||
}) => {
|
||||
await signInAsLearner(page);
|
||||
await installLearnerHomeFixtures(page, { detail: false });
|
||||
await page.route(new RegExp(`/api/sessions/${ACT_ID}$`), (route) =>
|
||||
route.fulfill(
|
||||
jsonRoute({
|
||||
...DETAIL_BODY,
|
||||
turns: [
|
||||
{
|
||||
...DETAIL_BODY.turns[0],
|
||||
text: "[NAME]에게 [PHONE]으로 연락해 볼까요?",
|
||||
},
|
||||
{
|
||||
...DETAIL_BODY.turns[1],
|
||||
text: "뭘… 할 수 있게 [NAME]는 건지 잘 [NAME]는데요. [ORG]에서 오라고 했어요.",
|
||||
},
|
||||
],
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
await page.goto("/learn");
|
||||
|
||||
const recap = page.getByLabel("마지막 세션 리캡");
|
||||
await expect(recap).toContainText("할 수 있게 되는 건지 잘 모르겠는데요");
|
||||
await expect(recap).toContainText("소속 기관에서 오라고 했어요");
|
||||
await expect(recap).toContainText("익명 내담자에게 연락처로 연락해 볼까요");
|
||||
for (const token of ["[NAME]", "[ORG]", "[PHONE]"]) {
|
||||
await expect(recap).not.toContainText(token);
|
||||
}
|
||||
});
|
||||
|
||||
// checklist: learner-home-dash-recommend-card, learner-home-dash-recent-feedback,
|
||||
// learner-home-dash-review-queue
|
||||
test("prioritizes review in the recommend card, recent feedback, and review queue", async ({
|
||||
|
|
@ -540,7 +576,9 @@ test.describe("full-sweep learner home", () => {
|
|||
const feedback = page.locator(".lh-dashboard-feedback");
|
||||
await expect(feedback.locator(".lh-panel__badge")).toHaveText("1건");
|
||||
const feedbackRow = feedback.locator(".lh-feedback-mini__row");
|
||||
await expect(feedbackRow).toContainText("P1 · 정리 · 62점");
|
||||
const feedbackMeta = feedbackRow.locator("b > span");
|
||||
await expect(feedbackMeta.nth(0)).toHaveText("P1 · 정리");
|
||||
await expect(feedbackMeta.nth(1)).toHaveText("62점");
|
||||
await expect(feedbackRow).toContainText(
|
||||
"감정 반영은 좋았지만 탐색 질문 전에 요약이 필요합니다.",
|
||||
);
|
||||
|
|
@ -831,9 +869,16 @@ test.describe("full-sweep learner home", () => {
|
|||
await expect(rows).toHaveCount(2);
|
||||
// 회기 수 내림차순 정렬 — P1(3회)이 먼저 온다.
|
||||
await expect(rows.nth(0)).toContainText("P1");
|
||||
await expect(rows.nth(0)).toContainText(
|
||||
"3회 · 1회 진행 · 1회 리뷰 · 평균 4턴",
|
||||
const firstMeta = rows.nth(0).locator(".lh-persona-progress__meta");
|
||||
await expect(firstMeta.locator(":scope > span").nth(0)).toHaveText(
|
||||
"3회 · 평균 4턴",
|
||||
);
|
||||
await expect(firstMeta.locator(":scope > span").nth(1)).toHaveText(
|
||||
"진행 1 · 리뷰 1",
|
||||
);
|
||||
await expect(
|
||||
rows.nth(0).locator(".lh-persona-progress__latest"),
|
||||
).toHaveText("진행 중 · 탐색");
|
||||
await expect(rows.nth(1)).toContainText("P2");
|
||||
|
||||
// 행 클릭 시 해당 페르소나가 선택된 채 연습 화면으로 진입.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue