I am trying evaluate whether data returned from a table (table.getData()) which is a 2D array contains another array.
In the console the expected data appears in the 2D array returned from the table.getData() call but the assertion fails.
this.Then(/^I see my account balances as follows:$/, function (tableData, done) {
var balanceAggregationPage = new BalanceAggregationPage(this.app.pagesContainer),
table = balanceAggregationPage.getAccountsTable();
var rows = tableData.getRows();
rows.shift();
var actualBalances = [];
rows.syncForEach(function (item) {
var row = item.raw();
row[7] = moment(parseInt(row[7], 10)).format('DD MMM YYYY hh:mm');
actualBalances.push(row);
});
exp(table.getData()).to.eventually.include(actualBalances).notify(done);
});
Can anyone help out? Thanks