diff --git a/features/step_definitions/data_coordinator_steps.rb b/features/step_definitions/data_coordinator_steps.rb index 2b6384f5f..057e0a9f5 100644 --- a/features/step_definitions/data_coordinator_steps.rb +++ b/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 diff --git a/features/users/data_coordinator.feature b/features/users/data_coordinator.feature index 1b5e3bdf3..7f0e60edc 100644 --- a/features/users/data_coordinator.feature +++ b/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