Sha256: f89ea220db1cf77d443a3ed96bc40ceed0b37fd40f5e74c546456b1f69018df5
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
require 'spec_helper' describe 'paginating with javascript on', :type => :request, :driver => :selenium, :js => true do it 'works' do visit("http://#{SERVERIP}:#{SERVERPORT}") # goes to welcome page page.should have_no_selector('#aboutpagetitle') click_link 'About' page.should have_selector('#aboutpagetitle') page.should have_no_selector('#readmepagetitle') click_link 'Readme' page.should have_selector('#readmepagetitle') page.should have_no_selector('#aboutpagetitle') end it 'works with nested and multiple paginated sections' do visit("http://#{SERVERIP}:#{SERVERPORT}/changelog") page.should have_selector('.previous_page.disabled') find('#page').find('.next_page').click page.should have_no_selector('.previous_page.disabled') find('#signin').click visit("http://#{SERVERIP}:#{SERVERPORT}/posts") page.should have_selector('#page .previous_page.disabled') find('#page').find('.next_page').click sleep(1) page.should have_no_selector('#page .previous_page.disabled') page.should have_selector('#upcomingpage .previous_page.disabled') find('#upcomingpage').find('.next_page').click sleep(1) page.should have_no_selector('#upcomingpage .previous_page.disabled') page.should have_no_selector('#page .previous_page.disabled') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax_pagination-0.6.5 | spec/ajax_pagination/integration/paginate_spec.rb |
ajax_pagination-0.6.4 | spec/ajax_pagination/integration/paginate_spec.rb |