wist 0.5.0 → 0.6.0
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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +26 -21
- data/lib/wist.rb +8 -8
- data/wist.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f50d2a4e813ee0d298dfd8c1bc146178d502100547924ce6c98c87d86f689efe
|
4
|
+
data.tar.gz: 479e8e67c13dc4c3f008e0300bdc9b1cc64b1fab8a8b8dc6cd5ea989b0bf9705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe381784ced54fa784608bba42ff0ed9fe38f85ff52e06916f5e1314c059ebffe7f4e01e44aca1fed743e2ff0d31e4152b11a386e45344a391effd86ed128775
|
7
|
+
data.tar.gz: 314c75cbb6cc1265fbaa9160d96cd0b334211928d483b14ff5bb2b694a6bfc817363491bf4b779406bf08ac97cf041d2bf59acc01256c39c6af05ef959d512d4
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wist (0.
|
4
|
+
wist (0.6.0)
|
5
5
|
capybara
|
6
6
|
common_assert
|
7
7
|
selenium-webdriver
|
@@ -9,47 +9,52 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
11
11
|
specs:
|
12
|
-
addressable (2.
|
13
|
-
public_suffix (>= 2.0.2, <
|
12
|
+
addressable (2.8.0)
|
13
|
+
public_suffix (>= 2.0.2, < 5.0)
|
14
14
|
ansi (1.5.0)
|
15
15
|
builder (3.2.2)
|
16
|
-
capybara (3.
|
16
|
+
capybara (3.36.0)
|
17
17
|
addressable
|
18
|
+
matrix
|
18
19
|
mini_mime (>= 0.1.3)
|
19
20
|
nokogiri (~> 1.8)
|
20
21
|
rack (>= 1.6.0)
|
21
22
|
rack-test (>= 0.6.3)
|
22
|
-
regexp_parser (
|
23
|
+
regexp_parser (>= 1.5, < 3.0)
|
23
24
|
xpath (~> 3.2)
|
24
|
-
childprocess (1.0
|
25
|
-
rake (< 13.0)
|
25
|
+
childprocess (4.1.0)
|
26
26
|
coderay (1.1.2)
|
27
27
|
common_assert (0.0.1)
|
28
|
+
matrix (0.4.2)
|
28
29
|
method_source (0.9.2)
|
29
|
-
mini_mime (1.
|
30
|
-
mini_portile2 (2.
|
30
|
+
mini_mime (1.1.2)
|
31
|
+
mini_portile2 (2.7.1)
|
31
32
|
minitest (5.5.1)
|
32
33
|
minitest-reporters (1.0.11)
|
33
34
|
ansi
|
34
35
|
builder
|
35
36
|
minitest (>= 5.0)
|
36
37
|
ruby-progressbar
|
37
|
-
nokogiri (1.
|
38
|
-
mini_portile2 (~> 2.
|
38
|
+
nokogiri (1.13.1)
|
39
|
+
mini_portile2 (~> 2.7.0)
|
40
|
+
racc (~> 1.4)
|
39
41
|
pry (0.12.2)
|
40
42
|
coderay (~> 1.1.0)
|
41
43
|
method_source (~> 0.9.0)
|
42
|
-
public_suffix (
|
43
|
-
|
44
|
+
public_suffix (4.0.6)
|
45
|
+
racc (1.6.0)
|
46
|
+
rack (2.2.3)
|
44
47
|
rack-test (1.1.0)
|
45
48
|
rack (>= 1.0, < 3)
|
46
|
-
rake (
|
47
|
-
regexp_parser (
|
49
|
+
rake (13.0.6)
|
50
|
+
regexp_parser (2.2.0)
|
51
|
+
rexml (3.2.5)
|
48
52
|
ruby-progressbar (1.7.1)
|
49
|
-
rubyzip (
|
50
|
-
selenium-webdriver (
|
51
|
-
childprocess (>= 0.5, <
|
52
|
-
|
53
|
+
rubyzip (2.3.2)
|
54
|
+
selenium-webdriver (4.1.0)
|
55
|
+
childprocess (>= 0.5, < 5.0)
|
56
|
+
rexml (~> 3.2, >= 3.2.5)
|
57
|
+
rubyzip (>= 1.2.2)
|
53
58
|
xpath (3.2.0)
|
54
59
|
nokogiri (~> 1.8)
|
55
60
|
|
@@ -57,11 +62,11 @@ PLATFORMS
|
|
57
62
|
ruby
|
58
63
|
|
59
64
|
DEPENDENCIES
|
60
|
-
capybara (= 3.
|
65
|
+
capybara (= 3.36.0)
|
61
66
|
minitest-reporters
|
62
67
|
pry
|
63
68
|
rake
|
64
69
|
wist!
|
65
70
|
|
66
71
|
BUNDLED WITH
|
67
|
-
|
72
|
+
2.3.5
|
data/lib/wist.rb
CHANGED
@@ -42,8 +42,8 @@ module Wist
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
def click(
|
46
|
-
find(
|
45
|
+
def click(...)
|
46
|
+
find(...).click
|
47
47
|
end
|
48
48
|
|
49
49
|
def set_value_and_trigger_evts(selector, val)
|
@@ -143,9 +143,9 @@ module Wist
|
|
143
143
|
end
|
144
144
|
|
145
145
|
%w(first all).each do |finder|
|
146
|
-
define_method("#{finder}_with_wait") do |*args|
|
147
|
-
has_css?(*args)
|
148
|
-
send(finder.to_sym, *args)
|
146
|
+
define_method("#{finder}_with_wait") do |*args, **kwargs|
|
147
|
+
has_css?(*args, **kwargs)
|
148
|
+
send(finder.to_sym, *args, **kwargs)
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -171,12 +171,12 @@ module Wist
|
|
171
171
|
%w(has has_no).each do |prefix|
|
172
172
|
define_method("assert_#{prefix}_css") do |selector, opt = {}|
|
173
173
|
opt[:visible] = true if opt[:visible].nil?
|
174
|
-
common_assert_equal(send("#{prefix}_css?", selector, opt), true)
|
174
|
+
common_assert_equal(send("#{prefix}_css?", selector, **opt), true)
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
-
def has_css_instant?(
|
179
|
-
do_instantly { has_css?(
|
178
|
+
def has_css_instant?(...)
|
179
|
+
do_instantly { has_css?(...) }
|
180
180
|
end
|
181
181
|
|
182
182
|
def get_capybara_wait_time
|
data/wist.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lihan Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -93,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
|
-
|
97
|
-
rubygems_version: 2.7.6
|
96
|
+
rubygems_version: 3.2.32
|
98
97
|
signing_key:
|
99
98
|
specification_version: 4
|
100
99
|
summary: capybara helpers
|