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:
parent
be8bed811e
commit
5242ea1c44
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue