From 791ce6d5267046b7fadd0c31b7f3396938c81739 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 28 Jun 2026 20:54:03 +0900 Subject: [PATCH] test(e2e): wait for tax profile dialog before assertions --- tests/e2e/admin-crm-pages.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/e2e/admin-crm-pages.spec.ts b/tests/e2e/admin-crm-pages.spec.ts index 5236b63..e6b4c7b 100644 --- a/tests/e2e/admin-crm-pages.spec.ts +++ b/tests/e2e/admin-crm-pages.spec.ts @@ -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 }) => {