Browse Source

better naming in specs

pull/608/head
JG 3 years ago
parent
commit
18dba67a59
  1. 4
      spec/features/log_spec.rb

4
spec/features/log_spec.rb

@ -15,7 +15,7 @@ RSpec.describe "Log Features" do
click_button("Sign in") click_button("Sign in")
end end
it "I see logs belonging to the same organisation" do it "it displays the logs belonging to the same organisation" do
expect(page).to have_content(log_to_search.id) expect(page).to have_content(log_to_search.id)
expect(page).to have_content(same_organisation_log.id) expect(page).to have_content(same_organisation_log.id)
expect(page).not_to have_content(another_organisation_log.id) expect(page).not_to have_content(another_organisation_log.id)
@ -45,7 +45,7 @@ RSpec.describe "Log Features" do
expect(page).to have_link("Clear search") expect(page).to have_link("Clear search")
end end
it "I see logs belonging to the same organisation" do it "it displays the logs belonging to the same organisation after I clear the search results" do
click_link("Clear search") click_link("Clear search")
expect(page).to have_content(log_to_search.id) expect(page).to have_content(log_to_search.id)
expect(page).to have_content(same_organisation_log.id) expect(page).to have_content(same_organisation_log.id)

Loading…
Cancel
Save