Skip to content

Commit

Permalink
Guard remote session ID test
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Mar 2, 2018
1 parent a92cc4f commit dc07f85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rb/spec/integration/selenium/webdriver/firefox/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ module WebDriver
expect(caps.implicit_timeout).to be_zero
expect(caps.page_load_timeout).to be == 300000
expect(caps.script_timeout).to be == 30000

expect(caps.remote_session_id).not_to be_nil if GlobalTestEnv.driver == :remote
end
end

Expand All @@ -54,6 +52,12 @@ module WebDriver
end
end

it 'has remote session ID', only: {driver: :remote}, except: {browser: :ff_esr} do
create_driver! do |driver|
expect(driver.capabilities.remote_session_id).to be
end
end

it 'takes a binary path as an argument', only: {driver: :firefox} do
skip "Set ENV['ALT_FIREFOX_BINARY'] to test this" unless ENV['ALT_FIREFOX_BINARY']

Expand Down

0 comments on commit dc07f85

Please sign in to comment.