use of org.xwiki.panels.test.po.NewPagePanel in project xwiki-platform by xwiki.
the class NewPagePanelTest method testCreatePageFromPanel.
/**
* Tests if a new page can be created using the create page panel.
*/
@Test
@IgnoreBrowsers({ @IgnoreBrowser(value = "internet.*", version = "8\\.*", reason = "See https://jira.xwiki.org/browse/XE-1146"), @IgnoreBrowser(value = "internet.*", version = "9\\.*", reason = "See https://jira.xwiki.org/browse/XE-1177") })
public void testCreatePageFromPanel() {
NewPagePanel newPagePanel = NewPagePanel.gotoPage();
CreatePagePage createPagePage = newPagePanel.createPage(getTestClassName(), getTestMethodName());
createPagePage.clickCreate();
WikiEditPage editPage = new WikiEditPage();
Assert.assertEquals(getTestMethodName(), editPage.getDocumentTitle());
Assert.assertEquals("WebHome", editPage.getMetaDataValue("page"));
Assert.assertEquals(getTestClassName() + "." + getTestMethodName(), editPage.getMetaDataValue("space"));
}
Aggregations