Sha256: 3a5547cd24b5a625a06e3e138b7afc635d589e8b99bd30c9c6a949e30db6aa16
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ require File.expand_path('../acceptance_helper.rb', __dir__) feature 'Groups tab', ' In order to increase customer satisfaction As an administrator I want to manage groups ' do before(:each) do do_login(first_name: 'Captain', last_name: 'Kirk', admin: true) end scenario 'should create a new group', js: true do create(:user, first_name: "Mr", last_name: "Spock") visit admin_groups_path expect(page).to have_content("Couldn't find any Groups.") click_link 'create a new group' expect(page).to have_selector('#group_name', visible: true) fill_in 'group_name', with: 'The Enterprise Bridge' select2 'Mr Spock', from: 'Users' click_button 'Create Group' expect(page).to have_content('The Enterprise Bridge') expect(page).to have_content('members: Mr Spock') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.20.1 | spec/features/admin/groups_spec.rb |
fat_free_crm-0.20.0 | spec/features/admin/groups_spec.rb |