Commit f66b77e6 authored by Douwe Maan's avatar Douwe Maan

Fix failing specs.

parent 5ad35bbe
...@@ -16,7 +16,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps ...@@ -16,7 +16,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
end end
step 'I click link "Add members"' do step 'I click link "Add members"' do
find(:css, 'a.btn-add').click find(:css, 'button.btn-new').click
end end
step 'I select "Mike" as "Reporter"' do step 'I select "Mike" as "Reporter"' do
...@@ -46,7 +46,9 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps ...@@ -46,7 +46,9 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
user = User.find_by(name: 'Sam') user = User.find_by(name: 'Sam')
project_member = project.project_members.find_by(user_id: user.id) project_member = project.project_members.find_by(user_id: user.id)
within "#project_member_#{project_member.id}" do within "#project_member_#{project_member.id}" do
click_button "Edit access level"
select "Reporter", from: "project_member_access_level" select "Reporter", from: "project_member_access_level"
click_button "Save"
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment