Sha256: 356e6353689a761f7d6679554be218b4aec018e6c954c3125df2c95d6419c58d
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
require 'spec_helper' describe 'rails3.0 support', :type => :request, :driver => :selenium do include Retryable it 'displays a loading image' do retry_exceptions do visit("http://localhost:#{R30SERVERPORT}") # goes to welcome page page.should have_no_selector('.ajaxpagination-loader') sleep(1.5) click_link 'About' page.should have_selector('.ajaxpagination-loader') sleep(1.5) page.should have_no_selector('.ajaxpagination-loader') click_link 'Readme' page.should have_selector('.ajaxpagination-loader') sleep(1.5) page.should have_no_selector('.ajaxpagination-loader') click_link 'Changelog' sleep(2) page.should have_selector('#changelogpagetitle') find('#page').find('.next_page').click page.should have_selector('.ajaxpagination-loader') sleep(1.5) page.should have_no_selector('.ajaxpagination-loader') end end it 'submits ajax_form_tag form via post' do visit("http://localhost:#{R30SERVERPORT}/pages/about") count = page.find("#submits").html.to_i click_button("Submit") sleep(1.5) page.should have_content("#{count+1} submit") page.should have_selector('#aboutpagetitle') # ensures loading was via AJAX Pagination end end
Version data entries
4 entries across 4 versions & 1 rubygems