I am facing an issue where the following step definition always returns true even for incorrect data from the dataTable.
Can someone assist me in correcting the syntax in TypeScript with Chai assertions?
Then(/^Verify the following details in report$/, async (table: TableDefinition) => {
table.rows().forEach(row => {
return expect(homepage.getDamagedPartyName()).to.eventually.equal(row[0]);
});
});