Cypress: Cypress can't open salesforce login page

Created on 25 Sep 2017  路  6Comments  路  Source: cypress-io/cypress

  • Operating System: MacOS
  • Cypress Version: 0.19.4
  • Browser Version:

Is this a Feature or Bug?

Bug

Current behavior:

The browser get's redirected to a blank page

Desired behavior:

Should visit the salesforce login page

How to reproduce:

Run salesforce_spec.js

Repo

https://github.com/GuilhermeMedeiros/cypress-salesforce

馃槼 whoops there is no test to run bug

All 6 comments

This was actually fixed in 2.0.0.

Logging into Salesforce works now.

Hi!, sorry to bother you, i was looking for automate a SalesForce page with cypress but i im getting the same issue about the login in sf, i have the last version (3.3.0 i think) i was wondering if you were able to fix the login with salesforce

This issue as described above is working in Cypress version 3.1.0 - with this being the test case:

describe("Salesforce", function() {
    it("opens the login page", function() {
        cy.visit("https://login.salesforce.com/");
    });
});

@AlanGDC I would suggest opening a new issue and giving a reproducible example of the issue you are having.

@jennifer-shehane After entering the login credentials and hit submit the "Whoops, there is no test to run" message is displayed.
Here is my code:

describe("Salesforce", function() {
          it("opens the login page", function() {
                cy.visit("https://login.salesforce.com/");
           });
           it("Log in to Salesforce", function() { 
                cy.get("#username").type("[email protected]")
                cy.get("#password").type("xxxxxxxxx")
                cy.get("#Login").click()
           })
 });

What am I doing wrong? I really need help with this. Thanks.

Hey @simonmagabe can you open a new issue for this - as this results in a different error message than this issue. I am indeed able to reproduce this issue, so it looks like a bug.

To those redirected here, this might be a viable solution:

https://github.com/cypress-io/cypress/issues/2367#issuecomment-584058927

Was this page helpful?
0 / 5 - 0 ratings