eyes_selenium 3.16.1 → 3.16.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 784ad1a808d2ecd82160f178afd3e8a18a7653234db9d5235c386ab8619ce4af
|
4
|
+
data.tar.gz: 71b4caf368874272a1f9ebab9dce3530763439d02bb2288fd82f230f885bd4b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b610a0ef7fd016bcf69fbedf3f5ab60bec0eb3bc70ef55223f657d46b501b0c176fcd634ce49f74b9ff5263a9e8c5ceff2a680308d15d3aa5b8908ffcd42bb26
|
7
|
+
data.tar.gz: 653c0580d2fc7cff1c3e922eab8b81d69407f58c6ecd0474928266a327a6e480aded6ee13f69eeb40ab48442d4a130a2b561cabd8934e7a2f891b654e671681c
|
@@ -36,12 +36,9 @@ module Applitools
|
|
36
36
|
enum_field :accessibility_validation, Applitools::AccessibilityLevel.enum_values
|
37
37
|
boolean_field :rendering_grid_force_put
|
38
38
|
|
39
|
-
def
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
def default_match_settings
|
44
|
-
super.merge(accessibility_validation: accessibility_validation)
|
39
|
+
def custom_setter_for_accessibility_validation(value)
|
40
|
+
# self.default_match_settings = self.parent.class.default_config[:default_match_settings] unless default_match_settings
|
41
|
+
default_match_settings.accessibility_level = value
|
45
42
|
end
|
46
43
|
|
47
44
|
def add_browser(*args)
|
@@ -253,9 +253,8 @@ module Applitools::Selenium
|
|
253
253
|
|
254
254
|
check_in_frame target_frames: target_to_check.frames do
|
255
255
|
begin
|
256
|
-
match_data = Applitools::MatchWindowData.new
|
256
|
+
match_data = Applitools::MatchWindowData.new(default_match_settings)
|
257
257
|
match_data.tag = name
|
258
|
-
update_default_settings(match_data)
|
259
258
|
eyes_element = target_to_check.region_to_check.call(driver)
|
260
259
|
|
261
260
|
unless force_full_page_screenshot
|
@@ -20,7 +20,7 @@ module Applitools
|
|
20
20
|
end
|
21
21
|
|
22
22
|
attr_accessor :element, :frames, :region_to_check, :coordinate_type, :options, :ignored_regions,
|
23
|
-
:floating_regions, :frame_or_element, :regions, :
|
23
|
+
:floating_regions, :frame_or_element, :regions, :layout_regions, :content_regions,
|
24
24
|
:strict_regions, :accessibility_regions
|
25
25
|
|
26
26
|
private :frame_or_element, :frame_or_element=
|
@@ -237,13 +237,6 @@ module Applitools
|
|
237
237
|
end
|
238
238
|
end
|
239
239
|
|
240
|
-
def match_level(*args)
|
241
|
-
match_level = args.shift
|
242
|
-
exact_options = args.shift || {}
|
243
|
-
(options[:match_level], options[:exact]) = match_level_with_exact(match_level, exact_options)
|
244
|
-
self
|
245
|
-
end
|
246
|
-
|
247
240
|
def fully(value = true)
|
248
241
|
options[:stitch_content] = value ? true : false
|
249
242
|
handle_frames
|
@@ -43,10 +43,9 @@ module Applitools
|
|
43
43
|
target_to_check = target.finalize
|
44
44
|
timeout = target_to_check.options[:timeout] || USE_DEFAULT_MATCH_TIMEOUT
|
45
45
|
|
46
|
-
match_data = Applitools::Selenium::VgMatchWindowData.new
|
46
|
+
match_data = Applitools::Selenium::VgMatchWindowData.new(default_match_settings)
|
47
47
|
match_data.tag = name
|
48
48
|
match_data.render_id = render_status['renderId']
|
49
|
-
update_default_settings(match_data)
|
50
49
|
begin
|
51
50
|
driver_lock.synchronize do
|
52
51
|
match_data.read_target(target_to_check, driver, selector_regions)
|
@@ -103,12 +102,6 @@ module Applitools
|
|
103
102
|
# %w(match_level exact scale remainder ).map(&:to_sym)
|
104
103
|
# end
|
105
104
|
|
106
|
-
def update_default_settings(match_data)
|
107
|
-
config.match_level_keys.each do |k|
|
108
|
-
match_data.send("#{k}=", default_match_settings[k])
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
105
|
def inferred_environment
|
113
106
|
"useragent: #{render_status['userAgent']}"
|
114
107
|
end
|
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.16.
|
4
|
+
version: 3.16.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: 2020-
|
11
|
+
date: 2020-02-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: 3.16.
|
19
|
+
version: 3.16.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: 3.16.
|
26
|
+
version: 3.16.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|