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.
14 lines
344 B
Ruby
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
|