You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
What are you trying to achieve?
@brahimiarlinda found an edge case like this
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.
The text was updated successfully, but these errors were encountered: