File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
rb/spec/integration/selenium/webdriver/spec_support Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,9 @@ def chrome_options(args: [], **opts)
276276 opts [ :binary ] ||= ENV [ 'CHROME_BINARY' ] if ENV . key? ( 'CHROME_BINARY' )
277277 args << '--headless' if ENV [ 'HEADLESS' ]
278278 args << '--no-sandbox' unless Platform . windows?
279- WebDriver ::Options . chrome ( args : args , **opts )
279+ args << '--disable-dev-shm-usage' if GlobalTestEnv . rbe?
280+ opts [ :args ] = args
281+ WebDriver ::Options . chrome ( **opts )
280282 end
281283
282284 def edge_options ( args : [ ] , **opts )
@@ -285,7 +287,9 @@ def edge_options(args: [], **opts)
285287 opts [ :binary ] ||= ENV [ 'EDGE_BINARY' ] if ENV . key? ( 'EDGE_BINARY' )
286288 args << '--headless' if ENV [ 'HEADLESS' ]
287289 args << '--no-sandbox' unless Platform . windows?
288- WebDriver ::Options . edge ( args : args , **opts )
290+ args << '--disable-dev-shm-usage' if GlobalTestEnv . rbe?
291+ opts [ :args ] = args
292+ WebDriver ::Options . edge ( **opts )
289293 end
290294
291295 def firefox_options ( args : [ ] , **opts )
You can’t perform that action at this time.
0 commit comments