ViewPage newPage = editNewPageWiki.clickSaveAndView();
// no templates are available, so we don't expect a panel with a list of templates, we just expect it goes
// directly to edit mode of the new page
// it would be nice to be able to test here that the create page panel is not displayed, ever. However, we can't
// since we need to wait for that time, and we don't know how much is never.
newPage.clickWantedLink(space, "NewLinkedPage", false);
WYSIWYGEditPage editNewLinkedPage = new WYSIWYGEditPage();
// since the edit mode loads as a result of a redirect that comes from a async call made by the click, we need
// to wait for the page to load
editNewLinkedPage.waitUntilElementIsVisible(By
.xpath("//div[@id='mainEditArea']//div[@class='gwt-Label' and contains(text(), 'WYSIWYG')]"));