Skip to content

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

Closed

Description

@jennifer-shehane

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

Activity

  1. self-assigned this
    on Jan 26, 2021
  2. cypress-bot commented on Feb 1, 2021

    @cypress-bot
    Contributor

    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.

  3. cypress-bot commented on Feb 1, 2021

    @cypress-bot
    Contributor

    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.

  4. locked as resolved and limited conversation to collaborators on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions