public
Last active — forked from rainchen/gist:219642

  • Download Gist
gistfile1.st
Smalltalk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Scenario: Move a project which have some todos to Scheduled
Given I create a project "Project A"
And I create todos "Todo A"
When I drag todo "Todo A" to project "Project A"
Then the todo "Todo A" should be placed in "Next"
When I drag project "Project A" to place Scheduled
Then I should see "Schedule"
When I fill in "Scheduled at" with the date "tomorrow"
And I fill in "Scheduled Action" with "move_to_today"
And I press "OK"
Then I should have 1 projects in "Scheduled"
And the "active?" of project "Project A" should be "false"
And the "scheduled_at" of project "Project A" should not be blank
And the todo "Todo A" should not belong to any place
When I go to the scheduled page
Then I should see "Project A"
When 1 days pass
Given the tasks are updated
Then I should have 0 projects in "Scheduled"
And I should have 1 projects in "Today"
When I go to the scheduled page
Then the "scheduled_at" of project "Project A" should be blank
And the "active?" of project "Project A" should be "true"
And the todo "Todo A" should be placed in "Today"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.