Examples of clickNextStep()


Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        // Set the field pretty name and default value
        fieldEditPane.setPrettyName("City Name");
        fieldEditPane.setDefaultValue("Paris");

        // Move to the next step.
        ApplicationHomeEditPage homeEditPage = classEditPage.clickNextStep().waitUntilPageIsLoaded();

        // Move back to the second step.
        classEditPage = homeEditPage.clickPreviousStep();

        // Open the configuration panel and set the field name
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        fieldEditPane = new ClassFieldEditPane("shortText1");
        fieldEditPane.openConfigPanel();
        fieldEditPane.setName("cityName");

        // Move to the next step.
        homeEditPage = classEditPage.clickNextStep();

        // Step 3
        // Enter the application description.
        String appDescription = "Simple application to manage data about various cities";
        homeEditPage.setDescription(appDescription);
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        // Set the field pretty name.
        fieldEditPane.setPrettyName("Population Size");

        // Fast forward.
        homeEditPage = classEditPage.clickNextStep();
        // Just wait for the WYSIWYG editor (which is used for setting the application description) to load so that the
        // page layout is stable before we click on the Finish button.
        homeEditPage.setDescription(appDescription);
        homePage = homeEditPage.clickFinish();
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        classEditPage = appCreatePage.clickNextStep();
        Assert.assertTrue(classEditPage.getContent().contains(ClassEditorTest.EMPTY_CANVAS_HINT));
        classEditPage.addField("Number");

        // Step 3 and back to Step 2
        classEditPage = classEditPage.clickNextStep().waitUntilPageIsLoaded().clickPreviousStep();
        Assert.assertFalse(classEditPage.getContent().contains(ClassEditorTest.EMPTY_CANVAS_HINT));
        Assert.assertFalse(classEditPage.hasPreviousStep());
    }
}
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        fieldEditPane.setPrettyName("City Name");
        fieldEditPane.openConfigPanel();
        fieldEditPane.setName("cityName");

        // Move to the next step.
        ApplicationHomeEditPage homeEditPage = classEditor.clickNextStep();
        homeEditPage.setDescription("demo");

        // Finish editing.
        ApplicationHomePage homePage = homeEditPage.clickFinish();
        Assert.assertTrue(homePage.getContent().contains("demo"));
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        appCreatePage.setApplicationName(appName);
        appCreatePage.waitForApplicationNamePreview();
        ApplicationClassEditPage classEditPage = appCreatePage.clickNextStep();
        classEditPage.addField("Short Text");
        // Wait for the application home edit page to load before clicking finish to be sure the page layout is stable.
        classEditPage.clickNextStep().waitUntilPageIsLoaded().clickFinish()
            .clickBreadcrumbLink(AppWithinMinutesHomePage.TITLE);
        homePage = new AppWithinMinutesHomePage();
    }
}
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        titleField.setDefaultValue(defaultTitle);
        String defaultContent = "Enter content here";
        contentField.setDefaultValue(defaultContent);

        // Add live table columns for Title and Content.
        ApplicationHomeEditPage homeEditPage = classEditPage.clickNextStep().waitUntilPageIsLoaded();
        homeEditPage.addLiveTableColumn("My Title");
        homeEditPage.addLiveTableColumn("My Content");

        // Add an application entry.
        EntryNamePane entryNamePane = homeEditPage.clickFinish().clickAddNewEntry();
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        Assert.assertEquals("Class: " + appPrettyName, classEditPage.getDocumentTitle());
        Assert.assertEquals(codeSpace, classEditPage.getMetaDataValue("space"));
        Assert.assertEquals(className, classEditPage.getMetaDataValue("page"));

        // Move to the next step (homepage edit).
        ApplicationHomeEditPage homeEditPage = classEditPage.clickNextStep();
        Assert.assertEquals(appPrettyName + " Home", homeEditPage.getDocumentTitle());
        Assert.assertEquals(dataSpace, homeEditPage.getMetaDataValue("space"));

        // Move to the next step (homepage).
        ApplicationHomePage homePage = homeEditPage.clickFinish();
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage.clickNextStep()

        // Edit the application's class.
        classEditPage = homePage.clickEditApplication();
        Assert.assertEquals(codeSpace, classEditPage.getMetaDataValue("space"));

        // Move to the next step and check if we landed in the correct data space.
        homeEditPage = classEditPage.clickNextStep();
        Assert.assertEquals(dataSpace, homeEditPage.getMetaDataValue("space"));

        // Go to the App Within Minutes home page.
        homeEditPage.clickBreadcrumbLink(AppWithinMinutesHomePage.TITLE);
        AppWithinMinutesHomePage appWithinMinutesHomePage = new AppWithinMinutesHomePage();
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationCreatePage.clickNextStep()

        Assert.assertTrue(appCreatePage.getContent().contains(codeSpace));
        // Class name
        Assert.assertTrue(appCreatePage.getContent().contains(className));

        // Move to the next step (class edit).
        ApplicationClassEditPage classEditPage = appCreatePage.clickNextStep();
        Assert.assertEquals("Class: " + appPrettyName, classEditPage.getDocumentTitle());
        Assert.assertEquals(codeSpace, classEditPage.getMetaDataValue("space"));
        Assert.assertEquals(className, classEditPage.getMetaDataValue("page"));

        // Move to the next step (homepage edit).
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.