E2E Test Migration Mapping

Back to Index

Playwright E2E (tests/e2e/) → Vitest Integration (src/__tests__/pages/) | Updated 2026-03-28

170
E2E Total
48
Integration Total
41
Replaced
16
Partial
97
Gap
12
Smoke Only

Migration Coverage

Replaced 24.4% Partial 9.5% Gap 57.6% Smoke 7.1% Skip 1.2%

Module-by-Module Mapping

Module E2E (Playwright) Status Integration (Vitest) Notes
Account account/account-membership.spec.ts REPLACED account/account-membership.integration.test.tsx
account/account-preferences.spec.ts REPLACED account/account-preferences.integration.test.tsx
Admin admin.spec.ts REPLACED admin/admin.integration.test.tsx
admin/admin-dashboard.spec.ts REPLACED admin/admin-dashboard-visibility.integration.test.tsx
admin/dashboard.integration.test.tsx
Two tests cover dashboard
admin/ai-insights.spec.ts GAP
admin/audit-center.spec.ts GAP
admin/cash-drawer-workspace.spec.ts GAP
admin/data-migration.spec.ts GAP
admin/role-permission-levels.spec.ts GAP
admin/store-scoped-permissions.spec.ts GAP
Agent agent-acquisition-settings.spec.ts GAP
agent-competitor-manage.spec.ts GAP
agent-mode.spec.ts GAP
agent-oauth-connect.spec.ts GAP
agent-workspace.spec.ts GAP
AI ai-template-chat.spec.ts GAP
Appointments appointment-board-schedule.spec.ts REPLACED appointments/board.integration.test.tsx
appointments.spec.ts PARTIAL appointments/appointments-list.integration.test.tsx board + detail are new additions
Booking booking/staff-booking.spec.ts PARTIAL booking/public-booking.integration.test.tsx Staff-specific flows not covered
booking/walk-in.spec.ts PARTIAL booking/public-booking.integration.test.tsx Walk-in specific logic missing
Cash Drawer cash-drawer/day-end-closeout.spec.ts GAP
cash-drawer/management.spec.ts GAP
Chat chat-widget.spec.ts GAP
Checkout checkout-flow.spec.ts PARTIAL checkout/feature-flag-checkout.integration.test.tsx Only feature-flag aspect covered
complete-appointment-flow.spec.ts.skip SKIP Skipped in E2E
Customers customers/create.spec.ts PARTIAL guests/guests.integration.test.tsx Renamed customers→guests
customers/details.spec.ts PARTIAL guests/guests.integration.test.tsx Detail view not fully covered
customers/list.spec.ts PARTIAL guests/guests.integration.test.tsx List + search partially
customers/relationships.spec.ts GAP
Day End / Debug day-end-closeout.spec.ts GAP
debug-permissions.spec.ts GAP
developer-settings.spec.ts GAP
Database database-switch-api.spec.ts GAP
Employees employees.spec.ts REPLACED employees/employees.integration.test.tsx
employees/details.spec.ts REPLACED employees/employee-detail.integration.test.tsx
employees/employee-earnings-tips.spec.ts REPLACED employees/employee-earnings-tips.integration.test.tsx
employees/employee-schedules-detail.spec.ts REPLACED employees/employee-schedules-detail.integration.test.tsx
employees/employee-time-cards.spec.ts REPLACED employees/employee-time-cards.integration.test.tsx
employees/tips.spec.ts REPLACED employees/tips.integration.test.tsx
Feature Flags feature-flag-checkout.spec.ts REPLACED checkout/feature-flag-checkout.integration.test.tsx
Full Flow full-flow/01-auth-verification.spec.ts GAP Comprehensive flow tests
full-flow/02-data-setup.spec.ts GAP
full-flow/02a-store-crud.spec.ts GAP
full-flow/02b-guest-crud.spec.ts GAP
full-flow/02c-employee-crud.spec.ts GAP
full-flow/02d-schedule-crud.spec.ts GAP
full-flow/02e-service-crud.spec.ts GAP
full-flow/02f-discount-crud.spec.ts GAP
full-flow/02g-giftcard-crud.spec.ts GAP
full-flow/02h-terminal-crud.spec.ts GAP
full-flow/03-appointments.spec.ts GAP
full-flow/03a-appointment-flow.spec.ts GAP
full-flow/04-status-flow.spec.ts GAP
full-flow/05-payment-pairwise.spec.ts GAP
full-flow/06-verification.spec.ts GAP
full-flow/07-rbac.spec.ts GAP
full-flow/08-checkin.spec.ts GAP
full-flow/09-invoice.spec.ts GAP
full-flow/10-loyalty.spec.ts GAP
full-flow/11-cash-drawer.spec.ts GAP
full-flow/12-guest-app-welcome.spec.ts GAP
full-flow/12-revenue-loop.spec.ts GAP
Gift Cards gift-cards/claim.spec.ts REPLACED gift-cards/claim.integration.test.tsx
gift-cards/payment.spec.ts GAP
gift-cards/purchase.spec.ts GAP
gift-cards/sell-preprinted.spec.ts GAP
Guest guest-app-customization.spec.ts GAP
guest-list-actions.spec.ts GAP
Homepage homepage-modules-toggle.spec.ts PARTIAL home.integration.test.tsx Module toggle not fully covered
Invoices invoices/management.spec.ts GAP
Kiosk kiosk-booking.spec.ts PARTIAL kiosk/kiosk-checkin.integration.test.tsx Booking flow not fully covered
kiosk-checkin.spec.ts REPLACED kiosk/kiosk-checkin.integration.test.tsx
Landing landing.spec.ts GAP
Login login.spec.ts REPLACED login/login.integration.test.tsx
Loyalty loyalty/admin-loyalty.spec.ts GAP
loyalty/custom-tiers.spec.ts GAP
loyalty/dashboard.spec.ts GAP
loyalty/gift-card-purchase.spec.ts GAP
loyalty/packages.spec.ts GAP
loyalty/points-redemption.spec.ts GAP
loyalty/referral-rewards.spec.ts REPLACED loyalty/referral-rewards.integration.test.tsx
loyalty/referral.spec.ts GAP
loyalty/subscriptions.spec.ts GAP
Marketing marketing/ai-image-generator.spec.ts PARTIAL admin/marketing/marketing.integration.test.tsx General marketing test covers some
marketing/analytics.spec.ts PARTIAL admin/marketing/marketing.integration.test.tsx
marketing/experiments.spec.ts GAP
marketing/ipad-showcase.spec.ts GAP
marketing/promotion-designs-tab.spec.ts GAP
marketing/research.spec.ts GAP
marketing/rule-management.spec.ts GAP
marketing/strategies.spec.ts GAP
marketing/visual-email-editor.spec.ts GAP
Monitoring monitoring/monitoring-dashboard.spec.ts REPLACED monitoring/monitoring-dashboard.integration.test.tsx
monitoring/monitoring.integration.test.tsx
Payment payment-enhancement.spec.ts GAP CRITICAL: No payment integration tests
payment-success.spec.ts GAP
payment/processing.spec.ts GAP
payment/webhooks.spec.ts GAP
Payroll payroll.spec.ts GAP
payroll/commission-rules.spec.ts GAP
payroll/employee-earnings.spec.ts GAP
payroll/payroll-run.spec.ts GAP
Permission permission-route-protection.spec.ts REPLACED admin/permission-route-protection.integration.test.tsx
permission-appointment-detail.spec.ts GAP
permission-list-pages.spec.ts GAP
permission-view-manage.spec.ts GAP
Platform platform-analytics.spec.ts REPLACED platform/platform-analytics.integration.test.tsx
platform-backups.spec.ts GAP
platform-tenants.spec.ts PARTIAL platform/tenant-lifecycle.integration.test.tsx Lifecycle covered, CRUD partial
platform/analytics.spec.ts REPLACED platform/platform-analytics.integration.test.tsx Duplicate of platform-analytics
platform/feature-flags.spec.ts GAP
platform/monitoring-alerts.spec.ts GAP
platform/tenants.spec.ts REPLACED platform/tenant-lifecycle.integration.test.tsx Duplicate of platform-tenants
Queue queue-display.spec.ts REPLACED kiosk/queue-display.integration.test.tsx
Receipts receipts/management.spec.ts GAP
Reports reports/benchmark-report.spec.ts GAP
reports/business-report.spec.ts REPLACED reports/finance.integration.test.tsx Finance covers business report aspects
reports/commission-report.spec.ts GAP
reports/employee-report.spec.ts GAP
reports/entitlements-report.spec.ts GAP
reports/entitlements.spec.ts GAP
reports/finance-report.spec.ts GAP Separate from business-report
reports/leaderboard-report.spec.ts GAP
reports/loyalty-report.spec.ts GAP
reports/multi-store-comparison.spec.ts GAP
reports/operational-report.spec.ts GAP
reports/performance.spec.ts GAP
reports/profit-report.spec.ts GAP
reports/profit.spec.ts GAP
reports/sales-report.spec.ts GAP
reports/working-hours-report.spec.ts GAP
reports/working-hours.spec.ts GAP
Research research-platform.spec.ts GAP
Role role-management.spec.ts GAP
Routes routes.spec.ts.skip SKIP Skipped in E2E
Schedule Templates schedule-templates/navigation.spec.ts PARTIAL employees/schedule-detail.integration.test.tsx
employees/schedules.integration.test.tsx
Partial overlap via employee schedules
schedule-templates/schedule-generation.spec.ts PARTIAL employees/schedules.integration.test.tsx
schedule-templates/template-crud.spec.ts GAP CRUD operations not covered
Services services.spec.ts REPLACED services/services.integration.test.tsx
Settings settings-default-override.spec.ts REPLACED settings/settings-default-override.integration.test.tsx
settings-hierarchy.spec.ts GAP
settings-ops-control-plane.spec.ts GAP
Sidebar sidebar-persistence.spec.ts GAP
Smoke smoke/01-*.spec.ts SMOKE Keep as-is, different purpose
smoke/02-*.spec.ts SMOKE
smoke/03-*.spec.ts SMOKE
smoke/04-*.spec.ts SMOKE
smoke/05-*.spec.ts SMOKE
smoke/06-*.spec.ts SMOKE
smoke/07-*.spec.ts SMOKE
smoke/08-*.spec.ts SMOKE
smoke/09-*.spec.ts SMOKE
smoke/10-*.spec.ts SMOKE
smoke/11-*.spec.ts SMOKE
smoke/12-*.spec.ts SMOKE
Static static-pages.spec.ts GAP
Stores stores.spec.ts REPLACED stores/stores.integration.test.tsx
stores/store-detail-settings.spec.ts REPLACED stores/store-detail-settings.integration.test.tsx
store-filter-sync.spec.ts GAP
store-selector.spec.ts GAP
Templates template-variable-schema.spec.ts GAP
template-variable-system.spec.ts GAP
Tenant tenant-lifecycle.spec.ts REPLACED platform/tenant-lifecycle.integration.test.tsx
tenant-routing.spec.ts GAP
Terminal terminal-checkin.spec.ts GAP
Time Clock time-clock.spec.ts GAP
Transactions transactions/transaction-detail.spec.ts REPLACED transactions/transaction-detail.integration.test.tsx
Unified unified-email-editor.spec.ts GAP
unified-template-creation.spec.ts GAP
URL url-redirects.spec.ts GAP
Web Booking web-booking.spec.ts PARTIAL booking/public-booking.integration.test.tsx Public booking covers partial

