Fix admin client and auth flows
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m34s

This commit is contained in:
2026-07-07 18:17:26 +09:00
parent 09f07adf3f
commit fc655e20c1
50 changed files with 148 additions and 301 deletions
+6 -5
View File
@@ -26,14 +26,14 @@ test.describe('admin authentication', () => {
});
await page.goto(`${baseUrl}/admin/login`);
await expect(page.locator('input[placeholder="사용자명"]')).toBeVisible();
await expect(page.locator('input[placeholder="비밀번호"]')).toBeVisible();
await expect(page.locator('#Username')).toBeVisible();
await expect(page.locator('#Password')).toBeVisible();
// Wait for form to be fully ready
await page.waitForTimeout(500);
const usernameInput = page.locator('input[placeholder="사용자명"]');
const passwordInput = page.locator('input[placeholder="비밀번호"]');
const usernameInput = page.locator('#Username');
const passwordInput = page.locator('#Password');
const loginButton = page.getByRole('button', { name: '로그인' });
await usernameInput.fill(username);
@@ -74,7 +74,8 @@ test.describe('admin authentication', () => {
await expect(page).toHaveURL(/\/taxbaik\/admin\/dashboard$/, { timeout: 20_000 });
// WASM 부팅에 시간이 걸릴 수 있으므로 더 긴 타임아웃 사용
await expect(page.getByRole('heading', { name: '대시보드' }).first()).toBeVisible({ timeout: 60_000 });
await expect(page.locator('.admin-page-hero')).toBeVisible({ timeout: 60_000 });
await expect(page.locator('.admin-page-hero')).toContainText('대시보드');
await expect(page.getByRole('link', { name: /로그아웃/ })).toBeVisible({ timeout: 30_000 });
expect(consoleErrors, 'browser console/page errors').toEqual([]);
});