22
22
module Selenium
23
23
module WebDriver
24
24
module Chrome
25
- describe Driver do
25
+ fdescribe Driver do
26
26
let ( :resp ) { { 'sessionId' => 'foo' , 'value' => Remote ::Capabilities . chrome . as_json } }
27
27
let ( :service ) { instance_double ( Service , start : true , uri : 'http://example.com' ) }
28
28
let ( :caps ) { Remote ::Capabilities . new }
@@ -37,7 +37,7 @@ module Chrome
37
37
it 'sets the args capability' do
38
38
Driver . new ( http_client : http , args : %w[ --foo=bar ] )
39
39
40
- expect ( caps [ :chrome_options ] [ ' args' ] ) . to eq ( %w[ --foo=bar ] )
40
+ expect ( caps [ :chrome_options ] [ : args] ) . to eq ( %w[ --foo=bar ] )
41
41
end
42
42
43
43
it 'sets the proxy capabilitiy' do
@@ -57,13 +57,13 @@ module Chrome
57
57
it 'sets the prefs capability' do
58
58
Driver . new ( http_client : http , prefs : { foo : 'bar' } )
59
59
60
- expect ( caps [ :chrome_options ] [ ' prefs' ] ) . to eq ( foo : 'bar' )
60
+ expect ( caps [ :chrome_options ] [ : prefs] ) . to eq ( foo : 'bar' )
61
61
end
62
62
63
63
it 'lets the user override chrome.detach' do
64
64
Driver . new ( http_client : http , detach : true )
65
65
66
- expect ( caps [ :chrome_options ] [ ' detach' ] ) . to be true
66
+ expect ( caps [ :chrome_options ] [ : detach] ) . to be true
67
67
end
68
68
69
69
it 'raises an ArgumentError if args is not an Array' do
@@ -79,8 +79,8 @@ module Chrome
79
79
Driver . new ( http_client : http , profile : profile )
80
80
81
81
profile_data = profile . as_json
82
- expect ( caps [ :chrome_options ] [ ' args' ] . first ) . to include ( profile_data [ :directory ] )
83
- expect ( caps [ :chrome_options ] [ ' extensions' ] ) . to eq ( profile_data [ :extensions ] )
82
+ expect ( caps [ :chrome_options ] [ : args] . first ) . to include ( profile_data [ :directory ] )
83
+ expect ( caps [ :chrome_options ] [ : extensions] ) . to eq ( profile_data [ :extensions ] )
84
84
end
85
85
86
86
it 'takes desired capabilities' do
@@ -100,7 +100,7 @@ module Chrome
100
100
custom_caps [ :chrome_options ] = { 'args' => %w[ foo bar ] }
101
101
102
102
expect ( http ) . to receive ( :call ) do |_ , _ , payload |
103
- expect ( payload [ :desiredCapabilities ] [ :chrome_options ] [ ' args' ] ) . to eq ( [ 'baz' ] )
103
+ expect ( payload [ :desiredCapabilities ] [ :chrome_options ] [ : args] ) . to eq ( [ 'baz' ] )
104
104
resp
105
105
end
106
106
0 commit comments