eyes_selenium 3.17.7 → 3.17.13

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
  SHA256:
3
- metadata.gz: d1e1cc6d5f14b8764c463018f3f808431682bb3cb7feedacc1c4d078c8bf2856
4
- data.tar.gz: 695298fd561d6c9a9736f16358135a3805417e18190daf6d9e349d47cc18a9db
3
+ metadata.gz: 44a4b1b974e0708ecd6b7e6451407670f504858ee43ceb98f847f6b7f149729d
4
+ data.tar.gz: 513d29d3617c373b6e6f6a6910316919c4f56333b614967ee980d2b74f1ba89d
5
5
  SHA512:
6
- metadata.gz: ac8f4829d35af73da8fbd52bf3fec733d8231575d8c8721c9fffc9ae23a22fcc3af3ddce45f90c0ec024dfb2202ac3bcb59201bcc54bcde3c60894e1618080bc
7
- data.tar.gz: 02ba588e928af04592b2bdffa57be76adc4c19d235d63649e82f3fc46e707fa4afa8fff65665e2aee77c8e49a3da2c8c3a88972be0edea01b77d154f3fad1693
6
+ metadata.gz: df6a8f4f7263a1fdcf17d9ee194e808c4fc2f60427421a73c45be2325b453b9987b6de669ee174fe591985bd5f391451fef089cae33b9a064c37e45e72d4a5f2
7
+ data.tar.gz: eefbbd930bf586923f8be76f490414bb6c6805e007a958eb28f765019878c8ab3f72499db50a1758bdb03ef8f95ad96e31db25de9f0af5ff8b1fdd987156b202
@@ -57,7 +57,13 @@ module Applitools
57
57
  self
58
58
  end
59
59
 
60
- def add_browsers(browsers)
60
+ def add_browsers(*browsers)
61
+ browsers = case browsers.first
62
+ when Applitools::Selenium::IRenderBrowserInfo
63
+ browsers
64
+ when Array
65
+ browsers.first
66
+ end
61
67
  browsers.each do |browser|
62
68
  add_browser(browser)
63
69
  end
@@ -1,12 +1,12 @@
1
1
  require_relative 'ios_device_name'
2
- require_relative 'ios_screen_orientation'
2
+
3
3
  module Applitools
4
4
  module Selenium
5
5
  class IosDeviceInfo < IRenderBrowserInfo
6
6
  DEFAULT_CONFIG = proc do
7
7
  {
8
8
  platform: 'ios',
9
- browser_type: BrowserTypes::IOS_SAFARI,
9
+ browser_type: BrowserType::IOS_SAFARI,
10
10
  # size_mode: 'full-page',
11
11
  viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
12
12
  }
@@ -24,7 +24,7 @@ module Applitools
24
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] || IosScreenOrientation::PORTRAIT
27
+ ei.screen_orientation = options[:screen_orientation] || options[:orientation] || Orientation::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, IosScreenOrientation.enum_values
43
+ enum_field :screen_orientation, Orientation.enum_values
44
44
 
45
45
  def json_data
46
46
  {
@@ -63,7 +63,7 @@ module Applitools
63
63
  config.test_name = options[:test_name] if config.test_name.nil? || config.test_name && config.test_name.empty?
64
64
 
65
65
  if config.viewport_size.nil? || config.viewport_size && config.viewport_size.empty?
66
- config.viewport_size = Applitools::RectangleSize.from_any_argument(options[:viewport_size])
66
+ config.viewport_size = Applitools::RectangleSize.from_any_argument(options[:viewport_size]) if options[:viewport_size]
67
67
  end
68
68
 
69
69
  self.driver = Applitools::Selenium::SeleniumEyes.eyes_driver(options.delete(:driver), self)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.7'.freeze
4
+ VERSION = '3.17.13'.freeze
5
5
  end
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.7
4
+ version: 3.17.13
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-18 00:00:00.000000000 Z
11
+ date: 2020-07-03 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.7
19
+ version: 3.17.13
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.7
26
+ version: 3.17.13
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: selenium-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +156,6 @@ files:
156
156
  - lib/applitools/selenium/visual_grid/i_render_browser_info.rb
157
157
  - lib/applitools/selenium/visual_grid/ios_device_info.rb
158
158
  - lib/applitools/selenium/visual_grid/ios_device_name.rb
159
- - lib/applitools/selenium/visual_grid/ios_screen_orientation.rb
160
159
  - lib/applitools/selenium/visual_grid/render_browser_info.rb
161
160
  - lib/applitools/selenium/visual_grid/render_info.rb
162
161
  - lib/applitools/selenium/visual_grid/render_request.rb
@@ -1,14 +0,0 @@
1
- module IosScreenOrientation
2
- extend self
3
- PORTRAIT ='portrait'
4
- LANDSCAPE_LEFT = 'landscapeLeft'
5
- LANDSCAPE_RIGHT = 'landscapeRight'
6
-
7
- def enum_values
8
- [
9
- PORTRAIT,
10
- LANDSCAPE_LEFT,
11
- LANDSCAPE_RIGHT
12
- ]
13
- end
14
- end