This commit is contained in:
parent
6e3123091a
commit
aeddaa6972
69 changed files with 3178 additions and 424 deletions
|
|
@ -490,11 +490,18 @@ test.describe("admin console full-sweep (fixtures)", () => {
|
|||
const sessionsHeader = page.getByRole("columnheader", { name: /활성 회기/ });
|
||||
await sessionsHeader.getByRole("button").click();
|
||||
await expect(sessionsHeader).toHaveAttribute("aria-sort", "ascending");
|
||||
const ascending = await rows.locator("td:nth-child(7)").allTextContents();
|
||||
const sessionsColumnIndex = await sessionsHeader.evaluate((header) => {
|
||||
if (!(header instanceof HTMLTableCellElement)) {
|
||||
throw new Error("활성 회기 헤더가 테이블 셀이 아닙니다.");
|
||||
}
|
||||
return header.cellIndex + 1;
|
||||
});
|
||||
const sessionCells = `td:nth-child(${sessionsColumnIndex})`;
|
||||
const ascending = await rows.locator(sessionCells).allTextContents();
|
||||
expect(ascending.map(Number)).toEqual([1, 3, 5]);
|
||||
await sessionsHeader.getByRole("button").click();
|
||||
await expect(sessionsHeader).toHaveAttribute("aria-sort", "descending");
|
||||
const descending = await rows.locator("td:nth-child(7)").allTextContents();
|
||||
const descending = await rows.locator(sessionCells).allTextContents();
|
||||
expect(descending.map(Number)).toEqual([5, 3, 1]);
|
||||
});
|
||||
|
||||
|
|
@ -926,7 +933,7 @@ test.describe("admin console full-sweep (real API)", () => {
|
|||
display_name: `편집 대상 ${testInfo.project.name}`,
|
||||
role: "learner",
|
||||
admin_access: false,
|
||||
account_status: "approved",
|
||||
account_status: "pending",
|
||||
affiliation: "원래 소속",
|
||||
cohort_ids: [],
|
||||
},
|
||||
|
|
@ -1004,7 +1011,7 @@ test.describe("admin console full-sweep (real API)", () => {
|
|||
display_name: `코호트 대상 ${testInfo.project.name}`,
|
||||
role: "learner",
|
||||
admin_access: false,
|
||||
account_status: "approved",
|
||||
account_status: "pending",
|
||||
affiliation: "",
|
||||
cohort_ids: [],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue