superbara 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/examples/login-and-logout/using-params/helpers/login.rb +3 -3
- data/lib/superbara/context.rb +0 -6
- data/lib/superbara/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3909dad114b84f3a1f3ff199b87b279ab4ffdd37123d1d9cfaef699cf14fcafb
|
4
|
+
data.tar.gz: 31755ae0ce8e2b79ac5b53edf42d580610fdf402611d7b20179cad39bb815d96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf7aa8ff7792e5b427fc55e7cce7a9847e6c112b65fe8eff1f1975efa9cbf4733d4b031d1bfa79ffb604c6512529015e5f9836e42f81f47db5e49c78c38a6614
|
7
|
+
data.tar.gz: 6bdea68e00631dbf1f21f2548256770ca3ce165442f46ba48e30046017f9cf4051feb7da726dcd203741847f942213e614baa2ccbc5a2204e723e56c73271f02
|
data/Gemfile.lock
CHANGED
@@ -5,12 +5,12 @@ username_field = wait 3 do
|
|
5
5
|
find_field 'username'
|
6
6
|
end
|
7
7
|
|
8
|
-
# username comes from: run "helpers/login" username: "tomsmith"
|
9
|
-
username_field.type username
|
8
|
+
# @username comes from: run "helpers/login" username: "tomsmith"
|
9
|
+
username_field.type @username
|
10
10
|
|
11
11
|
# we assume that because username was found, then password will be found without waiting
|
12
12
|
# also we use parenthesis around to be able to call .type on the returned element
|
13
|
-
find_field('password').type password
|
13
|
+
find_field('password').type @password
|
14
14
|
|
15
15
|
click_button 'Login'
|
16
16
|
|
data/lib/superbara/context.rb
CHANGED
@@ -15,12 +15,6 @@ sleep 0.0001
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def __superbara_load(path, params={})
|
18
|
-
params.each_pair do |k,v|
|
19
|
-
Superbara.main.define_singleton_method k.to_sym do
|
20
|
-
v
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
18
|
params.each_pair do |k,v|
|
25
19
|
eval = "@#{k} = "
|
26
20
|
eval << "'" if v.class == String
|
data/lib/superbara/version.rb
CHANGED