Uploaded March 2024 | Updated September 2026, 1 week ago
Often an application shows a random greeting popup when the user visits the page. This video shows how to investigate it and set the local storage item to prevent the popup from opening. Find the source code in the branch "level9" of the repo github.com/bahmutov/flaky-test-cypress
Often an application shows a random greeting popup when the user visits the page. This video shows how to investigate it and set the local storage item to prevent the popup from opening. Find the source code in the branch "level9" of the repo github.com/bahmutov/flaky-test-cypress








![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)

