@@ -154,7 +154,7 @@ module Firefox
154
154
options . add_preference ( 'intl.accepted_languages' , 'en-US' )
155
155
156
156
prefs = options . as_json [ 'moz:firefoxOptions' ] [ 'prefs' ]
157
- expected = { 'intl.accepted_languages' => 'en-US' }
157
+ expected = { 'intl.accepted_languages' => 'en-US' , 'remote.active-protocols' => 3 }
158
158
expect ( prefs ) . to eq ( expected )
159
159
end
160
160
end
@@ -185,7 +185,7 @@ module Firefox
185
185
it 'returns empty options by default' do
186
186
expect ( options . as_json ) . to eq ( 'browserName' => 'firefox' ,
187
187
'acceptInsecureCerts' => true ,
188
- 'moz:firefoxOptions' => { } ,
188
+ 'moz:firefoxOptions' => { 'prefs' => { 'remote.active-protocols' => 3 } } ,
189
189
'moz:debuggerAddress' => true )
190
190
end
191
191
@@ -195,7 +195,7 @@ module Firefox
195
195
'browserName' => 'firefox' ,
196
196
'foo:bar' => { 'foo' => 'bar' } ,
197
197
'moz:debuggerAddress' => true ,
198
- 'moz:firefoxOptions' => { } )
198
+ 'moz:firefoxOptions' => { 'prefs' => { 'remote.active-protocols' => 3 } } )
199
199
end
200
200
201
201
it 'converts to a json hash' do
@@ -240,7 +240,7 @@ module Firefox
240
240
'moz:debuggerAddress' => true ,
241
241
key => { 'args' => %w[ foo bar ] ,
242
242
'binary' => '/foo/bar' ,
243
- 'prefs' => { 'foo' => 'bar' } ,
243
+ 'prefs' => { 'foo' => 'bar' , 'remote.active-protocols' => 3 } ,
244
244
'env' => { 'FOO' => 'bar' } ,
245
245
'profile' => 'encoded_profile' ,
246
246
'log' => { 'level' => 'debug' } ,
0 commit comments