eyes_core 6.3.8 → 6.4.1

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: 391c8bb10ca575b3556ec62876ebd2da33adc3b13c64a7cd115ca3e94398c94a
4
- data.tar.gz: ba18c956cc59d0c280057c4a065b4407fcefa64b96d4f9e6b94a4c16d4e9a9e1
3
+ metadata.gz: 82107d1f8d181b13343e4f36f72a7e0e2a5dc93af71a1fc39a0f2626da4e4edf
4
+ data.tar.gz: 16f1cf714202bb5f7a7d11ae6e537522143c2844c48ea694bb5fd52c5369b063
5
5
  SHA512:
6
- metadata.gz: effe5eb5224d4aabab6567e2928b0fa805f01d890ee19e52cca4fa013dd349958043ada027ed64b6abd3b1eb3181be0ade7c85ffc3ceac57b2890a1c4853d1d6
7
- data.tar.gz: c63be2a3a4fb9251558588f67172868e5d0828efe861fd76a480fc8ddc04edcbf9573515c1c95ec6e045c29b4aadedbf8a20839ad2dda28824fca8155c503b10
6
+ metadata.gz: 31f01ca7716ba943f4018a9fef9492178196bc1c619f5b47aecd855f70fa711973220ae1640a1097e3f171e177c4d0a00bd71c82587cc3fc506a159779403e7e
7
+ data.tar.gz: aaae9b20ceb17e1bcdf95e4d4b5814a9d72e43b3e71aae717c2778f7a3c309d35edd491bfc926c1b8eea5b12cde1efd3e0159fc6da03ed8c2cfe7360cf0ecacb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,76 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.4.1](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.4.0...ruby/eyes_core@6.4.1) (2024-10-29)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/screenshoter bumped to 3.9.2
9
+ #### Bug Fixes
10
+
11
+ * test in screenshoter web ([f068dbe](https://github.com/Applitools-Dev/sdk/commit/f068dbe9036163fb3e316411cfd9f47a226d7c9c))
12
+ * @applitools/core bumped to 4.21.2
13
+
14
+ * eyes_universal bumped to 4.21.2
15
+
16
+
17
+ ## [6.4.0](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.3.8...ruby/eyes_core@6.4.0) (2024-10-21)
18
+
19
+
20
+ ### Features
21
+
22
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * @applitools/snippets bumped to 2.5.1
28
+ #### Bug Fixes
29
+
30
+ * isStaleElement error ([#2567](https://github.com/Applitools-Dev/sdk/issues/2567)) ([2675086](https://github.com/Applitools-Dev/sdk/commit/2675086aa28589082249e2958942ee29a5f2ef12))
31
+ * @applitools/screenshoter bumped to 3.9.0
32
+ #### Features
33
+
34
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
35
+
36
+
37
+
38
+ * @applitools/core bumped to 4.21.0
39
+ #### Features
40
+
41
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
42
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
43
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
44
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
45
+
46
+
47
+ #### Bug Fixes
48
+
49
+ * don't remove offline execution folder after running ([654e195](https://github.com/Applitools-Dev/sdk/commit/654e195dd50dc7dab93dd907ec26d788549c6e81))
50
+
51
+
52
+
53
+ * @applitools/driver bumped to 1.19.3
54
+
55
+ * @applitools/spec-driver-webdriver bumped to 1.1.15
56
+
57
+ * @applitools/spec-driver-selenium bumped to 1.5.86
58
+
59
+ * @applitools/spec-driver-puppeteer bumped to 1.4.15
60
+
61
+ * @applitools/nml-client bumped to 1.8.13
62
+
63
+ * @applitools/core-base bumped to 1.18.0
64
+ #### Features
65
+
66
+ * ability to download side by side with highlighted diffs (2419) ([#2530](https://github.com/Applitools-Dev/sdk/issues/2530)) ([e06ce69](https://github.com/Applitools-Dev/sdk/commit/e06ce699f30e9e444ac58dafdf5989ff1c96ca1c))
67
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
68
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
69
+ * @applitools/ec-client bumped to 1.9.9
70
+
71
+ * eyes_universal bumped to 4.21.0
72
+
73
+
3
74
  ## [6.3.8](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.3.7...ruby/eyes_core@6.3.8) (2024-09-10)
4
75
 
5
76
 
data/eyes_core.gemspec CHANGED
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency 'colorize'
39
39
  spec.add_dependency 'websocket'
40
40
  spec.add_dependency 'sorted_set'
41
- spec.add_dependency 'eyes_universal', "= 4.18.2"
41
+ spec.add_dependency 'eyes_universal', "= 4.21.2"
42
42
 
43
43
  spec.add_development_dependency 'bundler'
44
44
  spec.add_development_dependency 'rake'
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'region'
4
+
5
+ module Applitools
6
+ class DynamicRegion < ::Applitools::Region
7
+ attr_accessor :region_type
8
+ def initialize(element, region_type)
9
+ super(element.location.x, element.location.y, element.size.width, element.size.height)
10
+ self.region_type = region_type
11
+ end
12
+
13
+ def to_hash
14
+ if region_type
15
+ super.merge(type: region_type)
16
+ else
17
+ super
18
+ end
19
+ end
20
+
21
+ alias json_data to_hash
22
+
23
+ def ==(other)
24
+ super && region_type == other.region_type
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,24 @@
1
+ # GENERATED FILE #
2
+
3
+ module Applitools
4
+ module DynamicTextType
5
+ extend self
6
+ TEXT_FIELD = 'TextField'.freeze
7
+ NUMBER = 'Number'.freeze
8
+ DATE = 'Date'.freeze
9
+ LINK = 'Link'.freeze
10
+ EMAIL = 'Email'.freeze
11
+ CURRENCY = 'Currency'.freeze
12
+
13
+ def enum_values
14
+ [
15
+ TEXT_FIELD,
16
+ NUMBER,
17
+ DATE,
18
+ LINK,
19
+ EMAIL,
20
+ CURRENCY,
21
+ ]
22
+ end
23
+ end
24
+ end
@@ -20,7 +20,8 @@ module Applitools
20
20
  layout2: 'Layout2',
21
21
  content: 'Content',
22
22
  strict: 'Strict',
23
- exact: 'Exact'
23
+ exact: 'Exact',
24
+ dynamic: 'Dynamic',
24
25
  }.freeze
25
26
 
26
27
  class EyesBase
@@ -7,7 +7,7 @@ module Applitools
7
7
  include Applitools::Jsonable
8
8
  include Applitools::MatchLevelSetter
9
9
  json_fields :accessibilitySettings, :MatchLevel, :IgnoreCaret, :IgnoreDisplacements, :Accessibility,
10
- :Ignore, :Floating, :Layout, :Strict, :Content, :Exact, :EnablePatterns, :UseDom,
10
+ :Ignore, :Floating, :Layout, :Strict, :Content, :Exact, :Dynamic, :EnablePatterns, :UseDom,
11
11
  :SplitTopHeight, :SplitBottomHeight, :scale, :remainder
12
12
 
13
13
  def initialize
@@ -18,6 +18,7 @@ module Applitools
18
18
  self.ignore_caret = true
19
19
  self.ignore_displacements = false
20
20
  self.accessibility = []
21
+ self.dynamic = []
21
22
  self.ignore = []
22
23
  self.floating = []
23
24
  self.layout = []
@@ -132,6 +133,7 @@ module Applitools
132
133
  # contentRegions?: TRegion[]
133
134
  # floatingRegions?: (TRegion | FloatingRegion<TRegion>)[]
134
135
  # accessibilityRegions?: (TRegion | AccessibilityRegion<TRegion>)[]
136
+ # dynamicRegions?: (TRegion | DynamicRegion<TRegion>)[]
135
137
  # }
136
138
  def to_hash
137
139
  result = {}
@@ -149,6 +151,7 @@ module Applitools
149
151
  result[:contentRegions] = content unless content.empty?
150
152
  result[:floatingRegions] = floating unless floating.empty?
151
153
  result[:accessibilityRegions] = accessibility unless accessibility.empty?
154
+ result[:dynamicRegions] = dynamic unless dynamic.empty?
152
155
  result.compact
153
156
  # :SplitTopHeight, :SplitBottomHeight, :scale, :remainder - deprecated ?
154
157
  end
@@ -11,9 +11,10 @@ module Applitools
11
11
  IGNORE_COLORS = 'IgnoreColors'.freeze
12
12
  STRICT = 'Strict'.freeze
13
13
  EXACT = 'Exact'.freeze
14
+ DYNAMIC = 'Dynamic'.freeze
14
15
 
15
16
  def enum_values
16
- [NONE, LAYOUT, LAYOUT1, LAYOUT2, CONTENT, IGNORE_COLORS, STRICT, EXACT]
17
+ [NONE, LAYOUT, LAYOUT1, LAYOUT2, CONTENT, IGNORE_COLORS, STRICT, EXACT, DYNAMIC]
17
18
  end
18
19
  end
19
20
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Applitools
4
4
  module EyesCore
5
- VERSION = '6.3.8'.freeze
5
+ VERSION = '6.4.1'.freeze
6
6
  end
7
7
 
8
8
  VERSION = Applitools::EyesCore::VERSION
@@ -55,6 +55,7 @@ module Applitools
55
55
  # contentRegions?: TRegion[]
56
56
  # floatingRegions?: (TRegion | FloatingRegion<TRegion>)[]
57
57
  # accessibilityRegions?: (TRegion | AccessibilityRegion<TRegion>)[]
58
+ # dynamicRegions?: (TRegion | DynamicRegion<TRegion>)[]
58
59
  # }
59
60
  json_fields :exact,
60
61
  :matchLevel,
@@ -69,7 +70,8 @@ module Applitools
69
70
  :strictRegions,
70
71
  :contentRegions,
71
72
  :floatingRegions,
72
- :accessibilityRegions
73
+ :accessibilityRegions,
74
+ :dynamicRegions
73
75
 
74
76
  # export type ScreenshotSettings<TElement, TSelector> = {
75
77
  # region?: RegionReference<TElement, TSelector>
@@ -126,6 +128,7 @@ module Applitools
126
128
  self.accessibility_regions = target.accessibility_regions
127
129
  self.content_regions = target.content_regions
128
130
  self.floating_regions = target.floating_regions
131
+ self.dynamic_regions = target.dynamic_regions
129
132
 
130
133
  if target.respond_to?(:frames)
131
134
  self.frames = target.frames.map do |f|
@@ -194,6 +197,7 @@ module Applitools
194
197
  self.disable_browser_fetching = eyes.dont_fetch_resources
195
198
  self.accessibility_regions = target.accessibility_regions
196
199
  self.floating_regions = target.floating_regions
200
+ self.dynamic_regions = target.dynamic_regions
197
201
 
198
202
  self.ignore_regions = target.ignored_regions.map do |ir|
199
203
  ir.is_a?(Proc) ? normalize_element_selector(ir.call(eyes.driver)) : ir
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: 6.3.8
4
+ version: 6.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-10-29 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: 4.18.2
117
+ version: 4.21.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: 4.18.2
124
+ version: 4.21.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -306,6 +306,8 @@ files:
306
306
  - lib/applitools/core/class_name.rb
307
307
  - lib/applitools/core/classic_runner.rb
308
308
  - lib/applitools/core/debug_screenshot_provider.rb
309
+ - lib/applitools/core/dynamic_region.rb
310
+ - lib/applitools/core/dynamic_text_type.rb
309
311
  - lib/applitools/core/eyes_base.rb
310
312
  - lib/applitools/core/eyes_base_configuration.rb
311
313
  - lib/applitools/core/eyes_configuration_dsl.rb