Background
Users who submit a wish may want to workshop it with others before it is "final." Though wishes can be editable at any time, wish creators may want to leave a wish in a draft state.
User story
Given that I've written a wish but don't feel comfortable about how it's written, when I go to submit, then I should see a "save as draft" button, and if I click it, then the wish should be published with a status of "draft," and the "draft" status should be shown on the wish index page and the wish itself.
Requirements
- Add the |status= parameter to the Proposal template.
Derived Requirement
Add a 'status' parameter to the Proposal template to allow users to save a wish in a draft state and display the draft status on the wish index page and the wish itself.
BDD
Feature: Save Wish as Draft
Scenario: User saves a wish as a draft
Given a user has written a wish When the user clicks the "save as draft" button Then the wish should be published with a status of "draft" And the draft status should be shown on the wish index page and the wish itself
Test Steps
Test Case 1: Save a wish as a draft
Write a wish on the proposal form.
- Click the "save as draft" button.
- AC1: Confirm the wish is published with a status of "draft."
- AC2: Confirm the draft status is shown on the wish index page and the wish itself.
QA Results - Wishlist-test.toolforge
AC | Status | Details |
---|---|---|
1 | ✅ | T366689#9910966 |