diff --git a/appveyor.yml b/appveyor.yml index d683ec0a..3be565d8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/spec/selenium_spec_ie.rb b/spec/selenium_spec_ie.rb index 4dc74408..03e42073 100644 --- a/spec/selenium_spec_ie.rb +++ b/spec/selenium_spec_ie.rb @@ -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