Skip to content

Commit

Permalink
[rb] add guards with messages for server bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jul 15, 2020
1 parent 78c5f0b commit abb9f94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rb/spec/integration/selenium/webdriver/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
module Selenium
module WebDriver
describe Driver do
it_behaves_like 'driver that can be started concurrently', except: {browser: %i[safari safari_preview]}
it_behaves_like 'driver that can be started concurrently', except: [{browser: %i[safari safari_preview]},
{driver: :remote, reason: 8524}]

it 'creates default capabilities' do
reset_driver! do |driver|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def read_generated_prefs(from = nil)
end
end

it 'should be able to use the same profile more than once' do
it 'should be able to use the same profile more than once', except: {driver: :remote,
reason: "Likely related to #8524"} do
create_driver!(capabilities: Options.new(profile: profile)) do |driver1|
expect { wait(5).until { driver1.find_element(id: 'oneline') } }.not_to raise_error
create_driver!(capabilities: Options.new(profile: profile)) do |driver2|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

module Selenium
module WebDriver
describe Element, exclusive: {driver: :remote} do
describe Element, {exclusive: {driver: :remote},
except: {driver: :remote, reason: 8525}} do
before do
driver.file_detector = ->(filename) { File.join(__dir__, filename) }
end
Expand Down

0 comments on commit abb9f94

Please sign in to comment.