Dynamic API Tests Using Cypress-Each Plugin

1 · Gleb Bahmutov · Oct. 12, 2021, 3:28 a.m.
Recently a friend of mine Murat Ozcan has asked me about using Cypress for performing API tests.The second screenshot is giving an example of the ".each" feature Murat iz looking for. Given an array of items, it generates a separate describe block with the title formatted using the data.I am a big believer in using Cypress for API tests, see my blog post Post not found: api-testing-with-server-logs, but I do agree - jest.each does look nice. Every time you import a JSON fixture with lots of test...