Commit ae0caf97 authored by Robert Lyon's avatar Robert Lyon

Change to allow completion date for tasks to only be in future

Change-Id: I057fd490b2d6b6000522c6bc61d463f36a85fc06
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 824bf9a3
......@@ -36,8 +36,8 @@ Scenario: Create a plan -> add plan block to page -> create new task from block
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 fill in "Completion date" with "tomorrow" date in the format "Y/m/d"
And I enable the switch "Completed"
And I press "Save task"
# confirm user taken back to Plan block on page
......@@ -56,26 +56,6 @@ Scenario: Creating a plan with 11 tasks (Bug #1503036)
And I fill in select2 input "addplan_tags" with "test" and select "test"
And I press "Save plan"
When I follow "New task"
And I fill in "Title" with "Purchase Mars"
And I fill in "Completion date" with "-2 months" date in the format "Y/m/d"
And I fill in "Description" with "Purchase mars description"
And I fill in select2 input "addtasks_tags" with "Task1" and select "Task1"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Set up atmosphere"
And I fill in "Completion date" with "-1 months" date in the format "Y/m/d"
And I fill in "Description" with "Purchase mars description"
And I fill in select2 input "addtasks_tags" with "Task2" and select "Task2"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Terraform"
And I fill in "Completion date" with "-2 weeks" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task3" and select "Task3"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Exploit resources"
And I fill in "Completion date" with "+2 days" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task4" and select "Task4"
......
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