Skip to content

[allure-cypress] Unhandled rejection CypressError: cy.origin() could not serialize the subject due to one of its properties not being supported by the structured clone algorithm. #1306

@koreyba

Description

@koreyba

Describe the bug
Allure fails to handle some tricks with cy.origin()

I've created a project with a test that reproduce it. Unfortunately it's not possible to upload zipped files here and I also cannot upload a folder.
So, please look at the NOT zipped folder on the Google Drive.

I've spent a week to catch it in my project and to share with you on a test project. Hope it helps a lot.

To Reproduce
Please add the following to your hosts file:
127.0.0.1 main-app.local
127.0.0.1 admin-portal.local
127.0.0.1 brand-portal.local
127.0.0.1 api.local

In package.json file, execute the next command to start local server:
"serve": "http-server ./test-site -p 80 --cors"

Then open Cypress ("test:crossdomain:open": "cypress open --config-file cypress.crossdomain.config.ts")
and run the test in file: allure-bug-try.e2e.cy.ts

Make sure you start test with clean session (it will not reproduce if the first session is restored rather than created)

Actual behavior
Test hangs forever

Image

Expected behavior
I don't know, but it should fail like that. Now it hangs forever.

Additional context
It started in v. 3.3.0, in version 3.2.0 my production tests where I caught that bug failed with another error, so it's hard to say if this issue was present or not.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions