forked from baron/baron-sso
custom claim 권한체크 확인
This commit is contained in:
@@ -215,6 +215,12 @@ async function blurDepartmentEditor(page: Page): Promise<void> {
|
||||
}
|
||||
|
||||
async function submitDepartmentEditor(page: Page): Promise<void> {
|
||||
const saveButton = page.getByRole("button", { name: "저장" });
|
||||
if ((await saveButton.count()) > 0) {
|
||||
await saveButton.click({ force: true });
|
||||
await page.waitForTimeout(250);
|
||||
return;
|
||||
}
|
||||
const textbox = page.getByRole("textbox", { name: "소속" });
|
||||
if ((await textbox.count()) > 0) {
|
||||
await textbox.press("Enter");
|
||||
@@ -230,22 +236,12 @@ async function submitDepartmentEditor(page: Page): Promise<void> {
|
||||
|
||||
async function fillDepartmentField(page: Page, value: string): Promise<void> {
|
||||
const textbox = page.getByRole("textbox", { name: "소속" });
|
||||
if (!isMobileProject(page)) {
|
||||
if ((await textbox.count()) > 0) {
|
||||
await textbox.click({ force: true });
|
||||
await page.waitForTimeout(100);
|
||||
}
|
||||
const coords = coordsFor(page);
|
||||
await fillAt(page, coords.departmentInputX, coords.departmentInputY, value);
|
||||
if ((await textbox.count()) > 0) {
|
||||
await textbox.fill(value);
|
||||
await page.waitForTimeout(100);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((await textbox.count()) > 0) {
|
||||
await textbox.click({ force: true });
|
||||
await page.waitForTimeout(100);
|
||||
await replaceFocusedText(page, value);
|
||||
return;
|
||||
}
|
||||
if (isMobileProject(page)) {
|
||||
throw new Error("Department textbox was not found.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user