acceptable-hamburger-48790
10/06/2022, 3:09 PMbitter-fountain-36713
10/06/2022, 3:10 PMnice-bear-8793
10/06/2022, 3:29 PMincalculable-agent-76161
10/06/2022, 5:04 PMgreat-london-82425
10/06/2022, 6:09 PM- cypress/run:
name: Environment Tests
executor: with-chrome
browser: chrome
install-command: yarn install --frozen-lockfile && bundle
command: yarn cypress run --config-file [location] && sleep 120
gray-kilobyte-89541
10/06/2022, 6:13 PMgreat-london-82425
10/06/2022, 6:15 PMcrooked-zebra-94702
10/06/2022, 6:18 PMgreat-london-82425
10/06/2022, 6:20 PMcrooked-zebra-94702
10/06/2022, 6:23 PMgreat-london-82425
10/06/2022, 6:46 PMmysterious-belgium-25713
10/06/2022, 8:38 PMchilly-queen-22182
10/06/2022, 8:39 PMflaky-raincoat-53097
10/06/2022, 8:53 PMflaky-raincoat-53097
10/06/2022, 8:53 PMflaky-raincoat-53097
10/06/2022, 8:54 PMflaky-raincoat-53097
10/06/2022, 8:54 PMjolly-dusk-6729
10/07/2022, 1:02 AMlogin.spec.ts file
import SalesforceLoginPage from "../../pages/salesforceLogin";
describe('Logging in to salesforce', () => {
before('visit the sign in page', () => {
SalesforceLoginPage.open();
});
it('log in to salesforce', () => {
cy.log(Cypress.env("salesforce_username"));
SalesforceLoginPage.typeUsername(Cypress.env("salesforce_username"));
SalesforceLoginPage.typePassword(Cypress.env("salesforce_password"));
SalesforceLoginPage.pressSignIn();
});
});
----------------------------------------------------------------------------
salesforceLogin.ts file
const USERNAME_FIELD = '#username';
const PASSWORD_FIELD = '#password';
const SUBMIT_BUTTON = 'input[type=submit]';
const APP_LAUNCHER = '.salesforceIdentityAppLauncherHeader';
class SalesforceLoginPage {
static open() {
cy.visit(Cypress.env('salesforce_login_url'));
}
static typeUsername(username: string) {
cy.get(USERNAME_FIELD).type(username)
}
static typePassword(password: string) {
cy.get(PASSWORD_FIELD).type(password)
}
static pressSignIn() {
return cy.get(SUBMIT_BUTTON).click()
}
static appLauncher(){
cy.get(APP_LAUNCHER).click();
}
}
export default SalesforceLoginPage;
salesforce_login_url is the instanceUrl of the salesforce of my account. I can see the test running until the login happens, and then it just stops abruptly before it gets to the App Launcher button. Please help.
https://app.usebubbles.com/gcK8SrcSxvEFeNmKDBkfWz/cypress-salesforce-login-s-video-recordingrich-furniture-95354
10/07/2022, 11:35 AMrich-furniture-95354
10/07/2022, 11:42 AMnutritious-zoo-35798
10/07/2022, 12:20 PMgray-kilobyte-89541
10/07/2022, 12:30 PMwhite-activity-68996
10/07/2022, 1:53 PMgreat-london-82425
10/07/2022, 6:29 PMfierce-easter-87739
10/07/2022, 8:11 PMpolite-painting-51763
10/07/2022, 10:28 PMagreeable-scooter-87343
10/08/2022, 4:41 AMnarrow-artist-87113
10/08/2022, 8:47 AMmysterious-belgium-25713
10/08/2022, 11:18 AMnarrow-artist-87113
10/08/2022, 11:24 AM