diff --git a/spec/features/organisation_spec.rb b/spec/features/organisation_spec.rb index afd9ee7ca..ceeea1eaf 100644 --- a/spec/features/organisation_spec.rb +++ b/spec/features/organisation_spec.rb @@ -34,6 +34,9 @@ RSpec.describe "User Features" do click_link("Invite user") expect(page).to have_current_path("/users/new") expect(page).to have_content("Invite user to submit CORE data") + fill_in("user[name]", with: "New User") + fill_in("user[email]", with: "new_user@example.com") + expect { click_button("Continue") }.to change { ActionMailer::Base.deliveries.count }.by(1) end end end