testcentricity_web 3.2.17 → 3.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 967025c22dced2c769d460dbb4d6a20708293277b43887a82158c64f242686e9
4
- data.tar.gz: 9db450d8190d44e31012c45fdad5236507bee75638f323e2bd42632758354743
3
+ metadata.gz: 492ee58605ae048033c9ec360becc477530171ffa45c97e57b36b6177fbaab57
4
+ data.tar.gz: 16e8b95789c909ba7f65e1bab13bc97a507ada6b74888716b5055cb0b1d654e7
5
5
  SHA512:
6
- metadata.gz: bdceb150bda3a9cfa267e3658a5332a76042deada8d57b58b5862f6b73b1c0e9a49721a7f7f57e99cae851626d67531290463acbd26eb2981193a4e1354bb18e
7
- data.tar.gz: cc252a2ec353bc83d91dcd97a8d4c30f89b434107bbbde48d91a9937f5befe1ad9264e62409ac744f8372885f7c67d52bf10260a25c0b45927783a2a8bbf351d
6
+ metadata.gz: cc2cbad5d7d8abac64d8fe18f16b90f23b00b7c18caa8178f16d618d3af8cbbc20af142e51391551a64e36a3dfb6540e1b27d5fd01d572aa1a395149e7cd13fe
7
+ data.tar.gz: 29bd80da7052736a7e5ddc916eff5eb1c91593267441d1a5fedbeed9ffdc84a5823d915b806f29299eddbaadfffc54a8fe0dc1b92d947cee47c76ad024b2aae5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,36 @@
1
1
  # CHANGELOG
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+
5
+ ## [3.2.22] - 09-FEB-2021
6
+
7
+ ### Fixed
8
+ * Updated `PageObject.verify_ui_states` and `PageSection.verify_ui_states` methods to correctly handle `:translate_upcase`,
9
+ `:translate_downcase`, `:translate_capitalize`, and `:translate_titlecase` conversions for Arrays of `String`.
10
+
11
+ ## [3.2.21] - 04-FEB-2021
12
+
13
+ ### Changed
14
+ * `UIElement.hover_at` method now accepts an optional `visible` parameter to allow hovering over UI elements that are not
15
+ visible.
16
+
17
+ ## [3.2.20] - 21-JAN-2021
18
+
19
+ ### Changed
20
+ * `UIElement.hover` method now accepts an optional `visible` parameter to allow hovering over UI elements that are not
21
+ visible.
22
+
23
+ ## [3.2.19] - 05-JAN-2021
24
+
25
+ ### Fixed
26
+ * `SelectList.choose_option` and `SelectList.get_options` methods now wait up to 5 seconds for list drop menu to appear.
27
+
28
+ ## [3.2.18] - 12-AUG-2020
29
+
30
+ ### Fixed
31
+ * Updated `PageObject.verify_ui_states` and `PageSection.verify_ui_states` methods to correctly handle `:row`, `:column`,
32
+ `:cell`, `:item`, and `:attribute` properties.
33
+
4
34
  ## [3.2.17] - 19-JUNE-2020
5
35
 
6
36
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcentricity_web (3.2.17)
4
+ testcentricity_web (3.2.22)
5
5
  appium_lib
6
6
  browserstack-local
7
7
  capybara (>= 3.1, < 4)
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2020, Tony Mrozinski
1
+ Copyright (c) 2014-2021, Tony Mrozinski
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -1673,7 +1673,7 @@ landscape orientation running on the BrowserStack service:
1673
1673
 
1674
1674
  ## Copyright and License
1675
1675
 
1676
- TestCentricity™ Framework is Copyright (c) 2014-2020, Tony Mrozinski.
1676
+ TestCentricity™ Framework is Copyright (c) 2014-2021, Tony Mrozinski.
1677
1677
  All rights reserved.
1678
1678
 
1679
1679
  Redistribution and use in source and binary forms, with or without
@@ -79,17 +79,28 @@ module TestCentricity
79
79
  expected = I18n.t(value)
80
80
  enqueue_assert_equal(expected, actual, error_msg)
81
81
  when :translate_upcase
82
- expected = I18n.t(value).upcase
82
+ expected = I18n.t(value)
83
+ expected = expected.is_a?(Array) ? expected.map(&:upcase) : expected.upcase
83
84
  enqueue_assert_equal(expected, actual, error_msg)
84
85
  when :translate_downcase
