Sha256: 7302eb4bf54b7e62cacbcd7cb3a7e12964616015f1ad5c315cd3f62033e10995

Contents?: true

Size: 1.07 KB

Versions: 12

Compression:

Stored size: 1.07 KB

Contents

# encoding: utf-8
require 'acceptance_helper'

describe 'custom_ordering with Strings WiceGrid', type: :request, js: true do
  before :each do
    visit '/custom_ordering'
  end

  it 'should be sorted by the length of the word' do
    within 'div#grid.wice-grid-container table.wice-grid tbody tr:first-child td.sorted' do
      expect(page).to have_content('New')
    end

    within 'div#grid.wice-grid-container table.wice-grid thead' do
      click_on 'Status Name'
    end

    within 'div#grid.wice-grid-container table.wice-grid tbody tr:first-child td.sorted' do
      expect(page).to have_content('Duplicate')
    end
  end

  it 'should be sorted by the position of the status' do
    within 'div#g2.wice-grid-container table.wice-grid tbody tr:first-child td.sorted' do
      expect(page).to have_content('New')
    end

    within 'div#g2.wice-grid-container table.wice-grid thead' do
      click_on 'Status Name'
    end

    within 'div#g2.wice-grid-container table.wice-grid tbody tr:first-child td.sorted' do
      expect(page).to have_content('Verified')
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

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