adorable-smartphone-87280
02/10/2022, 5:25 PMcy.wait()
that consumes aliases? eg.adorable-smartphone-87280
02/10/2022, 5:28 PM// create env1 alias
cy.intercept("GET", "*env1/request?*").as(
"waitEnv1"
);
// create env2 alias
cy.intercept("GET", "*env2/request?*").as("waitEnv2");
adorable-smartphone-87280
02/10/2022, 5:28 PMcy.wait()
statement like:adorable-smartphone-87280
02/10/2022, 5:29 PMcy.wait("@waitEnv1" || "@waitEnv2", { timeout: 25000 })
.its("response.statusCode").should("be.oneOf", [200, 304]);
adorable-smartphone-87280
02/10/2022, 5:30 PM||
doesn't work there. Is there any way to achieve what I'm trying here?