emilkm / cypress-readystatechange

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cypress-readystatechange

This is intended to try and replicate the following cypress issue cypress-io/cypress#599

In this case, amf.js a stripped down version of amfjs has been used. Removing all the AMF stuff and just leaving the xhr pool.

It seems that when an xhr is reused it causes the cypress issue.

The error appears on the left in the application under development. In this replication dedicated code we have two versions of xhr handling, with onreadystatechange, and onload, onerror. Both failing.

The test code is very simple

describe('My Second Test', function() {
it('visit', function() {
    cy.visit('http://localhost/cypress-readystatechange/');
    cy.contains('Login').click();
});

Hope this helps.

About


Languages

Language:JavaScript 93.0%Language:HTML 6.3%Language:PHP 0.8%