Sha256: e60327019b34d08e2f66cd705b81e77ecc81652747835585486e007f1a4a3b52
Contents?: true
Size: 993 Bytes
Versions: 5
Compression:
Stored size: 993 Bytes
Contents
# encoding: utf-8 require 'acceptance_helper' describe 'On the page /custom_ordering_on_calculated with sort_by: as a Proc WiceGrid', type: :request, js: true do before :each do visit '/custom_ordering_on_calculated' end it 'allows to sort by the result of the Proc' 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
5 entries across 5 versions & 1 rubygems