Search in sources :

Example 1 with DashboardPortlet

use of org.activityinfo.test.pageobject.web.reports.DashboardPortlet in project activityinfo by bedatadriven.

the class AnalysisSteps method the_pivot_table_should_be_shown_on_my_dashboard_with.

@Then("^the pivot table \"([^\"]*)\" should be shown on my dashboard with:$")
public void the_pivot_table_should_be_shown_on_my_dashboard_with(String reportName, DataTable expectedData) throws Throwable {
    UiApplicationDriver ui = (UiApplicationDriver) driver;
    Dashboard dashboard = ui.getApplicationPage().navigateToDashboard();
    DashboardPortlet portlet = dashboard.findPortlet(aliasTable.getAlias(reportName));
    DataTable actual = portlet.extractPivotTableData();
    expectedData.diff(aliasTable.deAlias(actual));
}
Also used : DataTable(cucumber.api.DataTable) DashboardPortlet(org.activityinfo.test.pageobject.web.reports.DashboardPortlet) UiApplicationDriver(org.activityinfo.test.driver.UiApplicationDriver) Dashboard(org.activityinfo.test.pageobject.web.Dashboard) Then(cucumber.api.java.en.Then)

Aggregations

DataTable (cucumber.api.DataTable)1 Then (cucumber.api.java.en.Then)1 UiApplicationDriver (org.activityinfo.test.driver.UiApplicationDriver)1 Dashboard (org.activityinfo.test.pageobject.web.Dashboard)1 DashboardPortlet (org.activityinfo.test.pageobject.web.reports.DashboardPortlet)1