bahmutov / cypress-each

A demo of mocha-each and custom describe.each and it.each implementation for Cypress
21 stars 6 forks source link

Does not support "it.only.each" function #156

Open fumegalli opened 2 months ago

fumegalli commented 2 months ago

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