Cypress: Can't type the literal `}` using `.type`

Created on 23 May 2018  路  2Comments  路  Source: cypress-io/cypress

I am trying to type a JSON string.

Current behavior:

image

Desired behavior:

There should be some way to print the { literal.
I am using a workaround: .type('{{} \"key\": \"value\"{{}}{leftarrow}{backspace}

Versions

Cypress: 2.1.0
OS: Linux x86_64 (Ubuntu 16.04)
Browser: Google Chrome 62.0.3202.89

Most helpful comment

Can you try this?

.type('{{}key:value}')

All 2 comments

Can you try this?

.type('{{}key:value}')

{} works find. Prosti gospodi...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

verheyenkoen picture verheyenkoen  路  3Comments

jennifer-shehane picture jennifer-shehane  路  3Comments

brian-mann picture brian-mann  路  3Comments

egucciar picture egucciar  路  3Comments

brian-mann picture brian-mann  路  3Comments