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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/agilibox/cucumber_config.rb +5 -1
- data/lib/agilibox/cucumber_helpers/cuprite.rb +12 -0
- data/lib/agilibox/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c12899fd207f2f1598ba96d7236d4dceabd6dcfba0f250b24c3117121e73e51
|
4
|
+
data.tar.gz: bb76c0c9eb2fb6d88567349780c828c1bba27630269288457d47e6e3d54a195b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec464cd8675ceaa72f6072933620158bdf1716e3686ef2cf0a866109e6b5950ba1fd8cd9b94d9329be2c593898256c8e4f9f64a0c55cb4d8c39090a9dd18b339
|
7
|
+
data.tar.gz: 2e5f10e3f3e40599d48c0762312cebd5303f19f705dcc6a8a7ba600715dcfc294c92e4d1efdd45581474b15bcee235c57709340479ce561aa88d1db60573caad
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/agilibox/version.rb
CHANGED
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.
|
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-
|
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
|