|
@@ -18,7 +18,11 @@ describe "Opening", ->
|
|
|
"""
|
|
"""
|
|
|
child.exec command, (err, stdout, stderr)->
|
|
child.exec command, (err, stdout, stderr)->
|
|
|
if err? then done(err)
|
|
if err? then done(err)
|
|
|
- csrf = stdout.match("<input name=\"_csrf\" type=\"hidden\" value=\"(.*?)\">")[1]
|
|
|
|
|
|
|
+ csrfMatches = stdout.match("<input name=\"_csrf\" type=\"hidden\" value=\"(.*?)\">")
|
|
|
|
|
+ if !csrfMatches?
|
|
|
|
|
+ logger.err stdout:stdout, "smoke test: does not hace csrf token"
|
|
|
|
|
+ return("smoke test: does not hace csrf token")
|
|
|
|
|
+ csrf = csrfMatches[1]
|
|
|
|
|
|
|
|
# Change cookie to be non secure so curl will send it
|
|
# Change cookie to be non secure so curl will send it
|
|
|
fs = require("fs")
|
|
fs = require("fs")
|