Sha256: 1fa2391f6b6d932b8ab2c996191c70cb7b330691ec2ffa45023776567f0da8e8
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 Arel WiceGrid', type: :request, js: true do before :each do visit '/custom_ordering_with_arel' 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