Uploaded May 2025 | Updated September 2026, 1 week ago
This video shows how to check if the page loads every CSS resource successfully using Cypress E2E test. Since we don't know the exact number of CSS resources, we must check all of them. We can spy on "*.css" resources and check the state and status code of each intercepted call. I am using plugin github.com/bahmutov/cypress-map to write a shorter test. Find the full lesson in the course "Cypress Network Testing Exercises" online at https://cypress.tips/courses/network-testing
This video shows how to check if the page loads every CSS resource successfully using Cypress E2E test. Since we don't know the exact number of CSS resources, we must check all of them. We can spy on "*.css" resources and check the state and status code of each intercepted call. I am using plugin github.com/bahmutov/cypress-map to write a shorter test. Find the full lesson in the course "Cypress Network Testing Exercises" online 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)







![Chai Nested Property Assertion In Cypress
This video shows a lesser known Chai assertion have.nested.property The assertion works very well with objects and arrays:
cy.wrap({ name: { first: Joe } })
.should(have.nested.property, name.first, Joe)
// array example
cy.wrap([
{ sum: 42 },
{ sum: 101 },
{ sum: { errors: [Invalid operation] } },
]).should(
have.nested.property,
2.sum.errors.0,
Invalid operation,
)
The code examples are at https://glebbahmutov.com/cypress-examples/recipes/lesser-known-chai-assertions.html Chai Nested Property Assertion In Cypress](https://i.ytimg.com/vi/R1u73hgA1_Q/mqdefault.jpg)

