재부팅 복구와 학습자 패널을 정리
This commit is contained in:
parent
dcb76a2373
commit
99779a6ab2
10 changed files with 442 additions and 25 deletions
|
|
@ -700,6 +700,39 @@ test.describe("uc learner home dashboard", () => {
|
|||
await expect(page).toHaveURL(/\/learn\/practice$/);
|
||||
});
|
||||
|
||||
test("성장 지표 라포 헤더는 중첩 inset 표면을 사용하지 않는다", async ({
|
||||
page,
|
||||
}) => {
|
||||
await installFixtures(page);
|
||||
await page.goto("/learn");
|
||||
|
||||
await page.getByRole("tab", { name: "성장 지표" }).click();
|
||||
const rapportHeading = page
|
||||
.locator("#lh-panel-growth")
|
||||
.getByRole("heading", { name: "회기를 건너 누적됩니다." });
|
||||
const headingContent = rapportHeading.locator("..");
|
||||
await expect(rapportHeading).toBeVisible();
|
||||
await expect(headingContent).not.toHaveClass(/vg-surface/);
|
||||
await expect
|
||||
.poll(() =>
|
||||
headingContent.evaluate((element) => {
|
||||
const style = getComputedStyle(element);
|
||||
return {
|
||||
backgroundColor: style.backgroundColor,
|
||||
borderTopWidth: style.borderTopWidth,
|
||||
borderRadius: style.borderRadius,
|
||||
padding: style.padding,
|
||||
};
|
||||
}),
|
||||
)
|
||||
.toEqual({
|
||||
backgroundColor: "rgba(0, 0, 0, 0)",
|
||||
borderTopWidth: "0px",
|
||||
borderRadius: "0px",
|
||||
padding: "0px",
|
||||
});
|
||||
});
|
||||
|
||||
// usecase: 첫 방문 학습자가 기록·성장 탭에서 빈 상태 안내 문구를 확인한다
|
||||
test("신규 학습자의 기록·성장 탭이 빈 상태 안내 문구를 보여준다", async ({
|
||||
page,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue