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));
}
Aggregations