I'm using protractor with mocha-allure reporter. In a test, when multiple "expect" statements are there,only the first "expect" statement result gets logged in the report.Please find sample code below
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
describe('Allure report for multiple expect', function() {
it('Check Allure', function(done) {
expect("first checkpoint").to.equal("is displayed")
expect("second checkpoint").to.equal("is not displayed")
expect("third checkpoint").to.equal("is not displayed")
});
})
The allure report displays only first failure Allure Report Screenshot
I need all the failures for all the expect statements in the testcase. Is there any way i can achieve this?
Thanks!!