What are you trying to achieve?
@brahimiarlinda found an edge case like this
Scenario('Verify getting list of users', async () => {
let res = await I.getUserPerPage(2);
res.data = []; // this line causes the issue
await I.expectEqual(res.data.data[0].id, 7);
});
at this time, res.data.data[0].id
would throw undefined error and somehow the test is missing all its steps.
What do you get instead?
The test should have its steps.