forked from baron/baron-sso
dev 반영 code check 오류 수정
This commit is contained in:
@@ -211,11 +211,9 @@ test.describe("Worksmobile tenant management", () => {
|
||||
name: /바론에만 있음|웍스에만 있음|양쪽 다 있음/,
|
||||
})
|
||||
.allTextContents();
|
||||
await expect.poll(() => filterButtons).toEqual([
|
||||
"바론에만 있음",
|
||||
"웍스에만 있음",
|
||||
"양쪽 다 있음",
|
||||
]);
|
||||
await expect
|
||||
.poll(() => filterButtons)
|
||||
.toEqual(["바론에만 있음", "웍스에만 있음", "양쪽 다 있음"]);
|
||||
|
||||
await page.getByRole("button", { name: "웍스에만 있음" }).click();
|
||||
await expect(page.getByText("박웍스")).not.toBeVisible();
|
||||
@@ -481,16 +479,17 @@ test.describe("Worksmobile tenant management", () => {
|
||||
Math.max(pageOverflow.documentScrollWidth, pageOverflow.bodyScrollWidth),
|
||||
).toBeLessThanOrEqual(pageOverflow.viewportWidth + 1);
|
||||
|
||||
const userTableScroll = await page.locator("table").first().evaluate(
|
||||
(table) => {
|
||||
const userTableScroll = await page
|
||||
.locator("table")
|
||||
.first()
|
||||
.evaluate((table) => {
|
||||
const container = table.parentElement?.parentElement as HTMLElement;
|
||||
return {
|
||||
clientWidth: container.clientWidth,
|
||||
overflowX: window.getComputedStyle(container).overflowX,
|
||||
scrollWidth: container.scrollWidth,
|
||||
};
|
||||
},
|
||||
);
|
||||
});
|
||||
expect(userTableScroll.overflowX).toBe("auto");
|
||||
expect(userTableScroll.scrollWidth).toBeGreaterThan(
|
||||
userTableScroll.clientWidth,
|
||||
|
||||
Reference in New Issue
Block a user