This commit is contained in:
@@ -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([]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user