diff --git a/app_journeysmap_spec.js b/app_journeysmap_spec.js index fb050e0..07d6252 100644 --- a/app_journeysmap_spec.js +++ b/app_journeysmap_spec.js @@ -24,7 +24,7 @@ describe('Journeysmap script', function () { function SignIn(UserNameTextBox, PasswordTextBox, SignInButton) { it('should sign into journeys', async function () { var JourneysGreeting = element(by.css('.dropdown')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + //var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); await UserNameTextBox.sendKeys('QA_AutomatedRegression'); await PasswordTextBox.sendKeys('3Dm1nAuto'); @@ -45,7 +45,11 @@ describe('Journeysmap script', function () { //<<<>>> ProfileWidget(); - /*TopCareerWidget(); + MyProgressWidget(); + InterestSurveyResultsWidget(); + InterestSurveyResultsClusters(); + InterestSurveyResultsCreateJourney(); + TopCareerWidget(); TopCareer(); NearbyPlacesOccupationCard(); AtAGlance(); @@ -80,14 +84,6 @@ describe('Journeysmap script', function () { //My Journeys MyJourneys(); - //<<<>>> - InterestSurvey(); - - //Interest Survey Results - InterestSurveyResults(); - InterestSurveyResultsClusters(); - InterestSurveyResultsCreateJourney(); - //<<<>>> MyJourneysPage(); @@ -120,7 +116,6 @@ function ProfileWidget() { var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)')); var FollowersDivGotItButton = element(by.css('.btn-lg')); var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy')); - var AboutMeWidget = element(by.css('.ng-scope > #aboutMeFull')); var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil')); var ABoutMeInputArea = element(by.id('inputArea')); var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy')); @@ -143,7 +138,7 @@ function ProfileWidget() { browser.sleep(2500); }); expect(await AboutMeWidgetTitle.getText()).toEqual('About Me'); - browser.actions().mouseMove(AboutMeWidget).perform().then(function() { + browser.actions().mouseMove(element(by.css('.ng-scope > #aboutMeFull'))).perform().then(function() { browser.sleep(1000); }); await AboutMePencil.click().then(function() { @@ -167,32 +162,573 @@ function ProfileWidget() { }); } +function MyProgressWidget() { + it('should interact with My Progress widget, take the Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { + var MyProgressWidgetTitle = element(by.css('.yourProgressTitle')); + var ProgressLevel = element(by.css('.myProgressLevel')); + var ProgressWidgetExpandCollapseIcon = element(by.css('.full-width > div > .fa')); + var ActionOne = element(by.css('.col-md-3:nth-child(1) > .ng-scope')); + var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope')); + var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); + var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); + var ActionTwoRetake = element(by.linkText('Retake')); + var ActionRetakeTitlePage = element(by.css('.jrnys_lead-body-copy')); + var CancelButton = element(by.css('.btn-md')); + var ActionThree = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); + var ActionThreeCompleted = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); + var ActionThreeRetake = element(by.css('.col-md-3:nth-child(3) .redo')); + var ActionFour = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); + var ActionFourCompleted = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); + var ActionFourRetake = element(by.linkText('Keep Exploring')); + var KeepExploringTitlePage = element(by.css('.col-sm-12')); + var KeepExploringBackLink = element(by.css('.btn-primary-back-mod')); + var InterestSurveyTitle = element(by.css('.jrnys_lead-body-copy')); + var TextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)')); + var TextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)')); + var TextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)')); + var EspanolButton = element(by.linkText('Español')); + var EnglishButton = element(by.linkText('English')); + var LanguageAlertDiv = element(by.css('p:nth-child(7)')); + var LanguageAlterConfirmButton = element(by.css('.confirm')); + var DislikeEmoji = element(by.id('emoji_0_0')); + var MehEmoji = element(by.id('emoji_0_1')); + var UnsureEmoji = element(by.id('emoji_0_2')); + var LikeItEmoji = element(by.id('emoji_0_3')); + var LoveItEmoji = element(by.id('emoji_0_4')); + var PreviousQuestion = element(by.linkText('< Previous Question')); + var CancelSurveyButton = element(by.css('.btn-md')); + var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + + expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS'); + expect(await ProgressLevel.getText()).toEqual('Level: Scout'); + await ProgressWidgetExpandCollapseIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await ActionOne.getText()).toContain('Account Creation'); + expect(await ActionOneCompleted.getText()).toContain('Completed'); + expect(await ActionTwo.getText()).toContain('Interest Survey'); + expect(await ActionTwoCompleted.getText()).toContain('Completed'); + //Interest Survey page - validate English & Spanish text + await ActionTwoRetake.click().then(function() { + browser.sleep(5000); + }); + expect(await InterestSurveyTitle.getText()).toEqual('Interest Survey'); + expect(await TextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); + expect(await TextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); + expect(await TextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); + await LikeItEmoji.click(); + await PreviousQuestion.click(); + await EspanolButton.click(); + browser.sleep(2500); + expect(await LanguageAlertDiv.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?'); + await LanguageAlterConfirmButton.click(); + expect(await TextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!'); + expect(await TextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.'); + expect(await TextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!'); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await CancelSurveyButton.click(); + browser.waitForAngular(); + + //Take Interest Survey + await ActionTwoRetake.click().then(function() { + browser.sleep(5000); + }); + browser.waitForAngular(); + await EnglishButton.click(); + browser.waitForAngular(); + await DislikeEmoji.click(); + await MehEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click();//5 + await LoveItEmoji.click(); + await MehEmoji.click(); + await UnsureEmoji.click(); + await LoveItEmoji.click(); + await DislikeEmoji.click();//10 + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//15 + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click(); + await DislikeEmoji.click();//20 + await DislikeEmoji.click(); + await LoveItEmoji.click(); + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click();//25 + await LoveItEmoji.click(); + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//30 + await DislikeEmoji.click(); + await MehEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click();//35 + await LoveItEmoji.click(); + await MehEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await DislikeEmoji.click();//40 + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//45 + await DislikeEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click(); + await DislikeEmoji.click();//50 + await DislikeEmoji.click(); + await MehEmoji.click(); + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click();//55 + await LoveItEmoji.click(); + await MehEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//60 + browser.sleep(5000); + + expect(await PageTitle.getText()).toEqual('Interest Survey Result'); + await DashboardHeaderLink.click().then(function() { + browser.sleep(5000); + }); + + expect(await ActionThree.getText()).toContain('Skills Assessment'); + expect(await ActionThreeCompleted.getText()).toContain('Completed'); + await ActionThreeRetake.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionRetakeTitlePage.getText()).toEqual('Skills Assessment'); + await CancelButton.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionFour.getText()).toContain('Explore Careers'); + expect(await ActionFourCompleted.getText()).toContain('Completed'); + await ActionFourRetake.click().then(function() { + browser.sleep(5000); + }); + expect(await KeepExploringTitlePage.getText()).toEqual('Career Exploration'); + await KeepExploringBackLink.click().then(function() { + browser.sleep(5000); + }); + await ProgressWidgetExpandCollapseIcon.click().then(function() { + browser.sleep(2500); + }); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function InterestSurveyResultsWidget() { + it('should interact with Interest Survey Results widget', async function () { + var InterestSurveyWidgetTitle = element(by.css('.fullHeight:nth-child(2) > div:nth-child(2) > .jrnys_lead-body-copy > div')); + var InterestEditLink = element(by.css('.fa-pencil:nth-child(1)')); + var EditInterestDivTitle = element(by.css('#interests .jrnys_lead-body-copy')); + var EditRealisticTitle = element(by.css('.ng-scope:nth-child(1) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); + var EditRealisticTextBox = element(by.id('Realistic')); + var EditRealisticDescription = element(by.css('.ng-scope:nth-child(1) > .row-padding-mobile .color3a-color')); + var EditInvestigativeTitle = element(by.css('.ng-scope:nth-child(2) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); + var EditInvestigaviveTextBox = element(by.id('Investigative')); + var EditInvestigativeDescription = element(by.css('.ng-scope:nth-child(2) > .row-padding-mobile .color3a-color')); + var EditArtisticTitle = element(by.css('.ng-scope:nth-child(3) .jrnys_support-tex > .ng-binding')); + var EditArtisticTextBox = element(by.id('Artistic')); + var EditArtisticDescription = element(by.css('.ng-scope:nth-child(3) > .row-padding-mobile .color3a-color')); + var EditSocialTitle = element(by.css('.ng-scope:nth-child(4) .jrnys_support-tex > .ng-binding')); + var EditSocialTextBox = element(by.id('Social')); + var EditSocialDescription = element(by.css('.ng-scope:nth-child(4) > .row-padding-mobile .color3a-color')); + var EditEnterprisingTitle = element(by.css('.ng-scope:nth-child(5) .jrnys_support-tex > .ng-binding')); + var EditEnterprisingTextBox = element(by.id('Enterprising')); + var EditEnterprisingDescription = element(by.css('.ng-scope:nth-child(5) .color3a-color')); + var EditConventionalTitle = element(by.css('.ng-scope:nth-child(6) .jrnys_support-tex > .ng-binding')); + var EditConventionalTextBox = element(by.id('Conventional')); + var EditConventionalDescription = element(by.css('.ng-scope:nth-child(6) .color3a-color')); + var EditInterestSurveyDivSaveButton = element(by.css('.btn-info:nth-child(2)')); + var TopResultTitleOne = element(by.css('.surveyResultSpacingTop > div > div > .ng-binding')); + var TopResultDescriptionOne = element(by.css('.surveyResultSpacingTop .surveyResultTruncateText')); + var TopResultsReadMoreLinkOne = element(by.css('.surveyResultSpacingTop > div > div:nth-child(2)')); + var TopResultsReadMoreTitle = element(by.css('div:nth-child(2) > div > .ng-binding:nth-child(2)')); + var TopResultsReadMoreDescriptionA = element(by.css('div:nth-child(3) > .ng-binding:nth-child(1)')); + var TopResultsReadMoreDescriptionB = element(by.css('div:nth-child(4) > .ng-binding')); + var TopResultsReadMoreCloseLink = element(by.css('.close')); + var TopResultTitleTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div > .ng-binding')); + var TopResultDescriptionTwo = element(by.css('.ng-scope:nth-child(4) .surveyResultTruncateText')); + var TopResultsReadMoreLinkTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div:nth-child(2)')); + var TopResultTitleThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div > .ng-binding')); + var TopResultDescriptionThree = element(by.css('.ng-scope:nth-child(5) .surveyResultTruncateText')); + var TopResultsReadMoreLinkThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div:nth-child(2)')); + + var InterestResultsLink = element(by.css('div:nth-child(6) .fa-chart-bar')); + var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var TopThreeTraitsHeader = element(by.css('.fullHeight > .jrnys_lead-body-copy')); + var TopThreeTraitsOne = element(by.css('.col-md-4:nth-child(1) .jrnys_lead-body-copy')); + var TopThreeTraitsDescriptionOne = element(by.css('.col-md-4:nth-child(1) .ng-binding:nth-child(2)')); + var TopThreeTraitsTwo = element(by.css('.col-md-4:nth-child(2) .jrnys_lead-body-copy')); + var TopThreeTraitsDescriptionTwo = element(by.css('.col-md-4:nth-child(2) .ng-binding:nth-child(2)')); + var TopThreeTraitsThree = element(by.css('.col-md-4:nth-child(3) .jrnys_lead-body-copy')); + var TopThreeTraitsDescriptionThree = element(by.css('.col-md-4:nth-child(3) .ng-binding:nth-child(2)')); + var ViewAllLink = element(by.linkText('View All')); + var TopTraitsOne = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); + var TopTraitsOneDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); + var TopTraitsTwo = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); + var TopTraitsTwoDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); + var TopTraitsThree = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); + var TopTraitsThreeDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); + var TopTraitsFour = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); + var TopTraitsFourDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); + var TopTraitsFive = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); + var TopTraitsFiveDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); + var TopTraitsSix = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); + var TopTraitsSixDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); + var XCloseLink = element(by.css('.close')); + var ShareResultsIcon = element(by.css('.fa-share-alt')); + var ShareResultsDivTitle = element(by.css('#interestSurveyShareResult > .jrnys_lead-body-copy')); + var ToTextBox = element(by.css('tr:nth-child(2) .form-control')); + var FromTextBox = element(by.css('tr:nth-child(1) .form-control')); + var CancelButton = element(by.css('.btn-alt-info')); + var SendButton = element(by.css('tr:nth-child(7) .btn-info')); + var DivAlertTitle = element(by.css('h2')); + var DivAlertMessage = element(by.css('p:nth-child(7)')); + var DivOKButton = element(by.css('.confirm')); + + var InterestRetakeLink = element(by.css('div:nth-child(3) > .fa-tasks')); + + browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + }); + await InterestEditLink.click().then(function() { + browser.sleep(1000); + }); + expect(await EditInterestDivTitle.getText()).toEqual('Interests'); + expect(await EditRealisticTitle.getText()).toEqual('Realistic'); + await EditRealisticTextBox.clear(); + await EditRealisticTextBox.sendKeys('21'); + //await EditRealisticTextBox.sendKeys(protractor.Key.CONTROL, "a", protractor.Key.DELETE).sendKeys('21').sendKeys(protractor.Key.TAB); SAMPLE + browser.sleep(1000); + expect(await EditRealisticDescription.getText()).toEqual('You see things as they are and rely most heavily on your sense of sight and touch.'); + expect(await EditInvestigativeTitle.getText()).toEqual('Investigative'); + await EditInvestigaviveTextBox.clear(); + await EditInvestigaviveTextBox.sendKeys('25'); + browser.sleep(1000); + expect(await EditInvestigativeDescription.getText()).toEqual('You’re a super sleuth who loves to solve math and science problems.'); + expect(await EditArtisticTitle.getText()).toEqual('Artistic'); + await EditArtisticTextBox.clear(); + await EditArtisticTextBox.sendKeys('17'); + browser.sleep(1000); + expect(await EditArtisticDescription.getText()).toEqual('Your electives are full of art, drama, creative writing, and music classes.'); + expect(await EditSocialTitle.getText()).toEqual('Social'); + await EditSocialTextBox.clear(); + await EditSocialTextBox.sendKeys('22'); + browser.sleep(1000); + expect(await EditSocialDescription.getText()).toEqual('You’re a friend to everyone. You like to help, interact and share information.'); + expect(await EditEnterprisingTitle.getText()).toEqual('Enterprising'); + await EditEnterprisingTextBox.clear(); + await EditEnterprisingTextBox.sendKeys('27'); + browser.sleep(1000); + expect(await EditEnterprisingDescription.getText()).toEqual('You’re persuasive and could sell just about anything to anyone.'); + expect(await EditConventionalTitle.getText()).toEqual('Conventional'); + await EditConventionalTextBox.clear(); + await EditConventionalTextBox.sendKeys('23'); + browser.sleep(1000); + expect(await EditConventionalDescription.getText()).toEqual('People might call you TYPE A, but they’re just jealous of your ability to get things done.'); + browser.sleep(1000); + await EditInterestSurveyDivSaveButton.click(); + browser.sleep(1000); + expect(await InterestSurveyWidgetTitle.getText()).toEqual('Interest Survey Results'); + expect(await TopResultTitleOne.getText()).toEqual('Enterprising (27)'); + expect(await TopResultDescriptionOne.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); + await TopResultsReadMoreLinkOne.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultsReadMoreTitle.getText()).toEqual('Enterprising (27)'); + expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); + expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); + await TopResultsReadMoreCloseLink.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultTitleTwo.getText()).toEqual('Investigative (25)'); + expect(await TopResultDescriptionTwo.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); + await TopResultsReadMoreLinkTwo.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultsReadMoreTitle.getText()).toEqual('Investigative (25)'); + expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); + expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); + await TopResultsReadMoreCloseLink.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultTitleThree.getText()).toEqual('Conventional (23)'); + expect(await TopResultDescriptionThree.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); + await TopResultsReadMoreLinkThree.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultsReadMoreTitle.getText()).toEqual('Conventional (23)'); + expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); + expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); + await TopResultsReadMoreCloseLink.click().then(function() { + browser.sleep(1000); + }); + await InterestResultsLink.click().then(function() { + browser.sleep(5000); + }); + expect(await PageTitle.getText()).toEqual('Interest Survey Result'); + expect(await TopThreeTraitsHeader.getText()).toEqual('Your top 3 traits View All'); + expect(await TopThreeTraitsOne.getText()).toEqual('Enterprising (27)'); + expect(await TopThreeTraitsDescriptionOne.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); + expect(await TopThreeTraitsTwo.getText()).toEqual('Investigative (25)'); + expect(await TopThreeTraitsDescriptionTwo.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); + expect(await TopThreeTraitsThree.getText()).toEqual('Conventional (23)'); + expect(await TopThreeTraitsDescriptionThree.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); + await ViewAllLink.click(); + expect(await TopTraitsOne.getText()).toEqual('Enterprising (27)'); + expect(await TopTraitsOneDescription.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); + expect(await TopTraitsTwo.getText()).toEqual('Investigative (25)'); + expect(await TopTraitsTwoDescription.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); + expect(await TopTraitsThree.getText()).toEqual('Conventional (23)'); + expect(await TopTraitsThreeDescription.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); + expect(await TopTraitsFour.getText()).toEqual('Social (22)'); + expect(await TopTraitsFourDescription.getText()).toEqual('People who are kind, generous, cooperative, patient, caring, helpful, empathetic, tactful, and friendly. They prefer tasks that involve socializing, helping others, teaching, teamwork, social interaction, relationship building, humanitarian, educational, philanthropic, interpersonal, and service-oriented work.'); + expect(await TopTraitsFive.getText()).toEqual('Realistic (21)'); + expect(await TopTraitsFiveDescription.getText()).toEqual('People who are independent, stable, persistent, genuine, practical, and thrifty. They tend to be no-nonsense and down-to-earth while enjoying physical, athletic, or mechanical activity. They prefer things rather than ideas or people such as being outdoors, using tools, operating machines, interacting with animals, and working with their hands. They also value the natural, concrete, and tangible.'); + expect(await TopTraitsSix.getText()).toEqual('Artistic (17)'); + expect(await TopTraitsSixDescription.getText()).toEqual('People who are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative who rely on feelings, imagination, inspiration and who are spontaneous and open-minded. They prefer to work with ideas, abstractions, and concepts. They also enjoy work that is literary, verbal, visual and aesthetic. They typically excel in art, music, dance, drawing, painting, sculpting, drafting, writing, drama, communicating, design, fashion.'); + browser.sleep(1000); + await XCloseLink.click().then(function() { + browser.sleep(1000); + }); + browser.waitForAngular(); + await ShareResultsIcon.click(); + expect(await ShareResultsDivTitle.getText()).toEqual('Email Your Results'); + await SendButton.click(); + browser.sleep(1000); + expect(await DivAlertTitle.getText()).toEqual('No Email'); + expect(await DivAlertMessage.getText()).toEqual('Please provide at least one email address to send.'); + await DivOKButton.click(); + browser.waitForAngular(); + await ToTextBox.sendKeys('jhuerta@edmin'); + await SendButton.click(); + browser.sleep(1000); + expect(await DivAlertTitle.getText()).toEqual('Invalid Email'); + expect(await DivAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.'); + await DivOKButton.click(); + browser.sleep(1000); + await CancelButton.click(); + browser.waitForAngular(); + /*await ShareResultsIcon.click(); INCONSISTENT + await FromTextBox.clear(); + await FromTextBox.sendKeys("Juan's Automated Regression"); + await ToTextBox.sendKeys('jhuerta@edmin.com'); + browser.sleep(1000); + await SendButton.click(); + browser.sleep(2500); + await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!'); + await expect(DivAlertMessage.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); + await DivOKButton.click().then(function(EC) { + var EC = protractor.ExpectedConditions; + + browser.waitForAngular(); + browser.getCurrentUrl(); + browser.sleep(10000); + browser.wait(EC.elementToBeClickable(by.css('.fa-share-alt')), 10000); + browser.waitForAngular(); + browser.getCurrentUrl(); + });*/ + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function InterestSurveyResultsClusters() { + it('should verify the Interest Survey Clusters widget and jump to learn more page', async function () { + var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); + var WidgetDescription = element(by.css('.row > span:nth-child(2)')); + var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); + var SelectButton = element(by.xpath('//territory-card-action-bar/div/button')); + var PathwaysLink = element(by.linkText('Pathways')); + var ClustersLink = element(by.linkText('Clusters')); + var BestMatchIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); + var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); + var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span')); + var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i')); + var LearnMoreButton = element(by.xpath('//div/div/div/div/div[2]/div[2]')); + var EC = protractor.ExpectedConditions; + var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); + + expect(await WidgetTitle.getText()).toEqual('Clusters'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); + await PathwaysLink.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); + await ClustersLink.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + expect(await BestMatchIcon.getText()).toContain('Best Fit'); + await AtAGlanceIcon.click().then(function() { + browser.sleep(2500); + }); + await AtAGlanceBackOfCardXCloseLink.click().then(function() { + browser.sleep(2500); + }); + await OccupationCardEllipsis.click().then(function() { + browser.sleep(2500); + }); + await LearnMoreButton.click().then(function() { + browser.sleep(20000); + }); + browser.waitForAngular(); + browser.wait(EC.elementToBeClickable(JourneymanIcon)); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function InterestSurveyResultsCreateJourney() { + it('should create a Journey to Top Interest Survey Result', async function () { + var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); + var JourneySideBarHeader = element(by.css('.side-bar-child-text > span')); + var JourneyInfoIcon = element(by.css('.journey-info-circle')); + var JourneyInfoDivTitle = element(by.css('.col-lg-12 > .ng-binding')); + var JourneyInfoDivSubText = element(by.css('.col-lg-12:nth-child(3)')); + var JourneyInfoDivXCloseLink = element(by.css('.fa-times')); + var JourneyEntryPoint = element(by.css('.journeyInput')); + var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding')); + var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); + var JourneyDetailsIcon = element(by.css('#journeyitem0 .journey-info-circle')); + var ExpandGradeSubJourney = element(by.css('.ng-scope:nth-child(4) .side-bar-journey-detail-child-txt')); + var ExpandSubjectSubJourney = element(by.css('.ng-scope:nth-child(11) .side-bar-journey-detail-child-txt')); + var ExpandStrandSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) .side-bar-journey-detail-child-txt')); + var ExpandStandardSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) .side-bar-journey-detail-child-txt')); + var ExpandBenchmarkSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) .side-bar-journey-detail-child-txt')); + var UpOneLevelLink = element(by.css('div:nth-child(1) > .sidebarBackTxt')); + var JourneySaveIcon = element(by.css('#journeyCardIdx0 > .fas')); + var JourneySaveDivTitle = element(by.css('h2')); + var JourneySaveDivDescription = element(by.css('p:nth-child(7)')); + var JourneyPersistButton = element(by.css('.confirm')); + + await JourneymanIcon.click().then(function() { + browser.sleep(1000); + }); + expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey'); + await JourneyInfoIcon.click(); + browser.sleep(1000); + expect(await JourneyInfoDivTitle.getText()).toEqual('Create Your Journey'); + expect(await JourneyInfoDivSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.'); + await JourneyInfoDivXCloseLink.click().then(function() { + browser.sleep(1000); + }); + await JourneyEntryPoint.click(); + browser.waitForAngular(); + await JourneyEntryPoint.sendKeys('6'); + await SelectEntryPointDropDown.click(); + browser.waitForAngular(); + await StartYourJourneyButton.click(); + browser.waitForAngular(); + await JourneyDetailsIcon.click(); + browser.sleep(5000); + await ExpandGradeSubJourney.click(); + browser.sleep(5000); + await ExpandSubjectSubJourney.click(); + browser.sleep(5000); + await ExpandStrandSubJourney.click(); + browser.sleep(5000); + await ExpandStandardSubJourney.click(); + browser.sleep(5000); + await ExpandBenchmarkSubJourney.click(); + browser.sleep(5000); + await UpOneLevelLink.click(); + browser.sleep(5000); + await UpOneLevelLink.click(); + browser.sleep(5000); + await JourneySaveIcon.click(); + browser.sleep(5000); + expect(await JourneySaveDivTitle.getText()).toEqual('Journey saved!'); + expect(await JourneySaveDivDescription.getText()).toEqual('Would you like this journey to persist on the map?'); + await JourneyPersistButton.click(); + browser.sleep(1000); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + function TopCareerWidget() { it('should edit Top Career', async function () { - var WidgetTitle = element(by.css('.full-width > .widget-padding > .jrnys_lead-body-copy')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy')); var TopCareerEditIcon = element(by.css('.full-width .fa-pencil')); - var TopCareerDivTitle = element(by.css('h2')); var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon')); var TopCareerDivCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info')); - var TopCareerGreenText = element(by.css('.jrnys_lead-body-copy:nth-child(2)')); + var TopCareerGreenText = element(by.css('.default-color:nth-child(2)')); var TopCareerGreenSubText = element(by.css('.textPosition')); - var TopCareerDivAddButton = element(by.css('.text-center > .btn')); + var TopCareerDivAddButton = element(by.css('.resetBtn')); + var TopCareerDivTitle = element(by.css('h2')); + var TopCareerDivSubTitle = element(by.css('.row:nth-child(5) > .col-lg-8')); + var TopCareerDivHandle = element(by.css('.col-lg-8 > label')); var TopCareerDivTextBox = element(by.id('searchBox')); var TopCareerDivSelection = element(by.xpath('//div[2]/div/ul/li[3]/a/span')); var TopCareerDivSaveButton = element(by.css('.row:nth-child(12) #photoBtn')); var TopCareerDescription = element(by.css('.jrEllipsis3Lines')); + await DashboardHeaderLink.click().then(function() { + browser.sleep(5000); + }); browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { browser.sleep(1000); }); expect(await WidgetTitle.getText()).toEqual('Top Career'); - browser.actions().mouseMove(element(by.id('topCareerFull'))).perform().then(function() { + browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { browser.sleep(1000); }); await TopCareerEditIcon.click().then(function() { browser.sleep(1000); }); - expect(await TopCareerDivTitle.getText()).toEqual('Dream big, reach higher!'); + await TopCareerDivXRemoveLink.click().then(function() { browser.sleep(1000); }); @@ -204,6 +740,9 @@ function TopCareerWidget() { await TopCareerDivAddButton.click().then(function() { browser.sleep(1000); }); + expect(await TopCareerDivTitle.getText()).toEqual('Dream big, reach higher!'); + expect(await TopCareerDivSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?"); + expect(await TopCareerDivHandle.getText()).toEqual('Job Title'); await TopCareerDivTextBox.click().then(function() { browser.sleep(1000); }); @@ -548,21 +1087,28 @@ function NearbyPlacesOccupationCard() { var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); var AtAGlanceBackOfCardTitle = element(by.xpath('//territory-card/div/div[2]/div/div')); var AtAGlanceBackOfCardDescription = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div')); - //var AtAGlanceDegree = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/div/div[2]')); - //var AtAGlanceDegree = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/table/tbody/tr[1]/td[2]/div')); - var AtAGlanceDegreeStat = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/div/div[3]')); - var AtAGlanceSalary = element(by.xpath('//div/div[2]/div/div/div[2]/div[2]')); - var AtAGlanceSalaryStat = element(by.xpath('//div/div[2]/div/div/div[2]/div[3]')); - var AtAGlanceEmployed = element(by.xpath('//div[2]/div/div/div[3]/div[2]')); - var AtAGlanceEmployedStat = element(by.xpath('//div[2]/div/div/div[3]/div[3]')); - var AtAGlanceGrowth = element(by.xpath('//div[2]/div/div/div[4]/div[2]')); - var AtAGlanceGrowthStat = element(by.xpath('//div[2]/div/div/div[4]/div[3]')); + var AtAGlanceTypicalDegreeTitle = element(by.xpath('//div/div/div[2]/div/div/table/tbody/tr/td[2]/div')); + var AtAGlanceCollege = element(by.xpath('//tr[2]/td[2]/div')); + var AtAGlanceMasters = element(by.xpath('//tr[3]/td[2]/div')); + var AtAGlanceAssociates = element(by.xpath('//tr[4]/td[2]/div')); + var AtAGlanceSalary = element(by.xpath('//tr[16]/td[2]/div')); + var AtAGlanceSalaryStat = element(by.xpath('//tr[17]/td[2]/div')); + var AtAGlanceGrowth = element(by.xpath('//tr[19]/td[2]/div')); + var AtAGlanceGrowthStat = element(by.xpath('//tr[20]/td[2]/div')); + var AtAGlanceGrowthAverage = element(by.xpath('//td[2]/div[2]')); + var AtAGlanceJobOpenings = element(by.xpath('//tr[22]/td[2]/div')); + var AtAGlanceJobOpeningsStat = element(by.xpath('//tr[23]/td[2]/div')); + var AtAGlanceEmployed = element(by.xpath('//tr[25]/td[2]/div')); + var AtAGlanceEmployedStat = element(by.xpath('//tr[26]/td[2]/div')); var AtAGlanceXCloseLink = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .glyphicon:nth-child(1)')); var OccupationCardEllipsis = element(by.xpath('//territory-card/div/div/div/div[2]/div/i')); var BackOfCardTitle = element(by.xpath('//territory-card/div/div[3]/div/div')); var BackOfCardUnFollow = element(by.xpath('//territory-card-more-back/div/div/div/div/div/div[2]')); + var BackOfCardLearnMore = element(by.xpath('//territory-card-more-back/div/div/div/div/div[2]/div[2]')); + var BackOfCardMap = element(by.xpath('//territory-card-more-back/div/div/div/div/div[3]/div[2]')); + var BackOfCardJourney = element(by.xpath('//territory-card-more-back/div/div/div/div/div[4]/div[2]')); + var BackOfCardVideo = element(by.xpath('//territory-card-more-back/div/div/div/div/div[5]/div[2]')); var BackOfCardAtAGlanceIcon = element(by.xpath('//div/div/div/div/div[6]/div[2]')); - var BackOfCardXCloseLink = element(by.xpath('//territory-card/div/div[3]/div/div[2]/span')); var OccupationCardLearnMoreIcon = element(by.xpath('//action-learn-more/i')); var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); //var BackLink = element(by.css('.btn-primary-back-mod')); Not taking you back to LM page, takes you back to dashboard @@ -575,33 +1121,34 @@ function NearbyPlacesOccupationCard() { var OccupationCardVideoIcon = element(by.xpath('//div[4]/career-one-stop-video/i')); var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding')); var XCloseVideoDivLink = element(by.css('.close:nth-child(2)')); - var FollowingLink = element(by.css('.col-lg-4:nth-child(3) .jrnys_stand-out-text')); - var FollowingTitle = element(by.css('')); - var FollowingPathway = element(by.css('')); - var FollowingInfoIcon = element(by.css('')); - var FollowingBackOfCardStats = element(by.css('')); + var FollowingLink = element(by.css('.col-md-3:nth-child(4) .jrnys_stand-out-text')); + var FollowingTitle = element(by.css('.card-last-col:nth-child(1) .title:nth-child(3)')); + var FollowingPathway = element(by.css('.card-last-col:nth-child(1) .subtitle:nth-child(4)')); + var FollowingUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > follow > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(4) > span > span > div > div > div:nth-child(1) > table > tbody > tr:nth-child(4) > td > div:nth-child(1) > div > i.journey-follow-selected')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications'); await OccupatonCardFollow.click().then(function() { - browser.sleep(5000); + browser.sleep(2500); }); await AtAGlanceHeaderRowIcon.click().then(function() { browser.sleep(1000); }); expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Software Developers, Applications'); expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Develop, create, and modify general computer applications software or specialized utility programs. Analyze user needs and develop software solutions. Design software or customize software for client use with the aim of optimizing operational efficiency. May analyze and design databases within an application area, working individually or coordinating database development as part of a team. May supervise computer programmers.'); - - /*expect(await AtAGlanceDegree.getText()).toEqual('Degree Required'); - - expect(await AtAGlanceDegreeStat.getText()).toEqual('College (4 Year) - 80%'); - - expect(await AtAGlanceSalary.getText()).toEqual('Average Salary'); + expect(await AtAGlanceTypicalDegreeTitle.getText()).toEqual('Typical Degree'); + expect(await AtAGlanceCollege.getText()).toEqual('College (4 Year) - 80%'); + expect(await AtAGlanceMasters.getText()).toEqual("Master's degree - 16%"); + expect(await AtAGlanceAssociates.getText()).toEqual("Associate's degree - 3%"); + expect(await AtAGlanceSalary.getText()).toEqual('Average Annual Salary'); expect(await AtAGlanceSalaryStat.getText()).toEqual('$101,790'); + expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); + expect(await AtAGlanceGrowthStat.getText()).toEqual('30.7%'); + expect(await AtAGlanceGrowthAverage.getText()).toEqual('ABOVE AVERAGE'); + expect(await AtAGlanceJobOpenings.getText()).toEqual('Projected Job Openings'); + expect(await AtAGlanceJobOpeningsStat.getText()).toEqual('85,700'); expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); expect(await AtAGlanceEmployedStat.getText()).toEqual('831,300'); - expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceGrowthStat.getText()).toEqual('30.7%');*/ await AtAGlanceXCloseLink.click().then(function() { browser.sleep(1000); }); @@ -610,22 +1157,29 @@ function NearbyPlacesOccupationCard() { browser.sleep(1000); }); expect(await BackOfCardTitle.getText()).toEqual('Software Developers, Applications'); - await BackOfCardUnFollow.click().then(function() { - browser.sleep(2500); - }); + expect(await BackOfCardUnFollow.getText()).toEqual('Follow'); + expect(await BackOfCardLearnMore.getText()).toEqual('Learn More'); + expect(await BackOfCardMap.getText()).toEqual('Map'); + expect(await BackOfCardJourney.getText()).toEqual('Journey'); + expect(await BackOfCardVideo.getText()).toEqual('Video'); await BackOfCardAtAGlanceIcon.click().then(function() { browser.sleep(2500); }); expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Software Developers, Applications'); expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Develop, create, and modify general computer applications software or specialized utility programs. Analyze user needs and develop software solutions. Design software or customize software for client use with the aim of optimizing operational efficiency. May analyze and design databases within an application area, working individually or coordinating database development as part of a team. May supervise computer programmers.'); - expect(await AtAGlanceDegree.getText()).toEqual('Degree Required'); - expect(await AtAGlanceDegreeStat.getText()).toEqual('College (4 Year) - 80%'); - expect(await AtAGlanceSalary.getText()).toEqual('Average Salary'); + expect(await AtAGlanceTypicalDegreeTitle.getText()).toEqual('Typical Degree'); + expect(await AtAGlanceCollege.getText()).toEqual('College (4 Year) - 80%'); + expect(await AtAGlanceMasters.getText()).toEqual("Master's degree - 16%"); + expect(await AtAGlanceAssociates.getText()).toEqual("Associate's degree - 3%"); + expect(await AtAGlanceSalary.getText()).toEqual('Average Annual Salary'); expect(await AtAGlanceSalaryStat.getText()).toEqual('$101,790'); - expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceEmployedStat.getText()).toEqual('831,300'); expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); expect(await AtAGlanceGrowthStat.getText()).toEqual('30.7%'); + expect(await AtAGlanceGrowthAverage.getText()).toEqual('ABOVE AVERAGE'); + expect(await AtAGlanceJobOpenings.getText()).toEqual('Projected Job Openings'); + expect(await AtAGlanceJobOpeningsStat.getText()).toEqual('85,700'); + expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); + expect(await AtAGlanceEmployedStat.getText()).toEqual('831,300'); await AtAGlanceXCloseLink.click().then(function() { browser.sleep(1000); }); @@ -672,6 +1226,17 @@ function NearbyPlacesOccupationCard() { await DashboardHeaderLink.click().then(function() { browser.sleep(15000); }); + await FollowingLink.click().then(function() { + browser.sleep(5000); + }); + expect(await FollowingTitle.getText()).toEqual('Software Developers, Applications'); + expect(await FollowingPathway.getText()).toEqual('Information Technology'); + await FollowingUnfollowIcon.click().then(function() { + browser.sleep(2500); + }); + await DashboardHeaderLink.click().then(function() { + browser.sleep(15000); + }); browser.waitForAngular(); browser.getCurrentUrl(); }); @@ -1821,30 +2386,30 @@ function MyJourneys() { var BackLink = element(by.css('.btn-primary-back-mod')); browser.actions().mouseMove(element(by.id('journeyListWidget'))).perform(); - browser.sleep(2500); + browser.sleep(5000); expect(await WidgetTitle.getText()).toEqual('My Journeys'); expect(await JourneySteps.getText()).toContain('10 to First-Line Supervisors of Aquacultural Workers through Sustainable Food Systems Graduate Certificate'); expect(await JourneySteps.getText()).toContain('Learn More'); expect(await JourneySteps.getText()).toContain('5 steps (0 Complete)'); await LearnMoreLink.click(); - browser.sleep(2500); + browser.sleep(5000); expect(await JourneyLearnMoreTitle.getText()).toEqual('10 to First-Line Supervisors of Aquacultural Workers through Sustainable Food Systems Graduate Certificate'); expect(await JourneyWayPoint.getText()).toEqual('10'); expect(await JourneyResource.getText()).toEqual('cnn'); await RightScroll.click(); - browser.sleep(2500); + browser.sleep(5000); expect(await JourneyWayPoint.getText()).toEqual('11'); expect(await JourneyResource.getText()).toEqual('This is CNN'); await RightScroll.click(); - browser.sleep(2500); + browser.sleep(5000); expect(await JourneyWayPoint.getText()).toEqual('12'); expect(await JourneyResource.getText()).toEqual('cnn'); await RightScroll.click(); - browser.sleep(2500); + browser.sleep(5000); expect(await JourneyWayPoint.getText()).toEqual('Sustainable Food Systems Graduate Certificate'); expect(await JourneyNoResource.getText()).toEqual('Sorry, no related resources!'); await RightScroll.click(); - browser.sleep(2500); + browser.sleep(5000); expect(await JourneyWayPoint.getText()).toEqual('First-Line Supervisors of Aquacultural Workers'); expect(await JourneyResource.getText()).toEqual('First-Line Supervisors of Aquacultural Workers (Agriculture, Food and Natural Resources)'); await BackLink.click(); @@ -1853,385 +2418,6 @@ function MyJourneys() { }); } -function InterestSurvey() { - it('should navigate to Interest Survey, toggle language to Spanish then back to English and take survey', async function () { - var WidgetTitle = element(by.css('#interests .jrnys_lead-body-copy')); - var RealisticTitle = element(by.css('.ng-scope:nth-child(1) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); - var RealisticDescription = element(by.css('.ng-scope:nth-child(1) > .row-padding-mobile .color3a-color')); - var InvestigativeTitle = element(by.css('.ng-scope:nth-child(2) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); - var InvestigativeDescription = element(by.css('.ng-scope:nth-child(2) > .row-padding-mobile .color3a-color')); - var ArtisticTitle = element(by.css('.ng-scope:nth-child(3) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); - var ArtisticDescription = element(by.css('.ng-scope:nth-child(3) > .row-padding-mobile .color3a-color')); - var SocialTitle = element(by.css('.ng-scope:nth-child(4) .jrnys_support-tex > .ng-binding')); - var SocialDescription = element(by.css('.ng-scope:nth-child(4) > .row-padding-mobile .color3a-color')); - var EnterprisingTitle = element(by.css('.ng-scope:nth-child(5) .jrnys_support-tex > .ng-binding')); - var EnterprisingDescription = element(by.css('.ng-scope:nth-child(5) > .row-padding-mobile .color3a-color')); - var ConventionalTitle = element(by.css('.ng-scope:nth-child(6) .jrnys_support-tex > .ng-binding')); - var ConventionalDescription = element(by.css('.ng-scope:nth-child(6) .color3a-color')); - var TakeTheSurveyButton = element(by.css('.btn-info:nth-child(2)')); - - var InterestSurveyTitle = element(by.css('.jrnys_lead-body-copy')); - var TextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)')); - var TextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)')); - var TextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)')); - var EspanolButton = element(by.linkText('Español')); - var EnglishButton = element(by.linkText('English')); - var LanguageAlertDiv = element(by.css('p:nth-child(7)')); - var LanguageAlterConfirmButton = element(by.css('.confirm')); - var DislikeEmoji = element(by.id('emoji_0_0')); - var MehEmoji = element(by.id('emoji_0_1')); - var UnsureEmoji = element(by.id('emoji_0_2')); - var LikeItEmoji = element(by.id('emoji_0_3')); - var LoveItEmoji = element(by.id('emoji_0_4')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var CancelSurveyButton = element(by.css('.btn-md')); - - //dashboard - Interests - expect(await WidgetTitle.getText()).toEqual('Interests'); - expect(await RealisticTitle.getText()).toEqual('Realistic'); - expect(await RealisticDescription.getText()).toEqual('You see things as they are and rely most heavily on your sense of sight and touch.'); - expect(await InvestigativeTitle.getText()).toEqual('Investigative'); - expect(await InvestigativeDescription.getText()).toEqual('You’re a super sleuth who loves to solve math and science problems.'); - expect(await ArtisticTitle.getText()).toEqual('Artistic'); - expect(await ArtisticDescription.getText()).toEqual('Your electives are full of art, drama, creative writing, and music classes.'); - expect(await SocialTitle.getText()).toEqual('Social'); - expect(await SocialDescription.getText()).toEqual('You’re a friend to everyone. You like to help, interact and share information.'); - expect(await EnterprisingTitle.getText()).toEqual('Enterprising'); - expect(await EnterprisingDescription.getText()).toEqual('You’re persuasive and could sell just about anything to anyone.'); - expect(await ConventionalTitle.getText()).toEqual('Conventional'); - expect(await ConventionalDescription.getText()).toEqual('People might call you TYPE A, but they’re just jealous of your ability to get things done.'); - await TakeTheSurveyButton.click(); - browser.sleep(2500); - - //Interest Survey page - validate English & Spanish text - expect(await InterestSurveyTitle.getText()).toEqual('Interest Survey'); - expect(await TextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); - expect(await TextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); - expect(await TextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); - await LikeItEmoji.click(); - await PreviousQuestion.click(); - await EspanolButton.click(); - browser.sleep(2500); - expect(await LanguageAlertDiv.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?'); - await LanguageAlterConfirmButton.click(); - expect(await TextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!'); - expect(await TextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.'); - expect(await TextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!'); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await CancelSurveyButton.click(); - browser.waitForAngular(); - - //Take Interest Survey - await TakeTheSurveyButton.click(); - browser.waitForAngular(); - await EnglishButton.click(); - browser.waitForAngular(); - await DislikeEmoji.click(); - await MehEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click();//5 - await LoveItEmoji.click(); - await MehEmoji.click(); - await UnsureEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click();//10 - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//15 - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click();//20 - await DislikeEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click();//25 - await LoveItEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//30 - await DislikeEmoji.click(); - await MehEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click();//35 - await LoveItEmoji.click(); - await MehEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click();//40 - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//45 - await DislikeEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click();//50 - await DislikeEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click();//55 - await LoveItEmoji.click(); - await MehEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//60 - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResults() { - it('should verify the Interest Survey Results and share results', async function () { - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var TopThreeTraitsHeader = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var TopThreeTraitsOne = element(by.css('.col-md-4:nth-child(1) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionOne = element(by.css('.col-md-4:nth-child(1) .ng-binding:nth-child(2)')); - var TopThreeTraitsTwo = element(by.css('.col-md-4:nth-child(2) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionTwo = element(by.css('.col-md-4:nth-child(2) .ng-binding:nth-child(2)')); - var TopThreeTraitsThree = element(by.css('.col-md-4:nth-child(3) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionThree = element(by.css('.col-md-4:nth-child(3) .ng-binding:nth-child(2)')); - var ViewAllLink = element(by.linkText('View All')); - var TopTraitsOne = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsOneDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsTwo = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsTwoDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var TopTraitsThree = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsThreeDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsFour = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsFourDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var TopTraitsFive = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsFiveDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsSix = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsSixDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var XCloseLink = element(by.css('.close')); - var ShareResultsIcon = element(by.css('.fa-share-alt')); - var ShareResultsDivTitle = element(by.css('#interestSurveyShareResult > .jrnys_lead-body-copy')); - var ToTextBox = element(by.css('tr:nth-child(2) .form-control')); - var FromTextBox = element(by.css('tr:nth-child(1) .form-control')); - var CancelButton = element(by.css('.btn-alt-info')); - var SendButton = element(by.css('tr:nth-child(7) .btn-info')); - var DivAlertTitle = element(by.css('h2')); - var DivAlertMessage = element(by.css('p:nth-child(7)')); - var DivOKButton = element(by.css('.confirm')); - - expect(await PageTitle.getText()).toEqual('Interest Survey Result'); - expect(await TopThreeTraitsHeader.getText()).toContain('Your top 3 traits View All'); - await ViewAllLink.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - await ShareResultsIcon.click(); - expect(await ShareResultsDivTitle.getText()).toEqual('Email Your Results'); - await SendButton.click(); - browser.sleep(1000); - expect(await DivAlertTitle.getText()).toEqual('No Email'); - expect(await DivAlertMessage.getText()).toEqual('Please provide at least one email address to send.'); - await DivOKButton.click(); - browser.waitForAngular(); - await ToTextBox.sendKeys('jhuerta@edmin'); - await SendButton.click(); - browser.sleep(1000); - expect(await DivAlertTitle.getText()).toEqual('Invalid Email'); - expect(await DivAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.'); - await DivOKButton.click(); - browser.sleep(1000); - await CancelButton.click(); - browser.waitForAngular(); - await ShareResultsIcon.click(); - await FromTextBox.clear(); - await FromTextBox.sendKeys('Automated Regression'); - await ToTextBox.sendKeys('jhuerta@edmin.com'); - browser.sleep(1000); - await SendButton.click(); - browser.sleep(2500); - await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!'); - await expect(DivAlertMessage.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); - await DivOKButton.click().then(function(EC) { - var EC = protractor.ExpectedConditions; - - browser.waitForAngular(); - browser.getCurrentUrl(); - //browser.sleep(10000); - browser.wait(EC.elementToBeClickable(by.css('.fa-share-alt')), 10000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResultsClusters() { - it('should verify the Interest Survey Clusters widget and jump to learn more page', async function () { - var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); - var WidgetDescription = element(by.css('.row > span:nth-child(2)')); - var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); - var SelectButton = element(by.xpath('//territory-card-action-bar/div/button')); - var PathwaysLink = element(by.linkText('Pathways')); - var ClustersLink = element(by.linkText('Clusters')); - var BestMatchIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span')); - var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i')); - var LearnMoreButton = element(by.xpath('//div/div/div/div[2]/div[2]')); - var EC = protractor.ExpectedConditions; - var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); - - /*REMOVE - var ViewResultsLink = element(by.linkText('View Results')); - browser.actions().mouseMove(element(by.linkText('View Results'))).perform().then(function() { - browser.sleep(2500); - });*/ - - await ViewResultsLink.click().then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); - await PathwaysLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - await ClustersLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - expect(await BestMatchIcon.getText()).toContain('Best Fit'); - await AtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - await AtAGlanceBackOfCardXCloseLink.click().then(function() { - browser.sleep(2500); - }); - await OccupationCardEllipsis.click().then(function() { - browser.sleep(2500); - }); - await LearnMoreButton.click().then(function() { - browser.sleep(20000); - }); - browser.waitForAngular(); - browser.wait(EC.elementToBeClickable(JourneymanIcon)); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResultsCreateJourney() { - it('should create a Journey to Top Interest Survey Result', async function () { - var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); - var JourneySideBarHeader = element(by.css('.side-bar-child-text > span')); - var JourneyInfoIcon = element(by.css('.journey-info-circle')); - var JourneyInfoDivTitle = element(by.css('.col-lg-12 > .ng-binding')); - var JourneyInfoDivSubText = element(by.css('.col-lg-12:nth-child(3)')); - var JourneyInfoDivXCloseLink = element(by.css('.fa-times')); - var JourneyEntryPoint = element(by.css('.journeyInput')); - var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding')); - var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); - var JourneyDetailsIcon = element(by.css('#journeyitem0 .journey-info-circle')); - var ExpandGradeSubJourney = element(by.css('.ng-scope:nth-child(4) .side-bar-journey-detail-child-txt')); - var ExpandSubjectSubJourney = element(by.css('.ng-scope:nth-child(11) .side-bar-journey-detail-child-txt')); - var ExpandStrandSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) .side-bar-journey-detail-child-txt')); - var ExpandStandardSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) .side-bar-journey-detail-child-txt')); - var ExpandBenchmarkSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) .side-bar-journey-detail-child-txt')); - var UpOneLevelLink = element(by.css('div:nth-child(1) > .sidebarBackTxt')); - var JourneySaveIcon = element(by.css('#journeyCardIdx0 > .fas')); - var JourneySaveDivTitle = element(by.css('h2')); - var JourneySaveDivDescription = element(by.css('p:nth-child(7)')); - var JourneyPersistButton = element(by.css('.confirm')); - - await JourneymanIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey'); - await JourneyInfoIcon.click(); - browser.sleep(1000); - expect(await JourneyInfoDivTitle.getText()).toEqual('Create Your Journey'); - expect(await JourneyInfoDivSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.'); - await JourneyInfoDivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await JourneyEntryPoint.click(); - browser.waitForAngular(); - await JourneyEntryPoint.sendKeys('6'); - await SelectEntryPointDropDown.click(); - browser.waitForAngular(); - await StartYourJourneyButton.click(); - browser.waitForAngular(); - await JourneyDetailsIcon.click(); - browser.sleep(5000); - await ExpandGradeSubJourney.click(); - browser.sleep(5000); - await ExpandSubjectSubJourney.click(); - browser.sleep(5000); - await ExpandStrandSubJourney.click(); - browser.sleep(5000); - await ExpandStandardSubJourney.click(); - browser.sleep(5000); - await ExpandBenchmarkSubJourney.click(); - browser.sleep(5000); - await UpOneLevelLink.click(); - browser.sleep(5000); - await UpOneLevelLink.click(); - browser.sleep(5000); - await JourneySaveIcon.click(); - browser.sleep(5000); - expect(await JourneySaveDivTitle.getText()).toEqual('Journey saved!'); - expect(await JourneySaveDivDescription.getText()).toEqual('Would you like this journey to persist on the map?'); - await JourneyPersistButton.click(); - browser.sleep(1000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - function MyJourneysPage() { it('should navigate to My Journeys and delete 3rd journey', async function () { var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover'));