ae_page_objects 4.0.0.pre5 → 4.0.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
  SHA1:
3
- metadata.gz: f94e6c710282af5b5fc0b9d1af5c40f99990b76e
4
- data.tar.gz: eea82611eeb87bc73f4270952271516f564ca724
3
+ metadata.gz: 3dca9362e47ab0fb27d4e8eb4aeb6fe80b046788
4
+ data.tar.gz: 5cc8a1b7e9e91733b0cd4b82156fad3d72cab986
5
5
  SHA512:
6
- metadata.gz: 2ea9e32914b38ac451a3d18d688ee4dc2ad38a4215b0ba5f281d21d0eb0e4399f049fa0d59125a174a22f0c9d0888bfd4098895c891134a20c70740ec9afc998
7
- data.tar.gz: e3037aeb6b4594180b15434ca4473850d84c9778f5b47dd26440526ac967d6c89c60df2cc04673f7cdb44d1fa74b9042d1ff52b8cd8325cd0af72173ba6ee3ac
6
+ metadata.gz: 794d29466bac2faa3fa09c1a6f7a9de06a2a2651c05d7360813da3397889770631a5f658c2895f3b838e61f182999ea8e187833aade7349917cf425d202308b9
7
+ data.tar.gz: 37041e4b00f999420aee5ac2bfd14d226b31050517e9b34e5f996112ec5d4a20b5af64d0d3b9f4fe513ea0aa56ba00c0532a1b4096d33201efeefb01292152c5
@@ -69,7 +69,7 @@ module AePageObjects
69
69
 
70
70
  def reload(timeout: nil)
71
71
  Capybara.current_session.driver.execute_script <<-SCRIPT
72
- document.body.classList.add('reloading');
72
+ document.body.classList.add('ae_page_objects-reloading');
73
73
  location.reload(true);
74
74
  SCRIPT
75
75
 
@@ -73,9 +73,9 @@ module AePageObjects
73
73
  @locator == default_locator
74
74
  end
75
75
 
76
- def reload_descendents
76
+ def reload_ancestors
77
77
  # Reload the parent first, traversing up until we hit the document
78
- parent.reload_descendents if parent.respond_to?(:reload_descendents)
78
+ parent.reload_ancestors if parent.respond_to?(:reload_ancestors)
79
79
 
80
80
  return unless @node.respond_to?(:reload)
81
81
 
@@ -110,7 +110,7 @@ module AePageObjects
110
110
  @retry_count ||= 0
111
111
  @retry_count += 1
112
112
  if @retry_count < 5
113
- implicit_element.reload_descendents
113
+ implicit_element.reload_ancestors
114
114
  retry
115
115
  else
116
116
  raise
@@ -1,3 +1,3 @@
1
1
  module AePageObjects
2
- VERSION = '4.0.0.pre5'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_page_objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre5
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Donnie Tognazzini
7
+ - AppFolio Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -75,12 +75,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: 2.2.5
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">"
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 1.3.1
80
+ version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.4.8
83
+ rubygems_version: 2.5.2
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Capybara Page Objects pattern