Custom properties are not set on the Window object in Cypress 12 and Nuxt 2 #27071
Closed
edgarkanyes
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am upgrading a Nuxt v2 application from Cypress v8.7 to v12.4.0.
In Cypress 8.7, I could access a property set on the window object in the browser console while running tests. For example, I could access the
getAppName
property by setting it via a nuxt plugin on the window object.In Cypress v12.4.0, this does not work.
window.getAppName
returnsundefined
when I run it on the console of a running cypress test. As a consequence, I cannot access it withcy.window()
.Is this a bug? How can I approach it differently?
Beta Was this translation helpful? Give feedback.
All reactions