axe-core-capybara 4.6.1.pre.311e4da → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/axe-capybara.rb +10 -4
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ec1ee0a0b1c5191ddba7440f0d1611c6419d9f40b24c86407539f2f46f72d64
4
- data.tar.gz: c5f854192e1c139c8274ecdf82e5362f31c1e9206a13f53e12ea88308c2b5c51
3
+ metadata.gz: c7d31c1ba80b2ff2e3c42ef4705e87a8fe8e1333a1ed441a2eebecf83d3fefa9
4
+ data.tar.gz: 748c4b7b0d6844c157ad8c0b3e4250af4e21864c04471d3058d3e5411f60dcdd
5
5
  SHA512:
6
- metadata.gz: 0a3f644ed35888fe81842cf377599bf4efa53bb4a69f35fbb16cefd93eed36750007c6a0a9b01091d85150ddecd1bf4f750e88394c149a198b81d03c2f6e1c8b
7
- data.tar.gz: 8b0dc7c535d7a4b792768f6dbdb28a45d2c2b6fa5f87643a29603a2cd9814baeaab6310f05d7c58209dc68dd6719f2d5b9ef2d80d657384d99ad20e3ceb998c4
6
+ metadata.gz: fd39e611c27303ef8debbe9be9c79a2741fba2ca11f8b5ac48f157828b7f22fc9f63e3436a1c43483ddf28a61143f3ef18a6a5148d724620148f4b38424730cc
7
+ data.tar.gz: c8e8958985cd88d6f9d7f9b26a49b9f5a63c500629210028dc8c77311ae3e5c65a5583dfe2b462c838989341a974d42a61374e522deaf79532a3e1bd3ca965fe
data/lib/axe-capybara.rb CHANGED
@@ -14,8 +14,7 @@ module AxeCapybara
14
14
 
15
15
  config = Axe::Configuration.instance
16
16
 
17
- # provide a capybara webdriver page object
18
- config.page = get_driver(browser)
17
+ config.page = set_driver(browser)
19
18
 
20
19
  # await and return
21
20
  yield config
@@ -24,7 +23,14 @@ module AxeCapybara
24
23
 
25
24
  private
26
25
 
27
- def self.get_driver(browserSymbol)
28
- Capybara::Selenium::Driver.new(nil, browser: browserSymbol)
26
+ def self.set_driver(browserSymbol)
27
+ if browserSymbol == :chrome
28
+ Capybara.default_driver = :selenium_chrome
29
+ Capybara.javascript_driver = :selenium_chrome
30
+ else
31
+ Capybara.default_driver = :selenium
32
+ Capybara.javascript_driver = :selenium
33
+ end
34
+ Capybara::Selenium::Driver.new(nil, :browser => browserSymbol)
29
35
  end
30
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axe-core-capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.1.pre.311e4da
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deque Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dumb_delegator
@@ -149,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
149
  version: 2.3.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">"
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: 1.3.1
154
+ version: '0'
155
155
  requirements: []
156
156
  rubygems_version: 3.2.32
157
157
  signing_key: