I need to test a react app that is supposed to run as a webview within another native app. The webview server sets session variables into the window, which is further used to authenticate my app.
I want to mock this by doing something like:
window.appEnvironment={
//session variables
}
I have tried cy.window() , but it doesnt seem to help. How can I set properties on window from cypress.