use of org.xwiki.appwithinminutes.test.po.ApplicationCreatePage in project xwiki-platform by xwiki.
the class ApplicationNameTest method testExistingAppName.
/**
* Try to input the name of an existing application.
*/
@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 testExistingAppName() {
ApplicationCreatePage appCreatePage = ApplicationCreatePage.gotoPage();
Assert.assertFalse(appCreatePage.getContent().contains(APP_NAME_USED_WARNING_MESSAGE));
// Type the name of an existing space.
appCreatePage.setApplicationName("Help");
appCreatePage.waitForApplicationNamePreview();
Assert.assertTrue(appCreatePage.getContent().contains(APP_NAME_USED_WARNING_MESSAGE));
// Proceed to the next step.
Assert.assertEquals("/Help/Code/Help Structure", appCreatePage.clickNextStep().getBreadcrumbContent());
}
Aggregations