cypress-each
cypress-each copied to clipboard
Does not support "it.only.each" function
The library does not accept the usage of only
together with each
.
e.g: it.only.each([])('', () => {})
I guess it is a bug or maybe a feature that definately should be supported.
I have a demo here: https://github.com/fumegalli/cypress-each-only
describe('template spec', () => {
it.only.each([
{ title: 'Cypress example', url: 'https://example.cypress.io' },
{ title: 'Cypress example /utilities', url: 'https://example.cypress.io/utilities' },
{ title: 'Cypress example /cypress-api', url: 'https://example.cypress.io/cypress-api' }
])
(({ title }) => `should visit ${title}`,
({ url }) => {
cy.visit(url)
})
})
Error thrown: it.only.each is not a function