Add and interface: isExtensionStarted() to the extension
Background / User story
In testpages tests (used in webext, core & ABPUI pipeline) we have to wait for extension to load, to start adding filters.
Unfortunately, currently we check if "options" page is shown - which isn't a good indicator. Sometimes if loading takes too long, tests fail.
Temporarily we implemented checking if "welcome page" is shown but it would be great to have interface we can poll to check if we can proceed with tests.
As QA team in ABPUI uses both ABP & AB to test - it would be awesome to have it in both.
What to change
-
Development: Add message "testing.getReadyState". Possible return values are "loading" or "started", where "started" indicates that
EWE.start()
finished and following methods can be called "safely":- "filters.get"
- "filters.importRaw"
- "filters.remove"
- "subscriptions.get"
- "subscriptions.remove"
Hints for testers
Once branch with interface will be ready, I will prepare MR on testpages side to check if it works properly.
Hints for translators
none
Edited by Jens Arps