Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("example", function() {
- it("of test", function() {
- console.log("1");
- cy.request({
- url: Cypress.env("URL"),
- method: "POST",
- headers: auth_req.authHeaders,
- body: merged_body
- })
- .as("/authorize")
- .then((resp) => {
- console.log("2");
- Cypress.env("resp_code", resp.status);
- console.log("RESP CODE FROM RESPONSE:");
- console.log(resp.status);
- })
- .its("headers")
- .its("content-type")
- .should("include", "application/json");
- console.log("3");
- const var1 = new something.NotImportant;
- console.log("4");
- const var2 = new something.AlsoNotImportant;
- console.log("5");
- }
- }
- while (true) {
- cy.wait(5000);
- var resp_code = Cypress.env("resp_code");
- console.log("RESP CODE:");
- console.log(Cypress.env("resp_code"));
- }
Advertisement
Add Comment
Please, Sign In to add comment