Uploaded January 2025 | Updated September 2026, 1 week ago
This video shows how to connect utility page object methods to the rest of the testing code:
- using a callback function (my least favorite method)
- returning Cypress chain with the value (works pretty well)
- saving value under a Cypress alias (works really well)
Find the final source code and individual commits in the pull request github.com/bahmutov/todomvc-callback-example/pull/2
For more, read my blog posts glebbahmutov.com/blog and go through the Testing The Swag Store course at https://cypress.tips/courses
This video shows how to connect utility page object methods to the rest of the testing code:
- using a callback function (my least favorite method)
- returning Cypress chain with the value (works pretty well)
- saving value under a Cypress alias (works really well)
Find the final source code and individual commits in the pull request github.com/bahmutov/todomvc-callback-example/pull/2
For more, read my blog posts glebbahmutov.com/blog and go through the Testing The Swag Store course at https://cypress.tips/courses










