mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:03:45 +08:00
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("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()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user