//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.driver.manage().window().setSize(1600, 800); browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() { browser.sleep(1000); }); 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('QA_AutomatedRegression').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(); }); } //<<<>>> InterestSurveyResultsWidgetRetake(); InterestSurveyResultsWidgetEdit(); InterestSurveyResultsWidgetResults(); InterestSurveyResultsCreateJourney(); //Sign Out*/ SignOut(); }); 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 LoveItEmoji.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 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 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 LoveItEmoji.click();//35 await LoveItEmoji.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 LoveItEmoji.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 LoveItEmoji.click(); await LoveItEmoji.click(); await LikeItEmoji.click(); await LoveItEmoji.click(); await LikeItEmoji.click();//60 browser.sleep(5000); expect(await PageTitle.getText()).toEqual('Interest Survey Result'); 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 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) > .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 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 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('#aa3ce6df-8851-4f10-8341-a4b7cdac7b7d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); var AirTrafficControllers = element(by.css('#\\30 2c1f459-be14-4ea7-8229-404af8ccb881 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); 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 XCloseIcon = 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 EC = protractor.ExpectedConditions; //Scroll down to Interest Survey Results widget browser.executeScript('window.scrollTo(0, 612);').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); 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); }); 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 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().then(function() { browser.sleep(1000); }); 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.'); await XCloseIcon.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();//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 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')); 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'); 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); }); //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 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); }); }); }