agilibox 1.5.9 → 1.5.10

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: 19a0d802e18189d530b942112540d9dd423ead2d26e9a9ae94607ce52c1bd60d
4
- data.tar.gz: 3c6a76a1a91bced686ed462ebc2c2390c82286462e1ec8594034f0bfd587aac5
3
+ metadata.gz: 5c12899fd207f2f1598ba96d7236d4dceabd6dcfba0f250b24c3117121e73e51
4
+ data.tar.gz: bb76c0c9eb2fb6d88567349780c828c1bba27630269288457d47e6e3d54a195b
5
5
  SHA512:
6
- metadata.gz: e75952c61ac96161f0dbc631292ee56f5812824ab786c760784293b7367c6b8587f158c1b9d4852a54cdfb5925a80af7a1a63ac90d0e877db3d6a0ef3194e2e6
7
- data.tar.gz: c95ce895c74692d2f7da07ee789c8a32bc825fb0042e9ac0901cf902ccf29b1790bf948b6dd3633d34b792ded2f6bf41461f55126f7079efcca81ffa79473e33
6
+ metadata.gz: ec464cd8675ceaa72f6072933620158bdf1716e3686ef2cf0a866109e6b5950ba1fd8cd9b94d9329be2c593898256c8e4f9f64a0c55cb4d8c39090a9dd18b339
7
+ data.tar.gz: 2e5f10e3f3e40599d48c0762312cebd5303f19f705dcc6a8a7ba600715dcfc294c92e4d1efdd45581474b15bcee235c57709340479ce561aa88d1db60573caad
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.5.10
6
+ - Cucumber Helpers : add cuprite support
7
+
5
8
  ## 1.5.9
6
9
  - I18n fix
7
10
  - Add `bs_progress_bar` helper
@@ -25,7 +25,7 @@ class << Agilibox::CucumberConfig = Class.new
25
25
 
26
26
  def require_all_helpers!
27
27
  files = Dir.glob Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "*.rb")
28
- files.delete_if { |f| f.match?(/poltergeist|chrome|_steps/) }
28
+ files.delete_if { |f| f.match?(/poltergeist|chrome|cuprite|_steps/) }
29
29
  files.each { |file| require file }
30
30
  end
31
31
 
@@ -37,6 +37,10 @@ class << Agilibox::CucumberConfig = Class.new
37
37
  require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "chrome_headless.rb")
38
38
  end
39
39
 
40
+ def require_cuprite!
41
+ require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "cuprite.rb")
42
+ end
43
+
40
44
  def require_common_steps!
41
45
  require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "common_steps.rb")
42
46
  end
@@ -0,0 +1,12 @@
1
+ require "capybara/cuprite"
2
+
3
+ Capybara.register_driver :agilibox_cuprite do |app|
4
+ Capybara::Cuprite::Driver.new(app,
5
+ :inspector => true,
6
+ :window_size => Agilibox::CucumberConfig.window_size,
7
+ )
8
+ end
9
+
10
+ Capybara.default_driver = :agilibox_cuprite
11
+ Capybara.current_driver = :agilibox_cuprite
12
+ Capybara.javascript_driver = :agilibox_cuprite
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.5.9"
2
+ VERSION = "1.5.10"
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.9
4
+ version: 1.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-03 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n
@@ -172,6 +172,7 @@ files:
172
172
  - lib/agilibox/cucumber_helpers/capybara_selectors.rb
173
173
  - lib/agilibox/cucumber_helpers/chrome_headless.rb
174
174
  - lib/agilibox/cucumber_helpers/common_steps.rb
175
+ - lib/agilibox/cucumber_helpers/cuprite.rb
175
176
  - lib/agilibox/cucumber_helpers/database_cleaner.rb
176
177
  - lib/agilibox/cucumber_helpers/factory_bot.rb
177
178
  - lib/agilibox/cucumber_helpers/fix_referrer.rb