Browse Source

added steps viewing your organisation

cucumber-rails
JG 3 years ago
parent
commit
ac95453311
  1. 14
      features/step_definitions/data_coordinator_steps.rb
  2. 3
      features/users/data_coordinator.feature

14
features/step_definitions/data_coordinator_steps.rb

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

3
features/users/data_coordinator.feature

@ -7,7 +7,8 @@ Feature: Data Coordinator Features
When I visit the users page
Then I see information about those users
And the user navigation bar is highlighted
@wip
Scenario: Viewing your organisation details
When I visit the About your organisation page
Then I see information about your organisation

Loading…
Cancel
Save