Skip to content

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

Closed
@jennifer-shehane

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions