Skip to content

Commit dc07f85

Browse files
committed
Guard remote session ID test
1 parent a92cc4f commit dc07f85

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rb/spec/integration/selenium/webdriver/firefox/driver_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ module WebDriver
3333
expect(caps.implicit_timeout).to be_zero
3434
expect(caps.page_load_timeout).to be == 300000
3535
expect(caps.script_timeout).to be == 30000
36-
37-
expect(caps.remote_session_id).not_to be_nil if GlobalTestEnv.driver == :remote
3836
end
3937
end
4038

@@ -54,6 +52,12 @@ module WebDriver
5452
end
5553
end
5654

55+
it 'has remote session ID', only: {driver: :remote}, except: {browser: :ff_esr} do
56+
create_driver! do |driver|
57+
expect(driver.capabilities.remote_session_id).to be
58+
end
59+
end
60+
5761
it 'takes a binary path as an argument', only: {driver: :firefox} do
5862
skip "Set ENV['ALT_FIREFOX_BINARY'] to test this" unless ENV['ALT_FIREFOX_BINARY']
5963

0 commit comments

Comments
 (0)