Merge pull request #190 from oliverguenther/housekeeping/remove_work_package_routes

Remove cukes dependant on Rails work package routes
pull/6827/head
ulferts 9 years ago
commit 9f0b529466
  1. 13
      features/edit_story.feature
  2. 73
      features/fixed_version_by_issue_hierarchy.feature
  3. 12
      features/issue_hierarchy_restriction_project_boundaries.feature

@ -161,16 +161,3 @@ Feature: Edit story on backlogs view
And I follow "New Story" of the "Sprint 001" backlogs menu And I follow "New Story" of the "Sprint 001" backlogs menu
And I close the "Sprint 001" backlogs menu And I close the "Sprint 001" backlogs menu
Then I should not see "Epic" within_hidden ".type_id.helper" Then I should not see "Epic" within_hidden ".type_id.helper"
@javascript
Scenario: Story duplication with copying all tasks
Given the project has the following tasks:
| subject | parent |
| Task 1 | Story A |
And I am on the work package index page for the project called "ecookbook"
When I follow "Story A"
And I select "Duplicate" from the action menu
And I choose "copy_tasks_all" within "#backlogs-attributes"
And I press "Create"
And I follow "Relations"
Then I should see "Task 1"

@ -136,76 +136,3 @@ Feature: The work_package hierarchy defines the allowed versions for each work_p
#Scenario: Moving a task between stories on the taskboard #Scenario: Moving a task between stories on the taskboard
# not testable for now # not testable for now
@javascript
Scenario: Creating a task, via subtask, as a subtask to a story sets the new task's fixed version to the parent's fixed version
When I go to the page of the work package "Story A"
And I follow the link to add a subtask
And I select "Task" from "work_package_type_id"
And I fill in "Task 0815" for "work_package_subject"
And I click on the first button matching "Create"
Then I should see "Sprint 001" within "#work-package-version"
@javascript
Scenario: Creating a task, via new work_package, as a subtask to a story set´s the new task´s fixed version to the parent´s fixed version
When I go to the new work_package page of the project called "ecookbook"
And I select "Task" from "work_package_type_id"
And I fill in "Task 0815" for "work_package_subject"
And I fill in the id of the work_package "Story A" as the parent work_package
And I click on the first button matching "Create"
Then I should see "Sprint 001" within "#work-package-version"
@javascript
Scenario: Creating a task, via new work_package, as a subtask to a story and setting a fixed version is overriden by the parent´s fixed version (bug 8904)
When I go to the new work_package page of the project called "ecookbook"
And I select "Task" from "work_package_type_id"
And I fill in "Task 0815" for "work_package_subject"
And I fill in the id of the work_package "Story A" as the parent work_package
And I select "Sprint 003" from "work_package_fixed_version_id"
And I click on the first button matching "Create"
Then I should see "Sprint 001" within "#work-package-version"
@javascript
Scenario: Moving a task between stories via work_package/edit (bug 9324)
Given the project has the following tasks:
| subject | parent |
| Task 1 | Story A |
When I go to the edit page of the work_package "Task 1"
And I fill in the id of the work_package "Story C" as the parent work_package
And I press "Submit"
Then I should see "Sprint 002" within "#work-package-version"
Scenario: Changing the fixed_version of a task with a non backlogs parent work_package (bug 8354)
Given the project has the following work_packages:
| subject | sprint | type |
| Epic 1 | Sprint 001 | Epic |
And the project has the following tasks:
| subject | parent |
| Task 1 | Epic 1 |
When I go to the edit page of the work_package "Task 1"
And I select "Sprint 002" from "work_package_fixed_version_id"
And I press "Submit"
Then I should see "Successful update." within "div.flash"
Scenario: Changing the fixed_version of an epic should not change the target version of the child (bug 8903)
Given the project has the following work_packages:
| subject | sprint | type | parent |
| Epic 1 | Sprint 001 | Epic | |
| Task 1 | Sprint 002 | Task | Epic 1 |
When I go to the edit page of the work_package "Epic 1"
And I select "Sprint 003" from "work_package_fixed_version_id"
And I press "Submit"
Then I should see "Successful update." within "div.flash"
And the task "Task 1" should have "Sprint 002" as its target version
Scenario: Modification of a backlogs story with tasks is still possible (bug 9711)
Given the project has the following tasks:
| subject | parent |
| Task 1 | Story A |
| Task 2 | Story A |
When I go to the edit page of the work_package "Story A"
And I select "Sprint 002" from "work_package_fixed_version_id"
And I click "Submit"
Then I should not see "Data has been updated by another user." within "div.flash"
And the story "Story A" should have "Sprint 002" as its target version
And the task "Task 1" should have "Sprint 002" as its target version
And the task "Task 2" should have "Sprint 002" as its target version

@ -98,15 +98,3 @@ Feature: The work_package hierarchy between backlogs stories and backlogs tasks
And the user "markus" is a "scrum master" in the project "child_project" And the user "markus" is a "scrum master" in the project "child_project"
And the "cross_project_work_package_relations" setting is set to true And the "cross_project_work_package_relations" setting is set to true
And I am already logged in as "markus" And I am already logged in as "markus"
@javascript
Scenario: Adding a task in the child project as a child to the story is inhibited
Given the project "parent_project" has the following work_packages:
| subject | type |
| Story A | Story |
When I go to the work_packages/new page of the project called "child_project"
And I select "Task" from "work_package_type_id"
And I fill in "Task 0815" for "work_package_subject"
And I fill in the id of the work_package "Story A" as the parent work_package
And I click on the first button matching "Create"
Then I should be notified that the work_package "Story A" is an invalid parent to the work_package "Task 0815" because of cross project limitations

Loading…
Cancel
Save