Repeating Cypress E2E tests

If you want to run a cypress test in succession a few time (because of a flakey test) you can wrap it in a loop, Cypress will detect how many times it has to run the test(s) and set the testing pane accordingly.

describe('Something', function() {
  let i = 0;
  for (i = 0; i < 50 ; i++) {
    it.only('should be run this test 50 times' +i, () => {
      // ...
    })
  })
}