Jeffail / leaps

A pair programming service using operational transforms
MIT License
751 stars 55 forks source link

unit test #45

Open qknight opened 6 years ago

qknight commented 6 years ago

i want to use javascript with selenium to test if leaps is working correctly but i don't know how to insert 'text' into the textedit.

are you doing that already? any idea welcome!

qknight commented 6 years ago

oh, just found it: $('.ace_line').innerHTML="asdfasdf"

Jeffail commented 6 years ago

@qknight, sounds like a good idea, let me know how it goes!

qknight commented 6 years ago

i'd like to test the editor interactively but i don't have an idea how to do that. are there specific client commands like: move cursor right, insert letter x, tell me where the curser is in the document, get word after cursor and so on?

that would make testing easy and i'd like to finish this test soon as leaps keeps breaking and i need proper testing for the WS stuff and so on.