quintocumber 1.1.5 → 1.1.6

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
  SHA1:
3
- metadata.gz: f286f29c0794ce5ba2c73c68f0ebc5affda82b35
4
- data.tar.gz: 8638379409f533461b03352caac6df3617eff085
3
+ metadata.gz: 726f698292ad3a5d4c7d25e88b17f8bcf0722aa1
4
+ data.tar.gz: e69f876a94b3ff1d7478a580a965cfe11ea52215
5
5
  SHA512:
6
- metadata.gz: fa083be43ee100b8a291ae0b9c7fcde99741f0f690ad3b01884c5569f73afc18acef044c90203f95338e63dd14eaa64552cbe80dabff357c9de56c53433aa217
7
- data.tar.gz: 81717c9ee1ac57df4405c6ff07a8034c5d2cc2d430602ac332d7089a36ee2e557a38e9c36b42ae9f3855f62c7fcebafa57f180090602fe5d50f7475a80074ded
6
+ metadata.gz: 75d59f44bd07e38037dc794c8381e542c6c96b298a3707acb5513223ada65a10e08b42a7ac575d7704b6fa5cede5888015167030e8c6f2c63200d0c72537f53a
7
+ data.tar.gz: b630b92b4ed682c821b7a85c37d2b889a2483e066c15c256ac6c3062f66f638489a541622d1f2ead0d7c833a0d438994d086ce3e2de0ff78d9c749047760bb38
data/README.md CHANGED
@@ -20,6 +20,15 @@ Or install it yourself as:
20
20
 
21
21
  $ quintocumber
22
22
 
23
+ The following environment variables allow you to you to configure the appllication behavior:
24
+
25
+ | Key | Description |
26
+ | ------------- | ------------- |
27
+ | BROWSERSTACK_USERNAME | username for Browserstack account |
28
+ | BROWSERSTACK_ACCESS_KEY | access key for Browserstack account |
29
+ | SLACK_WEBHOOK_URL | webhook for slack notifications |
30
+ | REPORT_BUCKET | s3 bucket to save allure reports |
31
+ | PAGERDUTY_ROUTING_KEY | pager duty Events Api v2 integration key |
23
32
 
24
33
  ## Development
25
34
 
@@ -1,11 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ def get_remote_capabilities(test_browser)
4
+ if test_browser.eql? 'chrome_headless'
5
+ return Selenium::WebDriver::Remote::Capabilities.chrome(
6
+ chromeOptions: { args: %w[headless disable-gpu] }
7
+ )
8
+ end
9
+ test_browser.to_sym
10
+ end
11
+
3
12
  Capybara.register_driver :wip do |app|
4
13
  test_browser = ENV['TEST_BROWSER'] || 'chrome'
5
14
  selenium_server = ENV['SELENIUM_SERVER']
6
- if ENV['SELENIUM_SERVER'].nil?
15
+ if selenium_server.nil?
7
16
  Capybara::Selenium::Driver.new(app, browser: test_browser.to_sym)
8
17
  else
9
- Capybara::Selenium::Driver.new(app, browser: :remote, url: selenium_server, desired_capabilities: test_browser.to_sym)
18
+ Capybara::Selenium::Driver.new(
19
+ app,
20
+ browser: :remote,
21
+ url: selenium_server,
22
+ desired_capabilities: get_remote_capabilities(test_browser)
23
+ )
10
24
  end
11
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quintocumber
4
- VERSION = '1.1.5'
4
+ VERSION = '1.1.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quintocumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Queiroz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-13 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
288
  version: '0'
289
289
  requirements: []
290
290
  rubyforge_project:
291
- rubygems_version: 2.5.1
291
+ rubygems_version: 2.5.2.1
292
292
  signing_key:
293
293
  specification_version: 4
294
294
  summary: Cucumber on steroids