Documentation

Testing & QA

Every slice must pass the same checks. Tests use Django's test client and a temporary database.

Required#

python manage.py check
python manage.py makemigrations --check --dry-run
python manage.py test
python scripts/audit_ui.py
python scripts/audit_i18n.py
node --check static/js/zephai.js
node --check static/js/zephai-app.js
node --check static/js/studio.js
node --check static/js/banner-editor.js
node --check static/js/email-editor.js

What is covered#

  • Public routes for anonymous visitors, including CMS pages, docs and status.
  • Auth flows: register, login, password reset, 2FA challenge, logout.
  • Workspace scoping: switching, team roles, isolation between tenants.
  • Console routes for member, vendor and staff, including 403 boundaries.
  • API: auth failures, models, chat, streaming, embeddings, spend cap.
  • MCP: initialize, tools/list, every tool, auth failure, metering audit.
  • Studios: save draft, publish, preview, revision restore, banner scheduling.
  • Billing: invoice creation, top-up path, payout validation.

Manual QA#

Open the console at 1440, 1024 and 390 px in both themes. Check keyboard focus, modal escape, empty states, table pagination, chart overflow and RTL Arabic.