Sha256: f9fed3692433dc5ec9abb502ad29afd6068e40a9e006b82ce9d851f0d540119d

Contents?: true

Size: 685 Bytes

Versions: 24

Compression:

Stored size: 685 Bytes

Contents

module CharacterArrayTest

  def sortReverse_by_position(factory_name, class_name, list_of_modules)
    test 'Sort Reverse by Position' do
      create_n_objects(10, factory_name)
      last_item = @instances_of_class.last
      n = 2
      visit('/admin')
      wait_for_ajax
      select_last_module_from_list(list_of_modules)
      while @instances_of_class.count+1 > n do
        title = find("a[data-id='#{@instances_of_class[@instances_of_class.count-n+1].id}']+a").text
        assert_equal title, @instances_of_class[@instances_of_class.count-n].title
        n += 1
      end
      assert page.has_css?('a.is-object div.item-title', count: class_name.count)
    end
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
chr-0.5.8 test/support/stores/array.rb
chr-0.5.7 test/support/stores/array.rb
chr-0.5.6 test/support/stores/array.rb
chr-0.5.5 test/support/stores/array.rb
chr-0.5.4 test/support/stores/array.rb
chr-0.5.3 test/support/stores/array.rb
chr-0.5.1 test/support/stores/array.rb
chr-0.5.0 test/support/stores/array.rb
chr-0.4.25 test/support/stores/array.rb
chr-0.4.24 test/support/stores/array.rb
chr-0.4.23 test/support/stores/array.rb
chr-0.4.22 test/support/stores/array.rb
chr-0.4.21 test/support/stores/array.rb
chr-0.4.20 test/support/stores/array.rb
chr-0.4.19 test/support/stores/array.rb
chr-0.4.18 test/support/stores/array.rb
chr-0.4.17 test/support/stores/array.rb
chr-0.4.15 test/support/stores/array.rb
chr-0.4.14 test/support/stores/array.rb
chr-0.4.13 test/support/stores/array.rb