cypress-each icon indicating copy to clipboard operation
cypress-each copied to clipboard

Does not support "it.only.each" function

Open fumegalli opened this issue 5 months ago • 0 comments

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

fumegalli avatar Sep 05 '24 21:09 fumegalli