test(e2e): align browser checks with current UI
TaxBaik CI/CD / build-and-deploy (push) Successful in 53s
TaxBaik CI/CD / build-and-deploy (push) Successful in 53s
This commit is contained in:
@@ -15,75 +15,55 @@ test.describe('admin CRM pages', () => {
|
||||
await navigateInBlazor(page, `${baseUrl}/admin/tax-profiles`);
|
||||
await expect(page).toHaveURL(/\/admin\/tax-profiles$/);
|
||||
|
||||
// 제목 확인
|
||||
await expect(page.getByText('세무 프로필 관리')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-page-title')).toHaveText('세무 프로필', { timeout: 15_000 });
|
||||
|
||||
// 새 프로필 추가 버튼 확인
|
||||
await expect(page.getByRole('button', { name: /새 프로필 추가/ })).toBeVisible();
|
||||
|
||||
// MudDataGrid 로드 확인 (테이블 or 비어있음 메시지)
|
||||
const gridOrEmpty = page.locator('.admin-grid, .mud-alert');
|
||||
await expect(gridOrEmpty).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-grid, .mud-alert')).toBeVisible({ timeout: 15_000 });
|
||||
});
|
||||
|
||||
test('TaxFilingSchedules page loads with D-day tracking', async ({ page }) => {
|
||||
await navigateInBlazor(page, `${baseUrl}/admin/tax-filing-schedules`);
|
||||
await expect(page).toHaveURL(/\/admin\/tax-filing-schedules$/);
|
||||
|
||||
// 제목 확인
|
||||
await expect(page.getByText('신고 일정 관리')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-page-title')).toHaveText('신고 일정', { timeout: 15_000 });
|
||||
|
||||
// 새 일정 추가 버튼
|
||||
await expect(page.getByRole('button', { name: /새 일정 추가/ })).toBeVisible();
|
||||
|
||||
// 그리드 로드
|
||||
const gridOrEmpty = page.locator('.admin-grid, .mud-alert');
|
||||
await expect(gridOrEmpty).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-grid, .mud-alert')).toBeVisible({ timeout: 15_000 });
|
||||
});
|
||||
|
||||
test('Contracts page loads with MRR display', async ({ page }) => {
|
||||
await navigateInBlazor(page, `${baseUrl}/admin/contracts`);
|
||||
await expect(page).toHaveURL(/\/admin\/contracts$/);
|
||||
|
||||
// 제목 확인
|
||||
await expect(page.getByText('계약 관리')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-page-title')).toHaveText('계약 관리', { timeout: 15_000 });
|
||||
|
||||
// 새 계약 추가 버튼
|
||||
await expect(page.getByRole('button', { name: /새 계약 추가/ })).toBeVisible();
|
||||
|
||||
// 그리드 로드
|
||||
const gridOrEmpty = page.locator('.admin-grid, .mud-alert');
|
||||
await expect(gridOrEmpty).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-grid, .mud-alert')).toBeVisible({ timeout: 15_000 });
|
||||
});
|
||||
|
||||
test('ConsultingActivities page loads with activity records', async ({ page }) => {
|
||||
await navigateInBlazor(page, `${baseUrl}/admin/consulting-activities`);
|
||||
await expect(page).toHaveURL(/\/admin\/consulting-activities$/);
|
||||
|
||||
// 제목 확인
|
||||
await expect(page.getByText('상담 활동 관리')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-page-title')).toHaveText('상담 활동 관리', { timeout: 15_000 });
|
||||
|
||||
// 새 활동 기록 버튼
|
||||
await expect(page.getByRole('button', { name: /새 활동 기록/ })).toBeVisible();
|
||||
|
||||
// 그리드 로드
|
||||
const gridOrEmpty = page.locator('.admin-grid, .mud-alert');
|
||||
await expect(gridOrEmpty).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-grid, .mud-alert')).toBeVisible({ timeout: 15_000 });
|
||||
});
|
||||
|
||||
test('RevenueTrackings page loads with payment status tracking', async ({ page }) => {
|
||||
await navigateInBlazor(page, `${baseUrl}/admin/revenue-trackings`);
|
||||
await expect(page).toHaveURL(/\/admin\/revenue-trackings$/);
|
||||
|
||||
// 제목 확인
|
||||
await expect(page.getByText('수익 추적 관리')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-page-title')).toHaveText('수익 추적 관리', { timeout: 15_000 });
|
||||
|
||||
// 새 청구 추가 버튼
|
||||
await expect(page.getByRole('button', { name: /새 청구 추가/ })).toBeVisible();
|
||||
|
||||
// 그리드 로드
|
||||
const gridOrEmpty = page.locator('.admin-grid, .mud-alert');
|
||||
await expect(gridOrEmpty).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.locator('.admin-grid, .mud-alert')).toBeVisible({ timeout: 15_000 });
|
||||
});
|
||||
|
||||
test('CRM navigation group is visible and expandable', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user