Hello,
import add context from ‘mochawesome/addContext’;
addReportContext: function(strContext) {
addContext(this, strContext)
}
From cucumber step definition I call this function:
I.addReportContext(‘Sample Test Step Report’);
When I execute, I’m getting either of below errors:
[mochawesome] Error adding context: Invalid test object
or
[mochawesome] Error adding context: Invalid arguments
kindly help if anyone successfully implements adding context to Mochawesome html report from codeceptjs.