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
