Commit 308fae17 authored by Robert Lyon's avatar Robert Lyon

fixing - need to put back removed tasks

but now make them all in the future

Change-Id: I79741ceee5f686cf11947f2a63a14d19c997075f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 77ecb35f
......@@ -13,7 +13,7 @@ define('INTERNAL', 1);
define('PUBLIC', 1);
define('JSON', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
safe_require('artefact', 'plans');
require_once(get_config('docroot') . 'blocktype/lib.php');
require_once(get_config('docroot') . 'artefact/plans/blocktype/plans/lib.php');
......
......@@ -56,58 +56,78 @@ 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 "Exploit resources"
And I fill in "Title" with "Purchase Mars"
And I fill in "Completion date" with "+1 day" date in the format "Y/m/d"
And I fill in "Description" with "Purchase mars description"
And I fill in select2 input "edittask_tags" with "Task1" and select "Task1"
And I fill in select2 input "edittask_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 "+2 days" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task4" and select "Task4"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in "Description" with "Purchase mars description"
And I fill in select2 input "edittask_tags" with "Task2" and select "Task2"
And I fill in select2 input "edittask_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 "+3 days" date in the format "Y/m/d"
And I fill in select2 input "edittask_tags" with "Task3" and select "Task3"
And I fill in select2 input "edittask_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 "+1 week" date in the format "Y/m/d"
And I fill in select2 input "edittask_tags" with "Task4" and select "Task4"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Bring colonists"
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 "Task5" and select "Task5"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task5" and select "Task5"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Build metropolis"
And I fill in "Completion date" with "+6 months" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task6" and select "Task6"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task6" and select "Task6"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Start society"
And I fill in "Completion date" with "+1 year" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task7" and select "Task7"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task7" and select "Task7"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Build utopia"
And I fill in "Completion date" with "+2 years" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task8" and select "Task8"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task8" and select "Task8"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Squabble about morals"
And I fill in "Completion date" with "+3 years" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task9" and select "Task9"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task9" and select "Task9"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Quell rebels"
And I fill in "Completion date" with "+5 years" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task10" and select "Task10"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task10" and select "Task10"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Social collapse"
And I fill in "Completion date" with "+6 years" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task11" and select "Task11"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task11" and select "Task11"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "New task"
And I fill in "Title" with "Alien invasion"
And I fill in "Completion date" with "+10 years" date in the format "Y/m/d"
And I fill in select2 input "addtasks_tags" with "Task12" and select "Task12"
And I fill in select2 input "addtasks_tags" with "Plan task" and select "Plan task"
And I fill in select2 input "edittask_tags" with "Task12" and select "Task12"
And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
Then I press "Save task"
When I follow "Next page"
Then I should see "Alien invasion"
......@@ -155,4 +175,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!"
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