test: 관리자 e2e 검증 안정화
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m9s
TaxBaik Browser E2E / browser-e2e (push) Failing after 3m17s

This commit is contained in:
2026-06-27 21:24:47 +09:00
parent 38e81a7514
commit 9f7e01652d
5 changed files with 42 additions and 19 deletions
+6 -6
View File
@@ -23,16 +23,16 @@ test.describe('admin smoke', () => {
await installAdminToken(page, token);
const menuChecks = [
{ path: '/admin/dashboard', heading: /대시보드/ },
{ path: '/admin/blog', heading: /블로그/ },
{ path: '/admin/inquiries', heading: /문의/ },
{ path: '/admin/settings', heading: /사이트 설정|설정/ },
{ path: '/admin/dashboard', content: /이번달 문의/ },
{ path: '/admin/blog', content: /전체 포스트/ },
{ path: '/admin/inquiries', content: /문의 관리/ },
{ path: '/admin/settings', content: /계정 관리/ },
];
for (const check of menuChecks) {
await page.goto(`${baseUrl}${check.path}`);
await expect(page).toHaveURL(new RegExp(`${check.path.replace(/\//g, '\\/')}$/`));
await expect(page.getByRole('heading', { name: check.heading })).toBeVisible({ timeout: 20_000 });
await expect(page).toHaveURL(new RegExp(`${check.path}$`));
await expect(page.locator('.mud-main-content').getByText(check.content).first()).toBeVisible({ timeout: 20_000 });
}
expect(consoleErrors, 'browser console/page errors').toEqual([]);