2
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Noah Gibbs

@tenderlove Capybara would do that, using Selenium to do the work.

And yup, front end dev is hard 🙂

You'd tell it to grab the page and send the keystroke, then write a little JS snippet to see whether the search box has focus.

0
1y
pǝǝʌɐɾ s

@tenderlove if it’s a modern app presumably there would be JS tests to verify focus was shifted to the right control but with multiple apps active on the same page who knows? That said JS testing is still harder than Ruby testing at least to me.

0
1y
Replies