eyes_selenium 6.6.1 → 6.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +55 -0
- data/eyes_selenium.gemspec +1 -1
- data/lib/applitools/eyes_selenium/version.rb +2 -1
- data/lib/applitools/selenium/visual_grid/ios_device_name_generated.rb +0 -2
- metadata +4 -7
- data/lib/applitools/selenium/visual_grid/android_device_info.rb +0 -65
- data/lib/applitools/selenium/visual_grid/android_device_name.rb +0 -49
- data/lib/applitools/selenium/visual_grid/android_device_name_generated.rb +0 -77
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95bac13ec2e2de7f91d004a7dacea7951e29b61b2324bb44a52f93c0040cb5ed
|
4
|
+
data.tar.gz: 457925acfd92b58263b7ec72791f783082cb004a5a668962247556e820f092b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66c422e6852287d304fe8fa95656097f5bcdf89cf7713e0156aef04935dc4ce10ab3746154a32562649553178734483cf503c22d5871ea996c4a1f667bca9f5d
|
7
|
+
data.tar.gz: 8f592723a24148ffd219ab9ce637f32420bcdfe6f5f5b03ea707396b59550a34176d9aed5f417d3e6ed7d465f210a42908d3a6edebe2fd4bf8ab0fed29135742
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,60 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [6.7.0](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_selenium@6.6.1...ruby/eyes_selenium@6.7.0) (2025-01-30)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* remove iPhoneX from list of available UFG Safari devices ([#2756](https://github.com/Applitools-Dev/sdk/issues/2756)) ([e24d054](https://github.com/Applitools-Dev/sdk/commit/e24d054328df900fbc4988fdbf8213aadffa9a37))
|
9
|
+
|
10
|
+
|
11
|
+
### Dependencies
|
12
|
+
|
13
|
+
* @applitools/dom-snapshot bumped to 4.11.15
|
14
|
+
|
15
|
+
* @applitools/driver bumped to 1.20.4
|
16
|
+
#### Bug Fixes
|
17
|
+
|
18
|
+
* handle device screen info extraction gracefully ([#2757](https://github.com/Applitools-Dev/sdk/issues/2757)) ([92d0118](https://github.com/Applitools-Dev/sdk/commit/92d0118137b77e49d780092d110973df8ed8b40c))
|
19
|
+
* eyes_universal bumped to 4.31.0
|
20
|
+
#### Features
|
21
|
+
|
22
|
+
* remove iPhoneX from list of available UFG Safari devices ([#2756](https://github.com/Applitools-Dev/sdk/issues/2756)) ([e24d054](https://github.com/Applitools-Dev/sdk/commit/e24d054328df900fbc4988fdbf8213aadffa9a37))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
* @applitools/spec-driver-webdriver bumped to 1.1.25
|
27
|
+
|
28
|
+
* @applitools/spec-driver-selenium bumped to 1.5.95
|
29
|
+
|
30
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.24
|
31
|
+
|
32
|
+
* @applitools/screenshoter bumped to 3.10.5
|
33
|
+
|
34
|
+
* @applitools/nml-client bumped to 1.8.24
|
35
|
+
|
36
|
+
* @applitools/ufg-client bumped to 1.16.3
|
37
|
+
#### Bug Fixes
|
38
|
+
|
39
|
+
* unthrottle renders in offline mode ([#2754](https://github.com/Applitools-Dev/sdk/issues/2754)) ([b65d816](https://github.com/Applitools-Dev/sdk/commit/b65d81610504ae725b7b52611282a1bb28a049fe))
|
40
|
+
* @applitools/ec-client bumped to 1.10.3
|
41
|
+
|
42
|
+
* @applitools/core bumped to 4.31.0
|
43
|
+
#### Features
|
44
|
+
|
45
|
+
* remove iPhoneX from list of available UFG Safari devices ([#2756](https://github.com/Applitools-Dev/sdk/issues/2756)) ([e24d054](https://github.com/Applitools-Dev/sdk/commit/e24d054328df900fbc4988fdbf8213aadffa9a37))
|
46
|
+
|
47
|
+
|
48
|
+
#### Bug Fixes
|
49
|
+
|
50
|
+
* handle device screen info extraction gracefully ([#2757](https://github.com/Applitools-Dev/sdk/issues/2757)) ([92d0118](https://github.com/Applitools-Dev/sdk/commit/92d0118137b77e49d780092d110973df8ed8b40c))
|
51
|
+
* unthrottle renders in offline mode ([#2754](https://github.com/Applitools-Dev/sdk/issues/2754)) ([b65d816](https://github.com/Applitools-Dev/sdk/commit/b65d81610504ae725b7b52611282a1bb28a049fe))
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
* eyes_core bumped to 6.5.2
|
56
|
+
|
57
|
+
|
3
58
|
## [6.6.1](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_selenium@6.6.0...ruby/eyes_selenium@6.6.1) (2025-01-19)
|
4
59
|
|
5
60
|
|
data/eyes_selenium.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
26
26
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
27
27
|
spec.require_paths = %w(lib)
|
28
|
-
spec.add_dependency 'eyes_core', "= 6.5.
|
28
|
+
spec.add_dependency 'eyes_core', "= 6.5.2"
|
29
29
|
spec.add_dependency 'selenium-webdriver', '>= 3'
|
30
30
|
spec.add_dependency 'css_parser'
|
31
31
|
spec.add_dependency 'crass'
|
@@ -19,7 +19,6 @@ module IosDeviceNameGenerated
|
|
19
19
|
IPad_Pro_11_inch_4 = 'iPad Pro (11-inch) (4th generation)'.freeze
|
20
20
|
IPhone_SE_2 = 'iPhone SE (2nd generation)'.freeze
|
21
21
|
IPhone_SE_3 = 'iPhone SE (3rd generation)'.freeze
|
22
|
-
IPhone_X = 'iPhone X'.freeze
|
23
22
|
IPhone_XR = 'iPhone XR'.freeze
|
24
23
|
|
25
24
|
# Deprecated: Use IosDeviceName::IPhone_Xs instead.
|
@@ -63,7 +62,6 @@ module IosDeviceNameGenerated
|
|
63
62
|
IPad_Pro_11_inch_4,
|
64
63
|
IPhone_SE_2,
|
65
64
|
IPhone_SE_3,
|
66
|
-
IPhone_X,
|
67
65
|
IPhone_XR,
|
68
66
|
IPhone_XS, # Deprecated: Use IosDeviceName::IPhone_Xs instead.
|
69
67
|
IPhone_Xs,
|
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: 6.
|
4
|
+
version: 6.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-30 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: 6.5.
|
19
|
+
version: 6.5.2
|
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: 6.5.
|
26
|
+
version: 6.5.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,9 +140,6 @@ files:
|
|
140
140
|
- lib/applitools/selenium/test_list.rb
|
141
141
|
- lib/applitools/selenium/viewport_screenshot.rb
|
142
142
|
- lib/applitools/selenium/viewport_size.rb
|
143
|
-
- lib/applitools/selenium/visual_grid/android_device_info.rb
|
144
|
-
- lib/applitools/selenium/visual_grid/android_device_name.rb
|
145
|
-
- lib/applitools/selenium/visual_grid/android_device_name_generated.rb
|
146
143
|
- lib/applitools/selenium/visual_grid/chrome_emulation_info.rb
|
147
144
|
- lib/applitools/selenium/visual_grid/desktop_browser_info.rb
|
148
145
|
- lib/applitools/selenium/visual_grid/dom_snapshot_script.rb
|
@@ -1,65 +0,0 @@
|
|
1
|
-
require_relative 'i_render_browser_info'
|
2
|
-
require_relative 'emulation_base_info'
|
3
|
-
|
4
|
-
module Applitools
|
5
|
-
module Selenium
|
6
|
-
class AndroidDeviceInfo < IRenderBrowserInfo
|
7
|
-
DEFAULT_CONFIG = proc do
|
8
|
-
{
|
9
|
-
viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
|
10
|
-
}
|
11
|
-
end
|
12
|
-
|
13
|
-
object_field :android_device_info, Applitools::Selenium::EmulationBaseInfo
|
14
|
-
|
15
|
-
class << self
|
16
|
-
def default_config
|
17
|
-
DEFAULT_CONFIG.call
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def initialize(options = {})
|
22
|
-
super
|
23
|
-
self.android_device_info = EmulationInfo.new.tap do |ei|
|
24
|
-
ei.device_name = options[:device_name]
|
25
|
-
ei.screen_orientation = options[:screen_orientation] || options[:orientation] || Orientation::PORTRAIT
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def to_s
|
30
|
-
"#{android_device_info.device_name} - #{android_device_info.screen_orientation}"
|
31
|
-
end
|
32
|
-
|
33
|
-
def device_name
|
34
|
-
android_device_info.device_name
|
35
|
-
end
|
36
|
-
|
37
|
-
def to_hash
|
38
|
-
{androidDeviceInfo: android_device_info.to_hash}
|
39
|
-
end
|
40
|
-
|
41
|
-
private
|
42
|
-
|
43
|
-
class EmulationInfo < EmulationBaseInfo
|
44
|
-
enum_field :device_name, Devices.enum_values
|
45
|
-
enum_field :screen_orientation, Orientation.enum_values
|
46
|
-
|
47
|
-
def json_data
|
48
|
-
{
|
49
|
-
name: device_name,
|
50
|
-
screenOrientation: screen_orientation,
|
51
|
-
version: 'latest'
|
52
|
-
}
|
53
|
-
end
|
54
|
-
|
55
|
-
def to_hash
|
56
|
-
{
|
57
|
-
deviceName: device_name,
|
58
|
-
screenOrientation: screen_orientation,
|
59
|
-
iosVersion: 'latest'
|
60
|
-
}
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: false
|
2
|
-
require_relative 'android_device_name_generated'
|
3
|
-
|
4
|
-
module AndroidDeviceName
|
5
|
-
include AndroidDeviceNameGenerated
|
6
|
-
extend self
|
7
|
-
|
8
|
-
def support_drop_for_android_device_name
|
9
|
-
{
|
10
|
-
GalaxyNote8: 'Galaxy Note 8'.freeze,
|
11
|
-
GalaxyNote9: 'Galaxy Note 9'.freeze,
|
12
|
-
GalaxyS8: 'Galaxy S8'.freeze,
|
13
|
-
GalaxyS8Plus: 'Galaxy S8 Plus'.freeze,
|
14
|
-
GalaxyS9Plus: 'Galaxy S9 Plus'.freeze,
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
|
-
def pascal_android_device_name
|
19
|
-
{
|
20
|
-
Pixel3XL: 'AndroidDeviceName::Pixel_3_XL'.freeze,
|
21
|
-
Pixel4: 'AndroidDeviceName::Pixel_4'.freeze,
|
22
|
-
Pixel4XL: 'AndroidDeviceName::Pixel_4_XL'.freeze,
|
23
|
-
GalaxyS9: 'AndroidDeviceName::Galaxy_S9'.freeze,
|
24
|
-
GalaxyS10: 'AndroidDeviceName::Galaxy_S10'.freeze,
|
25
|
-
GalaxyS10Plus: 'AndroidDeviceName::Galaxy_S10_Plus'.freeze,
|
26
|
-
GalaxyNote10: 'AndroidDeviceName::Galaxy_Note_10'.freeze,
|
27
|
-
GalaxyNote10Plus: 'AndroidDeviceName::Galaxy_Note_10_Plus'.freeze,
|
28
|
-
GalaxyS20: 'AndroidDeviceName::Galaxy_S20'.freeze,
|
29
|
-
GalaxyS20Plus: 'AndroidDeviceName::Galaxy_S20_Plus'.freeze,
|
30
|
-
GalaxyS21: 'AndroidDeviceName::Galaxy_S21'.freeze,
|
31
|
-
GalaxyS21Plus: 'AndroidDeviceName::Galaxy_S21_Plus'.freeze,
|
32
|
-
GalaxyS21Ultra: 'AndroidDeviceName::Galaxy_S21_Ultra'.freeze,
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
def const_missing(name)
|
37
|
-
if pascal_android_device_name.include?(name)
|
38
|
-
# deprecate_constant :... not allow to point to new version (
|
39
|
-
puts "Warning: constant AndroidDeviceName::#{name} is deprecated use #{pascal_android_device_name[name]} instead."
|
40
|
-
const_get(pascal_android_device_name[name])
|
41
|
-
elsif support_drop_for_android_device_name.include?(name)
|
42
|
-
raise Applitools::EyesIllegalArgument, 'support dropped for Android 9/10 specific devices, try to use more modern device'
|
43
|
-
else
|
44
|
-
super
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
# now actual enum_values are in generated file
|
49
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# GENERATED FILE #
|
2
|
-
|
3
|
-
module AndroidDeviceNameGenerated
|
4
|
-
extend self
|
5
|
-
Galaxy_S20 = 'Galaxy S20'.freeze
|
6
|
-
Galaxy_S20_Plus = 'Galaxy S20 Plus'.freeze
|
7
|
-
|
8
|
-
# Deprecated: Use AndroidDeviceName::Galaxy_S20_Plus instead.
|
9
|
-
# deprecate_constant :Galaxy_S20_PLUS not allow to point to new version (
|
10
|
-
Galaxy_S20_PLUS = 'Galaxy S20 Plus'.freeze
|
11
|
-
Galaxy_S21_Ultra = 'Galaxy S21 Ultra'.freeze
|
12
|
-
|
13
|
-
# Deprecated: Use AndroidDeviceName::Galaxy_S21_Ultra instead.
|
14
|
-
# deprecate_constant :Galaxy_S21_ULTRA not allow to point to new version (
|
15
|
-
Galaxy_S21_ULTRA = 'Galaxy S21 Ultra'.freeze
|
16
|
-
Galaxy_Note_10_Plus = 'Galaxy Note 10 Plus'.freeze
|
17
|
-
Galaxy_S9 = 'Galaxy S9'.freeze
|
18
|
-
Galaxy_S10 = 'Galaxy S10'.freeze
|
19
|
-
Galaxy_S10_Plus = 'Galaxy S10 Plus'.freeze
|
20
|
-
Pixel_4_XL = 'Pixel 4 XL'.freeze
|
21
|
-
Pixel_3_XL = 'Pixel 3 XL'.freeze
|
22
|
-
Galaxy_S21 = 'Galaxy S21'.freeze
|
23
|
-
Galaxy_S21_Plus = 'Galaxy S21 Plus'.freeze
|
24
|
-
|
25
|
-
# Deprecated: Use AndroidDeviceName::Galaxy_S21_Plus instead.
|
26
|
-
# deprecate_constant :Galaxy_S21_PLUS not allow to point to new version (
|
27
|
-
Galaxy_S21_PLUS = 'Galaxy S21 Plus'.freeze
|
28
|
-
Xiaomi_Redmi_Note_11_Pro = 'Xiaomi Redmi Note 11 Pro'.freeze
|
29
|
-
Xiaomi_Redmi_Note_11 = 'Xiaomi Redmi Note 11'.freeze
|
30
|
-
Xiaomi_Redmi_Note_10_JE = 'Xiaomi Redmi Note 10 JE'.freeze
|
31
|
-
Pixel_6 = 'Pixel 6'.freeze
|
32
|
-
Galaxy_Note_10 = 'Galaxy Note 10'.freeze
|
33
|
-
Pixel_4 = 'Pixel 4'.freeze
|
34
|
-
Pixel_5 = 'Pixel 5'.freeze
|
35
|
-
Galaxy_S22 = 'Galaxy S22'.freeze
|
36
|
-
Galaxy_S22_Plus = 'Galaxy S22 Plus'.freeze
|
37
|
-
Galaxy_Tab_S8 = 'Galaxy Tab S8'.freeze
|
38
|
-
Galaxy_Tab_S7 = 'Galaxy Tab S7'.freeze
|
39
|
-
Sony_Xperia_10_II = 'Sony Xperia 10 II'.freeze
|
40
|
-
Sony_Xperia_1_II = 'Sony Xperia 1 II'.freeze
|
41
|
-
Sony_Xperia_Ace_II = 'Sony Xperia Ace II'.freeze
|
42
|
-
Huawei_P30_Lite = 'Huawei P30 Lite'.freeze
|
43
|
-
|
44
|
-
def enum_values
|
45
|
-
[
|
46
|
-
Galaxy_S20,
|
47
|
-
Galaxy_S20_Plus,
|
48
|
-
Galaxy_S20_PLUS, # Deprecated: Use AndroidDeviceName::Galaxy_S20_Plus instead.
|
49
|
-
Galaxy_S21_Ultra,
|
50
|
-
Galaxy_S21_ULTRA, # Deprecated: Use AndroidDeviceName::Galaxy_S21_Ultra instead.
|
51
|
-
Galaxy_Note_10_Plus,
|
52
|
-
Galaxy_S9,
|
53
|
-
Galaxy_S10,
|
54
|
-
Galaxy_S10_Plus,
|
55
|
-
Pixel_4_XL,
|
56
|
-
Pixel_3_XL,
|
57
|
-
Galaxy_S21,
|
58
|
-
Galaxy_S21_Plus,
|
59
|
-
Galaxy_S21_PLUS, # Deprecated: Use AndroidDeviceName::Galaxy_S21_Plus instead.
|
60
|
-
Xiaomi_Redmi_Note_11_Pro,
|
61
|
-
Xiaomi_Redmi_Note_11,
|
62
|
-
Xiaomi_Redmi_Note_10_JE,
|
63
|
-
Pixel_6,
|
64
|
-
Galaxy_Note_10,
|
65
|
-
Pixel_4,
|
66
|
-
Pixel_5,
|
67
|
-
Galaxy_S22,
|
68
|
-
Galaxy_S22_Plus,
|
69
|
-
Galaxy_Tab_S8,
|
70
|
-
Galaxy_Tab_S7,
|
71
|
-
Sony_Xperia_10_II,
|
72
|
-
Sony_Xperia_1_II,
|
73
|
-
Sony_Xperia_Ace_II,
|
74
|
-
Huawei_P30_Lite,
|
75
|
-
]
|
76
|
-
end
|
77
|
-
end
|