-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Jira application breaking when visited with cy.visit() command. #1436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jennifer-shehane did the legwork here and discovered the root cause. It's this function right here: https://gist.github.com/jennifer-shehane/75759abaa79883097ee4922e3c8f1998#file-unframed-js-L87 That function is returning a different I'll have to dissect the logic to implement a workaround. Although its kind of a rabbit hole to fix 3rd party code - I don't see another option. Because Cypress iframes the application under test, it's possible code behaves slightly differently - in this case it returns the Cypress window - instead of the Jira window. |
PR is here: #1437 This will go out in the next release. |
Released in |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
I want to use cypress to test Jira plugins. In order to do that, I should able to browse to Jira pages using cy.visit(). But Cypress can't load even a basic page of Jira. You can reproduce the problem easily by trying to visit any page of Jira.
Test code:
Is this a Feature or Bug?
This is a bug.
Current behavior:
cypress gives 'Uncaught TypeError: Cannot read property 'fn' of undefined' error. Cypress telling that this is not a Cypress problem, this is an application problem. But this page loads without any problem if you try to visit url directly in the Chrome 64. Somehow behavior of the page is changing under Cypress.
Desired behavior:
Requested page should be loaded without any error.
The text was updated successfully, but these errors were encountered: