Files
taxbaik/tests/e2e
kjh2064 42e73fa694
TaxBaik CI/CD / build-and-deploy (push) Successful in 52s
test: add comprehensive E2E tests for CRM pages
Step 5: E2E Testing Framework
- Create admin-crm-pages.spec.ts with 8 test cases
- Test CRM page loads: TaxProfiles, TaxFilingSchedules, Contracts, ConsultingActivities, RevenueTrackings
- Verify MudDataGrid rendering (with data or empty message)
- Verify create dialog functionality (modal opens on button click)
- Test navigation group visibility and expandability
- Validate no console errors during navigation
- Reuse existing admin-auth helpers (loginThroughAdminUi, navigateInBlazor)

Test Coverage:
1. TaxProfiles page load + add button
2. TaxFilingSchedules page load + D-day tracking UI
3. Contracts page load + MRR display
4. ConsultingActivities page load + activity records
5. RevenueTrackings page load + payment status
6. CRM navigation group (5 links visible + expandable)
7. Modal dialog open (TaxProfiles add flow)
8. No console errors (cross-page navigation)

Test Architecture:
- Reuses existing E2E infrastructure (Playwright config, helpers)
- Follows admin-smoke.spec.ts pattern for consistency
- Uses loginThroughAdminUi() for admin session setup
- Uses navigateInBlazor() for SPA navigation
- Respects E2E_BASE_URL and E2E_ADMIN_PASSWORD env vars
- Timeout: 15s for page load, 5s for modal
- Parallel execution on CI (fullyParallel: true)

Build Integration:
- No breaking changes
- No new dependencies required
- Ready for CI/CD pipeline (GitHub Actions, Gitea CI)
- Supports Green-Blue deployment testing

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-28 17:54:22 +09:00
..