Allow to ignore special character sequences for cy.type
See original GitHub issueCurrent 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:
- Created 4 years ago
- Comments:14 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another pretty reasonable argument for allowing an options argument to turn off special chars https://github.com/cypress-io/cypress/issues/4491
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