Gap Analysis & Priority

Full Flow (22 tests) 22 GAP HIGH
Comprehensive end-to-end flow tests covering auth, CRUD, appointments, payment, RBAC, loyalty, cash drawer, etc. These are integration scenario tests that validate cross-module interactions. Consider whether the individual module integration tests collectively cover these flows, or if dedicated flow tests are still needed.
Reports (16/17 GAP) 16 GAP HIGH
Only finance report is covered. Missing: benchmark, commission, employee, entitlements (x2), leaderboard, loyalty, multi-store comparison, operational, performance, profit (x2), sales, working-hours (x2). Reports are read-heavy (data rendering + export), good candidates for lightweight integration tests.
Payment (4 tests) 4 GAP CRITICAL
Zero integration test coverage for payment flows: enhancement, success page, processing, webhooks. Payment is a core revenue path -- this is the highest-risk gap.
Loyalty (8/9 GAP) 8 GAP HIGH
Only referral-rewards covered. Missing: admin-loyalty, custom-tiers, dashboard, gift-card-purchase, packages, points-redemption, referral, subscriptions.
Marketing (7/9 GAP) 7 GAP MEDIUM
Only ai-image-generator and analytics have partial coverage via admin/marketing tests. Missing: experiments, ipad-showcase, promotion-designs-tab, research, rule-management, strategies, visual-email-editor.
Admin (6/8 GAP) 6 GAP MEDIUM
Missing: ai-insights, audit-center, cash-drawer-workspace, data-migration, role-permission-levels, store-scoped-permissions.
Agent (5 tests) 5 GAP MEDIUM
All agent-related tests are gaps: acquisition-settings, competitor-manage, mode, oauth-connect, workspace.
Payroll (4 tests) 4 GAP HIGH
Zero coverage: payroll overview, commission-rules, employee-earnings, payroll-run. Payroll is business-critical for salon operations.
Permission (3/4 GAP) 3 GAP MEDIUM
Only route-protection covered. Missing: appointment-detail permissions, list-pages permissions, view-manage permissions.
Gift Cards (3/4 GAP) 3 GAP MEDIUM
Only claim covered. Missing: payment, purchase, sell-preprinted.
Other Gaps (misc) 18 GAP LOW
cash-drawer (2), chat-widget, day-end-closeout, debug-permissions, developer-settings, database-switch-api, guest-app-customization, guest-list-actions, invoices/management, landing, receipts/management, research-platform, role-management, sidebar-persistence, static-pages, template-variable-* (2), terminal-checkin, time-clock, unified-* (2), url-redirects, tenant-routing, store-filter-sync, store-selector.

New Integration Tests (No E2E Counterpart)

These integration tests were created without a corresponding Playwright E2E test -- they represent new or expanded coverage.

Integration Test Notes
admin/admin-services.integration.test.tsx Admin services management -- new coverage
admin/service-detail.integration.test.tsx Service detail page -- new coverage
admin/storybook.integration.test.tsx Storybook component testing -- dev tooling
admin/marketing/discounts.integration.test.tsx Discount management -- new
admin/marketing/email-templates.integration.test.tsx Email template management -- new
admin/marketing/promotion.integration.test.tsx Promotion management -- new
admin/marketing/sms-templates.integration.test.tsx SMS template management -- new
admin/settings/settings.integration.test.tsx Admin settings page -- new
appointments/appointment-detail.integration.test.tsx Appointment detail view -- expanded coverage
appointments/realtime.integration.test.tsx Realtime appointment updates -- new
employees/schedule-detail.integration.test.tsx Employee schedule detail -- new granularity
employees/schedules.integration.test.tsx Employee schedules list -- new
login/login-args.test.tsx Login argument handling -- unit-level
stores/store-detail.integration.test.tsx Store detail page -- new coverage