eyes_core 6.3.8 → 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: 391c8bb10ca575b3556ec62876ebd2da33adc3b13c64a7cd115ca3e94398c94a
4
- data.tar.gz: ba18c956cc59d0c280057c4a065b4407fcefa64b96d4f9e6b94a4c16d4e9a9e1
3
+ metadata.gz: 02ada62ed92643e23833d9b8d6ce517080a2c483fe9aaae0122f5aba2f79c6a6
4
+ data.tar.gz: 29202d32ffac963e783d3647705c10a437d29d1870ba8b527ba4e30364615ff3
5
5
  SHA512:
6
- metadata.gz: effe5eb5224d4aabab6567e2928b0fa805f01d890ee19e52cca4fa013dd349958043ada027ed64b6abd3b1eb3181be0ade7c85ffc3ceac57b2890a1c4853d1d6
7
- data.tar.gz: c63be2a3a4fb9251558588f67172868e5d0828efe861fd76a480fc8ddc04edcbf9573515c1c95ec6e045c29b4aadedbf8a20839ad2dda28824fca8155c503b10
6
+ metadata.gz: b33b06b3055d00a2da7942d45763baab8ff7dae74555c725f8da32c419cbf98a481aa93c4ec7a7de8e2ca949d95ceeac8eb346465edbd8109ed4a47e1658dc49
7
+ data.tar.gz: 10f020a77f69a73aabb2b4208b790603d6a28691a6b7de6301e2baa4fb1340ea5ecb358ff6a400a7dd8d471ef0d7a76b27bf97067f5a95ea0e1d185ccf324921
data/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
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
+
3
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)
4
61
 
5
62
 
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.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.8'.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.8
4
+ version: 6.4.0
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-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.2
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.2
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