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

DOM snapshot preview gets 'stuck' when tests refresh while watching test file + current hovering over command in Command Log #2796

Closed
jennifer-shehane opened this issue Nov 17, 2018 · 1 comment
Labels
pkg/runner This is due to an issue in the packages/runner directory type: bug

Comments

@jennifer-shehane
Copy link
Member

Current behavior:

The DOM Snapshot preview can get into a state where it remains in preview mode - regardless of where the mouse is currently hovering, clicking or doing.

Desired behavior:

The DOM Snapshot should not get stuck.

Steps to reproduce:

When hovering over a command in the Command Log, the DOM Snapshot of the command previews. In this case - and the only case I've replicated it - it is a 'before/after' Snapshot for ,type().

Leaving the mouse hovering over the command, cmd + tab over to the text editor and edit the current test so that the running test refreshes - the DOM Snapshot preview will remain in preview mode - so that the only way to remove this state is to close Cypress and reopen.

**Just run the tests below in the TODOMVC app and replicate what was done in the GIF above.

it('adds a todo', () => {
  cy.visit('http://localhost:8888')
  cy.get('.new-todo')
  .type('foo bar{enter}')
})

Versions

Cypress 3.1.1
Chrome 70

@jennifer-shehane
Copy link
Member Author

Closing as resolved.

If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Feb 5, 2021
@jennifer-shehane jennifer-shehane removed the stage: ready for work The issue is reproducible and in scope label Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pkg/runner This is due to an issue in the packages/runner directory type: bug
Projects
None yet
Development

No branches or pull requests

2 participants