Skip to content

Commit bf45af7

Browse files
committed
try to fix tests
1 parent 644ad63 commit bf45af7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module WebDriver
4242
driver.navigate.to url_for('formPage.html')
4343

4444
input = driver.find_element(css: '#working')
45+
driver.execute_script('arguments[0].scrollIntoView({block: "center", inline: "nearest"});', input)
4546

4647
driver.action.send_keys(input, 'abcd').perform
4748
wait.until { input.property(:value).length == 4 }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module WebDriver
110110

111111
new_size = window.size
112112
expect(new_size.width).to be > old_size.width
113-
expect(new_size.height).to be > old_size.height
113+
expect(new_size.height).to be >= old_size.height
114114
end
115115

116116
it 'can make window full screen', except: {browser: %i[chrome edge], headless: true} do

0 commit comments

Comments
 (0)