Search in sources :

Example 6 with ApplicationCreatePage

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());
}
Also used : ApplicationCreatePage(org.xwiki.appwithinminutes.test.po.ApplicationCreatePage) IgnoreBrowsers(org.xwiki.test.ui.browser.IgnoreBrowsers) AbstractTest(org.xwiki.test.ui.AbstractTest) Test(org.junit.Test)

Aggregations

ApplicationCreatePage (org.xwiki.appwithinminutes.test.po.ApplicationCreatePage)6 Test (org.junit.Test)4 AbstractTest (org.xwiki.test.ui.AbstractTest)4 IgnoreBrowsers (org.xwiki.test.ui.browser.IgnoreBrowsers)3 ApplicationClassEditPage (org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage)2 ViewPage (org.xwiki.test.ui.po.ViewPage)2 Before (org.junit.Before)1 ApplicationHomeEditPage (org.xwiki.appwithinminutes.test.po.ApplicationHomeEditPage)1 ApplicationHomePage (org.xwiki.appwithinminutes.test.po.ApplicationHomePage)1 ClassFieldEditPane (org.xwiki.appwithinminutes.test.po.ClassFieldEditPane)1 EntryEditPage (org.xwiki.appwithinminutes.test.po.EntryEditPage)1 EntryNamePane (org.xwiki.appwithinminutes.test.po.EntryNamePane)1 LocalDocumentReference (org.xwiki.model.reference.LocalDocumentReference)1 LiveTableElement (org.xwiki.test.ui.po.LiveTableElement)1 WikiEditPage (org.xwiki.test.ui.po.editor.WikiEditPage)1