question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to ignore special character sequences for cy.type

See original GitHub issue

Current behavior:

cy.type considers everything in {} as modifier sequence. In our app we have embedded code runner. For testing we put there code from fixtures with cy.type. And cy.type throws CypressError: Special character sequence: '{...}' is not recognized when code includes some braced expression.

Desired behavior:

Add option to cy.type to not treat {} as modifier sequence.

Versions

Cypress: 3.2.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Jun 21, 2019

Another pretty reasonable argument for allowing an options argument to turn off special chars https://github.com/cypress-io/cypress/issues/4491

0reactions
RubenGarciacommented, Jan 29, 2021

Can you also add documentation? A search for “parseSpecialCharacterSequences cypress” in google only returns this page. Edit: the option was renamed to parseSpecialCharSequences and is available at https://docs.cypress.io/api/commands/type.html#Arguments

Read more comments on GitHub >

github_iconTop Results From Across the Web

type - Cypress Documentation
To disable parsing special characters sequences, set the parseSpecialCharSequences option to false . Sequence, Notes. {{}, Types the literal { key. {backspace} ...
Read more >
Cypress Type Command - ProgramsBuzz
Here are some of the special character sequences that Cypress can use with the type command: {{}: Types in the literal { key....
Read more >
cypress-io/cypress - Gitter
Hi, i'm trying to stub a openIdConnect redirect response with cy.route.. Cypress seems to ignore the stubs (or at least does not match...
Read more >
Regular expression for excluding special characters [closed]
The expression [^(many characters here)] just matches any character that is not listed. Share.
Read more >
key bindings - Special characters, escaped special characters ...
some characters, such as | or \ , which would normally have a special behavior, need to be escaped via \ . One...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found