Uploaded September 2025 | Updated November 2026, 3 days ago
This video shows how to use an accumulator feature in the cypress-recurse plugin command and to "reduce" the strings into a set of slide captions. The refactoring starts with the carousel test shown in the previous video "Test Carousel Captions" youtu.be/sNw86J1M-go and gets rid of the local variable "captions". Find the plugin at github.com/bahmutov/cypress-recurse
This video shows how to use an accumulator feature in the cypress-recurse plugin command and to "reduce" the strings into a set of slide captions. The refactoring starts with the carousel test shown in the previous video "Test Carousel Captions" youtu.be/sNw86J1M-go and gets rid of the local variable "captions". Find the plugin at github.com/bahmutov/cypress-recurse
![Check N Checkboxes
This video shows how to check multiple checkboxes and how to validate the number of checked and clear boxes in your Cypress tests
// there are no checked boxes at first
cy.get(input[type=checkbox]:checked).should(have.length, 0)
const n = Cypress._.random(1, 5)
cy.log(`checking the first ${n} boxes`)
for (let k = 0; k less than n; k += 1) {
cy.get(input[type=checkbox]).eq(k).check()
}
cy.get(input[type=checkbox]:checked).should(have.length, n)
// clear boxes
cy.get(input[type=checkbox]:not(:checked)).should(
have.length,
5 - n,
)
Find this recipe at https://glebbahmutov.com/cypress-examples Check N Checkboxes](https://i.ytimg.com/vi/6vw47x6Nqc0/mqdefault.jpg)









