Hi devs,
I’m working on improving our test framework by doing the following:
* Introduce a wrapping RemoteWebDriver called XWikiWebDriver
* Move all the generic methods (i.e. that are not related to XWiki’s specific UI) we have
in TestUtil + BaseElement into XWikiWebDriver (all the findElement(s)WithoutWaiting(),
hasElement*(), waitFor*(), etc). The idea is simply to augment the WebDriver-provided APIs
with all the methods we have created because they were useful to us.
* Add an automated check when calling method that wait (e.g. findElement(),
findElements()) so that if the timeout is incurred, we fail the test. The reason is that
if we incur the timeout it means the test itself is not doing it right and is taking too
much time!
Let me know if you don’t agree with something (as quickly as possible since I’ve already
spent a few hours on it ;)).
Thanks!
-Vincent