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
end
step 'I click link "Add members"' do
find(:css, 'a.btn-add').click
find(:css, 'button.btn-new').click
end
step 'I select "Mike" as "Reporter"' do
......@@ -46,7 +46,9 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
user = User.find_by(name: 'Sam')
project_member = project.project_members.find_by(user_id: user.id)
within "#project_member_#{project_member.id}" do
click_button "Edit access level"
select "Reporter", from: "project_member_access_level"
click_button "Save"
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