Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated testing #39

Open
jelmervdl opened this issue Aug 15, 2022 · 0 comments
Open

Automated testing #39

jelmervdl opened this issue Aug 15, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jelmervdl
Copy link
Owner

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:

  • Wikipedia (as a baseline)
  • Some popular (including non-English) news sites
  • Some dynamic web apps: Youtube, Twitter, Booking.com, Webmail?
  • Known sites that break (or used to break) the add-on because they use custom elements or MutationObserver in a way that interfered with the add-on

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.

@jelmervdl jelmervdl added enhancement New feature or request help wanted Extra attention is needed labels Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant