testcentricity_mobile 4.0.4 → 4.0.6

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: 0d519bfbcede39eaa26f5747d6cd80775251647b0eef46b2d5d67f132ba0cd9f
4
- data.tar.gz: 61481d8001fcc958284084910bae13dd83c14d39bedd85d8f055c8cbadecae43
3
+ metadata.gz: 7e1afd0a24821f3a9f989076f77b8db1d62101e17a32e08e88d8b7e239f00d97
4
+ data.tar.gz: 137d9919f210bb16ca354a1d2933eb39952689635751981dcc5502ee1c888768
5
5
  SHA512:
6
- metadata.gz: 39be2d0fc4c2c384e0ceeaec2325af29b90c53e95a55aa70283582931ce68f632fc6e23e02c030b423514b2ed67ceae1989eb6470a3a3c9f79c4f37da7615d8b
7
- data.tar.gz: 15606b7ae0548b6bce2339fdf457cd62ab8288082781eb7199b802e9557b968a0192c1ce88840c455df627a8ee1d6df3b74e9a8fb1dfd7d0313b9d8d2fba291a
6
+ metadata.gz: 218154425c571a1b3d0beee6225a69e084306bb630f3e4afa0c089708b4b77ac10a76a03251f690a89da09f0f1cf03e54d92de68ba99348c0017823d7a76a164
7
+ data.tar.gz: 36db158541dbbc17e4caba7a8cca270ea2fa88bfd5ea1ac01bafb1798a249d77f6427560e01cf3fab16da652ab9a5229c962e3c1771f031d8022911a11ba36fc
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
 
5
+ ## [4.0.6] - 02-MAY-2024
6
+
7
+ ### Fixed
8
+
9
+ * `ScreenSection.find_section` is now able to find `ScreenSection` objects embedded within other `ScreenSections`.
10
+
11
+
12
+ ## [4.0.5] - 29-APR-2024
13
+
14
+ ### Fixed
15
+
16
+ * `ScreenSection.disabled?` no longer returns wrong values.
17
+
18
+
5
19
  ## [4.0.4] - 26-APR-2024
6
20
 
7
21
  ### Changed
@@ -20,14 +20,14 @@ module TestCentricity
20
20
  end
21
21
 
22
22
  def get_locator
23
- if @locator.zero? && defined?(section_locator)
24
- my_locator = section_locator
25
- else
26
- my_locator = @locator
27
- end
23
+ my_locator = if @locator.zero? && defined?(section_locator)
24
+ section_locator
25
+ else
26
+ @locator
27
+ end
28
28
  locators = []
29
29
  if @context == :section && !@parent.nil?
30
- locators.push(@parent.get_locator)
30
+ locators = @parent.get_locator
31
31
  end
32
32
 
33
33
  if @parent_list.nil?
@@ -420,9 +420,7 @@ module TestCentricity
420
420
  # bar_chart_section.disabled?
421
421
  #
422
422
  def disabled?
423
- section = find_section
424
- section_not_found_exception(section)
425
- section.enabled?
423
+ !enabled?
426
424
  end
427
425
 
428
426
  # Is screen Section object visible?
@@ -580,11 +578,10 @@ module TestCentricity
580
578
  locators.each do |loc|
581
579
  if obj.nil?
582
580
  obj = find_element(loc.keys[0], loc.values[0])
583
- puts "Found object #{loc}" if ENV['DEBUG']
584
581
  else
585
582
  obj = obj.find_element(loc.keys[0], loc.values[0])
586
- puts "Found object #{loc}" if ENV['DEBUG']
587
583
  end
584
+ puts "Found section object #{loc}" if ENV['DEBUG']
588
585
  end
589
586
  obj
590
587
  rescue
@@ -1,3 +1,3 @@
1
1
  module TestCentricityMobile
2
- VERSION = '4.0.4'
2
+ VERSION = '4.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_mobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-26 00:00:00.000000000 Z
11
+ date: 2024-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler