ae_page_objects 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ae_page_objects/concerns/visitable.rb +5 -2
- data/lib/ae_page_objects/core/dsl.rb +2 -2
- data/lib/ae_page_objects/core/rake_router.rb +2 -0
- data/lib/ae_page_objects/element_proxy.rb +5 -1
- data/lib/ae_page_objects/exceptions.rb +1 -0
- data/lib/ae_page_objects/node.rb +1 -1
- data/lib/ae_page_objects/util/waiter.rb +1 -0
- data/lib/ae_page_objects/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a7c4ae245bff142532db643f26fd8d86cbeec5
|
4
|
+
data.tar.gz: 7f08f9ba3ee29135124a6002eee99235e19854ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360cc60ce2ff2ce7b5f4a4ca67ccc2c840df1a2aea9ca16fdad34629a3e9aba0d153c17514287b5be2756c12289d1f924f2f12477d7b2f4f9c6597dd8bb79213
|
7
|
+
data.tar.gz: 16c0429209abafbccdc3e699d41426455ae54adf340ac9398cfa885b11768c77a3223583be15e016b12ae5adba359153fae0a619aacb441dff3730c99c95c11f
|
@@ -22,9 +22,12 @@ module AePageObjects
|
|
22
22
|
|
23
23
|
module VisitMethod
|
24
24
|
def visit(*args)
|
25
|
-
|
25
|
+
args = args.dup
|
26
|
+
inner_options = args.last.is_a?(::Hash)? args.last : {}
|
26
27
|
|
27
|
-
|
28
|
+
path = inner_options.delete(:via) || paths.first
|
29
|
+
|
30
|
+
full_path = site.generate_path(path, *args)
|
28
31
|
raise PathNotResolvable, "#{self.name} not visitable via #{paths.first}(#{args.inspect})" unless full_path
|
29
32
|
|
30
33
|
Capybara.current_session.visit(full_path)
|
@@ -4,6 +4,8 @@ module AePageObjects
|
|
4
4
|
attr_reader :routes
|
5
5
|
|
6
6
|
def initialize(rake_routes, mounted_prefix = '')
|
7
|
+
warn "[DEPRECATION WARNING]: AePageObjects::RakeRouter is deprecated and will be removed in version 2.0.0."
|
8
|
+
|
7
9
|
@mounted_prefix = mounted_prefix || ""
|
8
10
|
@routes = {}
|
9
11
|
route_line_regex = /(\w+)(?:\s[A-Z]+)?\s+(\/.*)\(.:format\).*$/
|
@@ -31,6 +31,7 @@ module AePageObjects
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def not_visible?
|
34
|
+
warn "[DEPRECATION WARNING]: AePageObjects::Element#not_visible? is deprecated and will be removed in version 2.0.0. Use AePageObjects::Element#hidden? instead."
|
34
35
|
hidden?
|
35
36
|
end
|
36
37
|
|
@@ -49,6 +50,7 @@ module AePageObjects
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def not_present?
|
53
|
+
warn "[DEPRECATION WARNING]: AePageObjects::Element#not_present? is deprecated and will be removed in version 2.0.0. Use AePageObjects::Element#absent? instead."
|
52
54
|
absent?
|
53
55
|
end
|
54
56
|
|
@@ -91,6 +93,7 @@ module AePageObjects
|
|
91
93
|
end
|
92
94
|
|
93
95
|
def wait_for_presence(timeout = nil)
|
96
|
+
warn "[DEPRECATION WARNING]: AePageObjects::Element#wait_for_presence is deprecated and will be removed in version 2.0.0. Use AePageObjects::Element#wait_until_present instead."
|
94
97
|
wait_until_present(timeout)
|
95
98
|
end
|
96
99
|
|
@@ -105,6 +108,7 @@ module AePageObjects
|
|
105
108
|
end
|
106
109
|
|
107
110
|
def wait_for_absence(timeout = nil)
|
111
|
+
warn "[DEPRECATION WARNING]: AePageObjects::Element#wait_for_absence is deprecated and will be removed in version 2.0.0. Use AePageObjects::Element#wait_until_absent instead."
|
108
112
|
wait_until_absent(timeout)
|
109
113
|
end
|
110
114
|
|
@@ -117,7 +121,7 @@ module AePageObjects
|
|
117
121
|
end
|
118
122
|
|
119
123
|
def method_missing(name, *args, &block)
|
120
|
-
if name ==
|
124
|
+
if name == :class
|
121
125
|
return @element_class
|
122
126
|
end
|
123
127
|
|
data/lib/ae_page_objects/node.rb
CHANGED
@@ -19,6 +19,7 @@ module AePageObjects
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.wait_for(*args, &block)
|
22
|
+
warn "[DEPRECATION WARNING]: AePageObjects::Waiter.wait_for is deprecated and will be removed in version 2.0.0. Use AePageObjects::Waiter.wait_until instead."
|
22
23
|
wait_until(*args, &block)
|
23
24
|
end
|
24
25
|
|
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: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donnie Tognazzini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|