Sha256: 0e7a070ad566bcf76dedffd7126953d2b52c30e5b765b75b9f513ee08f285166
Contents?: true
Size: 1016 Bytes
Versions: 5
Compression:
Stored size: 1016 Bytes
Contents
# encoding: utf-8 require 'acceptance_helper' describe 'On the page /custom_ordering_with_ruby with custom_ordering in view with Ruby code WiceGrid', type: :request, js: true do before :each do visit '/custom_ordering_with_ruby' end context 'when in the columnt sort_by: ->(status) { [status.number_of_vowels, status] }' do it 'should be sorted by the number of vowels' do within 'div#grid.wice-grid-container table.wice-grid' do within 'tbody tr:first-child' do expect(page).to have_content('New') end within 'thead' do click_on 'Status Name' expect(page).to have_selector('i.fa-arrow-down') end expect(page).to have_selector('tbody tr:first-child td.sorted', text: 'New') within 'thead' do click_on 'Status Name' expect(page).to have_selector('i.fa-arrow-up') end expect(page).to have_selector('tbody tr:first-child td.sorted', text: 'Verified') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems