forked from baron/baron-sso
adminfront-tests 검색 placeholder 기대값을 현재 UI 문구에 맞게 수정
This commit is contained in:
@@ -190,12 +190,12 @@ test.describe("Tenants Management", () => {
|
||||
await page.goto("/tenants");
|
||||
|
||||
await page
|
||||
.getByPlaceholder(/테넌트 이름 또는 슬러그 검색|search/i)
|
||||
.getByPlaceholder(/이름 또는 슬러그, ID 검색|search/i)
|
||||
.fill("team-1");
|
||||
await expect(page.locator("table")).toContainText("Platform");
|
||||
|
||||
await page
|
||||
.getByPlaceholder(/테넌트 이름 또는 슬러그 검색|search/i)
|
||||
.getByPlaceholder(/이름 또는 슬러그, ID 검색|search/i)
|
||||
.fill("");
|
||||
await page
|
||||
.locator("tbody tr")
|
||||
@@ -610,7 +610,7 @@ test.describe("Tenants Management", () => {
|
||||
|
||||
await page.getByRole("button", { name: "다른 테넌트 선택" }).click();
|
||||
await expect(page.getByRole("dialog")).toBeVisible();
|
||||
await page.getByPlaceholder("테넌트 이름 또는 슬러그 검색").fill("outside");
|
||||
await page.getByPlaceholder("이름 또는 슬러그, ID 검색").fill("outside");
|
||||
await page.getByRole("button", { name: /외부회사/ }).click();
|
||||
await expect(page.getByRole("button", { name: /외부회사/ })).toHaveCount(0);
|
||||
|
||||
|
||||
@@ -602,11 +602,11 @@ test.describe("User Management", () => {
|
||||
await expect(page.getByText("Load User 0")).toBeVisible();
|
||||
const initialMs = performance.now() - initialStartedAt;
|
||||
|
||||
const searchInput = page.getByPlaceholder("이름 또는 이메일 검색...");
|
||||
const searchInput = page.getByPlaceholder("이름 또는 이메일 검색");
|
||||
await searchInput.fill("Load User 19999");
|
||||
const searchMs = await page.evaluate(async () => {
|
||||
const input = Array.from(document.querySelectorAll("input")).find(
|
||||
(candidate) => candidate.placeholder === "이름 또는 이메일 검색...",
|
||||
(candidate) => candidate.placeholder === "이름 또는 이메일 검색",
|
||||
);
|
||||
|
||||
if (!input) {
|
||||
|
||||
Reference in New Issue
Block a user