mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
adapt role paths in cuke steps
This commit is contained in:
@@ -181,7 +181,7 @@ module NavigationHelpers
|
||||
when /^the edit page (?:for |of )(the )?role(?: called)? (.+)$/
|
||||
role_identifier = $2.gsub("\"", '')
|
||||
role_identifier = Role.find_by(name: role_identifier).id
|
||||
"/roles/edit/#{role_identifier}"
|
||||
"admin/roles/#{role_identifier}/edit"
|
||||
|
||||
when /^the new user page$/
|
||||
'/users/new'
|
||||
@@ -304,7 +304,7 @@ module NavigationHelpers
|
||||
'/announcements/1/edit'
|
||||
|
||||
when /^the index page of Roles$/
|
||||
'/roles'
|
||||
'/admin/roles'
|
||||
|
||||
when /^the search page$/
|
||||
'/search'
|
||||
|
||||
Reference in New Issue
Block a user