问题
I'm relatively new to cypress, however, whenever I run cy.visit
on localhost the XHR requests continuously run. This does not happen if I am visiting a remote URL. Here's the code:
describe('Applicant Login', () => {
it('focuses input on login box', () => {
cy.visit('http://localhost:3000/login')
})
})
Cypress continually runs XHR requests over and over until I stop. I'm running a vue.js app via nuxt.js. Here's the log output:
I have no errors, no request or response info, the continuous requests.
Thanks for the help!
回答1:
Many thanks to Kondasamy Jayaraman. The request is coming from a logrocket plugin trying to reach its service. I hadn't noticed it in the network tab when using the application. Much appreciation.
来源:https://stackoverflow.com/questions/55788866/cypress-tests-continuously-run-xhr-posts-when-visiting-localhost-running-vue-js