jelmervdl / translatelocally-web-ext

TranslateLocally for the Browser is a web-extension that enables client side in-page translations for web browsers.
https://addons.mozilla.org/en-GB/firefox/addon/translatelocally-for-firefox/
Mozilla Public License 2.0
65 stars 3 forks source link

Automated testing #39

Open jelmervdl opened 2 years ago

jelmervdl commented 2 years ago

This extension, specifically the InPageTranslation class, is becoming complex enough that things that fix one page break another. I also have pretty much lost oversight over what causes a performance regression, and how bad it is.

So I would very much love some automated testing on a bunch of simple and complex pages. Something that covers:

I have no idea right now how to set this up. It would involve dealing with navigating (especially important for the dymamic web apps) and seeing how long it takes for the page to load, translate, and whether translation is complete.

Mozilla uses something called Mochitest for their version of the add-on, but I don't think they do any testing on real pages. I think I'd like to test on the live pages as the goal is to keep the add-on working with the websites as they are served now, not when I wrote the test.