Uploaded June 2023 | Updated November 2026, 1 day ago
In this video, I show how to set the TypeScript properties for the application's window during Cypress tests. For example, you might need to pass something to the application from a Cypress test, but TS would complain that the property "window.foo" is invalid. By setting the "foo" property in the interface Cypress.AUTWindow you can let your TS compiler know about the optional property "foo" used by the test. This lesson comes from my course "Testing The Swag Store" https://cypress.tips/courses/swag-store
In this video, I show how to set the TypeScript properties for the application's window during Cypress tests. For example, you might need to pass something to the application from a Cypress test, but TS would complain that the property "window.foo" is invalid. By setting the "foo" property in the interface Cypress.AUTWindow you can let your TS compiler know about the optional property "foo" used by the test. This lesson comes from my course "Testing The Swag Store" https://cypress.tips/courses/swag-store










