Skip to content

MPT-19482 unskip forms e2e tests and add fixtures for published forms#260

Merged
d3rky merged 1 commit intomainfrom
feat/MPT-19482
Mar 30, 2026
Merged

MPT-19482 unskip forms e2e tests and add fixtures for published forms#260
d3rky merged 1 commit intomainfrom
feat/MPT-19482

Conversation

@jentyk
Copy link
Copy Markdown
Member

@jentyk jentyk commented Mar 30, 2026

Closes MPT-19482

Release Notes

  • Added created_published_form and async_created_published_form pytest fixtures to publish Helpdesk forms before running tests
  • Unskipped 5 async e2e form tests (test_get_form, test_list_forms, test_update_form, test_publish_form, test_delete_form) to enable active execution
  • Unskipped 6 sync e2e form tests (test_get_form, test_list_forms, test_create_form, test_update_form, test_publish_form, test_delete_form) to enable active execution
  • Updated test_unpublish_form in both sync and async test files to use the new published form fixtures and validate unpublish operation with explicit status assertion

@jentyk jentyk requested a review from a team as a code owner March 30, 2026 08:45
@jentyk jentyk requested review from d3rky and svazquezco March 30, 2026 08:45
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 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: 301055d4-b2dc-4c7b-a0ba-094f73f4846c

📥 Commits

Reviewing files that changed from the base of the PR and between 4635cda and 8fd2cbd.

📒 Files selected for processing (3)
  • tests/e2e/helpdesk/forms/conftest.py
  • tests/e2e/helpdesk/forms/test_async_forms.py
  • tests/e2e/helpdesk/forms/test_sync_forms.py

📝 Walkthrough

Walkthrough

This PR enables previously skipped e2e tests for the Helpdesk forms API and introduces new fixtures that publish forms. Two new pytest fixtures (created_published_form and async_created_published_form) are added to support testing unpublish operations on already-published forms.

Changes

Cohort / File(s) Summary
New Published Form Fixtures
tests/e2e/helpdesk/forms/conftest.py
Added synchronous and asynchronous fixtures that publish previously created forms before returning them. Both invoke the publish operation and depend on the existing form fixtures.
Test Enablement and Refactoring
tests/e2e/helpdesk/forms/test_sync_forms.py, tests/e2e/helpdesk/forms/test_async_forms.py
Removed @pytest.mark.skip decorators from multiple test functions to activate execution. Updated test_unpublish_form in both files to use the new published form fixtures and replaced generic non-null assertions with explicit status validation (result.status == "Unpublished").

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Jira Issue Key In Title ✅ Passed PR title contains exactly one valid Jira issue key MPT-19482 in the required MPT-XXXX format.
Test Coverage Required ✅ Passed The PR modifies only test files within the tests/ folder. No code files outside the tests/ directory are being modified.
Single Commit Required ✅ Passed The pull request contains exactly one commit, which maintains a clean git history and makes changes easy to follow and review.

✏️ 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.

@sonarqubecloud
Copy link
Copy Markdown

@d3rky d3rky merged commit a2b1bbd into main Mar 30, 2026
4 checks passed
@d3rky d3rky deleted the feat/MPT-19482 branch March 30, 2026 09:02
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.

3 participants