1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

sinatra merged to master

This commit is contained in:
Thomas Walpole 2016-01-27 08:57:11 -08:00
parent 6f4c8ffc37
commit f1ba67dfdf
2 changed files with 1 additions and 9 deletions

View file

@ -5,4 +5,4 @@ gemspec :path => '..'
gem 'xpath', github: 'jnicklas/xpath' gem 'xpath', github: 'jnicklas/xpath'
gem 'rack', github: 'rack/rack' gem 'rack', github: 'rack/rack'
gem 'sinatra', github: 'sinatra/sinatra', branch: '2.2.0-alpha' gem 'sinatra', github: 'sinatra/sinatra', branch: 'master'

View file

@ -86,14 +86,10 @@ Capybara::SpecHelper.spec Capybara::Window, requires: [:windows] do
describe '#size' do describe '#size' do
it 'should return size of whole window', requires: [:windows, :js] do it 'should return size of whole window', requires: [:windows, :js] do
skip "Chromedriver returns a size larger than outerWidth, outerHeight???" if ENV['TRAVIS'] && @session.respond_to?(:mode) && (@session.mode == :selenium_chrome)
expect(@session.current_window.size).to eq @session.evaluate_script("[window.outerWidth, window.outerHeight];") expect(@session.current_window.size).to eq @session.evaluate_script("[window.outerWidth, window.outerHeight];")
end end
it 'should switch to original window if invoked not for current window' do it 'should switch to original window if invoked not for current window' do
skip "Chromedriver returns a size larger than outerWidth, outerHeight???" if ENV['TRAVIS'] && @session.respond_to?(:mode) && (@session.mode == :selenium_chrome)
@other_window = @session.window_opened_by do @other_window = @session.window_opened_by do
@session.find(:css, '#openWindow').click @session.find(:css, '#openWindow').click
end end
@ -132,8 +128,6 @@ Capybara::SpecHelper.spec Capybara::Window, requires: [:windows] do
describe '#maximize' do describe '#maximize' do
it 'should be able to maximize window', requires: [:windows, :js] do it 'should be able to maximize window', requires: [:windows, :js] do
skip "This test fails when run with Firefox on Travis - see issue #1493 - skipping for now" if ENV['TRAVIS'] && @session.respond_to?(:mode) && (@session.mode == :selenium_focus)
screen_width, screen_height = @session.evaluate_script("[window.screen.availWidth, window.screen.availHeight];") screen_width, screen_height = @session.evaluate_script("[window.screen.availWidth, window.screen.availHeight];")
window = @session.current_window window = @session.current_window
window.resize_to(screen_width-100, screen_height-100) window.resize_to(screen_width-100, screen_height-100)
@ -144,8 +138,6 @@ Capybara::SpecHelper.spec Capybara::Window, requires: [:windows] do
end end
it 'should stay on current window if invoked not for current window', requires: [:windows, :js] do it 'should stay on current window if invoked not for current window', requires: [:windows, :js] do
skip "This test fails when run with Firefox on Travis - see issue #1493 - skipping for now" if ENV['TRAVIS'] && @session.respond_to?(:mode) && (@session.mode == :selenium_focus)
@other_window = @session.window_opened_by do @other_window = @session.window_opened_by do
@session.find(:css, '#openWindow').click @session.find(:css, '#openWindow').click
end end