85
- expected = I18n.t(value).downcase
86
+ expected = I18n.t(value)
87
+ expected = expected.is_a?(Array) ? expected.map(&:downcase) : expected.downcase
86
88
  enqueue_assert_equal(expected, actual, error_msg)
87
89
  when :translate_capitalize
88
- expected = I18n.t(value).capitalize
90
+ expected = I18n.t(value)
91
+ expected = expected.is_a?(Array) ? expected.map(&:capitalize) : expected.capitalize
89
92
  enqueue_assert_equal(expected, actual, error_msg)
90
93
  when :translate_titlecase
91
94
  expected = I18n.t(value)
92
- expected = "#{expected.split.each{ |expected| expected.capitalize! }.join(' ')}"
95
+ expected = if expected.is_a?(Array)
96
+ result = []
97
+ expected.each do |item|
98
+ result.push("#{item.split.each{ |item| item.capitalize! }.join(' ')}")
99
+ end
100
+ result
101
+ else
102
+ "#{expected.split.each{ |expected| expected.capitalize! }.join(' ')}"
103
+ end
93
104
  enqueue_assert_equal(expected, actual, error_msg)
94
105
  end
95
106
  end
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.2.17'
2
+ VERSION = '3.2.22'
3
3
  end
@@ -209,7 +209,7 @@ module TestCentricity
209
209
  ui_object.content_editable?
210
210
  else
211
211
  if property.is_a?(Hash)
212
- property.each do |key, value|
212
+ property.map do |key, value|
213
213
  case key
214
214
  when :cell
215
215
  ui_object.get_table_cell(value[0].to_i, value[1].to_i)
@@ -68,7 +68,7 @@ module TestCentricity
68
68
 
69
69
  unless @options_list.nil?
70
70
  find_component(@options_list, 'drop menu')
71
- raise "Could not find option #{option} to choose" unless first(:css, @list_item, minimum: 0, wait: 2)
71
+ raise "Could not find option #{option} to choose" unless first(:css, @list_item, minimum: 0, wait: 5)
72
72
 
73
73
  if option.is_a?(Array)
74
74
  option.each do |item|
@@ -344,7 +344,7 @@ module TestCentricity
344
344
  element = @base_object.find(:css, component, minimum: 0, wait: 1)
345
345
  rescue
346
346
  begin
347
- element = page.find(:css, component, minimum: 0, wait: 1)
347
+ element = page.find(:css, component, minimum: 0, wait: 5)
348
348
  rescue
349
349
  raise "List #{component_name} (#{component}) for selectlist named '#{@name}' (#{locator}) not found"
350
350
  end
@@ -528,11 +528,17 @@ module TestCentricity
528
528
 
529
529
  # Hover the cursor over an object
530
530
  #
531
+ # @param visible [Boolean, Symbol] Only find elements with the specified visibility:
532
+ # * true - only finds visible elements.
533
+ # * false - finds invisible _and_ visible elements.
534
+ # * :all - same as false; finds visible and invisible elements.
535
+ # * :hidden - only finds invisible elements.
536
+ # * :visible - same as true; only finds visible elements.
531
537
  # @example
532
538
  # basket_link.hover
533
539
  #
534
- def hover
535
- obj, type = find_element
540
+ def hover(visible = true)
541
+ obj, type = find_element(visible)
536
542
  object_not_found_exception(obj, type)
537
543
  obj.hover
538
544
  end
@@ -541,11 +547,17 @@ module TestCentricity
541
547
  #
542
548
  # @param x [Integer] X offset
543
549
  # @param y [Integer] Y offset
550
+ # @param visible [Boolean, Symbol] Only find elements with the specified visibility:
551
+ # * true - only finds visible elements.
552
+ # * false - finds invisible _and_ visible elements.
553
+ # * :all - same as false; finds visible and invisible elements.
554
+ # * :hidden - only finds invisible elements.
555
+ # * :visible - same as true; only finds visible elements.
544
556
  # @example
545
557
  # timeline_bar.hover_at(100, 5)
546
558
  #
547
- def hover_at(x, y)
548
- obj, = find_element
559
+ def hover_at(x, y, visible = true)
560
+ obj, = find_element(visible)
549
561
  raise "UI #{object_ref_message} not found" unless obj
550
562
  obj.hover_at(x, y)
551
563
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.17
4
+ version: 3.2.22
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: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler