Uploaded June 2025 | Updated September 2026, 1 week ago
This video shows 3 Cypress tests:
- checking if an array contains the given primitive value with retries
- checking multiple intercepts
- checking multiple intercepts with flattened objects
Find the full recipe at glebbahmutov.com/cypress-examples/recipes/array-includes-a-primitive-value.html Find Cypress network testing course at https://cypress.tips/courses/network-testing
This video shows 3 Cypress tests:
- checking if an array contains the given primitive value with retries
- checking multiple intercepts
- checking multiple intercepts with flattened objects
Find the full recipe at glebbahmutov.com/cypress-examples/recipes/array-includes-a-primitive-value.html Find Cypress network testing course at https://cypress.tips/courses/network-testing







![Remove Numbers From Strings
This video shows how to take multiple elements, remove numbers from each text, trim those strings, and confirm them.
cy.get(#fruit li) // jQuery Element[]
.map(innerText) // string[]
.mapInvoke(replace, /[ds]/g, ) // string[]
.should(deep.equal, [Apples, Grapes, Kiwi])
The retryable query commands cy.map and cy.mapInvoke come from my plugin https://github.com/bahmutov/cypress-map The full example is at https://glebbahmutov.com/cypress-examples Remove Numbers From Strings](https://i.ytimg.com/vi/OXiEJDjozQo/mqdefault.jpg)


