Skip to content

Commit

Permalink
[rb] Disable window minimize test for Chrome on Linux CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed May 1, 2023
1 parent f2b2780 commit cc87ca0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rb/spec/integration/selenium/webdriver/window_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ module WebDriver
expect(new_size.height).to be > old_size.height
end

it 'can minimize the window', except: {browser: %i[chrome edge], headless: true} do
it 'can minimize the window', except: [
{browser: %i[chrome edge], headless: true, reason: 'Cannot minimize a headless window'},
{browser: :chrome, platform: :linux, ci: :github, reason: 'Minimize fails with an error'}
] do
window.minimize
expect(driver.execute_script('return document.hidden;')).to be true
end
Expand Down

2 comments on commit cc87ca0

@titusfortner
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be passing since we added the window manager to the CI?

@p0deje
Copy link
Member Author

@p0deje p0deje commented on cc87ca0 May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It used to pass, then stopped and now it's passing again 🤷

Please sign in to comment.