eyes_selenium 3.17.4 → 3.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/selenium/visual_grid/chrome_emulation_info.rb +2 -2
- data/lib/applitools/selenium/visual_grid/desktop_browser_info.rb +3 -3
- data/lib/applitools/selenium/visual_grid/i_render_browser_info.rb +6 -1
- data/lib/applitools/selenium/visual_grid/ios_device_info.rb +3 -3
- data/lib/applitools/selenium/visual_grid/ios_screen_orientation.rb +1 -1
- data/lib/applitools/selenium/visual_grid/render_browser_info.rb +2 -2
- data/lib/applitools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 119f032b65d1a768ae420679f6cb509480505767691d86b7417f3cb210fb7e8d
|
4
|
+
data.tar.gz: 100b6606ffb9a405d5e042a7d424fedd96599a426235ba1056792056c26d771e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c48cea011af489db8c29a06b1b6b7ac3a10ab733f22fe46e9dc70ac9a0bd587bc5ed960c98692f34f39521e99f14d8dc3c7eb559de8ed3b9eb0adec2da41e5c6
|
7
|
+
data.tar.gz: 4388fbfb94018ef6629f019ece08eee0186bdcad74dcad6b83815aafb4a4c44b04233522d73b1f18bd829c395781b7e1610c7d419514abf3c0a772b01ae4cd61
|
@@ -7,7 +7,7 @@ module Applitools
|
|
7
7
|
DEFAULT_CONFIG = proc do
|
8
8
|
{
|
9
9
|
platform: 'linux',
|
10
|
-
browser_type:
|
10
|
+
browser_type: BrowserType::CHROME,
|
11
11
|
# size_mode: 'full-page',
|
12
12
|
viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
|
13
13
|
}
|
@@ -25,7 +25,7 @@ module Applitools
|
|
25
25
|
# end
|
26
26
|
#
|
27
27
|
def initialize(*args)
|
28
|
-
super
|
28
|
+
super
|
29
29
|
case args[0]
|
30
30
|
when String
|
31
31
|
self.emulation_info = EmulationInfo.new.tap do |ei|
|
@@ -7,7 +7,7 @@ module Applitools
|
|
7
7
|
DEFAULT_CONFIG = proc do
|
8
8
|
{
|
9
9
|
platform: 'linux',
|
10
|
-
browser_type:
|
10
|
+
browser_type: BrowserType::CHROME,
|
11
11
|
# size_mode: 'full-page',
|
12
12
|
viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
|
13
13
|
}
|
@@ -20,7 +20,7 @@ module Applitools
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def initialize(options = {})
|
23
|
-
super
|
23
|
+
super
|
24
24
|
if options[:width] && options[:height]
|
25
25
|
self.viewport_size = Applitools::RectangleSize.from_any_argument(width: options[:width], height: options[:height])
|
26
26
|
end
|
@@ -29,7 +29,7 @@ module Applitools
|
|
29
29
|
|
30
30
|
def platform
|
31
31
|
case browser_type
|
32
|
-
when
|
32
|
+
when BrowserType::EDGE_LEGACY, BrowserType::EDGE_CHROMIUM, BrowserType::EDGE_CHROMIUM_ONE_VERSION_BACK
|
33
33
|
'windows'
|
34
34
|
else
|
35
35
|
'linux'
|
@@ -3,11 +3,16 @@ module Applitools
|
|
3
3
|
class IRenderBrowserInfo < ::Applitools::AbstractConfiguration
|
4
4
|
|
5
5
|
object_field :viewport_size, Applitools::RectangleSize
|
6
|
-
enum_field :browser_type,
|
6
|
+
enum_field :browser_type, BrowserType.enum_values
|
7
7
|
string_field :platform
|
8
8
|
string_field :size_mode
|
9
9
|
string_field :baseline_env_name
|
10
10
|
|
11
|
+
def initialize(options = {})
|
12
|
+
super()
|
13
|
+
self.baseline_env_name = options[:baseline_env_name] if options[:baseline_env_name]
|
14
|
+
end
|
15
|
+
|
11
16
|
def to_s
|
12
17
|
return "#{viewport_size} (#{browser_type})"
|
13
18
|
end
|
@@ -21,10 +21,10 @@ module Applitools
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def initialize(options = {})
|
24
|
-
super
|
24
|
+
super
|
25
25
|
self.ios_device_info = EmulationInfo.new.tap do |ei|
|
26
26
|
ei.device_name = options[:device_name]
|
27
|
-
ei.screen_orientation = options[:screen_orientation] || options[:orientation] ||
|
27
|
+
ei.screen_orientation = options[:screen_orientation] || options[:orientation] || IosScreenOrientation::PORTRAIT
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -40,7 +40,7 @@ module Applitools
|
|
40
40
|
|
41
41
|
class EmulationInfo < EmulationBaseInfo
|
42
42
|
enum_field :device_name, IosDeviceName.enum_values
|
43
|
-
enum_field :screen_orientation,
|
43
|
+
enum_field :screen_orientation, IosScreenOrientation.enum_values
|
44
44
|
|
45
45
|
def json_data
|
46
46
|
{
|
@@ -23,7 +23,7 @@ module Applitools
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def initialize(options = {})
|
26
|
-
super
|
26
|
+
super
|
27
27
|
if options[:width] && options[:height]
|
28
28
|
self.viewport_size = Applitools::RectangleSize.from_any_argument(width: options[:width], height: options[:height])
|
29
29
|
end
|
@@ -33,7 +33,7 @@ module Applitools
|
|
33
33
|
def platform
|
34
34
|
return 'ios' if ios_device_info
|
35
35
|
case browser_type
|
36
|
-
when
|
36
|
+
when BrowserType::EDGE_LEGACY, BrowserType::EDGE_CHROMIUM, BrowserType::EDGE_CHROMIUM_ONE_VERSION_BACK
|
37
37
|
'windows'
|
38
38
|
else
|
39
39
|
'linux'
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.17.
|
4
|
+
version: 3.17.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eyes_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.17.
|
19
|
+
version: 3.17.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.17.
|
26
|
+
version: 3.17.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|