Skip to content

Feat/test demo seed pagination contract#226

Merged
AAdewunmi merged 3 commits into
mainfrom
feat/test-demo-seed-pagination-contract
Apr 22, 2026
Merged

Feat/test demo seed pagination contract#226
AAdewunmi merged 3 commits into
mainfrom
feat/test-demo-seed-pagination-contract

Conversation

@AAdewunmi

Copy link
Copy Markdown
Owner

Summary

Adds and aligns demo-seed pagination contract coverage with the current ReturnHub project structure and seeded product surfaces.

Changes

  • added pagination contract coverage for the deterministic demo seed flow
  • updated the test to use seed_returnhub_demo
  • switched imports to the current returns.models module
  • updated seeded usernames to the current dot-style accounts such as ops.demo, customer.one, and merchant.one
  • updated route usage to the current namespaced surfaces:
    • ops:queue
    • customer_portal:case_list
    • merchant_portal:case_list
  • verified seeded case distribution supports page-two walkthroughs across ops, customer, and merchant surfaces
  • asserted expected page-two count-line behavior on the current list routes

Behavior

The test now validates that the preferred demo seed creates enough deterministic data for multi-page walkthroughs and that the main seeded product surfaces can render page two successfully.

Why

This keeps the demo-seed pagination contract aligned with the project as it exists today rather than older route names, legacy seed commands, or outdated usernames. It also strengthens confidence that the documented demos and walkthroughs are supported by the seeded data.

Validation

The rewritten test covers:

  • total seeded case volume
  • per-customer and per-merchant seeded case counts
  • page one and page two rendering for the ops queue
  • page two rendering for customer and merchant list surfaces
  • current route names and current seeded users

Result

The repository now has a demo-seed pagination test that matches the current application structure and supports the current multi-surface walkthrough flow.

Notes

  • this change updates test coverage only
  • no runtime behavior or seeded data generation logic was changed
  • the test is aligned with the existing seed_returnhub_demo convention used elsewhere in the repo

@AAdewunmi AAdewunmi self-assigned this Apr 22, 2026
@AAdewunmi AAdewunmi added the sprint-7-tests-backend-ux-ci Test demo seed pagination contract label Apr 22, 2026
@AAdewunmi AAdewunmi linked an issue Apr 22, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Apr 22, 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 2cf8385 into main Apr 22, 2026
3 checks passed
@AAdewunmi AAdewunmi deleted the feat/test-demo-seed-pagination-contract branch April 22, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sprint-7-tests-backend-ux-ci Test demo seed pagination contract

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Test demo seed pagination contract

1 participant