Files
nairobi/spec/system/user_invites_spec.rb
Javi Martín 03d0ffd89e Sign in manager after setting up test data
We've got quite a messy hack to sign in managers: they need to visit a
specific URL (management root path).

That means tests signing in managers start the browser to sign them in,
which might cause issues if we setup the database after that.
2021-04-07 14:41:06 +02:00

14 lines
344 B
Ruby

require "rails_helper"
describe "User invites" do
scenario "Send invitations" do
login_as_manager
visit new_management_user_invite_path
fill_in "emails", with: "john@example.com, ana@example.com, isable@example.com"
click_button "Send invitations"
expect(page).to have_content "3 invitations have been sent."
end
end