dmtrKovalenko / cypress-real-events

Fire native system events from Cypress.
MIT License
755 stars 67 forks source link

Cyrillic letters are not supported for the realType function #614

Closed Halynsky closed 2 months ago

Halynsky commented 7 months ago

Cyrillic letters are not supported for the realType function

image

dmtrKovalenko commented 7 months ago

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

Halynsky commented 7 months ago

@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?

dmtrKovalenko commented 7 months ago

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 commented 2 months ago

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