Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Given("there are multiple users in the same organization") do
|
|
|
|
@users = create_list :user, 5, organisation: @user.organisation
|
|
|
|
end
|
|
|
|
|
|
|
|
Given("I visit the users page") do
|
|
|
|
click_link("Users")
|
|
|
|
end
|
|
|
|
|
|
|
|
Then("I see information about those users") do
|
|
|
|
@users.each do |user|
|
|
|
|
expect(page.body).to have_content user.name
|
|
|
|
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
|