DEV: 302 status is normal in smoke test

Login can redirect there are potentially other cases
This commit is contained in:
Sam Saffron 2019-06-14 13:30:06 +10:00
parent eaa7527933
commit 62f4284865
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ const path = require("path");
page.on("console", msg => console.log(`PAGE LOG: ${msg.text()}`));
page.on("response", resp => {
if (resp.status() !== 200) {
if (resp.status() !== 200 && resp.status() !== 302) {
console.log(
"FAILED HTTP REQUEST TO " + resp.url() + " Status is: " + resp.status()
);