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

Unable to access saleforce lighting using cypress UI #28637

Closed
FarazQualitest21 opened this issue Jan 4, 2024 · 10 comments
Closed

Unable to access saleforce lighting using cypress UI #28637

FarazQualitest21 opened this issue Jan 4, 2024 · 10 comments
Labels
stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period type: bug

Comments

@FarazQualitest21
Copy link

FarazQualitest21 commented Jan 4, 2024

Current behavior

I am trying to hit my salesforce ui lightning version but i am facing that cypress is stuck with 'your tests are loading', Though same scripts are working for classic version

Desired behavior

No response

Test code to reproduce

sandboxhomepage: 'https://unilever--cgdev.sandbox.my.salesforce.com/',

Given(/^login with the select '(.*)'$/, (url) => {

    Homepage.initializeurl(url)
    Homepage.enterUserIDandPwd(appData.salesforce.username, appData.salesforce.password)
});

Then(/^creating none case$/, () => {
    Homepage.createNoneCase()
})

cy.visit('sandboxhomepage')

Cypress Version

13.6.1

Node version

18.14.0

Operating System

macOS sonoma(14.2)

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

@FarazQualitest21 Do you happen to have modifyObstructiveCode set to false in your cypress.config.js file? If this is set to true, I believe this should work.

@jennifer-shehane jennifer-shehane added the stage: awaiting response Potential fix was proposed; awaiting response label Jan 4, 2024
@FarazQualitest21
Copy link
Author

Hi @jennifer-shehane thanks for your reply even though i am setting it false it is still not working
Please have a look at this video this is what exactly happening

screen-recording-2024-01-05-at-102234_hzvFYxcZ.mp4

And it will stuck here only

@jennifer-shehane
Copy link
Member

Yah this is a super weird issue. For many, many, many different reasons now we have had trouble testing Salesforce sites. They do a lot of strange things behind the scenes that are unconventional from other websites. This looks like a bug.

@jennifer-shehane jennifer-shehane added type: bug and removed stage: awaiting response Potential fix was proposed; awaiting response labels Jan 5, 2024
@FarazQualitest21
Copy link
Author

Is there any way around to test like API login if yes can you please suggest me how can i do it? @jennifer-shehane

@jennifer-shehane
Copy link
Member

@FarazQualitest21 I don't have anything specific to point to, but there may be some resources out there.

@FarazQualitest21
Copy link
Author

Do we know when this can be fixed @jennifer-shehane

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label Feb 16, 2024
@AlinaSkilsaraFreshcode
Copy link

I saw the same issue for Saleforce Lightning, a temporary solution was adding experimentalModifyObstructiveThirdPartyCode: true to cypress e2e config

@thsrv
Copy link

thsrv commented Jul 14, 2024

do we have any solution?

@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 Jan 11, 2025
@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 Jan 26, 2025
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 type: bug
Projects
None yet
Development

No branches or pull requests

5 participants