Sha256: b6a6c65a9c8b000bfce69b5d0ef359d9f22c957905816a0debd0855a34134da0

Contents?: true

Size: 955 Bytes

Versions: 12

Compression:

Stored size: 955 Bytes

Contents

# encoding: utf-8
require 'acceptance_helper'

describe 'custom_ordering on calculated WiceGrid', type: :request, js: true do
  before :each do
    visit '/custom_ordering_on_calculated'
  end

  it 'should be sorted by the number of tasks' do
    within 'div#grid.wice-grid-container table.wice-grid' do
      expect(page).to have_selector('tbody tr:first-child', text: 'New')

      within 'thead' do
        click_on 'Task Count'
        expect(page).to have_selector('i.fa-arrow-down')
      end

      expect(page).to have_selector('tbody tr:first-child', text: 'New')
      expect(page).to have_selector('tbody tr:first-child td.sorted', text: '3')

      within 'thead' do
        click_on 'Task Count'
        expect(page).to have_selector('i.fa-arrow-up')
      end

      expect(page).to have_selector('tbody tr:first-child', text: 'Duplicate')
      expect(page).to have_selector('tbody tr:first-child td.sorted', text: '10')
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
wice_grid-6.1.3 spec/features/custom_ordering_on_calculated_request_spec.rb
wice_grid-6.1.2 spec/features/custom_ordering_on_calculated_request_spec.rb
wice_grid-6.1.1 spec/features/custom_ordering_on_calculated_request_spec.rb
wice_grid-6.1.0 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-7.0.0 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-6.1.2 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-6.1.1 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-6.1.0 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-5.0.2 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-5.0.1 spec/features/custom_ordering_on_calculated_request_spec.rb
pwice_grid-5.0.0 spec/features/custom_ordering_on_calculated_request_spec.rb
wice_grid-4.1.0 spec/features/custom_ordering_on_calculated_request_spec.rb