Cypress e2e test dock closing on cy.visit() Cypress e2e test dock closing on cy.visit() google-chrome google-chrome

Cypress e2e test dock closing on cy.visit()


Filed a bug with the Cypress github project and was informed this usually occurs when an application has framebusting code. Turns out we were importing hammerjs. When I removed that import (in polyfills.js), it works fine.

import 'hammerjs';

For reference, the issue link is Entire test runner redirects to app's login page #3517


For me upgrading from 3.1.0 to 3.1.5 resolved the issue.