cypress: cypress desktop app crashes

  • Operating System: macOS Sierra
  • Cypress Version: 19.4 (and the one before that)
  • Browser Version: all browsers

Is this a Feature or Bug?

Bug

Current behavior:

Desktop app crashes very often if I run my test; crashes always if I rerun the same test (eg after making a change to the test and saving it).

Desired behavior:

No crashing 😉

How to reproduce:

See https://drive.google.com/file/d/0BwwTqatWQUO8Nkh3Wm93UkVHdkE/view for a video + the source-code (very basic).

  1. Open Cypres
  2. Select the test
  3. Run the test
  4. Observe the crash

Test code:

var baseURL = 'https://www.bxswiss.com/'; 

describe('Setup the environment', function () {
  beforeEach(function () { // these command are run before every single test; so before every 'it'
	cy.viewport('macbook-15'); // big screen 
  });


  it('should open homepage1', function () { // simple check to find Heineken with the search function
    cy.visit('https://www.bxswiss.com/'); //open the website
    cy.title().should('include', 'Trading 09:00 – 17:00 Swiss time - BX Swiss') // check if the title is correct
    cy.get('#q').type('Heineken');
    cy.get('.nav-search button').click(); //trigger the search
  });
});

Additional Info (images, stack traces, etc)

cypress-console

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

@brian-mann Sorry to tag you directly, but any chance you could say whether you think this looks like a problem in cypress or something I should be able to stop on the site being tested?

I think this crash may be related to signalr (it’s also the only mention of signalr in any open issue). I’m having a world of pain getting my tests to work with signalr. Due to the absence of websockets through the cypress proxy, it seems to default to long polling. And this results in the poll xhr request spanning tests and specs and generally causing all sorts of havoc that eventually lead to the ECONNRESET above which crashes cypress. I’m in the process of trying to work around this by gracefully disconnecting signalr after each test. Will update if I get anywhere.

Note, if I disable signalr in my app the issue and ECONNRESET disappear.