Cypress login using request method
问题 I register & login a user, however, when in my test I navigate to a page behind authentication, Cypress fails & takes me back to the login page. From the looks of it, the before function is successfully executed (as verified by the API log). Here is my code: describe("Dashboard page", () => { before(() => { cy.fixture("authUserRegistrationDetail.json").then(userDetail => { cy.fixture("authUserLoginDetail.json").then(userLoginDetail => { cy.visit("http://localhost:3000/login"); cy.get("