Cypress tests continuously run XHR posts when visiting localhost (running vue.js)

一个人想着一个人 提交于 2019-12-11 14:26:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!