govuk_test 0.4.3 → 0.4.4

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: d0f3628dab9e72974434bd26d148789b60d2c1819cad8787f1fca3fe95cdea61
4
- data.tar.gz: 388704d72c3a0d8954336f43134f261cfca5cd64af26afcdaa843d7f5b11c36b
3
+ metadata.gz: 8261a5b05d0c412e112a43abb67e4ac789c51ba3cde36e46fca2b7a1c30e8f5b
4
+ data.tar.gz: d63983757c6e6a931517e49944c9b3b787ce81c64d0093133de2f840de3fa8b5
5
5
  SHA512:
6
- metadata.gz: 0a58f7f9f6c0137deb7aaf1aacead1f0d3c00e66076af18cf35c346943d3bc701a6aa355c558e4e5f063e1e986df0ac3568b68096577b24d5f31b294c7302972
7
- data.tar.gz: 5949ef24a42f58bc96c21e87cdce4312388bd9940c6511ad586fcdaeceff8e5c638bf7fea150270c5057abb879b5b08f9d418add1652907d19f0a05efcd32b4d
6
+ metadata.gz: 679df4b8c55c9bccfdd71a6faff58437614c29babcc0000aca43325c43fe75ae5469b40a7b1ff6229bc11e0a5fe696db71cdbff25f8133234ba94496309d9c1a
7
+ data.tar.gz: 83bab36a10d657c8719df4ab98fcfe0498d33bd8d22fd275e3f0a7c49c5533eb04be41387506769575586565cae541b0387be85eef6f82f931fc1f2f5e21bc0c
@@ -7,6 +7,10 @@
7
7
  useful summary for people upgrading their application, not a replication
8
8
  of the commit log.
9
9
 
10
+ ## 0.4.4
11
+
12
+ * Allow `.configure` to accept extra chrome options
13
+
10
14
  ## 0.4.3
11
15
 
12
16
  * Swap the deprecated chromedriver-helper gem for webdrivers gem
data/README.md CHANGED
@@ -14,12 +14,27 @@ And then execute:
14
14
 
15
15
  ## Usage
16
16
 
17
- Somewhere in your `spec_helper` put:
17
+ Somewhere in your `spec_helper`, `rails_helper`, or `spec/support/govuk_test.rb` put:
18
18
 
19
19
  ```rb
20
20
  GovukTest.configure
21
21
  ```
22
22
 
23
+ It's also possible to pass optional arguments `:chrome_options` and/or `:window_size `
24
+ to `GovukTest.configure`:
25
+
26
+ ```rb
27
+ GovukTest.configure(chrome_options: { some_key: "some value" })
28
+
29
+ # or
30
+
31
+ GovukTest.configure(window_size: "1366,768")
32
+
33
+ # or
34
+
35
+ GovukTest.configure(chrome_options: { some_key: "some value" }, window_size: "800,600")
36
+ ```
37
+
23
38
  ## License
24
39
 
25
40
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -23,7 +23,7 @@ module GovukTest
23
23
 
24
24
  Capybara.register_driver :headless_chrome do |app|
25
25
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
26
- chromeOptions: { args: chrome_options }
26
+ chromeOptions: { args: chrome_options }.merge(options.fetch(:chrome_options, {}))
27
27
  )
28
28
 
29
29
  Capybara::Selenium::Driver.new(
@@ -1,3 +1,3 @@
1
1
  module GovukTest
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara