Browse Source

checking that navigation tab is highlighted

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

6
features/step_definitions/data_coordinator_steps.rb

@ -12,3 +12,9 @@ Then("I see information about those users") do
expect(page.body).to have_content user.email
end
end
Then('the user navigation bar is highlighted') do
expect(page).to have_css('[aria-current="page"]', text: "Users")
expect(page).not_to have_css('[aria-current="page"]', text: "About your organisation")
expect(page).not_to have_css('[aria-current="page"]', text: "Logs")
end

3
features/users/data_coordinator.feature

@ -4,5 +4,6 @@ Feature: Data Coordinator Features
Scenario: Viewing users
Given there are multiple users in the same organization
And I visit the users page
When I visit the users page
Then I see information about those users
And the user navigation bar is highlighted

Loading…
Cancel
Save