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

Change Appveyor Windows res and resize the IE session window so requireWindowFocus can be used

This commit is contained in:
Thomas Walpole 2018-08-30 16:42:48 -07:00
parent be8bed811e
commit 5242ea1c44
2 changed files with 8 additions and 1 deletions

View file

@ -17,6 +17,11 @@ matrix:
- CAPYBARA_IE: true
- CAPYBARA_EDGE: true
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/set-screenresolution.ps1'))
- ps: Set-ScreenResolution 1600 1200
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- cinst Firefox GoogleChrome

View file

@ -21,6 +21,8 @@ module TestSessions
SeleniumIE = Capybara::Session.new(:selenium_ie, TestApp)
end
TestSessions::SeleniumIE.current_window.resize_to(800, 500)
skipped_tests = %i[response_headers status_code trigger modals hover form_attribute windows]
$stdout.puts `#{Selenium::WebDriver::IE.driver_path} --version` if ENV['CI']
@ -74,6 +76,6 @@ RSpec.describe Capybara::Selenium::Node do
session = TestSessions::SeleniumIE
session.visit('/with_js')
session.find(:css, '#click-test').double_click(:shift)
expect(@session).to have_link('Has been shift double clicked')
expect(session).to have_link('Has been shift double clicked')
end
end