I'm attempting to get entry to salesforce through cypress however as soon as I sign within the take a look at stops and salesforce takes over the complete browser. I'm able to visit my salesforce sandbox page however I can't get a test to progress past there
Here is my code to access SalesForce:
///<reference types="Cypress"/>
describe("Visit SalesForce with Request", function()
{
it("Visits SalesForce", function()
{
const url = "https://test.lightning.force.com";
const username = "user@compnamy.com.ecommerce";
const password = "password";
cy.request(`${url}/?un=${username}&pw=${password}`)
.then(() =>
{
cy.visit(url);
// Sign in to SalesForce
cy.get('#wrap').find('input').eq(2).click();
// Does not execute beyond this point
cy.reload();
cy.log("Hello, world!");
});
});
});
0 Replies