cypress-real-events icon indicating copy to clipboard operation
cypress-real-events copied to clipboard

Cyrillic letters are not supported for the realType function

Open Halynsky opened this issue 1 year ago • 3 comments

Cyrillic letters are not supported for the realType function

image

Halynsky avatar Jan 14 '24 22:01 Halynsky

And they are not designed to be supported. You can use text option on the real type to submit utf-8 text

dmtrKovalenko avatar Jan 14 '24 23:01 dmtrKovalenko

@dmtrKovalenko Thx for your response. 1 - Just interesting. Why it's designed like that? 2 - Can you please show some example of what you mean about utf-8? I don't see any option utf-8 in the function itself. Do you mean some conversation before the function?

Halynsky avatar Jan 15 '24 20:01 Halynsky

I am sorry it actually not implemented. There is a cdp option text that we can leverage for those.

PRs are welcome. For reference check how puppeteer is doing that, our type is basically a replication of puppeteer keypress.

Need to handle and use the "text" option exclusively in realPress

dmtrKovalenko avatar Jan 15 '24 20:01 dmtrKovalenko

I'd say that for a better design it would be easier and better to use the default cypress commands. Neither playwright nor puppeteer actually support native non english keyboards

dmtrKovalenko avatar Jun 15 '24 13:06 dmtrKovalenko