-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Salesforce lightning is not supporting in cypress #18935
Comments
@satish151994 - is the login connected to some microsoft login? (AAD) ? If not then there are several options:
|
@satish151994 use next code for login
|
could you explain how this works? why there are parameters in blank? why do uou use this url https://login.salesforce.com ? |
@satish151994 can you check out #24290 (comment) and see if it might solve your issue? You should be able to log in with the API/SOAP programmatically or with |
@satish151994 To login through the API you can do it by creating a custom command in "commands.js" where you first execute an sfdx command line to get the instanceUrl and the accessToken, and then call the API with these values. You can only do this with an "admin" user and you must have previously installed sfdx-cli (https://www.npmjs.com/package/sfdx-cli). Then you can use cy.login() in your test |
I believe this issue is solved with the release of |
Ainda não consigo fazer rodar |
@Braholka would you be able to share some type of reproduction repository so we can diagnose the issue to see what is happening? |
@AtofStryker Include it in the cypress config, but I can log in but the test does not advance to the next step. The execution is stuck on a "new url" this problem only happens in Chrome, in Electron it runs normally. It is a requirement in my organization that the tests be in Chrome. |
You can see that it is not redirecting |
@thsrv I am unable to see that image. Are you able to help me with a reproduction so I can reproduce the issue? |
@AtofStryker Sorry, the flow I'm testing is that I access Salesforce in the test sandbox, when I enter the username and password, it logs in successfully, but in the log it shows a new url but the redirection does not happen. Execution gets stuck and does not advance to the next step, the test does not fail and remains in a loop. This only happens with Chrome, in the Electron browser it successfully performs all the steps. ![image]Sem título config
method login `
` next step
URL https://xxxx--test.sandbox.my.salesforce.com |
This experimental flag will be made default behavior in Cypress 14 with |
Current behavior
I tried some of the workarounds to open salesforce lightning in cypress, but not success. Could anyone please help or guide is there any configuration setting is needed in salesforce or how i can login into salesforce lightning using cypress script.
Desired behavior
No response
Test code to reproduce
Cypress Version
Cypress package version: 7.4.0 Cypress binary version: 7.4.0 Electron version: 12.0.0-beta.14 Bundled Node version: 14.15.1
Other
No response
The text was updated successfully, but these errors were encountered: