Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Run web extension tests #5
referenced this issue
Mar 30, 2016
I really appreciated
What I am missing is an upstream test library for WebExtension that provides:
It could be under
Maybe extracting it from
@lidel fyi I just created https://github.com/Standard8/example-webextension which is going to hold the web extension example in future, as the example-addon-repo is likely to revert to hybrid for the time being (and have different structures).
It does use
We probably don't need anything as low level as this. We can re-use the way
I have a hard time understanding the value of testing that a browser button was added for a given extension. You add a button by declaring it in your manifest. The actual button adding is performed by the Firefox WebExtension platform itself and features like this are already well tested. Why do you need to test it again? Is it because you don't want to be bitten by a regression in the WebExtension platform? Regressions are certainly possible but unlikely; you will get more mileage by trying to prevent bugs in your own program first (which aren't already tested by Firefox :)).
This seems useful but can't you already do this in geckodriver easily?
I think it would be helpful to see some more iterations on real world test suites so we can better understand what to bake into
As commented just before the section you highlighted - that's going to be implemented in geckodriver, so it will be a simple function to call.
If I understand your question correctly, then selenium/geckodriver start up Firefox themselves (with its own profile etc) for testing. I guess you could probably set it up for remote control from selenium, but then you might loose some of the profile control that selenium gives you.
I understand both sides of the discussion here. Taking experience from what I've worked on previously, what I would normally do is:
Thanks! At this point, my understanding is: