Examples of waitUntilReady()


Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        // 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.
        Assert.assertFalse(appsLiveTable.isApplicationListed(appName));
    }
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        String appName = RandomStringUtils.randomAlphabetic(6);
        createApplication(appName);

        // Edit the application.
        ApplicationsLiveTableElement appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        ApplicationClassEditPage classEditor = appsLiveTable.clickEditApplication(appName);

        // Edit the existing class field.
        ClassFieldEditPane fieldEditPane = new ClassFieldEditPane("shortText1");
        fieldEditPane.setPrettyName("City Name");
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        String appName = RandomStringUtils.randomAlphabetic(6);
        createApplication(appName);

        // The application author should be able to edit and delete the application.
        ApplicationsLiveTableElement appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        appsLiveTable.filterApplicationName(appName);
        Assert.assertTrue(appsLiveTable.canEditApplication(appName));
        Assert.assertTrue(appsLiveTable.canDeleteApplication(appName));

        // Logout. Guests shouldn't be able to edit nor delete the application.
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.LiveTableElement.waitUntilReady()

        // Since there's a risk that the livetable has finished dislaying before the listener
        // (defined in LiveTableElement's constructor) has been set up, we force a livetable refresh.
        executeJavascript("livetable.clearCache();livetable.showRows(livetable.currentOffset, livetable.limit);");

        lt.waitUntilReady();
        return lt;
    }

    public LiveTableElement clickAttachmentsTab()
    {
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.LiveTableElement.waitUntilReady()

        // Since there's a risk that the livetbale has finished dislaying before the listener
        // (defined in LiveTableElement's constructor) has been set up, we force a livetable refresh.
        executeJavascript("livetable.clearCache();livetable.showRows(livetable.currentOffset, livetable.limit);");

        lt.waitUntilReady();
        return lt;
    }
}
View Full Code Here

Examples of org.xwiki.test.ui.po.LiveTableElement.waitUntilReady()

        Assert.assertTrue(editPage.hasLiveTableColumn("First Name"));
        editPage.moveLiveTableColumnBefore("First Name", "Update date");
        editPage.removeLiveTableColumn("Page name");
        Assert.assertFalse(editPage.hasLiveTableColumn("Page name"));
        LiveTableElement liveTable = ((ApplicationHomePage) editPage.clickSaveAndView()).getEntriesLiveTable();
        liveTable.waitUntilReady();
        // The column titles aren't translated because we haven't generated the document translation bundle.
        Assert.assertFalse(liveTable.hasColumn("xwikiusers.livetable.doc.name"));
        Assert.assertEquals(0, liveTable.getColumnIndex("xwikiusers.livetable.first_name"));
        Assert.assertEquals(1, liveTable.getColumnIndex("xwikiusers.livetable.doc.date"));
    }
View Full Code Here

Examples of org.xwiki.test.ui.po.LiveTableElement.waitUntilReady()

    {
        editPage.setDescription("wait for WYSIWYG to load");
        editPage.clickSaveAndContinue();
        ApplicationHomePage viewPage = editPage.clickCancel();
        LiveTableElement liveTable = viewPage.getEntriesLiveTable();
        liveTable.waitUntilReady();
        // The column title isn't translated because we haven't generated the document translation bundle.
        Assert.assertTrue(liveTable.hasColumn("xwikiusers.livetable.doc.name"));
    }

    /**
 
View Full Code Here

Examples of org.xwiki.test.ui.po.LiveTableElement.waitUntilReady()

        editPage.removeAllDeprecatedLiveTableColumns(false);
        Assert.assertFalse(editPage.isDeprecatedLiveTableColumnsWarningDisplayed());
        Assert.assertTrue(editPage.isLiveTableColumnDeprecated("foo"));
        ApplicationHomePage viewPage = editPage.clickSaveAndView();
        LiveTableElement liveTable = viewPage.getEntriesLiveTable();
        liveTable.waitUntilReady();
        // The column title isn't translated because we haven't generated the document translation bundle.
        Assert.assertTrue(liveTable.hasColumn("xwikiusers.livetable.foo"));

        // Edit again and remove the deprecated column.
        editPage = viewPage.editInline();
View Full Code Here

Examples of org.xwiki.test.ui.po.LiveTableElement.waitUntilReady()

        entryEditPage.setValue("staticList1", "value2");
        entryEditPage.clickSaveAndView().clickBreadcrumbLink(appName + " Home");

        // Filter the Static List column of the live table.
        LiveTableElement liveTable = new ApplicationHomePage().getEntriesLiveTable();
        liveTable.waitUntilReady();
        Assert.assertEquals(2, liveTable.getRowCount());
        String filterInputId = getFilterInputId(liveTable.getColumnIndex("Static List"));
        liveTable.filterColumn(filterInputId, "Second Choice");
        Assert.assertEquals(1, liveTable.getRowCount());
        Assert.assertTrue(liveTable.hasRow("Page name", "Bar"));
View Full Code Here

Examples of org.xwiki.test.ui.po.LiveTableElement.waitUntilReady()

        entryEditPage.setTitle("The Empty Bar");
        entryEditPage.clickSaveAndView().clickBreadcrumbLink(appName + " Home");

        // Filter the Title column of the live table.
        LiveTableElement liveTable = new ApplicationHomePage().getEntriesLiveTable();
        liveTable.waitUntilReady();
        Assert.assertEquals(2, liveTable.getRowCount());
        String filterInputId = getFilterInputId(0);
        liveTable.filterColumn(filterInputId, "mighty");
        Assert.assertEquals(1, liveTable.getRowCount());
        Assert.assertTrue(liveTable.hasRow("Page name", "Foo"));
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.