testcentricity_web 3.0.12 → 3.0.13

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
  SHA1:
3
- metadata.gz: c370a03f38d5340d4099d4e5c5cb583920b7bb12
4
- data.tar.gz: bfda10485618a0b3578d5949a82c0756afe0966b
3
+ metadata.gz: 6926ed09efd4239466dd1f3f5729b31afbf90ea4
4
+ data.tar.gz: 3c722b3f23720b54a3c771769ee1b51458047f5a
5
5
  SHA512:
6
- metadata.gz: ca80c8f33eae348b8541fd31b115c93f5c67d1bebe378494677ef0cd7071abad970c11bb6feeb3346c1d75d6219d4ea35c8ca8814703a10fdbcbf5211806f884
7
- data.tar.gz: 44169fa279bc3f083ec064c81796452b1f9f38d39b9ae2a39ae6b53c5efbb16e4912cd5d8af723b7c0a6ec5b21e3de2a47e2935f0a513d003156c380fd806432
6
+ metadata.gz: bb7f87e16a0afd4fa3fd0d25eece971596ef6d7004436f3423c908d67bd8cc237eb9b46c2efbaa12193ca403a30e19f413217def1b90586d89213c0a46270796
7
+ data.tar.gz: ba38c1631adc66ec23ed239e02bad242a831802ae26b7e82bce9a55dec25e500b45b16b54440439f1a56138df259e0f21be864cc96354ec2d91d47ed40247a20
@@ -1,7 +1,12 @@
1
1
  # CHANGELOG
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [3.0.12] - 2018-08-10
4
+ ## [3.0.13] - 2018-08-10
5
+
6
+ ### Fixed
7
+ * Improved response times of `List.get_item_count` and `List.get_list_items` methods by shortening `wait` time.
8
+
9
+ ## [3.0.12] - 2018-08-09
5
10
  ### Added
6
11
  * `PageSection.hover` method.
7
12
  * `List.hover_item` method.
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.0.12'
2
+ VERSION = '3.0.13'
3
3
  end
@@ -38,7 +38,7 @@ module TestCentricity
38
38
  obj, = find_element
39
39
  object_not_found_exception(obj, nil)
40
40
  if item.is_a?(Integer)
41
- obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0).click
41
+ obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0, wait: 2).click
42
42
  elsif item.is_a?(String)
43
43
  items = obj.all(@list_item).collect(&:text)
44
44
  sleep(2) unless items.include?(item)
@@ -57,11 +57,11 @@ module TestCentricity
57
57
  obj, = find_element
58
58
  object_not_found_exception(obj, nil)
59
59
  if item.is_a?(Integer)
60
- obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0).hover
60
+ obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0, wait: 2).hover
61
61
  elsif item.is_a?(String)
62
62
  items = obj.all(@list_item).collect(&:text)
63
63
  sleep(2) unless items.include?(item)
64
- obj.first(:css, @list_item, text: item).hover
64
+ obj.first(:css, @list_item, text: item, wait: 2).hover
65
65
  end
66
66
  end
67
67
 
@@ -75,7 +75,7 @@ module TestCentricity
75
75
  define_list_elements(element_spec) unless element_spec.nil?
76
76
  obj, = find_element
77
77
  object_not_found_exception(obj, nil)
78
- obj.all(@list_item).collect(&:text)
78
+ obj.all(@list_item, visible: true, minimum: 0, wait: 2).collect(&:text)
79
79
  end
80
80
 
81
81
  def get_list_item(index, visible = true)
@@ -92,7 +92,7 @@ module TestCentricity
92
92
  def get_item_count
93
93
  obj, = find_element
94
94
  object_not_found_exception(obj, nil)
95
- obj.all(@list_item).count
95
+ obj.all(@list_item, visible: true, minimum: 0, wait: 2).count
96
96
  end
97
97
 
98
98
  alias item_count get_item_count
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.12
4
+ version: 3.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski