eyes_selenium 3.15.41 → 3.15.42
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/lib/applitools/selenium/configuration.rb +0 -15
- data/lib/applitools/selenium/css_parser/find_embedded_resources.rb +5 -3
- data/lib/applitools/selenium/visual_grid/render_task.rb +7 -1
- data/lib/applitools/selenium/visual_grid/visual_grid_eyes.rb +14 -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: d6c0a8ecaed82fafed8779a739f8e43c34d842bd13206741eb8502acb66e56ed
|
4
|
+
data.tar.gz: a6d72f6382b091439a2e92798fa920917422749bfd0da24b9eedd9ab9cff8ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4fc27785ee7d9d25c91d1ecb9f70d1799e1b3fcbb374c56e8f5c62d1dc55de4e52223f1a145839a005278060d6259ca2f7d161119b5520a12a0752bd22747f3
|
7
|
+
data.tar.gz: dbacc6a7c4ccb0b92652f48998a4a6b2f3ecdedb54fafcdcd9176ebeb7e64eed994c240aab6248201feba4685d21cd6541c581d5ba843e63ae0679087256cf2e
|
@@ -68,21 +68,6 @@ module Applitools
|
|
68
68
|
add_browser { |b| b.emulation_info(emu) }
|
69
69
|
end
|
70
70
|
|
71
|
-
def deep_clone
|
72
|
-
new_config = self.class.new
|
73
|
-
config_keys.each do |k|
|
74
|
-
new_config.send(
|
75
|
-
"#{k}=", case value = send(k)
|
76
|
-
when Symbol, FalseClass, TrueClass, Integer, Float
|
77
|
-
value
|
78
|
-
else
|
79
|
-
value.clone
|
80
|
-
end
|
81
|
-
)
|
82
|
-
end
|
83
|
-
new_config
|
84
|
-
end
|
85
|
-
|
86
71
|
def viewport_size
|
87
72
|
user_defined_vp = super
|
88
73
|
user_defined_vp = nil if user_defined_vp.respond_to?(:square) && user_defined_vp.square == 0
|
@@ -37,11 +37,13 @@ module Applitools
|
|
37
37
|
node[:tokens].select { |t| t[:node] == :url }.uniq.each do |nd|
|
38
38
|
result << nd[:value] if nd && !nd.empty?
|
39
39
|
end
|
40
|
-
node[:tokens].select { |t| t[:node] == :function && t[:value] == 'url' }.uniq do |nd|
|
40
|
+
node[:tokens].select { |t| t[:node] == :function && t[:value] == 'url' }.uniq.each do |nd|
|
41
41
|
url_index = node[:tokens].index(nd)
|
42
42
|
url_string_node = url_index && node[:tokens][url_index + 1]
|
43
|
-
result <<
|
44
|
-
url_string_node[:node] == :string &&
|
43
|
+
result << (
|
44
|
+
url_string_node && url_string_node[:node] == :string &&
|
45
|
+
!url_string_node[:value].empty? && url_string_node[:value]
|
46
|
+
)
|
45
47
|
end
|
46
48
|
result.compact
|
47
49
|
end
|
@@ -50,6 +50,7 @@ module Applitools
|
|
50
50
|
def perform
|
51
51
|
rq = prepare_data_for_rg(script_data)
|
52
52
|
fetch_fails = 0
|
53
|
+
# rubocop:disable Metrics/BlockLength
|
53
54
|
loop do
|
54
55
|
response = nil
|
55
56
|
begin
|
@@ -117,6 +118,7 @@ module Applitools
|
|
117
118
|
still_running = need_more_resources || need_more_dom || fetch_fails > MAX_FAILS_COUNT
|
118
119
|
break unless still_running
|
119
120
|
end
|
121
|
+
# rubocop:enable Metrics/BlockLength
|
120
122
|
statuses = poll_render_status(rq)
|
121
123
|
if statuses.first['status'] == 'error'
|
122
124
|
raise Applitools::EyesError, "Render failed for #{statuses.first['renderId']} with the message: " \
|
@@ -258,7 +260,11 @@ module Applitools
|
|
258
260
|
browser: { name: running_test.browser_info.browser_type, platform: running_test.browser_info.platform },
|
259
261
|
script_hooks: script_hooks,
|
260
262
|
selectors_to_find_regions_for: region_selectors,
|
261
|
-
send_dom: running_test.eyes.
|
263
|
+
send_dom: if running_test.eyes.configuration.send_dom.nil?
|
264
|
+
false.to_s
|
265
|
+
else
|
266
|
+
running_test.eyes.configuration.send_dom.to_s
|
267
|
+
end
|
262
268
|
)
|
263
269
|
end
|
264
270
|
requests
|
@@ -21,7 +21,7 @@ module Applitools
|
|
21
21
|
attr_accessor :api_key, :server_url, :proxy, :opened
|
22
22
|
|
23
23
|
attr_accessor :size_mod, :region_to_check
|
24
|
-
private :size_mod, :size_mod=, :region_to_check, :region_to_check=, :test_uuid, :test_uuid=
|
24
|
+
private :size_mod, :size_mod=, :region_to_check, :region_to_check=, :test_uuid, :test_uuid=, :config, :config=
|
25
25
|
|
26
26
|
def_delegators 'config', *Applitools::Selenium::Configuration.methods_to_delegate
|
27
27
|
def_delegators 'config', *Applitools::EyesBaseConfiguration.methods_to_delegate
|
@@ -44,6 +44,7 @@ module Applitools
|
|
44
44
|
def configure
|
45
45
|
return unless block_given?
|
46
46
|
yield(config)
|
47
|
+
nil
|
47
48
|
end
|
48
49
|
|
49
50
|
def open(*args)
|
@@ -156,7 +157,6 @@ module Applitools
|
|
156
157
|
''
|
157
158
|
end
|
158
159
|
|
159
|
-
|
160
160
|
test_list.select { |t| t.test_uuid == test_uuid }.each do |t|
|
161
161
|
t.check(tag, target_to_check, render_task, title)
|
162
162
|
end
|
@@ -346,6 +346,18 @@ module Applitools
|
|
346
346
|
@server_connector
|
347
347
|
end
|
348
348
|
|
349
|
+
def configuration
|
350
|
+
config.deep_dup
|
351
|
+
end
|
352
|
+
|
353
|
+
def configuration=(value)
|
354
|
+
Applitools::ArgumentGuard.is_a?(value, :configuration, Applitools::Selenium::Configuration)
|
355
|
+
self.config = value.deep_dup
|
356
|
+
end
|
357
|
+
|
358
|
+
alias get_configuration configuration
|
359
|
+
alias set_configuration configuration=
|
360
|
+
|
349
361
|
private :new_test_error_message, :diffs_found_error_message, :test_failed_error_message
|
350
362
|
|
351
363
|
private
|
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.15.
|
4
|
+
version: 3.15.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-10 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.15.
|
19
|
+
version: 3.15.42
|
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.15.
|
26
|
+
version: 3.15.42
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|