Commit 2ec57eb6 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug #1785149 Behat: Update a task from within a block type"

parents 10b34502 9c1c4342
......@@ -8,6 +8,41 @@ Background:
| title | description | ownertype | ownername |
| Page admin_01 | Page 01 | user | admin |
Scenario: Create a plan -> add plan block to page -> create new task from block on page
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Plans" in "Content" from main menu
And I follow "New plan"
And I fill in the following:
| Title * | Plan 9 from outer space |
| Description | Woooo |
And I fill in select2 input "addplan_tags" with "plan" and select "plan"
And I fill in select2 input "addplan_tags" with "test" and select "test"
And I press "Save plan"
# add plan block to page
Given I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Page admin_01" panel menu
And I click on "Edit" in "Page admin_01" panel menu
And I expand "General" node
And I follow "Plans" in the "blocktype sidebar" property
And I press "Add"
# select the plan to display in block
And I check "Plan 9 from outer space"
And I press "Save"
Then I should see "Woooo" in the block "Plan 9 from outer space"
# create new task from block on page
When I follow "Add task"
Then I should see " New task"
When I fill in the following:
| Title | New Space Task |
| Completion date | 2019/01/01 |
| Description | Space Task - hold breath for a really long time |
And I enable the switch "Completed"
And I press "Save task"
# confirm user taken back to Plan block on page
Then I should see " Page admin_01"
And I should see "Woooo" in the block "Plan 9 from outer space"
And I should see "New Space Task" in the block "Plan 9 from outer space"
Scenario: Creating a plan with 11 tasks (Bug #1503036)
Given I log in as "admin" with password "Kupuh1pa!"
And I choose "Plans" in "Create" from main menu
......@@ -119,4 +154,4 @@ Scenario: Creating a plan with 11 tasks (Bug #1503036)
And I click on "Delete \"Life on Mars\""
And I should see "Are you sure you wish to delete this plan?"
And I press "Delete plan"
Then I should see "No plans yet. Add one!"
\ No newline at end of file
Then I should see "No plans yet. Add one!"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment