@@ -15,37 +15,16 @@ def execute_command(action, scenario_name = '')
1515
1616When ( 'I clear the Bugsnag cache' ) do
1717 case Maze ::Helper . get_current_platform
18- when 'macos' , 'webgl'
19- # Call executable directly rather than use open, which flakes on CI
20- log = File . join ( Dir . pwd , 'clear_cache.log' )
21- command = "#{ Maze . config . app } /Contents/MacOS/Mazerunner --args -logfile #{ log } > /dev/null"
22- Maze ::Runner . run_command ( command , blocking : false )
23- execute_command ( 'clear_cache' )
24-
25- when 'windows'
26- win_log = File . join ( Dir . pwd , 'clear_cache.log' )
27- command = "#{ Maze . config . app } --args -logfile #{ win_log } "
28- Maze ::Runner . run_command ( command , blocking : false )
29- execute_command ( 'clear_cache' )
30-
31- when 'android' , 'ios'
18+ when 'macos' , 'windows' , 'android' , 'ios' , 'switch'
3219 execute_command ( 'clear_cache' )
3320 when 'browser'
3421 url = "http://localhost:#{ Maze . config . port } /docs/index.html"
3522 $logger. debug "Navigating to URL: #{ url } "
3623 step ( "I navigate to the URL \" #{ url } \" " )
3724 execute_command ( 'clear_cache' )
38-
39- when 'switch'
40- switch_run_on_target
41- execute_command ( 'clear_cache' )
42-
4325 else
4426 raise "Platform #{ platform } has not been considered"
4527 end
46-
47- sleep 2
48-
4928end
5029
5130When ( 'I run the game in the {string} state' ) do |state |
0 commit comments