Refactor Cypress Api Tests Part 4: Use deep.include Assertion @gleb
Refactor Cypress Api Tests Part 4: Use deep.include Assertion  @gleb
Uploaded June 2024 | Updated September 2026, 1 week ago
In this video, I refactor the user spec tests. We will combine multiple tests into a single one using "deep.include" assertion to check one or many known properties of an object. Then we will improve the page object method, and then I will switch to use cy-spok plugin to simplify checking nested properties. Find the code in the branch "refactor-user-spec" of the repo github.com/bahmutov/cypress-conduit-api
Refactor Cypress Api Tests Part 4: Use deep.include AssertionIterate Over DOM Elements Using cy.each, jQuery each and map, and cypress-map Plugin CommandsCypress Flaky Test Exercise: Level 7cypress-plugin-grep-boxes Plugin DemoSet Up Cypress Test Replay On GitHub ActionsCheck Broken Images On The PageConfirm The Number Of Elements In Different ScenariosFind One Element With Exact Text MatchUse GitHub Copilot Agent To Add JSConfig File For Cypress SpecsTesting The TanStack Router Stale Then Revalidate Fetching Using CypressSet Aliased Value TypeScript Type Value In Cypress TestsFilter And Parse Table Cells To Confirm The Sum Of Prices
gleb bahmutov |

Refactor Cypress Api Tests Part 4: Use deep.include Assertion

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER