Skip to content

test(smoke): add cross-surface shell smoke coverage#190

Merged
AAdewunmi merged 1 commit into
mainfrom
feat/add-cross-surface-smoke-coverage
Apr 17, 2026
Merged

test(smoke): add cross-surface shell smoke coverage#190
AAdewunmi merged 1 commit into
mainfrom
feat/add-cross-surface-smoke-coverage

Conversation

@AAdewunmi

Copy link
Copy Markdown
Owner

Summary
Adds seeded cross-surface smoke coverage for the ReturnHub shell flows and verifies that each primary surface can authenticate, land on its console, and load the expected page-one/page-two routes.

Changes

  • added a new smoke test module at tests/test_surface_smoke.py
  • seeded deterministic demo data with seed_returnhub_demo for repeatable multi-surface coverage
  • exercised admin login through /login/admin/ and verified redirect to /console/admin/
  • exercised ops login through /login/ops/ and verified redirect to /console/ops/
  • exercised customer login through /login/customer/ and verified redirect to /console/customer/
  • exercised merchant login through /login/merchant/ and verified redirect to /console/merchant/
  • verified admin can load the admin console plus customer portal page 1 and page 2
  • verified ops can load the ops console plus ops queue page 1 and page 2
  • verified customer can load the customer console plus customer portal page 1 and page 2
  • verified merchant can load the merchant console plus merchant portal page 1 and page 2
  • asserted seeded pagination copy for customer and merchant page-two coverage

Why
The repository already has targeted tests for individual surfaces, but it did not have a single seeded smoke path that validates the primary product surfaces together from login through console and paginated route access. This adds a lightweight end-to-end confidence check across admin, ops, customer, and merchant flows using the project’s deterministic demo dataset.

Validation

  • ran docker compose exec web pytest tests/test_surface_smoke.py
  • verified all 4 smoke tests passed
  • confirmed seeded data resolves expected page-two pagination text for customer and merchant surfaces
  • confirmed live login and console routes used by the tests match the repository’s current surface structure

Result

  • cross-surface shell smoke coverage now exists in one seeded integration test module
  • admin, ops, customer, and merchant login-to-console flows are covered together
  • customer and merchant page-two smoke coverage is explicitly verified
  • the suite now provides a fast regression signal for broken surface routing or seeded shell access paths

Notes

  • this adds integration smoke coverage rather than changing application behavior
  • the tests intentionally use seed_returnhub_demo instead of factories to validate the project’s seeded demo experience
  • the new module overlaps with more targeted tests by design to provide a single cross-surface regression check

@codecov

codecov Bot commented Apr 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AAdewunmi AAdewunmi merged commit f1adf5d into main Apr 17, 2026
2 checks passed
@AAdewunmi AAdewunmi deleted the feat/add-cross-surface-smoke-coverage branch April 17, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sprint-6-tests-backend-frontend Add cross-surface smoke coverage

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Add cross-surface smoke coverage

1 participant