Browse Source

viewing your account feature code

cucumber-rails
JG 3 years ago
parent
commit
ea328c1f90
  1. 15
      features/step_definitions/data_coordinator_steps.rb

15
features/step_definitions/data_coordinator_steps.rb

@ -30,3 +30,18 @@ end
Then("the about your organisation navigation bar is highlighted") do
expect(page).to have_css('[aria-current="page"]', text: "About your organisation")
end
When("I visit the your account page") do
click_link("Your account")
end
Then("I see information about my account") do
expect(page.body).to have_content @user.name
expect(page.body).to have_content @user.email
expect(page.body).to have_content @user.organisation.name
end
Then("the no links in navigation bar are highlighted") do
expect(page).not_to have_css('[aria-current="page"]', text: "Users")
expect(page).not_to have_css('[aria-current="page"]', text: "About your organisation")
end

Loading…
Cancel
Save