Browse Source

better test with multiple orgs

pull/627/head
JG 3 years ago
parent
commit
ae5194dc71
  1. 5
      spec/features/organisation_spec.rb

5
spec/features/organisation_spec.rb

@ -196,9 +196,10 @@ RSpec.describe "User Features" do
expect(page).to have_link("About this organisation") expect(page).to have_link("About this organisation")
end end
context "when I click on Invite user" do context "when I click on Invite user and there are multiple organisations in the database" do
before do before do
click_link(text: "Invite user") FactoryBot.create_list(:organisation, 5)
click_link(text: "Invite user")
end end
it "has only specific organisation name in the dropdown" do it "has only specific organisation name in the dropdown" do

Loading…
Cancel
Save