test(e2e): wait for tax profile dialog before assertions
TaxBaik CI/CD / build-and-deploy (push) Successful in 54s

This commit is contained in:
2026-06-28 20:54:03 +09:00
parent 61083a5bb1
commit 791ce6d526
+2 -4
View File
@@ -91,15 +91,13 @@ test.describe('admin CRM pages', () => {
test('TaxProfiles modal dialog opens on add button click', async ({ page }) => {
await navigateInBlazor(page, `${baseUrl}/admin/tax-profiles`);
// 추가 버튼 클릭
const addButton = page.getByRole('button', { name: /새 프로필 추가/ });
await addButton.click();
// 모달 열림 확인 (취소 버튼이 나타나야 함)
await expect(page.getByText('새 세무 프로필 추가')).toBeVisible({ timeout: 10_000 });
await expect(page.getByRole('button', { name: '취소' }).first()).toBeVisible({ timeout: 5_000 });
// 모달 폼 필드 확인
await expect(page.locator('input[aria-label*="고객"]').or(page.locator('select'))).toBeVisible({ timeout: 5_000 });
await expect(page.getByLabel('고객')).toBeVisible({ timeout: 5_000 });
});
test('No console errors on CRM page navigation', async ({ page }) => {