eyes_core 3.17.11 → 3.17.16
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f493e2e676266fe3171fdcc71969df85850857c4cdfcdb76075ecc17c83d6947
|
4
|
+
data.tar.gz: 1e1f1e972549d21dd82cf636fa2430a2854032b11e3aca4394a6881a7d967390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef157b03cd73e0b56ccb8b30f2ca37dbaef94b9274218285fb21a3e91b3578b87b1c70ae0327888613159d12685e96914dcf8d244aa614de543f43b7d184353c
|
7
|
+
data.tar.gz: 1ca941fb0dd570fbf7b2cd7312d8cdd4b5e0b0e54f5e6152fb31fa0d12ddecbd7d2c878e8575467a894f2c46f224f077e417550428402b4f22508974884aeee0
|
@@ -4,7 +4,7 @@ module Applitools
|
|
4
4
|
class AppOutput
|
5
5
|
attr_reader :title, :screenshot64, :location
|
6
6
|
|
7
|
-
attr_accessor :dom_url, :screenshot_url
|
7
|
+
attr_accessor :dom_url, :screenshot_url, :visual_viewport
|
8
8
|
|
9
9
|
def initialize(title, screenshot64)
|
10
10
|
@title = title
|
@@ -25,6 +25,7 @@ module Applitools
|
|
25
25
|
ScreenshotUrl: screenshot_url
|
26
26
|
}
|
27
27
|
result[:DomUrl] = dom_url if dom_url
|
28
|
+
result[:visualViewport] = visual_viewport if visual_viewport
|
28
29
|
result
|
29
30
|
end
|
30
31
|
end
|
@@ -23,7 +23,6 @@ module Applitools
|
|
23
23
|
extend Forwardable
|
24
24
|
extend Applitools::Helpers
|
25
25
|
|
26
|
-
DEFAULT_MATCH_TIMEOUT = 2 # seconds
|
27
26
|
USE_DEFAULT_TIMEOUT = -1
|
28
27
|
|
29
28
|
SCREENSHOT_AS_IS = Applitools::EyesScreenshot::COORDINATE_TYPES[:screenshot_as_is].freeze
|
@@ -73,7 +72,6 @@ module Applitools
|
|
73
72
|
self.server_url = server_url if server_url
|
74
73
|
self.disabled = false
|
75
74
|
@viewport_size = nil
|
76
|
-
self.match_timeout = DEFAULT_MATCH_TIMEOUT
|
77
75
|
self.running_session = nil
|
78
76
|
self.save_new_tests = true
|
79
77
|
self.save_failed_tests = false
|
@@ -11,6 +11,8 @@ require 'applitools/core/image_match_settings'
|
|
11
11
|
|
12
12
|
module Applitools
|
13
13
|
class EyesBaseConfiguration < AbstractConfiguration
|
14
|
+
DEFAULT_MATCH_TIMEOUT = 2 # seconds
|
15
|
+
|
14
16
|
DEFAULT_CONFIG = {
|
15
17
|
branch_name: ENV['APPLITOOLS_BRANCH'],
|
16
18
|
parent_branch_name: ENV['APPLITOOLS_PARENT_BRANCH'],
|
@@ -22,7 +24,8 @@ module Applitools
|
|
22
24
|
save_new_tests: true,
|
23
25
|
default_match_settings: Applitools::ImageMatchSettings.new,
|
24
26
|
accessibility_validation: nil,
|
25
|
-
properties: []
|
27
|
+
properties: [],
|
28
|
+
match_timeout: DEFAULT_MATCH_TIMEOUT
|
26
29
|
}.freeze
|
27
30
|
|
28
31
|
class << self
|
@@ -114,6 +117,7 @@ module Applitools
|
|
114
117
|
boolean_field :ignore_displacements
|
115
118
|
object_field :accessibility_validation, Applitools::AccessibilitySettings, true
|
116
119
|
object_field :properties, Array
|
120
|
+
int_field :match_timeout
|
117
121
|
|
118
122
|
methods_to_delegate.delete(:batch_info)
|
119
123
|
methods_to_delegate.delete(:batch_info=)
|
@@ -140,7 +140,7 @@ module Applitools
|
|
140
140
|
Applitools::ArgumentGuard.is_a? value, 'value', Applitools::AppOutputWithScreenshot
|
141
141
|
@app_output = value
|
142
142
|
hash_value = Applitools::Utils.capitalize_hash_keys(value.to_hash)
|
143
|
-
[:Screenshot64, :ScreenshotUrl, :Title, :IsPrimary, :Elapsed, :Location, :DomUrl].each do |key|
|
143
|
+
[:Screenshot64, :ScreenshotUrl, :Title, :IsPrimary, :Elapsed, :Location, :DomUrl, :VisualViewport].each do |key|
|
144
144
|
next if hash_value[key].nil?
|
145
145
|
current_data['AppOutput'][key.to_s] = case hash_value[key]
|
146
146
|
when Hash
|
@@ -376,12 +376,12 @@ module Applitools
|
|
376
376
|
Applitools::EyesScreenshot::COORDINATE_TYPES[:context_relative],
|
377
377
|
Applitools::EyesScreenshot::COORDINATE_TYPES[:screenshot_as_is]
|
378
378
|
)
|
379
|
-
|
379
|
+
|
380
380
|
Applitools::FloatingRegion.new(
|
381
381
|
updated_region.left,
|
382
382
|
updated_region.top,
|
383
|
-
|
384
|
-
|
383
|
+
updated_region.width,
|
384
|
+
updated_region.height,
|
385
385
|
r.max_left_offset,
|
386
386
|
r.max_top_offset,
|
387
387
|
r.max_right_offset,
|
data/lib/applitools/version.rb
CHANGED
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: 3.17.
|
4
|
+
version: 3.17.16
|
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-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -164,6 +164,90 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: pry
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: pry-byebug
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: byebug
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: pry-doc
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: pry-stack_explorer
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: rb-readline
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
167
251
|
description: Don't use it directly, take a look at eyes_selenium, eyes_images or eyes_calabash
|
168
252
|
gems instead.
|
169
253
|
email:
|