XWIKI-9692: Write integration tests for xwiki-platform-wiki.

* Use waitUntilElementIsVisible instead of my own timeout handling.
* Try to fix the flickering with a timeout of 30sec instead of 9.