Skip to content

Commit 058d516

Browse files
committed
[rb] update spec guards
1 parent 8ee9571 commit 058d516

6 files changed

Lines changed: 13 additions & 21 deletions

File tree

rb/spec/integration/selenium/webdriver/action_builder_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ module WebDriver
202202
expect(element.attribute(:value)).to eq('Clicked')
203203
end
204204

205-
it 'moves to element with offset', exclude: {browser: :firefox, platform: :linux} do
205+
it 'moves to element with offset' do
206206
driver.navigate.to url_for('javascriptPage.html')
207207
origin = driver.find_element(id: 'keyUpArea')
208208
destination = driver.find_element(id: 'clickField')

rb/spec/integration/selenium/webdriver/manager_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ module WebDriver
8181
expect(driver.manage.cookie_named('domain')[:domain]).to eq('.saucelabs.com')
8282
end
8383

84-
it 'should not allow domain to be set for localhost',
85-
exclude: [{browser: %i[chrome edge],
86-
reason: "https://bugs.chromium.org/p/chromedriver/issues/detail?id=3733"}],
87-
except: {browser: %i[safari safari_preview]} do
84+
it 'should not allow domain to be set for localhost', except: {browser: %i[safari safari_preview]} do
8885
expect {
8986
driver.manage.add_cookie name: 'domain',
9087
value: 'localhost',

rb/spec/integration/selenium/webdriver/shadow_root_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
2120
require_relative 'spec_helper'
2221

2322
module Selenium

rb/spec/integration/selenium/webdriver/takes_screenshot_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def save_screenshot_and_assert(source, path)
109109
end
110110
end
111111

112-
it 'does not take full page screenshot', exclude: {browser: :firefox} do
112+
it 'does not take full page screenshot', except: {browser: :firefox} do
113113
expect {
114114
driver.save_screenshot path, full_page: true
115115
}.to raise_exception(Error::UnsupportedOperationError, /Full Page Screenshots are not supported/)

rb/spec/integration/selenium/webdriver/window_spec.rb

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ module WebDriver
6060
expect(pos.y).to be >= 0
6161
end
6262

63-
it 'sets the position of the current window' do
63+
it 'sets the position of the current window',
64+
except: {browser: :firefox,
65+
window_manager: false,
66+
reason: 'https://github.com/mozilla/geckodriver/issues/2042'} do
6467
pos = window.position
6568

6669
target_x = pos.x + 10
@@ -86,7 +89,10 @@ module WebDriver
8689
expect(rect.height).to be >= 0
8790
end
8891

89-
it 'sets the rect of the current window' do
92+
it 'sets the rect of the current window',
93+
except: {browser: :firefox,
94+
window_manager: false,
95+
reason: 'https://github.com/mozilla/geckodriver/issues/2042'} do
9096
rect = window.rect
9197

9298
target_x = rect.x + 10
@@ -116,12 +122,7 @@ module WebDriver
116122
expect(new_size.height).to be > old_size.height
117123
end
118124

119-
# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
120-
# https://github.com/mozilla/geckodriver/issues/1281
121-
it 'can make window full screen', only: {window_manager: true},
122-
exclude: [{driver: :remote, browser: :firefox, platform: :linux},
123-
{driver: :remote, browser: :safari},
124-
{browser: %i[chrome edge]}] do
125+
it 'can make window full screen', except: {window_manager: false, browser: :firefox} do
125126
window.size = old_size = Dimension.new(700, 700)
126127

127128
window.full_screen
@@ -132,11 +133,7 @@ module WebDriver
132133
expect(new_size.height).to be > old_size.height
133134
end
134135

135-
# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
136-
# https://github.com/mozilla/geckodriver/issues/1281
137-
it 'can minimize the window', only: {window_manager: true},
138-
exclude: [{driver: :remote, browser: :firefox, platform: :linux},
139-
{driver: :remote, browser: :safari}] do
136+
it 'can minimize the window', only: {window_manager: true} do
140137
window.minimize
141138
expect(driver.execute_script('return document.hidden;')).to be true
142139
end

rb/spec/unit/selenium/webdriver/support/cdp_client_generator_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
2120
require File.expand_path('../spec_helper', __dir__)
2221
require 'selenium/webdriver/support/cdp_client_generator'
2322

0 commit comments

Comments
 (0)