Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables set on the window object are undefined with Chrome and Electron #27952

Closed
edgarkanyes opened this issue Oct 2, 2023 · 4 comments
Closed
Labels
stage: needs information Not enough info to reproduce the issue stale no activity on this issue for a long period

Comments

@edgarkanyes
Copy link

Current behavior

Variables set on the window object return undefined when accessed from Cypress tests using Chrome and Electron browsers.

Also during Cypress testing, the variables are undefined when accessed from the testing browser console in Firefox, Chrome and Electron.

Desired behavior

The variables set on the window object should not be undefined, both in Cypress and the testing browser console.

Test code to reproduce

https://github.com/edgarkanyes/cypress-window-issue

Cypress Version

13.3.0

Node version

v18.18.0

Operating System

MacOS Ventura 13.6

Debug Logs

No response

Other

I am adding screenshots from the linked repository for context.

chrome electron firefox
@jennifer-shehane
Copy link
Member

I keep getting issues trying to run this project.
Screen Shot 2023-12-13 at 11 21 21 AM

Screen Shot 2023-12-13 at 11 15 36 AM

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Dec 13, 2023
@edgarkanyes
Copy link
Author

Not exactly sure where it could be going wrong for you. I've tested it with both Node v18 and v20. Could it be an environment issue? Which Node version are you using? Also, which OS are you using?

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Jun 13, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

3 participants