# Smoke Test Checklist

This checklist verifies that the folder reorganization did not break any functionality.

## Pre-Test Setup
- [ ] Ensure database is accessible
- [ ] Clear application cache: `php artisan cache:clear`
- [ ] Clear route cache: `php artisan route:clear`
- [ ] Clear config cache: `php artisan config:clear`
- [ ] Clear view cache: `php artisan view:clear`

## Authentication & Access
- [ ] Login page loads correctly (`/login`)
- [ ] Can log in with valid credentials
- [ ] Dashboard is accessible after login (`/`)

## Dashboard Feature
- [ ] Dashboard page loads (`/`)
- [ ] KPI cards display correctly
- [ ] Charts render properly
- [ ] Filters work (date range, region, package)
- [ ] Dashboard export functionality works (`/dashboard-export`)
- [ ] Saved dashboard preview works (`/saved-dashboard/{id}/preview`)

## Customer Management
- [ ] Customer list page loads (`/customers`)
- [ ] Can view customer details
- [ ] Can create new customer
- [ ] Can edit customer
- [ ] User  actions work (pause subscription, deactivate)
- [ ] User export works (`/user-export`)

## Product & Packages
- [ ] Product Admin page loads (`/products`)
- [ ] Can view packages list
- [ ] Can create new package (`/products/create-package`)
- [ ] Can edit package (`/products/edit-package/{id}`)
- [ ] Can create product (`/products/create-product`)
- [ ] Can edit product (`/products/edit-product/{id}`)

## BackOffice
- [ ] BackOffice Admin page loads
- [ ] Email templates table displays
- [ ] SMS templates table displays
- [ ] Can create email template
- [ ] Can edit email template
- [ ] Can create SMS template
- [ ] Email template API works (`POST /email-templates`)

## Tax Administration
- [ ] Tax Administration page loads (`/tax-istration`)
- [ ] Regions table displays
- [ ] Tax groups table displays
- [ ] Business unit mappings table displays
- [ ] Can create tax group
- [ ] Can edit tax group
- [ ] Can delete tax group
- [ ] Can create business unit mapping
- [ ] Can edit business unit mapping
- [ ] Can delete business unit mapping
- [ ] Tax API endpoints work:
  - [ ] `GET /operations/tax/regions`
  - [ ] `POST /operations/tax/regions`
  - [ ] `GET /operations/tax/groups`
  - [ ] `GET /operations/tax/bu-mappings`
  - [ ] `PUT /operations/tax/bu-mappings/{id}`
  - [ ] `GET /tax-groups/{id}`

## Ticket Administration
- [ ] Ticket Admin page loads (`/tickets`)
- [ ] Ticket statistics display correctly
- [ ] Ticket tables render
- [ ] Charts display
- [ ] Ticket export works (`/ticket-export`)

## Billing
- [ ] Billing Admin page loads
- [ ] Can view campaigns
- [ ] Can create campaign
- [ ] Can edit campaign
- [ ] Dunning management works

## Analytics & Admin
- [ ] Business Analytics page loads
- [ ] System Admin page loads (`/system-`)
- [ ] Business Units API works (`GET /system-/business-units`)
- [ ] User Admin page loads
- [ ] Super Admin page loads
- [ ] APIs & Integrations page loads

## Segment Builder (Analytics)
- [ ] Segment Builder page accessible
- [ ] Can list segments (`GET /analytics-/segment/list`)
- [ ] Can preview segment data (`POST /analytics-/segment/preview`)
- [ ] Can save segment (`POST /analytics-/segment/save`)
- [ ] Can view segment detail (`GET /analytics-/segment/{id}`)
- [ ] Can toggle cohort status (`POST /analytics-/segment/{id}/toggle-cohort`)

## Invoice
- [ ] Invoice preview works (`/invoice/preview/{invoice_id}`)
- [ ] Invoice download works (`/invoice/download/{invoice_id}`)

## Livewire Components
- [ ] BackOffice Livewire components work:
  - [ ] Email templates table
  - [ ] SMS templates table
  - [ ] Coupons table
  - [ ] Vouchers table
  - [ ] Content rich editor
- [ ] Tax Livewire components work:
  - [ ] Tax groups search
  - [ ] Regions search
  - [ ] BU mapping search
  - [ ] Tax group forms
  - [ ] BU mapping forms
- [ ] Ticket Livewire components work:
  - [ ] Ticket statistics
  - [ ] Ticket tables
  - [ ] Ticket charts
  - [ ] Ticket category dropdown

## Error Handling
- [ ] 404 errors display correctly
- [ ] 403 errors display correctly
- [ ] 500 errors display correctly (if applicable)
- [ ] Validation errors display correctly

## Navigation
- [ ] All navigation menu items work
- [ ] Breadcrumbs display correctly
- [ ] User menu works
- [ ] Account page loads

## API Endpoints
Test all API endpoints return correct responses:
- [ ] Dashboard export API
- [ ] User export API
- [ ] Ticket export API
- [ ] Email template API
- [ ] Tax istration APIs
- [ ] Segment builder APIs
- [ ] Business units API

## Browser Console
- [ ] No JavaScript errors in browser console
- [ ] No 404 errors for assets
- [ ] No CORS errors

## Performance
- [ ] Pages load within acceptable time
- [ ] No memory leaks observed
- [ ] Database queries are efficient

## Notes
- Test in multiple browsers if possible (Chrome, Firefox, Safari)
- Test with different user roles if applicable
- Check application logs for any errors

---

## Test Results

**Date:** _______________
**Tester:** _______________
**Environment:** _______________

**Overall Status:** [ ] PASS [ ] FAIL [ ] PARTIAL

**Issues Found:**
1. 
2. 
3. 

**Additional Notes:**

