//createAccount_spec.js describe('OnBoarding script', function () { //Open browser browser.get('https://app-qa.journeysmap.com/Journey/index.html#/signup'); it('should have a title', async function () { await expect(browser.getTitle()).toEqual('Journeys'); }); var FirstNameTextBox = element(by.css('#txtFirstName')); var LastNameTextBox = element(by.css('#txtLastName')); var EmailTextBox = element(by.css('#txtEmail')); var UsernameTextBox = element(by.css('#txtUsername')); //Sign Up SignUp(FirstNameTextBox, LastNameTextBox, EmailTextBox, UsernameTextBox); function SignUp(FirstNameTextBox, LastNameTextBox, EmailTextBox, UsernameTextBox) { it('OnBoarding; should complete the OnBoarding process and create a new account.', async function () { //Page 1 - First & Last Name var PageOneGreetingText = element(by.css('tr:nth-child(2) > td > div > div:nth-child(1) > div:nth-child(1)')); var PageOneValidationText = element(by.css('div:nth-child(1) > .ng-binding:nth-child(5)')); var PageOneNextButton = element(by.css('tr:nth-child(2) > td > div > div:nth-child(1) > div > div:nth-child(1)')); //Page 2 - Username var PageTwoGreetingText = element(by.css('td > div > div:nth-child(2) > div:nth-child(1)')); var PageTwoSubText = element(by.css('div:nth-child(2) > div:nth-child(2) > div')); var PageTwoNextButton = element(by.css('div:nth-child(2) > div > div > .btn')); var PageTwoValidationText = element(by.css('div:nth-child(2) > .ng-scope:nth-child(4)')); var UsernameLinkText = element(by.linkText('with a username')); var PageTwoAltGreetingText = element(by.css('td > div > div:nth-child(3) > div:nth-child(1)')); var PageTwoAltNextButton = element(by.css('div:nth-child(3) > div:nth-child(3) .btn')); var PageTwoAltValidationText = element(by.css('div:nth-child(3) > .ng-binding')); var EmailLinkText = element(by.linkText('with your email')); //Page 3 Password var PageThreeGreetingText = element(by.css('td > div > div:nth-child(4) > div:nth-child(1)')); var PasswordTextBoxOne = element(by.css('#txtPw1')); var EyeIconOne = element(by.css('div:nth-child(2) > .fa-eye')); var PasswordTextBoxTwo = element(by.css('#txtPw2')); var PageThreeNextButton = element(by.css('#btnPwNext')); var PageThreeValidationText = element(by.css('div:nth-child(4) > .ng-binding')); //Page 4 Birthday var PageFourGreetingText = element(by.css('td > div > div:nth-child(5) > div:nth-child(1)')); var DOBMonth = element(by.css('#txtDobMonth')); var DOBDay = element(by.css('#txtDobDate')); var DOBYear = element(by.css('#txtDobYear')); var today = new Date(); var yyyy = today.getFullYear()-5; //var Under13 = today.getFullYear()-5;delete var PageFourValidationText = element(by.css('div:nth-child(5) > .ng-binding')); var PermissionButton = element(by.css('div:nth-child(1) > div:nth-child(1) > .btn')); //Page 5 Connection Code var PageFiveGreetingText = element(by.css('div:nth-child(6) > div:nth-child(1) > div:nth-child(1)')); var PageFiveSubText = element(by.css('.ng-binding:nth-child(3) > div')); var CodeButton = element(by.css('.btn:nth-child(2)')); var ConnectionGreetingText = element(by.css('div:nth-child(6) > div:nth-child(2) > div:nth-child(1)')); var ConnectionCodeTextBox = element(by.css('#txtConnection')); var ConnectionCodeSubText = element(by.css('div:nth-child(2) > .ng-binding > div')); var ConnectionCodeNextButton = element(by.css('div:nth-child(6) > div:nth-child(2) > div:nth-child(3)')); var ConnectionCodeValidationText = element(by.css('div:nth-child(6) > div:nth-child(2) > .ng-binding')); //Processing Page var ProcessingPageText = element(by.css('.ng-binding:nth-child(2)')); //What Do you want to explore? (page) var WhatDoYouWantToExplorePage = element(by.css('#divMyProgressBlocker > div:nth-child(3) > div:nth-child(1) > div')); var DiscoverMyInterestButton = element(by.css('.col-xs-10 > div > div:nth-child(1) > .btn')); var LearnMySkillsButton = element(by.css('div:nth-child(2) > .btn')); var ExploreCareersButton = element(by.css('div:nth-child(3) > .btn')); var CloseXIcon = element(by.css('.fas')); //Journeys Dashboard var JourneysDashboardGreeting = element(by.css('.dropdown')); //Update Security Question var ProfileImageIcon = element(by.css('.roundCenterBackgroundImage')); var ProfileLinkText = element(by.linkText('Profile')); var AccountInformation = element(by.css('.view-title')); var ManageSecurityQuestionsButton = element(by.css('.btn:nth-child(15)')); var SecurityQuestion = element(by.css('#secQuestion0')); var SecuritySelection = element(by.css('option:nth-child(8)')); var SecurityAnswer = element(by.css('.ng-pristine')); var SecurityQuestionSaveButton = element(by.css('.col-lg-4 > #photoBtn')); //Page 1 - First & Last Name expect(await PageOneGreetingText.getText()).toEqual("Let's start with the basics."); expect(await PageOneValidationText.getText()).toEqual("Press enter when you're done."); await FirstNameTextBox.sendKeys('J').then(function() { browser.sleep(1000); }); await LastNameTextBox.sendKeys('H').then(function() { browser.sleep(1000); }); await PageOneNextButton.click().then(function() { browser.sleep(2500); }); expect(await PageOneValidationText.getText()).toEqual('Oops! The minimum length is 2 characters.'); await FirstNameTextBox.sendKeys('H').then(function() { browser.sleep(1000); }); await PageOneNextButton.click().then(function() { browser.sleep(2500); }); expect(await PageOneValidationText.getText()).toEqual('Oops! The minimum length is 2 characters.'); await LastNameTextBox.clear().then(function() { browser.sleep(1000); LastNameTextBox.sendKeys('AutomatedTesting'); browser.sleep(1000); }); await PageOneNextButton.click().then(function() { browser.sleep(2500); }); //Page 2 - Username expect(await PageTwoGreetingText.getText()).toEqual('Your email goes here.'); await EmailTextBox.sendKeys('AutomatedTesting').then(function() { browser.sleep(1000); }); expect(await PageTwoSubText.getText()).toEqual('No email? Create an account with a username instead.'); await PageTwoNextButton.click().then(function() { browser.sleep(2500); }); expect(await PageTwoValidationText.getText()).toEqual('Oops! Something is funky. Please enter a valid email address.'); await UsernameLinkText.click().then(function() { browser.sleep(1000); }); expect(await PageTwoAltGreetingText.getText()).toEqual("Let's make a username!"); await UsernameTextBox.sendKeys('JHZ').then(function() { browser.sleep(1000); }); await PageTwoAltNextButton.click().then(function() { browser.sleep(2500); }); expect(await PageTwoAltValidationText.getText()).toEqual('Oops! Please enter a valid username.'); await EmailLinkText.click().then(function() { browser.sleep(1000); }); await EmailTextBox.sendKeys(browser.params.username).then(function() { browser.sleep(1000); }); await PageTwoNextButton.click().then(function() { browser.sleep(2500); }); //Page 3 Password expect(await PageThreeGreetingText.getText()).toEqual("Let's keep your account safe and secure."); await PasswordTextBoxOne.sendKeys('ED'); await PasswordTextBoxTwo.sendKeys('3Dm!n123'); await PageThreeNextButton.click().then(function() { browser.sleep(2500); }); expect(await PageThreeValidationText.getText()).toEqual('Oops! Please make sure both passwords are the same.'); await EyeIconOne.click().then(function() { browser.sleep(2500); }); await PasswordTextBoxOne.sendKeys('min123').then(function() { browser.sleep(1000); }); await PageThreeNextButton.click().then(function() { browser.sleep(2500); }); expect(await PageThreeValidationText.getText()).toEqual('Oops! Please make sure both passwords are the same.'); await EyeIconOne.click().then(function() { browser.sleep(1000); }); await PasswordTextBoxOne.clear().then(function() { browser.sleep(1000); PasswordTextBoxOne.sendKeys('3Dm!n123'); browser.sleep(1000); }); await PageThreeNextButton.click().then(function() { browser.sleep(2500); }); //Page 4 Birthday expect(await PageFourGreetingText.getText()).toEqual("It's Your Birthday! When do we party?"); await DOBMonth.sendKeys('2'); await DOBDay.sendKeys('15'); await DOBYear.sendKeys('2').then(function() { browser.sleep(1000); }); expect(await PageFourValidationText.getText()).toEqual('Please check that date is formatted as MM-DD-YYYY'); await DOBYear.clear().then(function() { browser.sleep(1000); DOBYear.sendKeys(yyyy); browser.sleep(1000); }); expect(await PageFourValidationText.getText()).toEqual("Looks like you're younger than 13. Get your gaurdian's permission before moving ahead!"); await PermissionButton.click().then(function() { browser.sleep(2500); }); //Page 5 Connection Code expect(await PageFiveGreetingText.getText()).toEqual('Do you have a connection code?'); expect(await PageFiveSubText.getText()).toEqual("Not sure what this is? Don't feel bad, just skip ahead!"); await CodeButton.click().then(function() { browser.sleep(2500); }); expect(await ConnectionGreetingText.getText()).toEqual('Connect with your code!'); await ConnectionCodeTextBox.sendKeys('JMHZ19').then(function() { browser.sleep(1000); }); expect(await ConnectionCodeSubText.getText()).toContain("Not sure what this is? Don't feel bad, just skip ahead!"); await ConnectionCodeNextButton.click().then(function() { browser.sleep(2500); }); expect(await ConnectionCodeValidationText.getText()).toContain("Hmmm we don't recognize your code, please try again. Please contact help@journeysmap.com."); await ConnectionCodeTextBox.clear().then(function() { ConnectionCodeTextBox.sendKeys('N0R7Y7RO'); }); await ConnectionCodeNextButton.click().then(function() { browser.sleep(15000); }); /*Processing Page expect(await ProcessingPageText.getText()).toEqual('wtf').then(function() { browser.sleep(20000); });*/ //What do you want to explore? (page) expect(await WhatDoYouWantToExplorePage.getText()).toEqual('What do you want to explore?'); expect(await DiscoverMyInterestButton.getText()).toEqual('Discover My Interests'); expect(await LearnMySkillsButton.getText()).toEqual('Learn My Skills'); expect(await ExploreCareersButton.getText()).toEqual('Explore Careers'); await CloseXIcon.click().then(function() { browser.sleep(2500); }); //Dashboard expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Jh'); browser.waitForAngular(); browser.getCurrentUrl(); //Update Security Question await ProfileImageIcon.click().then(function() { browser.sleep(1000); }); browser.actions().mouseMove(ProfileLinkText).perform().then(function() { browser.sleep(1500); }); await ProfileLinkText.click().then(function() { browser.sleep(1000); }); expect(await AccountInformation.getText()).toEqual('Account Information'); await ManageSecurityQuestionsButton.click().then(function() { browser.sleep(2500); }); await SecurityQuestion.click(); await SecuritySelection.click(); await SecurityAnswer.sendKeys('War Games'); await SecurityQuestionSaveButton.click().then(function() { browser.sleep(2500); }); expect(await AccountInformation.getText()).toEqual('Account Information'); }); } //Action Calls SignOut(); Login(); SignOut(); LoginWithNewPassword(); }); function SignOut() { it(': SignOut; should log out of journeysmap.', async function () { var ProfileImage = element(by.css('.roundCenterBackgroundImage')); var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn')); browser.waitForAngular().then(function() { browser.sleep(1000); }); await ProfileImage.click().then(function() { browser.sleep(1000); }); browser.waitForAngular(); browser.getCurrentUrl(); await SignOutButton.click().then(function() { browser.sleep(2500); }); }); } function Login() { it(': Login; should reset new account password and complete Explore Careers task.', async function () { var LoginPageGreetingText = element(by.css('td > div > div:nth-child(1)')); var UsernameTextBox = element(by.css('#txtUsername')); var PasswordTextBox = element(by.css('#txtPassword')); var LoginPageSubTextOne = element(by.css('div:nth-child(5) > div:nth-child(1)')); var LoginPageSubTextTwo = element(by.css('div:nth-child(5) > div:nth-child(2)')); var NextButton = element(by.css('.btn')); var ValidationText = element(by.css('.ng-scope:nth-child(5)')); var PasswordEyeIcon = element(by.css('.fa-eye')); var ClickHereLinkText = element(by.css('div:nth-child(2) > a')); //Account Recovery var PageGreetingText = element(by.css('td .ng-scope > div:nth-child(1)')); var PageOneValidationText = element(by.css('.ng-scope:nth-child(4)')); //Select Recovery Option var PageTwoEmailButton = element(by.css('.btn:nth-child(2)')); var PageTwoSecurityQuestionButton = element(by.css('.btn:nth-child(1)')); var SecurityQuestionText = element(by.css('.ng-binding')); var SecurityAnswerTextBox = element(by.css('#txtSecurityAnswer')); //Reset Password var NewPasswordTextBoxOne = element(by.css('#txtNewPassword')); var NewPasswordTextBoxTwo = element(by.css('#txtNewPassword2')); //What Do you want to explore? var WhatDoYouWantToExplorePage = element(by.css('#divMyProgressBlocker > div:nth-child(3) > div:nth-child(1) > div')); var ExploreCareersButton = element(by.css('div:nth-child(3) > .btn')); var CareerExplorationPageTitle = element(by.css('.col-sm-12')); var ClusterCardThreeSelectButton = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[4]/territory-card-action-bar/div/button')); var PathwayCardTwoSelectButton = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[4]/territory-card-action-bar/div/button')); var OccupationCardOneLearnMoreIcon = element(by.xpath('//action-learn-more/i')); var WagesLocalStatText = element(by.css('g:nth-child(3) > g > text')); //Journeys Dashboard var JourneysDashboardGreeting = element(by.css('.dropdown')); //Navigate to Login page browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login'); browser.sleep(2500); expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.'); await UsernameTextBox.sendKeys('AutomatedTest332020913@edmin.com'); await PasswordTextBox.sendKeys('edmin123').then(function() { browser.sleep(1000); }); expect(await LoginPageSubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); expect(await LoginPageSubTextTwo.getText()).toEqual('Forgot your password? Click here.'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); await PasswordEyeIcon.click().then(function() { browser.sleep(1000); }); await PasswordTextBox.clear().then(function() { PasswordTextBox.sendKeys('EDmin123'); }); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); await ClickHereLinkText.click().then(function() { browser.sleep(2500); }); //Account Recovery expect(await PageGreetingText.getText()).toEqual("Can't Get Into Your Account?"); await UsernameTextBox.sendKeys('AutomatedTest332020913@edmin.com'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await PageOneValidationText.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com."); await UsernameTextBox.clear().then(function() { browser.sleep(1000); UsernameTextBox.sendKeys(browser.params.username); }); await NextButton.click().then(function() { browser.sleep(2500); }); //Select Recovery Option expect(await PageGreetingText.getText()).toEqual('Awesome. Reset Your Password With Your'); await PageTwoEmailButton.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toContain('Woo-Hoo! Your Email Has Been Sent!'); expect(await PageGreetingText.getText()).toContain('The link will expire in 10 minutes!'); await NextButton.click().then(function() { browser.sleep(2500); }); await ClickHereLinkText.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toEqual("Can't Get Into Your Account?"); await UsernameTextBox.sendKeys(browser.params.username); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toEqual('Awesome. Reset Your Password With Your'); await PageTwoSecurityQuestionButton.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toEqual('Answer Your Security Questions'); expect(await SecurityQuestionText.getText()).toEqual('What is your favorite movie?'); await SecurityAnswerTextBox.sendKeys('2001: A Space Odyssey'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual("Sorry! Your answers don't match what we have on file. Please contact help@journeysmap.com."); await SecurityAnswerTextBox.clear().then(function() { browser.sleep(1000); SecurityAnswerTextBox.sendKeys('War Games'); }); await NextButton.click().then(function() { browser.sleep(2500); }); //Reset Password expect(await PageGreetingText.getText()).toEqual('Create A New Password!'); await NewPasswordTextBoxOne.sendKeys('edmin123'); await NewPasswordTextBoxTwo.sendKeys('EDmin123'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual('Oops. Looks like both passwords not match. Use 1 uppercase letter or 1 number. Please try again.'); await NewPasswordTextBoxOne.clear().then(function() { browser.sleep(1000); NewPasswordTextBoxOne.sendKeys('3Dm!nAuto'); }); await NewPasswordTextBoxTwo.clear().then(function() { browser.sleep(1000); NewPasswordTextBoxTwo.sendKeys('3Dm!nAuto'); }); await NextButton.click().then(function() { browser.sleep(5000); }); //What do you want to explore? (page) expect(await WhatDoYouWantToExplorePage.getText()).toEqual('What do you want to explore?'); await ExploreCareersButton.click().then(function() { browser.sleep(2500); }); expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); await ClusterCardThreeSelectButton.click().then(function() { browser.sleep(2500); }); await PathwayCardTwoSelectButton.click().then(function() { browser.sleep(2500); }); await OccupationCardOneLearnMoreIcon.click().then(function() { browser.sleep(5000); }); expect(await WagesLocalStatText.getText()).toEqual('San Diego-Carlsbad, CA'); //Dashboard expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Jh'); browser.waitForAngular(); browser.getCurrentUrl(); }); } function LoginWithNewPassword() { it(': Login; should log in with new password.', async function () { var LoginPageGreetingText = element(by.css('td > div > div:nth-child(1)')); var UsernameTextBox = element(by.css('#txtUsername')); var PasswordTextBox = element(by.css('#txtPassword')); var LoginPageSubTextOne = element(by.css('div:nth-child(5) > div:nth-child(1)')); var LoginPageSubTextTwo = element(by.css('div:nth-child(5) > div:nth-child(2)')); var NextButton = element(by.css('.btn')); var ValidationText = element(by.css('.ng-scope:nth-child(5)')); var PasswordEyeIcon = element(by.css('.fa-eye')); var ClickHereLinkText = element(by.css('div:nth-child(2) > a')); //Account Recovery var PageGreetingText = element(by.css('td .ng-scope > div:nth-child(1)')); var PageOneValidationText = element(by.css('.ng-scope:nth-child(4)')); //Select Recovery Option var PageTwoEmailButton = element(by.css('.btn:nth-child(2)')); var PageTwoSecurityQuestionButton = element(by.css('.btn:nth-child(1)')); var SecurityQuestionText = element(by.css('.ng-binding')); var SecurityAnswerTextBox = element(by.css('#txtSecurityAnswer')); //Reset Password var NewPasswordTextBoxOne = element(by.css('#txtNewPassword')); var NewPasswordTextBoxTwo = element(by.css('#txtNewPassword2')); //What Do you want to explore? var WhatDoYouWantToExplorePage = element(by.css('#divMyProgressBlocker > div:nth-child(3) > div:nth-child(1) > div')); var ExploreCareersButton = element(by.css('div:nth-child(3) > .btn')); var CareerExplorationPageTitle = element(by.css('.col-sm-12')); var ClusterCardThreeSelectButton = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[4]/territory-card-action-bar/div/button')); var PathwayCardTwoSelectButton = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[4]/territory-card-action-bar/div/button')); var OccupationCardOneLearnMoreIcon = element(by.xpath('//action-learn-more/i')); var WagesLocalStatText = element(by.css('g:nth-child(3) > g > text')); //Journeys Dashboard var JourneysDashboardGreeting = element(by.css('.dropdown')); //Navigate to Login page browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login'); browser.sleep(2500); expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.'); await UsernameTextBox.sendKeys('AutomatedTest332020913@edmin.com'); await PasswordTextBox.sendKeys('edmin123').then(function() { browser.sleep(1000); }); expect(await LoginPageSubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); expect(await LoginPageSubTextTwo.getText()).toEqual('Forgot your password? Click here.'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); await PasswordEyeIcon.click().then(function() { browser.sleep(1000); }); await PasswordTextBox.clear().then(function() { PasswordTextBox.sendKeys('EDmin123'); }); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); await ClickHereLinkText.click().then(function() { browser.sleep(2500); }); //Account Recovery expect(await PageGreetingText.getText()).toEqual("Can't Get Into Your Account?"); await UsernameTextBox.sendKeys('AutomatedTest332020913@edmin.com'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await PageOneValidationText.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com."); await UsernameTextBox.clear().then(function() { browser.sleep(1000); UsernameTextBox.sendKeys(browser.params.username); }); await NextButton.click().then(function() { browser.sleep(2500); }); //Select Recovery Option expect(await PageGreetingText.getText()).toEqual('Awesome. Reset Your Password With Your'); await PageTwoEmailButton.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toContain('Woo-Hoo! Your Email Has Been Sent!'); expect(await PageGreetingText.getText()).toContain('The link will expire in 10 minutes!'); await NextButton.click().then(function() { browser.sleep(2500); }); await ClickHereLinkText.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toEqual("Can't Get Into Your Account?"); await UsernameTextBox.sendKeys(browser.params.username); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toEqual('Awesome. Reset Your Password With Your'); await PageTwoSecurityQuestionButton.click().then(function() { browser.sleep(2500); }); expect(await PageGreetingText.getText()).toEqual('Answer Your Security Questions'); expect(await SecurityQuestionText.getText()).toEqual('What is your favorite movie?'); await SecurityAnswerTextBox.sendKeys('2001: A Space Odyssey'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual("Sorry! Your answers don't match what we have on file. Please contact help@journeysmap.com."); await SecurityAnswerTextBox.clear().then(function() { browser.sleep(1000); SecurityAnswerTextBox.sendKeys('War Games'); }); await NextButton.click().then(function() { browser.sleep(2500); }); //Reset Password expect(await PageGreetingText.getText()).toEqual('Create A New Password!'); await NewPasswordTextBoxOne.sendKeys('edmin123'); await NewPasswordTextBoxTwo.sendKeys('EDmin123'); await NextButton.click().then(function() { browser.sleep(2500); }); expect(await ValidationText.getText()).toEqual('Oops. Looks like both passwords not match. Use 1 uppercase letter or 1 number. Please try again.'); await NewPasswordTextBoxOne.clear().then(function() { browser.sleep(1000); NewPasswordTextBoxOne.sendKeys('3Dm!nAuto'); }); await NewPasswordTextBoxTwo.clear().then(function() { browser.sleep(1000); NewPasswordTextBoxTwo.sendKeys('3Dm!nAuto'); }); await NextButton.click().then(function() { browser.sleep(5000); }); //What do you want to explore? (page) expect(await WhatDoYouWantToExplorePage.getText()).toEqual('What do you want to explore?'); await ExploreCareersButton.click().then(function() { browser.sleep(2500); }); expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); await ClusterCardThreeSelectButton.click().then(function() { browser.sleep(2500); }); await PathwayCardTwoSelectButton.click().then(function() { browser.sleep(2500); }); await OccupationCardOneLearnMoreIcon.click().then(function() { browser.sleep(5000); }); expect(await WagesLocalStatText.getText()).toEqual('San Diego-Carlsbad, CA'); //Dashboard expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Jh'); browser.waitForAngular(); browser.getCurrentUrl(); }); }