agilibox 1.5.1 → 1.5.2

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
  SHA256:
3
- metadata.gz: 6816dbbaf43c1bd973d1509d85bb41b39e7180e419d38bf0e598b8dbc299693e
4
- data.tar.gz: 591b5df80fd7381038bf77c4c2b98d78aee43fb630e82d0465cb0862dccbfc5e
3
+ metadata.gz: 72c470fa0cf544cfdf7897ea7ef69491f36e7a3e993f137f28a3735ef24acee1
4
+ data.tar.gz: 1a7cefd920276398382bb06f5df8d6e6a19055a0ee7206609d154de3f8ed452f
5
5
  SHA512:
6
- metadata.gz: 45ce47dab3e6a3fd8bb849b26606ac0bfaf32c3e577433b5934b8f487476774a3df8b21840db4066bd79c6b4c7bd00b1439aa0b9a9535757a39d29e241f9873a
7
- data.tar.gz: 7ab726e1fffb09a10956bacdfabb28486ae2275cbd5730433d45d1e38d163a1cbd5a3b1204ce5e453ee48608ee6c4168950c6a26d12be51adbd944ae4b2f28b0
6
+ metadata.gz: d5900e8e0b9c7c325463ce8f75395375e5cf3714f8c7c15763de164e83c67cb71681315a065dde11f139c23b3f171b458037333ec162bb75c8044ffd254e0873
7
+ data.tar.gz: b5c5b04c3d71a5757b3f933d510a25591c813b0efdd061a0d53a70c2c3bfbe351322b67eaae68516ec6c5ddb5ac624a7172bd5d5bc5ecc59596573e58c2e0c9c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.5.2
6
+ - GetHTTP service improvements
7
+ - New common steps + improvements
8
+
5
9
  ## 1.5.1
6
10
  - Add CSS helpers
7
11
  - Add Cucumber common steps
@@ -3,6 +3,7 @@ class Agilibox::GetHTTP < Agilibox::Service
3
3
  end
4
4
 
5
5
  EXCEPTIONS_TO_RERAISE = [
6
+ IOError,
6
7
  Net::HTTPBadResponse,
7
8
  Net::HTTPExceptions,
8
9
  Net::HTTPHeaderSyntaxError,
@@ -1,17 +1,17 @@
1
- # Clicks
1
+ # Clicks / Keyboard
2
2
 
3
3
  When("I click on {string}") do |text|
4
- click_on text
4
+ find("a, button, label", text: text).click
5
5
  end
6
6
 
7
7
  When("I click on first {string}") do |text|
8
8
  expect(page).to have_content(text)
9
- all("a, button, label", text: text).first.click
9
+ all("a, button, input[type=button], label", text: text).first.click
10
10
  end
11
11
 
12
12
  When("I click on last {string}") do |text|
13
13
  expect(page).to have_content(text)
14
- all("a, button, label", text: text).last.click
14
+ all("a, button, input[type=button], label", text: text).last.click
15
15
  end
16
16
 
17
17
  When("I click on {string} element") do |selector|
@@ -28,6 +28,10 @@ When("I click on last {string} element") do |selector|
28
28
  all(selector).last.click
29
29
  end
30
30
 
31
+ When("I press key {string}") do |key|
32
+ find("body").send_keys(key.length == 1 ? key : key.to_sym)
33
+ end
34
+
31
35
  # Routes
32
36
 
33
37
  When("I go on the {string} page") do |route_name|
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2018-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n