학생 분석 목록 펼침 보강

This commit is contained in:
Yun Chan 2026-07-01 12:41:17 +09:00
parent 51053af536
commit 69fece56bf
9 changed files with 289 additions and 145 deletions

View file

@ -577,6 +577,11 @@ test.describe("layout visual gate @single-run", () => {
await expect(page.locator('[data-learner-overview-row="true"]')).toHaveCount(1);
await expect(page.locator('[data-learner-analysis-panel="true"]')).toHaveCount(0);
await expect(page.getByLabel("학습자 검색")).toBeVisible();
const expandButton = page.getByRole("button", { name: /분석 검증 학습자 요약/ });
if ((await expandButton.getAttribute("aria-expanded")) !== "true") {
await expandButton.click();
}
await expect(page.locator('[data-learner-expanded-row="true"]')).toBeVisible();
});
});

View file

@ -651,7 +651,11 @@ test.describe("teacher console", () => {
.filter({ hasText: "사용자 B" });
await expect(learnerBRow).toHaveCount(1);
await expect(learnerBRow.getByText(learnerB)).toBeVisible();
await learnerBRow.getByRole("button", { name: "사용자 B 상세 분석 열기" }).click();
await expect(learnerBRow.getByRole("button", { name: "사용자 B", exact: true })).toBeVisible();
await learnerBRow.getByRole("button", { name: "사용자 B 요약 펼치기" }).click();
await expect(page.locator('[data-learner-expanded-row="true"]')).toBeVisible();
await expect(page.locator('[data-learner-expanded-row="true"]').getByText("회기별 추이")).toBeVisible();
await learnerBRow.getByRole("button", { name: "사용자 B 상세 보기" }).click();
await expect(page).toHaveURL(new RegExp(`/teach/analysis\\?learner=${learnerB}$`));
const analysisPanel = page.locator('[data-learner-analysis-panel="true"]');