Skip to content
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

Duplicated dom elements when running e2e debug #22904

Closed
kghaly opened this issue Jul 23, 2022 · 3 comments
Closed

Duplicated dom elements when running e2e debug #22904

kghaly opened this issue Jul 23, 2022 · 3 comments

Comments

@kghaly
Copy link

kghaly commented Jul 23, 2022

Current behavior

Sometimes when running tests using cypress debugger, the test runner will show screenshots where the element (for example a button) is duplicated and shown twice in the screenshot. This causes the test to fail and suggests using the parameter {multiple: true}, but in reality, the code is only supposed to have one button. Why is this happening and how can I avoid it?

Desired behavior

Not duplicate dom elements and show the correct amount of elements displayed from the code

Test code to reproduce

I am unable to share source code for this project.

Cypress Version

9.7.0

Other

No response

@kghaly kghaly closed this as completed Jul 23, 2022
@kjetilhammerseth
Copy link

@kghaly were you ever able to figure out what caused this? Having the exact same issue.

@marcthayer
Copy link

marcthayer commented Oct 6, 2023

Also hoping someone else finds this and chimes in on a cause and/or resolution. We're getting random elements duplicated at least once a day during e2e testing. Haven't found a way to replicate it on purpose.

@Srizza93
Copy link

If anyone falls down on the same issue, I'm getting something similar.
While typing into an input within a layer, this last one is duplicated and causes the test to be flaky.
My solution at the moment is to use the option { force: true } on the type command, but it is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants