Sha256: 4ac84f66a614446162c8cb4b07387be34efc0cbc705165b1c8994b560e966d38
Contents?: true
Size: 1.25 KB
Versions: 5
Compression:
Stored size: 1.25 KB
Contents
# encoding: utf-8 require 'acceptance_helper' describe 'On the page /custom_ordering with custom_ordering in controler with Strings WiceGrid', type: :request, js: true do before :each do visit '/custom_ordering' end context 'when "statuses.name" => "length( ? )"' do it 'sorts 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 end context 'when "statuses.name" => "statuses.position"' do it 'sorts 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 end
Version data entries
5 entries across 5 versions & 1 rubygems