Skip to content

test(ops): add queue view coverage for filters, rank ordering, and template context in test_ops_queue.py#91

Merged
AAdewunmi merged 2 commits intomainfrom
chore/add-ui-tests-for-queue-filters
Feb 17, 2026
Merged

test(ops): add queue view coverage for filters, rank ordering, and template context in test_ops_queue.py#91
AAdewunmi merged 2 commits intomainfrom
chore/add-ui-tests-for-queue-filters

Conversation

@AAdewunmi
Copy link
Owner

Summary

Adds focused Ops queue view tests in tests/test_ops_queue.py to validate filter behavior, queue ranking, and template context wiring.

What this PR tests

  • Filter passthrough from request query params to queue-building logic:
    • status
    • priority
    • sla
  • Queue rank assignment for rendered items (one-based queue_rank).
  • Template/context contract for queue rendering:
    • items present and ordered
    • filters context values persisted for selected options
    • expected queue template usage

Why

  • Protects key UI behavior introduced in the queue wiring work.
  • Prevents regressions where filters stop applying, ranks disappear, or selected filter state is lost.
  • Improves patch coverage on the Ops queue surface.

Scope

  • Test-only change in tests/test_ops_queue.py.
  • No production endpoint or model behavior changes.

@AAdewunmi AAdewunmi self-assigned this Feb 17, 2026
@AAdewunmi AAdewunmi added the week-5-tests-ui-db-filters Add UI tests for queue filters label Feb 17, 2026
@AAdewunmi AAdewunmi linked an issue Feb 17, 2026 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AAdewunmi AAdewunmi merged commit ebd5f5e into main Feb 17, 2026
2 checks passed
@AAdewunmi AAdewunmi deleted the chore/add-ui-tests-for-queue-filters branch February 17, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

week-5-tests-ui-db-filters Add UI tests for queue filters

Projects

Development

Successfully merging this pull request may close these issues.

Add UI tests for queue filters

1 participant

Comments