Browse Source

rubocop

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

6
features/step_definitions/data_coordinator_steps.rb

@ -17,16 +17,16 @@ Then("the user navigation bar is highlighted") do
expect(page).to have_css('[aria-current="page"]', text: "Users") expect(page).to have_css('[aria-current="page"]', text: "Users")
end end
When('I visit the About your organisation page') do When("I visit the About your organisation page") do
click_link("About your organisation") click_link("About your organisation")
end end
Then('I see information about your organisation') do Then("I see information about your organisation") do
expect(page.body).to have_content @user.organisation.name expect(page.body).to have_content @user.organisation.name
expect(page.body).to have_content @user.organisation.address_line1 expect(page.body).to have_content @user.organisation.address_line1
expect(page.body).to have_content @user.organisation.postcode expect(page.body).to have_content @user.organisation.postcode
end end
Then('the about your organisation navigation bar is highlighted') do Then("the about your organisation navigation bar is highlighted") do
expect(page).to have_css('[aria-current="page"]', text: "About your organisation") expect(page).to have_css('[aria-current="page"]', text: "About your organisation")
end end

Loading…
Cancel
Save