Fix admin routing and Playwright smoke checks
TaxBaik CI/CD / build-and-deploy (push) Successful in 5m22s

This commit is contained in:
2026-07-04 23:07:16 +09:00
parent fd5178b118
commit 7002d50a4e
30 changed files with 95 additions and 59 deletions
+12 -4
View File
@@ -41,11 +41,19 @@ export async function loginThroughAdminUi(
password: string,
) {
await page.goto(`${baseUrl}/admin/login`);
await page.locator('input[placeholder="사용자명"]').fill(username);
await page.locator('input[placeholder="비밀번호"]').fill(password);
await page.getByRole('button', { name: '로그인' }).click();
const usernameInput = page.locator('input[placeholder="사용자명"]');
const passwordInput = page.locator('input[placeholder="비밀번호"]');
const loginButton = page.locator('#admin-login-submit');
await usernameInput.fill(username);
await passwordInput.fill(password);
await expect(loginButton).toBeEnabled({ timeout: 30_000 });
await expect(loginButton).toContainText('로그인');
await loginButton.click();
await expect(page).toHaveURL(/\/taxbaik\/admin\/dashboard$/);
await expect(page.getByRole('heading', { name: '대시보드' }).first()).toBeVisible({ timeout: 20_000 });
await page.locator('#blazor-loading').waitFor({ state: 'hidden', timeout: 30_000 }).catch(() => {});
await expect(page.getByRole('link', { name: '로그아웃' })).toBeVisible({ timeout: 20_000 });
await expect(page.getByText('세무 운영 콘솔')).toBeVisible({ timeout: 20_000 });
}
export async function navigateInBlazor(page: Page, targetUrl: string) {