eyes_core 3.17.10 → 3.17.15

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: 0f8a78d42ef8b1b82f7ed13b3fb4d309e6415d45c4c9c9cf4b3ee016f5e6e106
4
- data.tar.gz: 5e25e347613a02d1dac54e9fb6d10e805401aba89ecccb0c617bedafba524659
3
+ metadata.gz: dec131b120d4dea34045090708b144981c4418a83a82477f07be4e28262e1e3f
4
+ data.tar.gz: 84c10bfef90e075c42cf9239508a273cd3a3616681b91b6d2ce7bc72e414ea45
5
5
  SHA512:
6
- metadata.gz: 1acc7b42d07e261e743f45f9bda93236e19cef7b6ea69bf49ca3c8f7e1707ef531b60061b28fef7a82409749417f79d2cbc318acc9515a0ce14f28039583d377
7
- data.tar.gz: aa47f28301bfd0505ff172a515115ac3ce3b65829a4fe87b49cbacb3332775397cff906b9cbf1be7fd3ed0232d26192b5b28ce50c5773b953c8c6483a820822b
6
+ metadata.gz: 3632dd6809bd7fee35e90ccfb87a95540e72770a6f5ac5290904c30688b5ac18b9b392122c6925e4f06bf733de884117cc868d3496f0af4801b17eae167eae5e
7
+ data.tar.gz: 56a683ac460b0d1ddb26dfc3d1eed6f1803bd6fb54656ca26d08430695e65354e094e878a6ce34d49883d310fe5e1665c7e9bc39ee4269d195af916990bc2d33
@@ -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
- updated_region.to_hash
379
+
380
380
  Applitools::FloatingRegion.new(
381
381
  updated_region.left,
382
382
  updated_region.top,
383
- r.width,
384
- r.height,
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.10'.freeze
4
+ VERSION = '3.17.15'.freeze
5
5
  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: 3.17.10
4
+ version: 3.17.15
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-06-23 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png