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

Cross origin Issue #29674

Open
Vinod-tech-sys opened this issue Jun 13, 2024 · 1 comment
Open

Cross origin Issue #29674

Vinod-tech-sys opened this issue Jun 13, 2024 · 1 comment
Labels
stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period topic: cy.origin Problems or enhancements related to cy.origin command

Comments

@Vinod-tech-sys
Copy link

Vinod-tech-sys commented Jun 13, 2024

Current behavior

In this scenario, after initially visiting the URL www.example.com, Azure authentication occurs. Upon successful user validation, the current URL origin changes to betaexample.com. However, despite being able to change the origin and proceed further, reusable functions declared in another spec file, as well as CSS selectors, cannot be accessed within the new origin. It throws an error indicating that those methods or selectors are not defined.

step 1: intial visiting the URL www.example.com
step 2 : validation takes place with microsoft.online.com origin
step 3: again aftter user validation origin changes to betaexample.com

Desired behavior

No response

Test code to reproduce

cy.origin('https://'beatexample.com',()=>{
  cy.get(css.Homepage.click_button)
  click_element('div[@class='button1']')
})

Cypress Version

13.0.0

Node version

20.0.0

Operating System

windows

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added topic: cy.origin Problems or enhancements related to cy.origin command stage: needs investigating Someone from Cypress needs to look at this labels Jun 24, 2024
@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 Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period topic: cy.origin Problems or enhancements related to cy.origin command
Projects
None yet
Development

No branches or pull requests

3 participants