Skip to content

Commit

Permalink
[rb] move test guards from describe to it blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 31, 2023
1 parent 782a23a commit 8661339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rb/spec/integration/selenium/webdriver/remote/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

module Selenium
module WebDriver
describe Element, exclusive: {driver: :remote}, flaky: {browser: :safari, ci: :github} do
describe Element do
before do
driver.file_detector = ->(filename) { File.join(__dir__, filename) }
end
Expand All @@ -31,7 +31,7 @@ module WebDriver
end

context 'when uploading one file' do
it 'uses the provided file detector' do
it 'uses the provided file detector', exclusive: {driver: :remote}, flaky: {browser: :safari, ci: :github} do
driver.navigate.to url_for('upload.html')

driver.find_element(id: 'upload').send_keys('element_spec.rb')
Expand All @@ -47,7 +47,7 @@ module WebDriver
end

context 'when uploading multiple files' do
it 'uses the provided file detector' do
it 'uses the provided file detector', exclusive: {driver: :remote}, flaky: {browser: :safari, ci: :github} do
driver.navigate.to url_for('upload_multiple.html')

driver.find_element(id: 'upload').send_keys("driver_spec.rb\nelement_spec.rb")
Expand Down

0 comments on commit 8661339

Please sign in to comment.