Search in sources :

Example 6 with TablePage

use of org.activityinfo.test.pageobject.web.entry.TablePage in project activityinfo by bedatadriven.

the class DataEntrySteps method table_has_rows_in_database.

@Then("^\"([^\"]*)\" table has (\\d+) rows in \"([^\"]*)\" database$")
public void table_has_rows_in_database(String formName, int numberOfExpectedRows, String database) throws Throwable {
    TablePage tablePage = driver.openFormTable(driver.getAliasTable().getAlias(database), driver.getAliasTable().getAlias(formName));
    BsTable.waitUntilRowsLoaded(tablePage, numberOfExpectedRows);
}
Also used : TablePage(org.activityinfo.test.pageobject.web.entry.TablePage) Then(cucumber.api.java.en.Then)

Example 7 with TablePage

use of org.activityinfo.test.pageobject.web.entry.TablePage in project activityinfo by bedatadriven.

the class InstanceTableUiTest method infiniteScroll.

@Test
public void infiniteScroll() throws Exception {
    background();
    final TablePage tablePage = driver.getApplicationPage().navigateToTable(driver.getAliasTable().getAlias(DATABASE), driver.getAliasTable().getAlias(FORM_NAME));
    BsTable.waitUntilRowsLoaded(tablePage, SUBMISSIONS_COUNT);
}
Also used : TablePage(org.activityinfo.test.pageobject.web.entry.TablePage) Test(org.junit.Test)

Aggregations

TablePage (org.activityinfo.test.pageobject.web.entry.TablePage)7 And (cucumber.api.java.en.And)2 Given (cucumber.api.java.en.Given)1 Then (cucumber.api.java.en.Then)1 When (cucumber.api.java.en.When)1 DesignPage (org.activityinfo.test.pageobject.web.design.DesignPage)1 DesignTab (org.activityinfo.test.pageobject.web.design.DesignTab)1 Test (org.junit.Test)1