Skip to content

Commit 430e029

Browse files
committed
Add guards
1 parent 0786987 commit 430e029

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

examples/ruby/spec/actions_api/keys_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
let(:driver) { start_session }
77
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
88

9-
it 'key down' do
9+
it 'key down', except: {platforn: :linux, reason: 'it only fails on the linux pipeline'} do
1010
driver.get 'https://www.selenium.dev/selenium/web/single_text_input.html'
1111
wait.until { driver.find_element(id: 'textInput').attribute('autofocus') }
1212

examples/ruby/spec/actions_api/mouse_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
expect(y_coord).to be_within(1).of(center_y + 11)
109109
end
110110

111-
it 'offset from viewport' do
111+
it 'offset from viewport', {platforn: :linux, reason: 'it only fails on the linux pipeline'} do
112112
driver.get 'https://www.selenium.dev/selenium/web/mouse_interaction.html'
113113

114114
driver.action

examples/ruby/spec/bidi/logging_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'spec_helper'
22

3-
RSpec.describe 'Logging' do
3+
RSpec.describe 'Logging', exclusive: {bidi: true, reason: 'only executed when bidi is enabled'},
4+
only: {browser: %i[chrome edge firefox]} do
45
let(:driver) { start_bidi_session }
56
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
67

examples/ruby/spec/bidi/network_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'spec_helper'
22

3-
RSpec.describe 'Network' do
3+
RSpec.describe 'Network', exclusive: {bidi: true, reason: 'only executed when bidi is enabled'},
4+
only: {browser: %i[chrome edge firefox]} do
45
let(:driver) { start_bidi_session }
56
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
67

examples/ruby/spec/drivers/remote_webdriver_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
require 'spec_helper'
44
require 'selenium/server'
55

6-
RSpec.describe 'Remote WebDriver' do
6+
RSpec.describe 'Remote WebDriver', except: {platform: :macosx,
7+
reason: 'it only fail due to the server in the mac pipeline'} do
78
let(:target_directory) { File.join(Dir.tmpdir, SecureRandom.uuid) }
89
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
910
let(:server) do

0 commit comments

Comments
 (0)