-
Notifications
You must be signed in to change notification settings - Fork 125
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
an uncaught exception after clearing the local storage #1222
Comments
exception handling does not help, but only hides the error. |
To localize the error, I created a clean project. which includes only
I did only one test consisting of the minimum number of steps.
cypress.config.js ==>
I've tested this in chromium-like browsers, and an error occurs in all of them. The test does not complete after the error. If I turn off allure in the entire project. Then this error does not occur. |
Hey there, @kalcefer! I'd tried to reproduce the problem, but I didn't reproduce the problem. I created an example repository with almost the same code, could you check it out? |
I checked on your repository. You really can't play it. But if you add a page refresh at the end. cy.reload(), the error immediately appears.
PS
|
Yes, adding the page reload breaks the flow. Thank you for the clarifying 👍 |
@epszaw // import "allure-cypress" in the file /support/e2e.js |
Correct. Thank you again, working on that 👌 |
The problem was solved, and the fix will be available in the next release 🙏 |
Thanks, I'll check the new version and Close issue |
@kalcefer, the fix is released in 3.1.0 |
Describe the bug
an uncaught exception after clearing the local storage. And the test freezes.
(uncaught exception) SecurityError: Failed to enumerate the properties of 'Storage': Access is denied for this document.
To Reproduce
cy.visit(
http://${Cypress.env("host")}
)cy.clearLocalStorage()
cy.reload()
or
cy.visit(
http://${Cypress.env("host")}
)Expected behavior
the test should end as passed or failed
Screenshots
Desktop (please complete the following information):
Additional context
I observe this behavior both in open mode and in run mode. If disabled in e2e.js import "allure-cypress"; Then the test passes successfully. At the same time, reports are not even used in the test. I've checked versions from 3.0.1 to 3.09. I see this behavior in each one.
The text was updated successfully, but these errors were encountered: