eyes_selenium 6.6.1 → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -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: e79ed454e96d9ff78576eca12d2d06c51b1d9967ce5f1db18efeeace7bb89613
|
4
|
+
data.tar.gz: 040552c719aa92460bc74e3474b0fb3e8ddc07c5a1b734c83d420f4b4fa51d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741a8e6da177d0dfce17ab0ea489bf76dff929fdb05f914e99ae629d3c402f762aed34b34f9bac9aeada3123b9edc5e9624f2070ed42138da8f7f2f1242bf8bc
|
7
|
+
data.tar.gz: 80e9b0a78cd4c714f991aa093c5d3a9d655fe4f63eec36d495c32a25b48bfbd471a92405e2708b938dd5590be0888ccbc2c786ee161bfa49766524180cf2343f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,75 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [6.7.1](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_selenium@6.7.0...ruby/eyes_selenium@6.7.1) (2025-03-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Dependencies
|
7
|
+
|
8
|
+
* @applitools/core bumped to 4.32.2
|
9
|
+
#### Bug Fixes
|
10
|
+
|
11
|
+
* add environment variable aliases (_NAME suffix) ([#2791](https://github.com/Applitools-Dev/sdk/issues/2791)) ([67501a4](https://github.com/Applitools-Dev/sdk/commit/67501a4f5491319ca62949a56ee03face08a59e5))
|
12
|
+
* support test concurrency in offline mode ([#2831](https://github.com/Applitools-Dev/sdk/issues/2831)) ([3b7d137](https://github.com/Applitools-Dev/sdk/commit/3b7d137a9b34bb5c564e0a5c7d3fb2520ef8a167))
|
13
|
+
* eyes_universal bumped to 4.32.2
|
14
|
+
|
15
|
+
* eyes_core bumped to 6.5.3
|
16
|
+
|
17
|
+
|
18
|
+
## [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)
|
19
|
+
|
20
|
+
|
21
|
+
### Features
|
22
|
+
|
23
|
+
* 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))
|
24
|
+
|
25
|
+
|
26
|
+
### Dependencies
|
27
|
+
|
28
|
+
* @applitools/dom-snapshot bumped to 4.11.15
|
29
|
+
|
30
|
+
* @applitools/driver bumped to 1.20.4
|
31
|
+
#### Bug Fixes
|
32
|
+
|
33
|
+
* handle device screen info extraction gracefully ([#2757](https://github.com/Applitools-Dev/sdk/issues/2757)) ([92d0118](https://github.com/Applitools-Dev/sdk/commit/92d0118137b77e49d780092d110973df8ed8b40c))
|
34
|
+
* eyes_universal bumped to 4.31.0
|
35
|
+
#### Features
|
36
|
+
|
37
|
+
* 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))
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
* @applitools/spec-driver-webdriver bumped to 1.1.25
|
42
|
+
|
43
|
+
* @applitools/spec-driver-selenium bumped to 1.5.95
|
44
|
+
|
45
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.24
|
46
|
+
|
47
|
+
* @applitools/screenshoter bumped to 3.10.5
|
48
|
+
|
49
|
+
* @applitools/nml-client bumped to 1.8.24
|
50
|
+
|
51
|
+
* @applitools/ufg-client bumped to 1.16.3
|
52
|
+
#### Bug Fixes
|
53
|
+
|
54
|
+
* unthrottle renders in offline mode ([#2754](https://github.com/Applitools-Dev/sdk/issues/2754)) ([b65d816](https://github.com/Applitools-Dev/sdk/commit/b65d81610504ae725b7b52611282a1bb28a049fe))
|
55
|
+
* @applitools/ec-client bumped to 1.10.3
|
56
|
+
|
57
|
+
* @applitools/core bumped to 4.31.0
|
58
|
+
#### Features
|
59
|
+
|
60
|
+
* 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))
|
61
|
+
|
62
|
+
|
63
|
+
#### Bug Fixes
|
64
|
+
|
65
|
+
* handle device screen info extraction gracefully ([#2757](https://github.com/Applitools-Dev/sdk/issues/2757)) ([92d0118](https://github.com/Applitools-Dev/sdk/commit/92d0118137b77e49d780092d110973df8ed8b40c))
|
66
|
+
* unthrottle renders in offline mode ([#2754](https://github.com/Applitools-Dev/sdk/issues/2754)) ([b65d816](https://github.com/Applitools-Dev/sdk/commit/b65d81610504ae725b7b52611282a1bb28a049fe))
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
* eyes_core bumped to 6.5.2
|
71
|
+
|
72
|
+
|
3
73
|
## [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
74
|
|
5
75
|
|
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.3"
|
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.1
|
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-
|
11
|
+
date: 2025-03-06 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.3
|
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.3
|
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
|