Package org.xwiki.appwithinminutes.test.po

Examples of org.xwiki.appwithinminutes.test.po.AppWithinMinutesHomePage


    {
        // Register a simple user, login and go to the App Within Minutes home page.
        String userName = RandomStringUtils.randomAlphanumeric(5);
        String password = RandomStringUtils.randomAlphanumeric(6);
        getUtil().createUserAndLogin(userName, password);
        AppWithinMinutesHomePage appWithinMinutesHomePage = AppWithinMinutesHomePage.gotoPage();

        // Click the Create Application button.
        appCreatePage = appWithinMinutesHomePage.clickCreateApplication();
    }
View Full Code Here


        Assert.assertTrue(entriesLiveTable.hasRow("Page name", firstEntryName));
        Assert.assertTrue(entriesLiveTable.hasRow("Page name", secondEntryName));

        // Go to the App Within Minutes home page.
        homePage.clickBreadcrumbLink(AppWithinMinutesHomePage.TITLE);
        AppWithinMinutesHomePage appWithinMinutesHomePage = new AppWithinMinutesHomePage();

        // Assert that the created application is listed in the live table.
        ApplicationsLiveTableElement appsLiveTable = appWithinMinutesHomePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        Assert.assertTrue(appsLiveTable.isApplicationListed(appName));
    }
View Full Code Here

        Assert.assertTrue(appsLiveTable.isApplicationListed(appName));

        // Click the delete icon then cancel the confirmation.
        appsLiveTable.clickDeleteApplication(appName).clickNo();
        // We should be taken back to the AppWithinMinutes home page.
        homePage = new AppWithinMinutesHomePage();
        appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        // The application name filter should've been preserved.
        Assert.assertEquals(appName.substring(0, 3), appsLiveTable.getApplicationNameFilter());

        // Click the delete icon again and this confirm the action.
        appsLiveTable.clickDeleteApplication(appName).clickYes();
        // We should be taken back to the AppWithinMinutes home page.
        homePage = new AppWithinMinutesHomePage();
        appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        // The application name filter should've been preserved.
        Assert.assertEquals(appName.substring(0, 3), appsLiveTable.getApplicationNameFilter());
        // And the deleted application shouldn't be listed anymore.
View Full Code Here

        Assert.assertTrue(appsLiveTable.canDeleteApplication(appName));

        // Logout. Guests shouldn't be able to edit nor delete the application.
        homePage.logout();
        getUtil().recacheSecretToken();
        homePage = new AppWithinMinutesHomePage();
        appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        appsLiveTable.filterApplicationName(appName);
        Assert.assertFalse(appsLiveTable.canEditApplication(appName));
        Assert.assertFalse(appsLiveTable.canDeleteApplication(appName));
View Full Code Here

        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

        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();

        // Assert that the created application is listed in the live table.
        ApplicationsLiveTableElement appsLiveTable = appWithinMinutesHomePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        Assert.assertTrue(appsLiveTable.isApplicationListed(appPrettyName));
    }
View Full Code Here

TOP

Related Classes of org.xwiki.appwithinminutes.test.po.AppWithinMinutesHomePage

Copyright © 2018 www.massapicom. 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.