https://cypress.io logo
it('successfully logs in via API', () => { cy....
# e2e-testing
b
it('successfully logs in via API', () => { cy.request('POST',
http://localhost:4000/users/login
, { user: { email: "USERNAME", password: "PASSWORD" } }).then(({ body }) => { window.localStorage.setItem('__auth_provider_token__', body.token) cy.visit('/profile') cy.get('h1').contains('Account') }) Doing a basic API login test to programmatically login to my application. The API is going through, but the page in the cy.visit() is not rendering. It's a white blank page. Looking at the screen shots I noticed a few xhr requests getting aborted. I can't figure out why or how. If I run the test locally, my tests all pass and work as expected.