adapt role paths in cuke steps

This commit is contained in:
Jens Ulferts
2018-02-19 09:25:25 +01:00
parent 07a40774e1
commit 4fe25e7e40
+2 -2
View File
@@ -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'