DEV: 302 status is normal in smoke test
Login can redirect there are potentially other cases
This commit is contained in:
parent
eaa7527933
commit
62f4284865
|
@ -70,7 +70,7 @@ const path = require("path");
|
||||||
page.on("console", msg => console.log(`PAGE LOG: ${msg.text()}`));
|
page.on("console", msg => console.log(`PAGE LOG: ${msg.text()}`));
|
||||||
|
|
||||||
page.on("response", resp => {
|
page.on("response", resp => {
|
||||||
if (resp.status() !== 200) {
|
if (resp.status() !== 200 && resp.status() !== 302) {
|
||||||
console.log(
|
console.log(
|
||||||
"FAILED HTTP REQUEST TO " + resp.url() + " Status is: " + resp.status()
|
"FAILED HTTP REQUEST TO " + resp.url() + " Status is: " + resp.status()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue