BeforeAll do
  Maze.config.receive_no_requests_wait = 15 if Maze.config.respond_to? :receive_no_requests_wait=
end

Before('@android_only') do |scenario|
  skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"] == 'ios'
end

Before('@ios_only') do |scenario|
  skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"] == 'android'
end

Before('@navigation') do |scenario|
  skip_this_scenario("Skipping scenario") if ENV['SKIP_NAVIGATION_SCENARIOS'] == 'true'
end

BeforeAll do
  Maze.config.receive_no_requests_wait = 15
  Maze.config.receive_requests_wait = 60 # Theoretical maximum on Android
end

Before('@android_only') do |scenario|
  skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"] == 'ios'
end

Before('@ios_only') do |scenario|
  skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"] == 'android'
end

Before('@navigation') do |scenario|
  skip_this_scenario("Skipping scenario") if ENV['SKIP_NAVIGATION_SCENARIOS'] == 'true'
end

Allow 60s for report deliveries
Allow 60s for report deliveries