Merge pull request #34 from finnlabs/feature/rails3_cuke_core_adaptations

adapts some cuke scenarios to core's changed i18n behaviour

Makes all cukes green together with core pull request https://github.com/opf/openproject/pull/123
pull/6827/head
sschu 12 years ago
commit 745211a8e0
  1. 1
      features/issue_hierarchy_restriction_project_boundaries.feature
  2. 12
      features/scrum_master.feature
  3. 2
      features/step_definitions/_then_steps.rb

@ -54,6 +54,7 @@ Feature: The issue hierarchy between backlogs stories and backlogs tasks can not
| backlogs |
And the user "markus" is a "scrum master" in the project "parent_project"
And the user "markus" is a "scrum master" in the project "child_project"
And the "cross_project_issue_relations" setting is set to true
And I am already logged in as "markus"
@javascript

@ -125,7 +125,7 @@ Feature: Scrum Master
And I press "OK"
Then I should see "Bad Company" within "#impediments"
And the impediment "Bad Company" should signal unsuccessful saving
And the error alert should show "Blocks (IDs) can only contain the IDs of current sprint's tickets"
And the error alert should show "Blocks can only contain the IDs of current sprint's tickets"
@javascript
Scenario: Create an impediment blocking a non existent issue
@ -137,7 +137,7 @@ Feature: Scrum Master
And I press "OK"
Then I should see "Bad Company" within "#impediments"
And the impediment "Bad Company" should signal unsuccessful saving
And the error alert should show "Blocks (IDs) can only contain the IDs of current sprint's tickets"
And the error alert should show "Blocks can only contain the IDs of current sprint's tickets"
@javascript
Scenario: Create an impediment without specifying what it blocks
@ -149,7 +149,7 @@ Feature: Scrum Master
And I press "OK"
Then I should see "Bad Company" within "#impediments"
And the impediment "Bad Company" should signal unsuccessful saving
And the error alert should show "Blocks (IDs) must contain the ID of at least one ticket"
And the error alert should show "Blocks must contain the ID of at least one ticket"
@javascript
Scenario: Update an impediment
@ -170,7 +170,7 @@ Feature: Scrum Master
And I press "OK"
Then I should see "Bad Company" within "#impediments"
And the impediment "Bad Company" should signal unsuccessful saving
And the error alert should show "Blocks (IDs) can only contain the IDs of current sprint's tickets"
And the error alert should show "Blocks can only contain the IDs of current sprint's tickets"
@javascript
Scenario: Update an impediment to block a non existent issue
@ -181,7 +181,7 @@ Feature: Scrum Master
And I press "OK"
Then I should see "Bad Company" within "#impediments"
And the impediment "Bad Company" should signal unsuccessful saving
And the error alert should show "Blocks (IDs) can only contain the IDs of current sprint's tickets"
And the error alert should show "Blocks can only contain the IDs of current sprint's tickets"
@javascript
Scenario: Update an impediment to not block anything
@ -192,7 +192,7 @@ Feature: Scrum Master
And I press "OK"
Then I should see "Bad Company" within "#impediments"
And the impediment "Bad Company" should signal unsuccessful saving
And the error alert should show "Blocks (IDs) must contain the ID of at least one ticket"
And the error alert should show "Blocks must contain the ID of at least one ticket"
Scenario: Update sprint details
Given I am on the master backlog

@ -240,5 +240,5 @@ Then /^there should not be a saving error on task "(.+?)"$/ do |task_name|
end
Then /^I should be notified that the issue "(.+?)" is an invalid parent to the issue "(.+?)" because of cross project limitations$/ do |parent_name, child_name|
step %Q{I should see "#{I18n.t(:field_parent_issue)} is invalid because the issue '#{child_name}' is a backlogs task and as such can not have the backlogs story '#{parent_name}' as it´s parent as long as the story is in a different project" within "#errorExplanation"}
step %Q{I should see "#{Issue.human_attribute_name(:parent_issue)} is invalid because the issue '#{child_name}' is a backlogs task and as such can not have the backlogs story '#{parent_name}' as it´s parent as long as the story is in a different project" within "#errorExplanation"}
end

Loading…
Cancel
Save