cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

Read the burn parameter from the test tags #86

Closed bahmutov closed 2 years ago

bahmutov commented 2 years ago

It would be nice to be able to exercise flaky tests simply by specifying the burn parameter in the test itself. Then this test would automatically repeat N times

describe('Flaky test', function () {
  // repeats 5 times
  it('should focus on the todo input field', { burn: 5 }, function () {
    cy.visit('/')
    cy.focused().should('have.class', 'new-todo')
  })
})
bahmutov commented 2 years ago

closing in favor of https://github.com/bahmutov/cypress-each/pull/16