eyes_core 4.6.0 → 4.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/core/eyes_runner.rb +6 -1
- data/lib/applitools/core/universal_new_api.rb +5 -1
- data/lib/applitools/universal_sdk/executable_finder.rb +14 -2
- data/lib/applitools/universal_sdk/universal_client.rb +2 -2
- data/lib/applitools/universal_sdk/universal_eyes_manager.rb +2 -2
- data/lib/applitools/version.rb +4 -4
- 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: 8d81e1db8334cf38806b35937b27a6934f3515de5086621cc5db07d7d340a416
|
4
|
+
data.tar.gz: 588013b897e6812e3c00ef27de1efae4955dddb49c3b414891611e20262754d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 704e8432ccb8b928b9d1c4993adcb33403064cc83212e4422e7d58a1e749817013fd981091752e7d3c689314e4c2fee926a3e103f090fb98f1d11963ff6b7fc7
|
7
|
+
data.tar.gz: e8f4dd78f0737dda84bab00239dc7c29d8837338bfcffea7c990cd7faf1b307b0fd3cef8515d67ee5b14f3dea8312c0d12782f4fe3f2881fb909a01f4030ddd8
|
@@ -4,6 +4,7 @@ module Applitools
|
|
4
4
|
class EyesRunner
|
5
5
|
attr_accessor :batches_server_connectors_map
|
6
6
|
attr_accessor :universal_client, :universal_eyes_manager
|
7
|
+
attr_accessor :remove_duplicate_tests
|
7
8
|
|
8
9
|
def initialize
|
9
10
|
self.batches_server_connectors_map = {}
|
@@ -25,7 +26,11 @@ module Applitools
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def close_all_eyes
|
28
|
-
get_universal_eyes_manager.close_all_eyes
|
29
|
+
get_universal_eyes_manager.close_all_eyes(remove_duplicate_tests)
|
30
|
+
end
|
31
|
+
|
32
|
+
def set_remove_duplicate_tests(value)
|
33
|
+
self.remove_duplicate_tests = !!value
|
29
34
|
end
|
30
35
|
|
31
36
|
# def close_batch(batch_id)
|
@@ -44,7 +44,11 @@ module Applitools
|
|
44
44
|
}
|
45
45
|
driver_target = driver.universal_driver_config
|
46
46
|
results = universal_eyes.locate(settings, driver_target)
|
47
|
-
|
47
|
+
old_style = {
|
48
|
+
applitools_title: results[:applitools_title].
|
49
|
+
map {|r| {left: r[:x], top: r[:y], width: r[:width], height: r[:height]} }
|
50
|
+
}
|
51
|
+
Applitools::Utils.deep_stringify_keys(old_style)
|
48
52
|
end
|
49
53
|
|
50
54
|
end
|
@@ -10,9 +10,17 @@ module Applitools::Connectivity
|
|
10
10
|
server_lib ? File.join(server_lib.gem_dir, 'ext', 'eyes-universal', filename) : ''
|
11
11
|
end
|
12
12
|
|
13
|
+
def other_filepaths
|
14
|
+
in_gem_path = File.join('gems', server_lib.full_name, 'ext', 'eyes-universal', filename)
|
15
|
+
Gem.path.map {|path| File.expand_path(in_gem_path, path) }
|
16
|
+
end
|
17
|
+
|
13
18
|
def executable_filepath
|
14
|
-
raise 'Universal server
|
15
|
-
filepath
|
19
|
+
raise 'Universal server not Found' if server_lib.nil?
|
20
|
+
return filepath if valid_file?(filepath)
|
21
|
+
core_path = other_filepaths.find {|path| valid_file?(path) }
|
22
|
+
return core_path if core_path
|
23
|
+
raise 'Universal server unrecognized'
|
16
24
|
end
|
17
25
|
|
18
26
|
private
|
@@ -41,5 +49,9 @@ module Applitools::Connectivity
|
|
41
49
|
end
|
42
50
|
end
|
43
51
|
|
52
|
+
def valid_file?(path)
|
53
|
+
File.exist?(path) && File.executable?(path)
|
54
|
+
end
|
55
|
+
|
44
56
|
end
|
45
57
|
end
|
@@ -168,7 +168,7 @@ module Applitools::Connectivity
|
|
168
168
|
command_with_result(EYES_MANAGER_MAKE_EYES, {manager: manager, target: driver_config, settings: commands_config[:open], config: commands_config})
|
169
169
|
end
|
170
170
|
|
171
|
-
def eyes_manager_close_all_eyes(manager)
|
171
|
+
def eyes_manager_close_all_eyes(manager, remove_duplicate_tests)
|
172
172
|
# interface GetManagerResultsRequestPayload {
|
173
173
|
# manager: Ref<EyesManager>
|
174
174
|
# settings?: {throwErr?: boolean}
|
@@ -189,7 +189,7 @@ module Applitools::Connectivity
|
|
189
189
|
# missing: number
|
190
190
|
# matches: number
|
191
191
|
# }
|
192
|
-
settings = {throwErr: false}
|
192
|
+
settings = {throwErr: false, removeDuplicateTests: remove_duplicate_tests}
|
193
193
|
command_with_result(EYES_MANAGER_CLOSE_ALL_EYES, {manager: manager, settings: settings})
|
194
194
|
end
|
195
195
|
|
@@ -37,9 +37,9 @@ module Applitools
|
|
37
37
|
universal_eyes
|
38
38
|
end
|
39
39
|
|
40
|
-
def close_all_eyes
|
40
|
+
def close_all_eyes(remove_duplicate_tests)
|
41
41
|
@opened_eyes.each {|universal_eye| universal_eye.close }
|
42
|
-
@universal_client.eyes_manager_close_all_eyes(@manager)
|
42
|
+
@universal_client.eyes_manager_close_all_eyes(@manager, remove_duplicate_tests)
|
43
43
|
end
|
44
44
|
|
45
45
|
end
|
data/lib/applitools/version.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
3
3
|
module Applitools
|
4
|
-
VERSION = '4.6.
|
5
|
-
IMAGES_VERSION = '4.2.
|
6
|
-
UNIVERSAL_VERSION = '3.3.
|
7
|
-
UNIVERSAL_CORE_VERSION = '2.
|
4
|
+
VERSION = '4.6.2'.freeze
|
5
|
+
IMAGES_VERSION = '4.2.2'.freeze
|
6
|
+
UNIVERSAL_VERSION = '3.3.2'.freeze
|
7
|
+
UNIVERSAL_CORE_VERSION = '2.5.8'.freeze
|
8
8
|
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: 4.6.
|
4
|
+
version: 4.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 3.3.
|
117
|
+
version: 3.3.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 3.3.
|
124
|
+
version: 3.3.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|