1 require "application_system_test_case"
 
   3 class UsersTest < ApplicationSystemTestCase
 
   5     admin = create(:administrator_user)
 
   9   test "all users can be selected" do
 
  10     create_list(:user, 100)
 
  14     assert_css "tbody input[type=checkbox]:checked", :count => 0
 
  15     assert_css "tbody input[type=checkbox]:not(:checked)", :count => 50
 
  17     assert_css "tbody input[type=checkbox]:checked", :count => 50
 
  18     assert_css "tbody input[type=checkbox]:not(:checked)", :count => 0
 
  20     click_on "Older Users", :match => :first
 
  22     assert_css "tbody input[type=checkbox]:checked", :count => 0
 
  23     assert_css "tbody input[type=checkbox]:not(:checked)", :count => 50
 
  25     assert_css "tbody input[type=checkbox]:checked", :count => 50
 
  26     assert_css "tbody input[type=checkbox]:not(:checked)", :count => 0