Skip to content

MPT-19478 fix e2e queue tests and add fixtures for disabled queues#251

Merged
jentyk merged 1 commit intomainfrom
feat/MPT-19478
Mar 26, 2026
Merged

MPT-19478 fix e2e queue tests and add fixtures for disabled queues#251
jentyk merged 1 commit intomainfrom
feat/MPT-19478

Conversation

@jentyk
Copy link
Copy Markdown
Member

@jentyk jentyk commented Mar 26, 2026

Closes MPT-19478

Changes

  • Added internal: False to the queue_data fixture payload
  • Created new pytest fixtures for disabled queues: created_disabled_queue (sync) and async_created_disabled_queue (async)
  • Enabled e2e queue tests by removing @pytest.mark.skip decorators from test functions
  • Enhanced test assertions to verify queue state transitions (checking status == "Active" and status == "Disabled")
  • Updated test_activate_queue to use the new created_disabled_queue fixture
  • Improved test_create_queue assertion to verify Queue instance type instead of generic non-None checks

@jentyk jentyk requested a review from a team as a code owner March 26, 2026 15:37
@jentyk jentyk requested review from albertsola and svazquezco March 26, 2026 15:37
@sonarqubecloud
Copy link
Copy Markdown

@jentyk
Copy link
Copy Markdown
Member Author

jentyk commented Mar 26, 2026

@CodeRabbit review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 66e8134a-9a05-472f-98ce-3d932ca39caa

📥 Commits

Reviewing files that changed from the base of the PR and between e20527f and 7e299bc.

📒 Files selected for processing (3)
  • tests/e2e/helpdesk/queues/conftest.py
  • tests/e2e/helpdesk/queues/test_async_queues.py
  • tests/e2e/helpdesk/queues/test_sync_queues.py

📝 Walkthrough

Walkthrough

Pull request re-enables previously skipped end-to-end tests for synchronous and asynchronous helpdesk queue operations. Introduces new fixtures for disabled queue states and updates assertions to verify specific Queue instances and operation statuses instead of generic non-None checks.

Changes

Cohort / File(s) Summary
Test Fixtures
tests/e2e/helpdesk/queues/conftest.py
Added internal: False to queue_data fixture payload. Introduced created_disabled_queue and async_created_disabled_queue fixtures that invoke helpdesk.queues.disable(...) on already-created queues and assert status equals "Disabled".
Queue Operation Tests
tests/e2e/helpdesk/queues/test_async_queues.py, tests/e2e/helpdesk/queues/test_sync_queues.py
Removed @pytest.mark.skip decorators from seven queue tests to enable their execution. Updated assertions to verify Queue instance types and operation statuses ("Active", "Disabled") instead of non-None checks. Modified test_activate_queue to use created_disabled_queue fixture for testing state transitions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Jira Issue Key In Title ✅ Passed The PR title contains exactly one Jira issue key in the format MPT-XXXX (MPT-19478) at the beginning.
Test Coverage Required ✅ Passed PR only modifies test files within tests/ folder; no production code outside tests/ was changed.
Single Commit Required ✅ Passed The pull request contains exactly one commit (7e299bc) as confirmed by multiple independent git commands and file history analysis.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@jentyk jentyk merged commit eeca121 into main Mar 26, 2026
4 checks passed
@jentyk jentyk deleted the feat/MPT-19478 branch March 26, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants