testcentricity_web 3.2.17 → 3.2.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Gemfile.lock +1 -1
- data/LICENSE.md +1 -1
- data/README.md +1 -1
- data/lib/testcentricity_web/exception_queue_helper.rb +15 -4
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/web_core/page_objects_helper.rb +1 -1
- data/lib/testcentricity_web/web_elements/select_list.rb +2 -2
- data/lib/testcentricity_web/web_elements/ui_elements_helper.rb +16 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 492ee58605ae048033c9ec360becc477530171ffa45c97e57b36b6177fbaab57
|
4
|
+
data.tar.gz: 16e8b95789c909ba7f65e1bab13bc97a507ada6b74888716b5055cb0b1d654e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/LICENSE.md
CHANGED
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-
|
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)
|
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)
|
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)
|
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 =
|
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
|
@@ -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:
|
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:
|
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.
|
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:
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|