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

Clicking on select option in Cypress Studio, main window empties - cannot continue testing #14743

Closed
jennifer-shehane opened this issue Jan 26, 2021 · 2 comments · Fixed by #14813
Assignees
Labels
experiment: studio Issues when using experimentalStudio type: bug

Comments

@jennifer-shehane
Copy link
Member

Current behavior

When I use the Cypress Studio to click on a select option from the Cypress example website, the main window is cleared/rerouted.

Looks like a MobX error is thrown in the UI.

cypress_runner.js:60154 Error: [mobx] An invariant failed, however the error is obfuscated because this is a production build.
    at invariant (cypress_runner.js:49438)
    at fail (cypress_runner.js:49438)
    at checkIfStateModificationsAreAllowed (cypress_runner.js:49438)
    at e.spliceWithArray (cypress_runner.js:49438)
    at Proxy.replace (cypress_runner.js:49438)
    at Array.normalize (cypress_runner.js:46501)
    at Core.../../node_modules/markdown-it/lib/parser_core.js.Core.process (cypress_runner.js:43383)
    at MarkdownIt.../../node_modules/markdown-it/lib/index.js.MarkdownIt.parseInline (cypress_runner.js:43173)
    at MarkdownIt.../../node_modules/markdown-it/lib/index.js.MarkdownIt.renderInline (cypress_runner.js:43190)
    at formattedMessage (cypress_runner.js:183289)
    at cypress_runner.js:183363
    at cypress_runner.js:49273
    at cypress_runner.js:49251
    at trackDerivedFunction (cypress_runner.js:49438)
    at e.track (cypress_runner.js:49438)
    at useObserver (cypress_runner.js:49249)

Screen Shot 2021-01-26 at 8 17 54 AM

Desired behavior

Cypress Studio should record a 'click' on the multi-select's option instead of rerouting the main window.

Test code to reproduce

it('test', () => {
  cy.visit('https://example.cypress.io/commands/actions')
  cy.get('#select').scrollIntoView()
})
  • Run cypress open for code above
  • Click 'Add Commands to Test'
  • Click on 'oranges' or other option in the visible multi-select

Versions

Cypress 6.3.0

@jennifer-shehane jennifer-shehane added experiment: studio Issues when using experimentalStudio type: bug labels Jan 26, 2021
@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Jan 26, 2021
@panzarino panzarino self-assigned this Jan 26, 2021
@cypress-bot cypress-bot bot added stage: work in progress There is an open PR for this issue [WIP] and removed stage: ready for work The issue is reproducible and in scope labels Jan 29, 2021
@panzarino panzarino added stage: needs review The PR code is done & tested, needs review and removed stage: work in progress There is an open PR for this issue [WIP] labels Jan 29, 2021
@cypress-bot cypress-bot bot added the stage: pending release There is a closed PR for this issue label Feb 1, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 1, 2021

The code for this is done in cypress-io/cypress#14813, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Feb 1, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 1, 2021

Released in 6.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v6.4.0, please open a new issue.

@cypress-bot cypress-bot bot removed the stage: pending release There is a closed PR for this issue label Feb 1, 2021
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
experiment: studio Issues when using experimentalStudio type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants