agilibox 1.9.12 → 1.9.13
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/CHANGELOG.md +3 -0
- data/lib/agilibox/cucumber_config.rb +5 -1
- data/lib/agilibox/cucumber_helpers/apparition.rb +18 -0
- data/lib/agilibox/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 577884f829d930ff72448f21529d3f05b836ff3a72414ca020a52a9d39fe7adf
|
4
|
+
data.tar.gz: 54ab04e77e1b7982dfa861731c568b07a81ac8885d9dddbb5ed7251ab3806cff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df3afc115ae89d1ac41ab0913ddc89e9ff53836625b864f8fe3a81516074113e8bae9154926676d4a2db60e8d362d3ecd88d273065e0931fe519787779e714d1
|
7
|
+
data.tar.gz: 0ab62749bbfbbcbdb5b8e0f05c05225d6d4aa0c880a19841a4c5de5c4930d708ef344f1f3723589e3f36275e8232191e9ce85ff75de454dd5db446710f26d37f
|
data/CHANGELOG.md
CHANGED
@@ -31,10 +31,14 @@ class << Agilibox::CucumberConfig = Class.new
|
|
31
31
|
|
32
32
|
def require_all_helpers!
|
33
33
|
files = Dir.glob Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "*.rb")
|
34
|
-
files.delete_if { |f| f.match?(/chrome|cuprite|_steps/) }
|
34
|
+
files.delete_if { |f| f.match?(/apparition|chrome|cuprite|_steps/) }
|
35
35
|
files.each { |file| require file }
|
36
36
|
end
|
37
37
|
|
38
|
+
def require_apparition!
|
39
|
+
require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "apparition.rb")
|
40
|
+
end
|
41
|
+
|
38
42
|
def require_chrome_headless!
|
39
43
|
require Agilibox::Engine.root.join("lib", "agilibox", "cucumber_helpers", "chrome_headless.rb")
|
40
44
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "capybara/apparition"
|
2
|
+
|
3
|
+
Capybara.register_driver :agilibox_apparition do |app|
|
4
|
+
Capybara::Apparition::Driver.new(app,
|
5
|
+
:browser_options => {
|
6
|
+
:"disable-gpu" => true,
|
7
|
+
:"no-sandbox" => nil,
|
8
|
+
},
|
9
|
+
:headless => (ENV["CHROME_HEADLESS"].to_s != "false"),
|
10
|
+
:inspector => true,
|
11
|
+
:js_errors => true,
|
12
|
+
:window_size => Agilibox::CucumberConfig.window_size,
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
Capybara.default_driver = :agilibox_apparition
|
17
|
+
Capybara.current_driver = :agilibox_apparition
|
18
|
+
Capybara.javascript_driver = :agilibox_apparition
|
data/lib/agilibox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilibox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/agilibox/cucumber_config.rb
|
200
200
|
- lib/agilibox/cucumber_helpers/agilibox.rb
|
201
201
|
- lib/agilibox/cucumber_helpers/ajax.rb
|
202
|
+
- lib/agilibox/cucumber_helpers/apparition.rb
|
202
203
|
- lib/agilibox/cucumber_helpers/capybara.rb
|
203
204
|
- lib/agilibox/cucumber_helpers/capybara_selectors.rb
|
204
205
|
- lib/agilibox/cucumber_helpers/chrome_headless.rb
|