Skip to content

Conversation

kobenguyent
Copy link
Collaborator

Motivation/Description of the PR

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.

Type of change

  • 🐛 Bug fix

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent merged commit bf4952c into 3.x Jan 14, 2024
@kobenguyent kobenguyent deleted the 4126-bug-the-test-is-missing-all-its-steps-when-running-with-workers branch January 14, 2024 06:11
@kobenguyent kobenguyent mentioned this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - The test is missing all its steps when running with workers

2 participants