eyes_core 3.17.22 → 3.17.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2f68b068dd48b9cdae7e9cfc0e46431595ea08f
4
- data.tar.gz: ee8077e2cbc57fd1f613b74726af18a4088b23b1
3
+ metadata.gz: e60232c8c4f56d9a3ce5d51451c34d4b52366d20
4
+ data.tar.gz: a9f712d9d757ca5ce3563b7346c59d0cd0f6893a
5
5
  SHA512:
6
- metadata.gz: ca66f4e8f3f6743671732d3a7aa5de14c6aa3ce49a2145556ed8c6be925f3365359d7daa9bffeeca4993297459b53cf978b0594ec86102038d5258cfcbb4e2f8
7
- data.tar.gz: 7f8464d5f9b98458d5cc99eacf76eeae3c26f73fb22d4ad5b5fac7ceaafc23beb2c8e3c39a163e6919814a51a1e61e9dcfaf9690af2ddaad3fc84d4990c932e9
6
+ metadata.gz: 364de46faa621389349dc015d5ff061c38adcc7b3cfdf0c7cdd77d10728d27e178a3fe67499de52b381c59d1e87d45dcfa50ac38a476b3f6d77c7ca6d39f0c72
7
+ data.tar.gz: 24cd2636e19894ab0b65da7e44aee46a72df64f8c57b7bd0617a1e49855d382daebdced58c5efdfa48ba7e76395aebd240489c5c604ebbb8d27b25c39afb6f23
@@ -12,6 +12,14 @@ module Applitools
12
12
 
13
13
  def convert_viewport_rect_coordinates
14
14
  region = viewport_rect
15
+
16
+ session_info = Applitools::Utils::EyesSeleniumUtils.session_capabilities(driver)
17
+ if session_info['deviceScreenSize']
18
+ device_height = session_info['deviceScreenSize'].split('x').last.to_i
19
+ system_bars_height = driver.get_system_bars.map {|_,v| v['height'] }.sum
20
+ region['height'] = device_height - system_bars_height
21
+ end
22
+
15
23
  Applitools::Region.new(
16
24
  region['left'],
17
25
  region['top'],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.22'.freeze
4
+ VERSION = '3.17.23'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.17.22
4
+ version: 3.17.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png