eyes_core 6.3.7 → 6.4.0

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: 7217f9401829eea99dd0991c4485495b8c85cdaad443cee177dff57929ae4045
4
- data.tar.gz: 6633017050f8f65b952736b2506cdb981bab49540f8599a8c9bc36140f19bbb6
3
+ metadata.gz: 02ada62ed92643e23833d9b8d6ce517080a2c483fe9aaae0122f5aba2f79c6a6
4
+ data.tar.gz: 29202d32ffac963e783d3647705c10a437d29d1870ba8b527ba4e30364615ff3
5
5
  SHA512:
6
- metadata.gz: a0a021e8291a7a5690727d44058d020d3eec4dfa676bd5724e957adbe0e919c1e589666610d2d30ffdab956dd07b359da762afe7241d265386d8e4fd63c489fb
7
- data.tar.gz: 2ab0df9c110a9dac73417ae5e88412655adb219908814c1e1d42154c3dae95bb6cfa879dceaa471f65fa6a4e9b5568a6a91b181f11c496ed339a90854bc106ba
6
+ metadata.gz: b33b06b3055d00a2da7942d45763baab8ff7dae74555c725f8da32c419cbf98a481aa93c4ec7a7de8e2ca949d95ceeac8eb346465edbd8109ed4a47e1658dc49
7
+ data.tar.gz: 10f020a77f69a73aabb2b4208b790603d6a28691a6b7de6301e2baa4fb1340ea5ecb358ff6a400a7dd8d471ef0d7a76b27bf97067f5a95ea0e1d185ccf324921
data/CHANGELOG.md CHANGED
@@ -1,5 +1,114 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/snippets bumped to 2.5.1
14
+ #### Bug Fixes
15
+
16
+ * isStaleElement error ([#2567](https://github.com/Applitools-Dev/sdk/issues/2567)) ([2675086](https://github.com/Applitools-Dev/sdk/commit/2675086aa28589082249e2958942ee29a5f2ef12))
17
+ * @applitools/screenshoter bumped to 3.9.0
18
+ #### Features
19
+
20
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
21
+
22
+
23
+
24
+ * @applitools/core bumped to 4.21.0
25
+ #### Features
26
+
27
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
28
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
29
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
30
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
31
+
32
+
33
+ #### Bug Fixes
34
+
35
+ * don't remove offline execution folder after running ([654e195](https://github.com/Applitools-Dev/sdk/commit/654e195dd50dc7dab93dd907ec26d788549c6e81))
36
+
37
+
38
+
39
+ * @applitools/driver bumped to 1.19.3
40
+
41
+ * @applitools/spec-driver-webdriver bumped to 1.1.15
42
+
43
+ * @applitools/spec-driver-selenium bumped to 1.5.86
44
+
45
+ * @applitools/spec-driver-puppeteer bumped to 1.4.15
46
+
47
+ * @applitools/nml-client bumped to 1.8.13
48
+
49
+ * @applitools/core-base bumped to 1.18.0
50
+ #### Features
51
+
52
+ * 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))
53
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
54
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
55
+ * @applitools/ec-client bumped to 1.9.9
56
+
57
+ * eyes_universal bumped to 4.21.0
58
+
59
+
60
+ ## [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)
61
+
62
+
63
+ ### Dependencies
64
+
65
+ * @applitools/dom-capture bumped to 11.4.0
66
+ #### Features
67
+
68
+ * ability to capture all css props in computed style ([#2484](https://github.com/Applitools-Dev/sdk/issues/2484)) ([8769ee5](https://github.com/Applitools-Dev/sdk/commit/8769ee566f2d9e163437c7bcd385ec993f05f370))
69
+ * @applitools/driver bumped to 1.19.0
70
+ #### Features
71
+
72
+ * add support for env var APPLITOOLS_IS_IC ([#2469](https://github.com/Applitools-Dev/sdk/issues/2469)) ([87d7b5c](https://github.com/Applitools-Dev/sdk/commit/87d7b5cc1f7ea774c6b90504e85296f0681d0b1e))
73
+
74
+
75
+ #### Bug Fixes
76
+
77
+ * handle userAgent.brands returned as string ([#2453](https://github.com/Applitools-Dev/sdk/issues/2453)) ([dd6328b](https://github.com/Applitools-Dev/sdk/commit/dd6328be3e7d885714124a8e43aabaae3abecde9))
78
+ * searching for scrollable element multiple times ([#2493](https://github.com/Applitools-Dev/sdk/issues/2493)) ([d98db80](https://github.com/Applitools-Dev/sdk/commit/d98db8016c6312f467f244444c6f1a87bc09b7da))
79
+ * @applitools/core bumped to 4.18.2
80
+ #### Bug Fixes
81
+
82
+ * don't call check-network when executing binary and cli ([#2491](https://github.com/Applitools-Dev/sdk/issues/2491)) ([ef00d20](https://github.com/Applitools-Dev/sdk/commit/ef00d205450b7bbe7abc1bc9bce8d6970f769091))
83
+
84
+
85
+
86
+ * @applitools/spec-driver-webdriver bumped to 1.1.12
87
+
88
+ * @applitools/spec-driver-selenium bumped to 1.5.83
89
+
90
+ * @applitools/spec-driver-puppeteer bumped to 1.4.12
91
+
92
+ * @applitools/screenshoter bumped to 3.8.36
93
+
94
+ * @applitools/nml-client bumped to 1.8.10
95
+
96
+ * @applitools/tunnel-client bumped to 1.5.8
97
+ #### Bug Fixes
98
+
99
+ * upgrade execution-grid-tunnel ([#2475](https://github.com/Applitools-Dev/sdk/issues/2475)) ([e5952b4](https://github.com/Applitools-Dev/sdk/commit/e5952b4ca1bd0c065111ce1109b218f1fd68f6fc))
100
+
101
+
102
+
103
+ * @applitools/core-base bumped to 1.16.1
104
+ #### Bug Fixes
105
+
106
+ * infinity concurrency ([#2477](https://github.com/Applitools-Dev/sdk/issues/2477)) ([f488e16](https://github.com/Applitools-Dev/sdk/commit/f488e162f124acc249ed7b43b714f13c18306dc8))
107
+ * @applitools/ec-client bumped to 1.9.4
108
+
109
+ * eyes_universal bumped to 4.18.2
110
+
111
+
3
112
  ## [6.3.7](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.3.6...ruby/eyes_core@6.3.7) (2024-07-23)
4
113
 
5
114
 
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.0"
41
+ spec.add_dependency 'eyes_universal', "= 4.21.0"
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.7'.freeze
5
+ VERSION = '6.4.0'.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.7
4
+ version: 6.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2024-10-21 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.0
117
+ version: 4.21.0
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.0
124
+ version: 4.21.0
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
@@ -370,7 +372,7 @@ licenses:
370
372
  - Applitools
371
373
  metadata:
372
374
  yard.run: yri
373
- post_install_message:
375
+ post_install_message:
374
376
  rdoc_options: []
375
377
  require_paths:
376
378
  - lib
@@ -385,8 +387,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
387
  - !ruby/object:Gem::Version
386
388
  version: '0'
387
389
  requirements: []
388
- rubygems_version: 3.5.9
389
- signing_key:
390
+ rubygems_version: 3.1.6
391
+ signing_key:
390
392
  specification_version: 4
391
393
  summary: Core of the Applitools Ruby SDK
392
394
  test_files: []