Skip to content

Commit

Permalink
fix: linux position spec
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Sep 14, 2023
1 parent ae06adf commit 4e26235
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@
end

describe "#position=" do
it "allows the window to be positioned", if: !Ferrum::Utils::Platform.mac? do
it "allows the window to be positioned" do
skip if Ferrum::Utils::Platform.mac? && !browser.headless_new?

expect do
page.position = { left: 10, top: 20 }
end.to change {
page.position
}.from([0, 0]).to([10, 20])
}.to([10, 20])
end
end

Expand Down

0 comments on commit 4e26235

Please sign in to comment.