Skip to content

Commit

Permalink
[rb] update guards for tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 2, 2022
1 parent 878ce7e commit 718f4f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ module WebDriver

describe '#scroll_by', only: {browser: %i[chrome edge firefox]} do
it 'scrolls by given amount', except: {browser: :firefox,
platform: :macosx,
platform: %i[macosx, windows],
reason: 'scrolls insufficient number of pixels'} do
driver.navigate.to url_for('scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html')
footer = driver.find_element(tag_name: 'footer')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ module Firefox
expect(driver.find_elements(id: 'webextensions-selenium-example')).to be_empty
end

it 'install and uninstall signed directory' do
it 'install and uninstall signed directory', except: {platform: :windows,
reason: 'signature must be different for windows'} do
ext = File.expand_path("#{extensions}/webextensions-selenium-example-signed/", __dir__)
id = driver.install_addon(ext)

Expand Down
3 changes: 1 addition & 2 deletions rb/spec/integration/selenium/webdriver/zipper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def create_file
expect(File).to exist(zip_file)
end

# Bug - `File.symlink` has permissions issues on Windows
it 'follows symlinks', except: {platform: :windows} do
it 'follows symlinks' do
filename = create_file
File.symlink(filename, File.join(dir_to_zip, 'link'))

Expand Down

0 comments on commit 718f4f2

Please sign in to comment.