Created
April 11, 2019 13:04
-
-
Save GergKllai1/5592cf9ba10ec24ec592cdc3753e1c8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cypress.Commands.add("loggedInAs", uid => { | |
window.localStorage.setItem("access-token", "pipJxPi2TAPF38GRCh9vSQ"); | |
window.localStorage.setItem("client", "NWcHIr2W-BrrhaFRylZkRQ"); | |
window.localStorage.setItem("expiry", "1556099608"); | |
window.localStorage.setItem("token-type", "Bearer"); | |
window.localStorage.setItem("uid", uid); | |
cy.visit("http://localhost:3001"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment