mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
DEV: 302 status is normal in smoke test
Login can redirect there are potentially other cases
This commit is contained in:
@ -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()
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user