f0887817e25c082838f50d260e6a3d4e69a14bdfEileen Bolloff @edit_button = first(:css, 'tbody > tr').find_link('edit')
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen BolloffThen(/^I should see the users overview page and the updated user name$/) do
f0887817e25c082838f50d260e6a3d4e69a14bdfEileen Bolloff expect(page).not_to have_content("@user_name")
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen BolloffWhen(/^I change the email adress of the user$/) do
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen Bolloff fill_in 'E-Mail', with: "newuser@example.com"
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen BolloffThen(/^I should see the users overview page and the updated user email adress$/) do
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen Bolloff expect(page).to have_content("newuser@example.com")
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen Bolloff expect(page).not_to have_content("@user_email")
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen BolloffThen(/^I should see the users overview page and the updated admin user status$/) do
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen Bolloff expect(page).to have_content("#{@user.name}")
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen Bolloff expect(page).to have_content("#{@user.email}")
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen BolloffThen(/^I should see the users overview page and the updated non admin user status$/) do
e63ed6e798b2e9284e3e4d9ec50e8d605e7b0000Eileen Bolloff expect(page).to have_content("#{@user.name}")