//interestSurveyResultsWidget_spec.js describe('Interest Survey Results Widget Script', function () { //app-journeysmap landing page var UserNameTextBox = element(by.css('#txtU')); var PasswordTextBox = element(by.css('#txtP')); //Open browser browser.get(browser.params.login); it('should have a title', async function () { await expect(browser.getTitle()).toEqual('Login'); }); //Sign In SignIn(UserNameTextBox, PasswordTextBox); function SignIn(UserNameTextBox, PasswordTextBox) { it('SignIn, should sign into journeysmap.com', async function () { var PageGreetingText = element(by.css('td > div > div:nth-child(1)')); var NextButton = element(by.css('.btn')); var JourneysGreeting = element(by.css('.dropdown')); expect(await PageGreetingText.getText()).toEqual('Login and start exploring.'); browser.sleep(2500); await UserNameTextBox.sendKeys(browser.params.userName).then(function() { browser.sleep(2500); }); await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { browser.sleep(2500); }); await NextButton.click().then(function() { browser.sleep(5000); browser.waitForAngular(); browser.getCurrentUrl(); }); expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); } //<<<>>> InterestSurveyResultsWidget(); InterestSurveyResultsWidgetRetake(); InterestSurveyResultsWidgetEdit(); InterestSurveyResultsWidgetResults(); InterestSurveyResultsCreateJourney(); DeleteCreatedJourney(); //Sign Out*/ SignOut(); }); function InterestSurveyResultsWidget() { it(': InterestSurveyResultsWidget, should validate 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 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 TopResultsReadMoreCloseIcon = 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 InterestResultsIcon = element(by.css('div:nth-child(6) > div:nth-child(1) > .hideIconLabels')); var InterestEditIcon = element(by.css('div:nth-child(6) > div:nth-child(2) > .hideIconLabels')); var InterestRetakeIcon = element(by.css('div:nth-child(3) > .hideIconLabels')); //Scroll down to Interest Survey Results widget browser.executeScript('window.scrollTo(0, 612);').then(function() { browser.sleep(2500); }); 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(2500); }); 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 TopResultsReadMoreCloseIcon.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(2500); }); 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 TopResultsReadMoreCloseIcon.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(2500); }); 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 TopResultsReadMoreCloseIcon.click().then(function() { browser.sleep(1000); }); expect(await InterestResultsIcon.getText()).toEqual('Results'); expect(await InterestEditIcon.getText()).toEqual('Edit'); expect(await InterestRetakeIcon.getText()).toEqual('Retake'); }); } function InterestSurveyResultsWidgetRetake() { it(': InterestSurveyResultsWidgetRetake, retake interest survey', async function () { var InterestSurveyRetake = element(by.css('div:nth-child(3) > .fa-tasks')); var ActiveLanguageButton = element(by.css('.btn-primary')); var InactiveLanguageButton = element(by.css('.btn-info > .ng-scope')); 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 PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.xpath('//div[3]/div/div[2]/span')); var AdministrativeServicesManagers = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); var AirTrafficControllers = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); //Scroll down to Interest Survey Results widget browser.executeScript('window.scrollTo(0, 612);').then(function() { browser.sleep(2500); }); //Retake Interest Survey await InterestSurveyRetake.click().then(function() { browser.sleep(5000); }); browser.waitForAngular(); expect(await ActiveLanguageButton.getText()).toEqual('English'); expect(await InactiveLanguageButton.getText()).toEqual('Español'); await DislikeEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await LoveItEmoji.click(); await DislikeEmoji.click();//5 await LoveItEmoji.click(); await LikeItEmoji.click(); await UnsureEmoji.click(); await LoveItEmoji.click(); await DislikeEmoji.click();//10 await DislikeEmoji.click(); await LikeItEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await DislikeEmoji.click();//15 await LoveItEmoji.click(); await DislikeEmoji.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 LikeItEmoji.click(); await DislikeEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await LikeItEmoji.click();//30 await DislikeEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await LoveItEmoji.click(); await DislikeEmoji.click();//35 await DislikeEmoji.click(); await LikeItEmoji.click(); await LikeItEmoji.click(); await LikeItEmoji.click(); await DislikeEmoji.click();//40 await DislikeEmoji.click(); await LikeItEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await LikeItEmoji.click();//45 await DislikeEmoji.click(); await LoveItEmoji.click(); await LoveItEmoji.click(); await MehEmoji.click(); await DislikeEmoji.click();//50 await DislikeEmoji.click(); await LikeItEmoji.click(); await DislikeEmoji.click(); await LikeItEmoji.click(); await LikeItEmoji.click();//55 await DislikeEmoji.click(); await LoveItEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await LikeItEmoji.click();//60 browser.sleep(5000); expect(await PageTitle.getText()).toEqual('Interest Survey Results'); browser.sleep(5000); await DashboardHeaderLink.click().then(function() { browser.sleep(5000); }); browser.executeScript('window.scrollTo(0, 1250);').then(function() { browser.sleep(5000); }); expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).not.toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); expect(await AdministrativeServicesManagers.getText()).not.toEqual('Administrative Services Managers'); expect(await AirTrafficControllers.getText()).not.toEqual('Air Traffic Controllers'); browser.waitForAngular(); browser.getCurrentUrl(); }); } function InterestSurveyResultsWidgetEdit() { it(': InterestSurveyResultsWidgetEdit, should interact with Interest Survey Results widget, validate results', async function () { 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) > .row-padding-mobile .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 AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtAGlanceIcon = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer > div > div > div .territoryCardItemText')); var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtBestFitIcon = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .ng-scope > div > div:nth-child(1) > .territoryCardItemText')); var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AirTrafficControllers = element(by.css('#\\30 2c1f459-be14-4ea7-8229-404af8ccb881 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); 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 TopTraitsTitleOne = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) > .jrnys_lead-body-copy')); var TopTraitsDescriptionOne = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) > .ng-binding:nth-child(2)')); var TopTraitsTitleTwo = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) > .jrnys_lead-body-copy')); var TopTraitsDescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) > .ng-binding:nth-child(2)')); var TopTraitsTitleThree = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(1) > .jrnys_lead-body-copy')); var TopTraitsDescriptionThree = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(1) > .ng-binding:nth-child(2)')); var TopTraitsTitleFour = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(2) > .jrnys_lead-body-copy')); var TopTraitsDescriptionFour = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(2) > .ng-binding:nth-child(2)')); var TopTraitsTitleFive = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(1) > .jrnys_lead-body-copy')); var TopTraitsDescriptionFive = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(1) > .ng-binding:nth-child(2)')); var TopTraitsTitleSix = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(2) > .jrnys_lead-body-copy')); var TopTraitsDescriptionSix = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(2) > .ng-binding:nth-child(2)')); 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 EC = protractor.ExpectedConditions; //Scroll down to Interest Survey Results widget browser.executeScript('window.scrollTo(0, 610);').then(function() { browser.sleep(2500); }); await InterestEditLink.click().then(function() { browser.sleep(2500); }); 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); browser.executeScript('window.scrollTo(0, 1250);').then(function() { browser.sleep(5000); }); expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtAGlanceIcon.getText()).toContain('At a'); expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtAGlanceIcon.getText()).toContain('Glance'); //expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtBestFitIcon.getText()).toContain('Interest');//loading issue, not consistent EDM-1726 //expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtBestFitIcon.getText()).toContain('Best Fit');//loading issue, not consistent EDM-1726 expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers'); //Scroll down to Interest Survey Results widget browser.executeScript('window.scrollTo(0, 612);').then(function() { browser.sleep(2500); }); await InterestResultsLink.click().then(function() { browser.sleep(10000); }); expect(await PageTitle.getText()).toEqual('Interest Survey Results'); expect(await TopThreeTraitsHeader.getText()).toEqual('Check out your traits!'); expect(await TopTraitsTitleOne.getText()).toEqual('Enterprising (27)'); expect(await TopTraitsDescriptionOne.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 TopTraitsTitleTwo.getText()).toEqual('Investigative (25)'); expect(await TopTraitsDescriptionTwo.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 TopTraitsTitleThree.getText()).toEqual('Conventional (23)'); expect(await TopTraitsDescriptionThree.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 TopTraitsTitleFour.getText()).toEqual('Social (22)'); expect(await TopTraitsDescriptionFour.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 TopTraitsTitleFive.getText()).toEqual('Realistic (21)'); expect(await TopTraitsDescriptionFive.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 TopTraitsTitleSix.getText()).toEqual('Artistic (17)'); expect(await TopTraitsDescriptionSix.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.'); 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();//INCONSISTENT await ShareResultsIcon.click(); 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(); browser.waitForAngular(); browser.wait(EC.elementToBeClickable(ShareResultsIcon));*/ browser.waitForAngular(); browser.getCurrentUrl(); }); } function InterestSurveyResultsWidgetResults() { it(': InterestSurveyResultsWidgetResults, should verify the Interest Survey Clusters widget and jump to learn more page', async function () { var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn')); var CareerExplorationPageTitle = element(by.css('.col-sm-12')); var CareerExplorationSearchTextBox = element(by.css('.ng-touched')); var SkillsFilterButtonInactive = element(by.css('.filter-category-off:nth-child(3)')); var SkillsFilterButtonActive = element(by.css('div:nth-child(3) > .filter-category:nth-child(3)')); var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)')); var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); var WidgetDescription = element(by.css('.row > span:nth-child(2)')); var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var FinanceSelectButton = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .btn')); var FinancialAndInvestmentPlanning = element(by.css('#\\32 f8e3d00-1d7a-46f6-bf4e-c907540ab958 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var InsuranceServices = element(by.css('#e42868e2-b210-40c6-a842-b6acddc27f68 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var BankingAndRelatedServices = element(by.css('#a3dbe29e-e930-4cc2-8856-c21ec7ff61ee > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var BusinessFinancialManagement = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var BusinessFinancialManagementSelectButton = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .btn')); var FraudExaminersInvestigatorsAndAnalyst = element(by.css('.territoryCardTitleText > .ng-binding')); var FraudExaminersInvestigatorsAndAnalystLearnMoreIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText')); var FraudExaminersInvestigatorsAndAnalystMapIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText')); var FraudExaminersInvestigatorsAndAnalystJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)')); var FraudExaminersInvestigatorsAndAnalystVideoIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText')); var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var NextLink = element(by.linkText('Next')); var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var HealthScience = element(by.css('#\\33 7735fc5-77f8-4a3c-8814-51c377b7affd > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var InformationTechnology = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var Manufacturing = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var PreviousLink = element(by.linkText('Previous')); var PathwaysLink = element(by.linkText('Pathways')); var ClustersLink = element(by.linkText('Clusters')); var BusinessManagementAndAdministrationSelectButton = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .btn')); var Management = element(by.css('#c9fa7441-b908-4d75-b918-f15be99d7a18 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var ManagementSelectButton = element(by.css('#c9fa7441-b908-4d75-b918-f15be99d7a18 > #territoryCardContainer .btn')); var BusinessFinancialManagementAndAccounting = element(by.css('#\\39 b2ccae4-d5eb-4c45-a571-8f4e824db568 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var BusinessAnalysis = element(by.css('#d173d81b-a137-4f2d-b450-bca47abf7be3 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var Marketing = element(by.css('#\\33 4f87def-1317-483b-ba52-61b98f0c52cb > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var HumanResources = element(by.css('#b67c622c-f398-4b54-8fbd-cb62da07d96a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AdministrativeAndInformationSuport = element(by.css('#b3c703ca-a10f-4565-a1eb-8923555ded60 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AdministrativeServicesManagersAtAGlanceIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div > div > div > div > .territoryCardItemText')); var AdministrativeServicesManagersAtAGlanceTitle = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div:nth-child(2) .territoryCardTitleText')); var AdministrativeServicesManagersAtAGlanceDescription = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardDescriptionText')); var AdministrativeServicesManagersAtAGlanceXCloseIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div:nth-child(2) > #territoryCardTitleHeader .glyphicon')); var AdministrativeServicesManagersAtAGlanceBestMatchIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .ng-scope > div > div:nth-child(1) > .territoryCardItemText')); var AdministrativeServicesManagersEllipsis = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas')); var AdministrativeServicesManagersEllipsisTitle = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div:nth-child(3) .territoryCardTitleText')); var AdministrativeServicesManagersEllipsisFollowIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer > .territoryCardItemText')); var AdministrativeServicesManagersEllipsisLearnMoreIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText')); var AdministrativeServicesManagersEllipsisMapIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText')); var AdministrativeServicesManagersEllipsisJourneymanIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText')); var AdministrativeServicesManagersEllipsisVideoIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText')); var AdministrativeServicesManagersEllipsisAtAGlanceIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText')); var EC = protractor.ExpectedConditions; var AdministrativeServicesManagersJourneyInfoIcon = element(by.css('span > .journey-info-circle')); await ExploreCareersButton.click().then(function() { browser.sleep(2500); }); expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); 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.'); expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); expect(await Finance.getText()).toEqual('Finance'); expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { browser.sleep(2500); }); expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); await NextLink.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.'); expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration'); expect(await HealthScience.getText()).toEqual('Health Science'); expect(await CyberSecurity.getText()).toEqual('Cyber Security'); browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { browser.sleep(2500); }); expect(await InformationTechnology.getText()).toEqual('Information Technology'); expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); await NextLink.click().then(function() { browser.sleep(2500); }); browser.executeScript('window.scrollTo(0, 100);').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.'); expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); expect(await EducationAndTraining.getText()).toEqual('Education & Training'); expect(await Manufacturing.getText()).toEqual('Manufacturing'); browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { browser.sleep(2500); }); expect(await HumanServices.getText()).toEqual('Human Services'); await PreviousLink.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.'); expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration'); expect(await HealthScience.getText()).toEqual('Health Science'); expect(await CyberSecurity.getText()).toEqual('Cyber Security'); expect(await InformationTechnology.getText()).toEqual('Information Technology'); expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); await PreviousLink.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.'); expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); expect(await Finance.getText()).toEqual('Finance'); expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); browser.executeScript('window.scrollTo(0, 100);').then(function() { browser.sleep(2500); }); await FinanceSelectButton.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.'); expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning'); expect(await InsuranceServices.getText()).toEqual('Insurance Services'); expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services'); browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { browser.sleep(2500); }); expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management'); await BusinessFinancialManagementSelectButton.click().then(function() { browser.sleep(2500); }); browser.executeScript('window.scrollTo(0, 100);').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.'); expect(await FraudExaminersInvestigatorsAndAnalyst.getText()).toEqual('Fraud Examiners, Investigators and Analysts'); expect(await FraudExaminersInvestigatorsAndAnalystLearnMoreIcon.getText()).toEqual('Learn More'); expect(await FraudExaminersInvestigatorsAndAnalystMapIcon.getText()).toEqual('Map'); expect(await FraudExaminersInvestigatorsAndAnalystJourneymanIcon.getText()).toEqual('Journey'); expect(await FraudExaminersInvestigatorsAndAnalystVideoIcon.getText()).toEqual('Video'); await PathwaysLink.click().then(function() { browser.sleep(2500); }); browser.executeScript('window.scrollTo(0, 100);').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.'); expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning'); expect(await InsuranceServices.getText()).toEqual('Insurance Services'); expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services'); expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management'); 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.'); expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); expect(await Finance.getText()).toEqual('Finance'); expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); await BusinessManagementAndAdministrationSelectButton.click().then(function() { browser.sleep(2500); }); browser.executeScript('window.scrollTo(0, 100);').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.'); expect(await Management.getText()).toEqual('Management'); expect(await BusinessFinancialManagementAndAccounting.getText()).toEqual('Business Financial Management and Accounting'); expect(await BusinessAnalysis.getText()).toEqual('Business Analysis'); expect(await Marketing.getText()).toEqual('Marketing'); expect(await HumanResources.getText()).toEqual('Human Resources'); expect(await AdministrativeAndInformationSuport.getText()).toEqual('Administrative and Information Support'); await ManagementSelectButton.click().then(function() { browser.sleep(2500); }); browser.executeScript('window.scrollTo(0, 100);').then(function() { browser.sleep(2500); }); expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); await AdministrativeServicesManagersAtAGlanceIcon.click().then(function() { browser.sleep(2500); }); expect(await AdministrativeServicesManagersAtAGlanceTitle.getText()).toEqual('Administrative Services Managers'); expect(await AdministrativeServicesManagersAtAGlanceDescription.getText()).toEqual('Plan, direct, or coordinate one or more administrative services of an organization, such as records and information management, mail distribution, facilities planning and maintenance, custodial operations, and other office support services.'); await AdministrativeServicesManagersAtAGlanceXCloseIcon.click().then(function() { browser.sleep(2500); }); browser.executeScript('window.scrollTo(0, 100);').then(function() { browser.sleep(2500); }); //expect(await AdministrativeServicesManagersAtAGlanceBestMatchIcon.getText()).toContain('Best Fit'); EDM-1726 await AdministrativeServicesManagersEllipsis.click().then(function() { browser.sleep(2500); }); expect(await AdministrativeServicesManagersEllipsisTitle.getText()).toEqual('Administrative Services Managers'); expect(await AdministrativeServicesManagersEllipsisFollowIcon.getText()).toEqual('Follow'); expect(await AdministrativeServicesManagersEllipsisLearnMoreIcon.getText()).toEqual('Learn More'); expect(await AdministrativeServicesManagersEllipsisMapIcon.getText()).toEqual('Map'); expect(await AdministrativeServicesManagersEllipsisJourneymanIcon.getText()).toEqual('Journey'); expect(await AdministrativeServicesManagersEllipsisVideoIcon.getText()).toEqual('Video'); expect(await AdministrativeServicesManagersEllipsisAtAGlanceIcon.getText()).toEqual('At A Glance'); await AdministrativeServicesManagersEllipsisJourneymanIcon.click().then(function() { browser.sleep(5000); }); browser.waitForAngular(); browser.wait(EC.elementToBeClickable(AdministrativeServicesManagersJourneyInfoIcon)); browser.waitForAngular(); browser.getCurrentUrl(); }); } function InterestSurveyResultsCreateJourney() { it(': InterestSurveyResultsCreateJourney, should create a Journey to Top Interest Survey Result', async function () { var JourneySideBarHeaderOne = element(by.css('.side-bar-child-text > span')); var JourneyInfoIcon = element(by.css('span > .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 JourneyInfoDIVXCloseIcon = 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 JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding')); var JourneyResultTitleOne = element(by.css('#journeyitem0 .side-bar-child-text')); var JourneyResultTitleTwo = element(by.css('#journeyitem1 .side-bar-child-text')); var JourneyResultTitleThree = element(by.css('#journeyitem2 .side-bar-child-text')); var JourneySaveIcon = element(by.css('#journeyitem0 .mapActionBarActive > .fas')); var JourneyStopDIVTitle = element(by.css('.row:nth-child(1) > .col-md-12:nth-child(1)')); var JourneyStopDIVCertificateTitle = element(by.css('#awm0 .ng-binding')); var JourneyStopDIVDegreeTitle = element(by.css('#awm1 .ng-binding')); var JourneyStopDIVTitleCardOne = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .waypointCardTitle')); var JourneyStopDIVTitleCardTwo = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .waypointCardTitle')); var JourneyStopDIVTitleCardThree = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .waypointCardTitle')); var JourneyStopDIVSubText = element(by.css('#addWaypointsModalAddedWaypointsCarousel .ng-scope')); var JourneyStopDIVSkipLink = element(by.css('.btn-inverse')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey'); await JourneyInfoIcon.click().then(function() { 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 JourneyInfoDIVXCloseIcon.click().then(function() { browser.sleep(1000); }); await JourneyEntryPoint.click(); browser.waitForAngular(); await JourneyEntryPoint.sendKeys('9'); await SelectEntryPointDropDown.click(); browser.waitForAngular(); await StartYourJourneyButton.click(); browser.waitForAngular(); expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); expect(await JourneyResultTitleOne.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.'); expect(await JourneyResultTitleTwo.getText()).toEqual('9 to Administrative Services Managers through Business Administration Minor'); expect(await JourneyResultTitleThree.getText()).toEqual('9 to Administrative Services Managers through Master of Business Administration (MBA)'); browser.actions().mouseMove(JourneySaveIcon).perform().then(function() { browser.sleep(1000); }); await JourneySaveIcon.click().then(function() { browser.sleep(10000); }); expect(await JourneyStopDIVTitle.getText()).toEqual('Now that you have saved a journey, feel free to add any additional degree(s) and certification(s) to your journey by selecting from below!'); expect(await JourneyStopDIVCertificateTitle.getText()).toEqual('Certification'); expect(await JourneyStopDIVDegreeTitle.getText()).toEqual('Degree Program'); expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Certified Legal Manager'); expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Certified Medical Office Manager'); expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Strategic Meeting Management Certification'); expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.'); expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip'); await JourneyStopDIVSkipLink.click().then(function() { browser.sleep(5000); }); expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); expect(await JourneyResultTitleOne.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.'); await DashboardHeaderLink.click().then(function() { browser.sleep(5000); }); browser.waitForAngular(); browser.getCurrentUrl(); }); } function DeleteCreatedJourney() { it(': DeleteCreatedJourney, should navigate to My Journeys and delete recently created Journey', async function () { var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover')); var MyJourneysPageTitle = element(by.css('.jrnys_lead-body-copy')); var MyJourneysPageSubText = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); var MyJourneysSelectCreatedJourney = element(by.xpath("//span[contains(.,'9 to Administrative Services Managers through Business Administration B.A./B.S.')]")); var NinethGradeBubble = element(by.css('#mCSB_1_container > .firstWaypoint .lblClass')); var TenthGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(2) .lblClass')); var EleventhGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(3) .lblClass')); var TwelvethGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(4) .lblClass')); var BusinessAdministrationBABSBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(1)')); var AdministrativeServiceManagersBubble = element(by.css('.fullSize-Journey:nth-child(6) .triple-line > .lblClass:nth-child(1)')); var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info')); var MyJourneysTitleRow = element(by.css('.col-md-12 > .ng-binding')); var MyJourneysWayPointTitleRow = element(by.css('.select-waypointTitle')); var MyJourneysRightArrow = element(by.css('.glyphicon-menu-right')); var MyJourneysRemoveJourneyButton = element(by.css('#saveJourneyButton')); var MyJourneysDIVTite = element(by.css('h2')); var MyJourneysDIVSubText = element(by.css('p:nth-child(7)')); var MyJourneysDIVCancelButton = element(by.css('.cancel')); var MyJourneysDIVOKButton = element(by.css('.confirm')); var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info')); var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding')); var ActionTitleBar = element(by.css('#journey-view-single > .side-bar-child-text')); var EditJourneyLink = element(by.linkText('Edit Journey')); var JourneyEntryWayPointTopLevel = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var JourneyEntryWayPointCluster = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)')); var TenthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var TenthGradeWayPointCluster = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)')); var EleventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var EleventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)')); var TwelfthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var TwelfthGradeWayPointCluster = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)')); var CollegeStopWayPointTopLevel = element(by.css('#journeyViewToolTip_4 .ng-binding:nth-child(1)')); var CollegeStopWayPointCluster = element(by.css('#journeyViewToolTip_4 > .ng-isolate-scope .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var CollegeStopWayPointPathway = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)')); var JourneyExitWayPointTopLevel = element(by.css('#journeyViewToolTip_5 .ng-binding:nth-child(1)')); var JourneyExitWayPointCluster = element(by.css('#journeyViewToolTip_5 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var JourneyExitWayPointPathway = element(by.css('.disableJourneyItem:nth-child(5)')); var MyJourneysHowAmIDoingButton = element(by.css('.btn-success')); var MyJourneysSubText = element(by.css('.details-resourceRowTitle')); var MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer')); var MySavedJourneysTitleTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer')); var MySavedJourneysTitleThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer')); var MySavedJourneysTitleFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer')); await MyJourneysHeaderLink.click().then(function() { browser.sleep(2500); }); expect(await MyJourneysPageTitle.getText()).toEqual('My Saved Journeys'); expect(await MyJourneysPageSubText.getText()).toEqual('Select a Journey to show it on the map'); expect(await MyJourneysSelectCreatedJourney.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.'); expect(await NinethGradeBubble.getText()).toEqual('9'); expect(await TenthGradeBubble.getText()).toEqual('10'); expect(await EleventhGradeBubble.getText()).toEqual('11'); expect(await TwelvethGradeBubble.getText()).toEqual('12'); expect(await BusinessAdministrationBABSBubble.getText()).toEqual('Business'); expect(await AdministrativeServiceManagersBubble.getText()).toEqual('Administrativ'); await MyJourneysSelectCreatedJourney.click().then(function() { browser.sleep(2500); }); expect(await MyJourneysTitleRow.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.'); expect(await MyJourneysWayPointTitleRow.getText()).toEqual('9'); await MyJourneysRightArrow.click().then(function() { browser.sleep(1500); }); expect(await MyJourneysWayPointTitleRow.getText()).toEqual('10'); await MyJourneysRightArrow.click().then(function() { browser.sleep(1500); }); expect(await MyJourneysWayPointTitleRow.getText()).toEqual('11'); await MyJourneysRightArrow.click().then(function() { browser.sleep(1500); }); expect(await MyJourneysWayPointTitleRow.getText()).toEqual('12'); await MyJourneysRightArrow.click().then(function() { browser.sleep(1500); }); expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Business Administration B.A./B.S.'); await MyJourneysRightArrow.click().then(function() { browser.sleep(1500); }); expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Administrative Services Managers'); await MyJourneysRightArrow.click().then(function() { browser.sleep(1500); }); expect(await MyJourneysRemoveJourneyButton.getText()).toEqual('Remove Journey'); expect(await MyJourneysViewOnMap.getText()).toEqual('View On Map'); expect(await MyJourneysHowAmIDoingButton.getText()).toEqual('How am I doing?'); expect(await MyJourneysSubText.getText()).toEqual('Try these resources'); await MyJourneysViewOnMap.click().then(function() { browser.sleep(5000); }); expect(await JourneysActionTitleHeader.getText()).toEqual('Journey View'); expect(await ActionTitleBar.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.'); expect(await EditJourneyLink.getText()).toEqual('Edit Journey'); expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('HS'); expect(await JourneyEntryWayPointCluster.getText()).toEqual('9'); expect(await TenthGradeWayPointTopLevel.getText()).toEqual('HS'); expect(await TenthGradeWayPointCluster.getText()).toEqual('10'); expect(await EleventhGradeWayPointTopLevel.getText()).toEqual('HS'); expect(await EleventhGradeWayPointCluster.getText()).toEqual('11'); expect(await TwelfthGradeWayPointTopLevel.getText()).toEqual('HS'); expect(await TwelfthGradeWayPointCluster.getText()).toEqual('12'); expect(await CollegeStopWayPointTopLevel.getText()).toEqual('College'); expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration'); expect(await CollegeStopWayPointPathway.getText()).toEqual('Business Administration B.A./B.S.'); expect(await JourneyExitWayPointTopLevel.getText()).toEqual('Administration'); expect(await JourneyExitWayPointCluster.getText()).toEqual('Management'); expect(await JourneyExitWayPointPathway.getText()).toEqual('Administrative Services Managers'); await MyJourneysHeaderLink.click().then(function() { browser.sleep(2500); }); await MyJourneysSelectCreatedJourney.click().then(function() { browser.sleep(2500); }); await MyJourneysHowAmIDoingButton.click().then(function() { browser.sleep(2500); }); expect(await MyJourneysDIVTite.getText()).toEqual('Oops!'); expect(await MyJourneysDIVSubText.getText()).toEqual("Sorry, we can't give you a quiz for this."); expect(await MyJourneysDIVOKButton.getText()).toEqual('OK'); await MyJourneysDIVOKButton.click().then(function() { browser.sleep(2500); }); await MyJourneysRemoveJourneyButton.click().then(function() { browser.sleep(2500); }); expect(await MyJourneysDIVTite.getText()).toEqual('Are you sure?'); expect(await MyJourneysDIVSubText.getText()).toEqual('You will not be able to recover this journey!'); expect(await MyJourneysDIVCancelButton.getText()).toEqual('Cancel'); expect(await MyJourneysDIVOKButton.getText()).toEqual('Yes, delete it!'); await MyJourneysDIVOKButton.click().then(function() { browser.sleep(2500); }); expect(await MyJourneysDIVTite.getText()).toEqual('Deleted!'); expect(await MyJourneysDIVSubText.getText()).toEqual('Your journey has been deleted.'); await MyJourneysDIVOKButton.click().then(function() { browser.sleep(2500); }); await MyJourneysHeaderLink.click().then(function() { browser.sleep(2500); }); expect(await MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); expect(await MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); expect(await MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); expect(await MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); browser.waitForAngular(); browser.getCurrentUrl(); }); } 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(); browser.sleep(1000); await ProfileImage.click(); browser.sleep(1000); browser.waitForAngular(); browser.getCurrentUrl(); await SignOutButton.click().then(function() { browser.sleep(2500); }); }); }