diff --git a/features/issues/issue.feature b/features/issues/issue.feature index 1b801bcfb7..a6899693e9 100644 --- a/features/issues/issue.feature +++ b/features/issues/issue.feature @@ -54,3 +54,10 @@ Feature: Issue textile quickinfo links Then I should see a quickinfo link with description for "issue1" within "div.wiki" When I follow the issue link with 3 hash for "issue1" Then I should be on the page of the issue "issue1" + + Scenario: Navigating from issue reports back to issue overview + When I go to the issues/report page of the project called "parent" + And I follow "Issue" within "#main-menu" + Then I should be on the overall issues page + And I should have the following query string: + | project_id | parent | \ No newline at end of file diff --git a/features/support/paths.rb b/features/support/paths.rb index 8b880475c9..8db1247248 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -63,6 +63,9 @@ module NavigationHelpers issue = Issue.find_by_subject($1) "/issues/#{issue.id}" + when /^the overall issues page$/ + "/issues" + when /^the edit page (?:for|of) the issue "([^\"]+)"$/ issue = Issue.find_by_subject($1) "/issues/#{issue.id}/edit"