mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-01 12:29:24 -06:00
Add Firefox support (#1359)
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com> Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com> Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Zach Bloomquist <github@chary.us> Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
This commit is contained in:
@@ -16,9 +16,10 @@ canRecordVideo = () ->
|
||||
shouldSkipProjectTest = () ->
|
||||
os.platform() == "win32"
|
||||
|
||||
runSmokeTest = (buildAppExecutable) ->
|
||||
runSmokeTest = (buildAppExecutable, timeoutSeconds = 30) ->
|
||||
rand = String(_.random(0, 1000))
|
||||
console.log("executable path #{buildAppExecutable}")
|
||||
console.log("timeout #{timeoutSeconds} seconds")
|
||||
|
||||
hasRightResponse = (stdout) ->
|
||||
# there could be more debug lines in the output, so find 1 line with
|
||||
@@ -30,7 +31,7 @@ runSmokeTest = (buildAppExecutable) ->
|
||||
if verify.needsSandbox()
|
||||
args.push("--no-sandbox")
|
||||
|
||||
execa "#{buildAppExecutable}", args, {timeout: 10000}
|
||||
execa "#{buildAppExecutable}", args, {timeout: timeoutSeconds*1000}
|
||||
.catch (err) ->
|
||||
console.error("smoke test failed with error %s", err.message)
|
||||
throw err
|
||||
|
||||
Reference in New Issue
Block a user