Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

100 lines (80 sloc) 3.758 kb
@javascript @tasks
Feature: Changing Task Status from New
Background:
Given @mislav exists and is logged in
And I am currently in the project ruby_rockstars
And I have a task list called "Building Killer Dinobots"
And I have a task called "Installing Megahyper drive"
Scenario: Mislav doesn't change task (new -> new)
Given I am on its task page
When I fill in the comment box with "I need to wait till the engine cools down"
And I select "new" from "Status"
And I press "Save"
And I wait for 0.2 second
And I should see "I need to wait till the engine cools down"
And I should not see "→"
Scenario: Mislav changes task (new -> open:Mislav)
Given I am on its task page
When I fill in the comment box with "I fused the dino eggs to the engine"
And I select "Mislav Marohnić" from "Assigned to"
And I press "Save"
Then I should see "new → open" status change
And I should see "Assigned to Mislav Marohnić"
Scenario: Mislav changes task without commenting (new -> open:Mislav)
Given I am on its task page
And I select "Mislav Marohnić" from "Assigned to"
And I press "Save"
Then I should see "new → open" status change
And I should see "Assigned to Mislav Marohnić"
Scenario: Mislav changes task (new -> hold)
Given I am on its task page
When I fill in the comment box with "I need to wait till the engine cools down"
And I select "hold" from "Status"
And I press "Save"
And I wait for .2 seconds
Then I should see "new → hold" status change
And I should see "I need to wait till the engine cools down"
# And I choose "comment_status_2"
Scenario: Mislav changes task (new -> resolved)
Given I am on its task page
When I fill in the comment box with "I need to wait till the engine cools down"
And I select "resolved" from "Status"
And I press "Save"
And I wait for .2 seconds
Then I should see "new → resolved" status change
And I should see "I need to wait till the engine cools down"
Scenario: Mislav changes task (new -> rejected)
Given I am on its task page
When I fill in the comment box with "I need to wait till the engine cools down"
And I select "rejected" from "Status"
And I press "Save"
And I wait for .2 seconds
Then I should see "new → rejected" status change
And I should see "I need to wait till the engine cools down"
#Scenario: Mislav shouldn't be able to change task (hold -> new)
#Scenario: Mislav doesn't change task (hold -> hold)
Scenario: Mislav changes task (hold -> resolved)
Given the task called "Installing Megahyper drive" is holded
And I am on its task page
When I fill in the comment box with "done!"
And I select "resolved" from "Status"
And I press "Save"
And I wait for 1 second
And I should see "hold → resolved" status change
And I should see "done!"
Scenario: Mislav changes task (hold -> rejected)
Given the task called "Installing Megahyper drive" is holded
And I am on its task page
When I fill in the comment box with "done!"
And I select "rejected" from "Status"
And I press "Save"
And I wait for 1 second
And I should see "hold → rejected" status change
And I should see "done!"
#Scenario: Mislav shouldn't be able to change task (rejected -> new)
#Scenario: Mislav doesn't change task (rejected -> rejected)
#Scenario: Mislav changes task (rejected -> open:Mislav)
#Scenario: Mislav shouldn't be able to change task (resolved -> new)
#Scenario: Mislav changes task (resolved -> open:Mislav)
#Scenario: Mislav changes task (resolved -> hold)
#Scenario: Mislav doesn't change task (resolved -> resolved)
Jump to Line
Something went wrong with that request. Please try again.