From e5f6602220374f2eef61f6efd0a14b361f51e0a5 Mon Sep 17 00:00:00 2001 From: Juan Huerta Date: Wed, 16 Dec 2020 11:43:17 -0800 Subject: [PATCH] Cleaned up JA Folder --- _spec.js | 5009 ------------------------ beginCareerExplorationWidget_config.js | 35 - beginCareerExplorationWidget_spec.js | 560 --- createJourney_config.js | 35 - createJourney_spec.js | 1334 ------- fullTestSuite_config.js | 62 - institutionsWidget_config.js | 35 - institutionsWidget_spec.js | 208 - interestSurveyResultsWidget_config.js | 35 - interestSurveyResultsWidget_spec.js | 1050 ----- journeysmap_config.js | 29 - journeysmap_spec.js | 5009 ------------------------ learnMorePage_config.js | 35 - learnMorePage_spec.js | 810 ---- loginWithInstitution_config.js | 35 - loginWithInstitution_spec.js | 175 - myCareersWidget_config.js | 35 - myCareersWidget_spec.js | 559 --- myJourneysWidget_config.js | 35 - myJourneysWidget_spec.js | 419 -- myResourcesWidget_config.js | 35 - myResourcesWidget_spec.js | 101 - profileAndMyProgressWidgets_config.js | 35 - profileAndMyProgressWidgets_spec.js | 483 --- skillsMatcherResultsWidget_config.js | 35 - skillsMatcherResultsWidget_spec.js | 842 ---- topCareerWidget_config.js | 35 - topCareerWidget_spec.js | 971 ----- userProfile_config.js | 36 - userProfile_spec.js | 506 --- 30 files changed, 18583 deletions(-) delete mode 100644 _spec.js delete mode 100644 beginCareerExplorationWidget_config.js delete mode 100644 beginCareerExplorationWidget_spec.js delete mode 100644 createJourney_config.js delete mode 100644 createJourney_spec.js delete mode 100644 fullTestSuite_config.js delete mode 100644 institutionsWidget_config.js delete mode 100644 institutionsWidget_spec.js delete mode 100644 interestSurveyResultsWidget_config.js delete mode 100644 interestSurveyResultsWidget_spec.js delete mode 100644 journeysmap_config.js delete mode 100644 journeysmap_spec.js delete mode 100644 learnMorePage_config.js delete mode 100644 learnMorePage_spec.js delete mode 100644 loginWithInstitution_config.js delete mode 100644 loginWithInstitution_spec.js delete mode 100644 myCareersWidget_config.js delete mode 100644 myCareersWidget_spec.js delete mode 100644 myJourneysWidget_config.js delete mode 100644 myJourneysWidget_spec.js delete mode 100644 myResourcesWidget_config.js delete mode 100644 myResourcesWidget_spec.js delete mode 100644 profileAndMyProgressWidgets_config.js delete mode 100644 profileAndMyProgressWidgets_spec.js delete mode 100644 skillsMatcherResultsWidget_config.js delete mode 100644 skillsMatcherResultsWidget_spec.js delete mode 100644 topCareerWidget_config.js delete mode 100644 topCareerWidget_spec.js delete mode 100644 userProfile_config.js delete mode 100644 userProfile_spec.js diff --git a/_spec.js b/_spec.js deleted file mode 100644 index 0a56177..0000000 --- a/_spec.js +++ /dev/null @@ -1,5009 +0,0 @@ -//journeysmap_spec.js - -describe('Journeysmap 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'); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('Login'); - }); - - //Sign In - SignIn(UserNameTextBox, PasswordTextBox); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - function SignIn(UserNameTextBox, PasswordTextBox) { - it('should sign into journeysmap.com', async function () { - var PageGreetingText = element(by.css('td > div > div:nth-child(1)')); - var PageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)')); - var PageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope')); - var NextButton = element(by.css('.btn')); - var EC = protractor.ExpectedConditions; - var InvalidIcon = element(by.css('.far:nth-child(4)')); - var PageValidationText = element(by.css('.ng-binding:nth-child(1)')); - var EyeIcon = element(by.css('.fa-eye')); - 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('edmin123').then(function() { - browser.sleep(2500); - }); - expect(await PageSubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); - expect(await PageSubTextTwo.getText()).toEqual('Forgot your password? Click here.'); - await NextButton.click().then(function() { - browser.sleep(2500); - }); - browser.wait(EC.visibilityOf(InvalidIcon)); - expect(await PageValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); - await PasswordTextBox.click().then(function() { - browser.sleep(2500); - }); - browser.wait(EC.invisibilityOf(PageValidationText)); - await EyeIcon.click().then(function() { - browser.sleep(2500); - }); - await PasswordTextBox.clear().then(function() { - browser.sleep(1000); - PasswordTextBox.sendKeys('3Dm!nAuto'); - browser.sleep(1000); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - //<<<>>> - ProfileWidget(); - - MyProgressWidget(); - - InterestSurveyResultsWidget(); - InterestSurveyResultsClusters(); - InterestSurveyResultsCreateJourney(); - - SkillsAssessmentWidget(); - SkillsAssessmentResults(); - BeginCareerExploration(); - - MyCareersCarousel(); - - /*Top Career Widget - EditTopCareer(); - TopCareerWidget(); - NearbyPlacesOccupationCard(); - FollowingPage(); - AtAGlance(); - Personality(); - Wages(); - Degrees(); - Certificates(); - Institutions(); - TopResources(); - FindOpportunities(); - SubmitAResource(); - NearbyPlaces(); - Tasks(); - Technology(); - Knowledge(); - Skills(); - WorkActivities(); - Ability(); - - MyResourcesCarousel(); - - InstitutionsCarousel(); - - MyJourneys(); - - //<<<>>> - MyJourneysPage(); - - //<<<>>> - MapInteraction(); - - //<<<>>> - MyActivityJourneys(); - SurveyMetrics(); - Logins(); - InstitutionMetrics(); - InstitutionsOfInterest(); - OccupationMetrics(); - OccupationsOfInterest(); - - //<<<>>> - //Profile - AccountProfile(); - //Portfolio - AccountPortfolio(); - //Sign Out*/ - SignOut(); -}); - -function ProfileWidget() { - it(': ProfileWidget, should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () { - var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa')); - var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text')); - var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text')); - var FollowersDivTitle = element(by.css('.default-color2 > h3')); - var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)')); - var FollowersDivGotItButton = element(by.css('.btn-lg')); - var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy')); - var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil')); - var ABoutMeInputArea = element(by.id('inputArea')); - var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy')); - var RoleModelNameOne = element(by.css('.inner-content-padding > .textSize:nth-child(1)')); - var RoleModelNameTwo = element(by.css('.textSize:nth-child(2)')); - var EducationWidgetTitle = element(by.css('#education > .jrnys_lead-body-copy')); - var EducationStartEndDate = element(by.css('.col-xs-4 > .ng-binding:nth-child(1)')); - var EducationSchoolName = element(by.css('.col-xs-8')); - - expect(await ConnectionsLink.getText()).toEqual('CONNECTIONS'); - await FollowersLink.click().then(function() { - browser.sleep(1000); - }); - expect(await FollowersDivTitle.getText()).toEqual('This feature is on its way!'); - expect(await FollowersDivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next."); - await FollowersDivGotItButton.click().then(function() { - browser.sleep(1000); - }); - await ProfileWidgetExpandCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AboutMeWidgetTitle.getText()).toEqual('About Me'); - browser.actions().mouseMove(element(by.css('.ng-scope > #aboutMeFull'))).perform().then(function() { - browser.sleep(1000); - }); - await AboutMePencil.click().then(function() { - browser.sleep(1000); - }); - await ABoutMeInputArea.clear().then(function() { - browser.sleep(2500); - }); - await ABoutMeInputArea.sendKeys('This is my automated bio, there are many like it but this one is mine.'); - await AboutMePencil.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 780);').then(function() { - browser.sleep(2500); - }); - expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model'); - expect(await RoleModelNameOne.getText()).toEqual('Elon Musk'); - expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson'); - expect(await EducationWidgetTitle.getText()).toEqual('Education'); - expect(await EducationStartEndDate.getText()).toEqual('06/2005'); - expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await ProfileWidgetExpandCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyProgressWidget() { - it(': MyProgressWidget, should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { - var MyProgressWidgetTitle = element(by.css('.yourProgressTitle')); - var ProgressLevel = element(by.css('.myProgressLevel')); - var ProgressWidgetExpandIcon = element(by.css('.full-width .ng-scope')); - var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope')); - var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); - var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); - var ActionTwoRetake = element(by.linkText('Retake')); - var ActionRetakeTitlePage = element(by.css('.jrnys_lead-body-copy')); - var CancelButton = element(by.css('.btn-md')); - var ActionThree = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); - var ActionThreeCompleted = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); - var ActionThreeRetake = element(by.css('.col-md-3:nth-child(3) .redo')); - var ActionFour = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); - var ActionFourCompleted = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); - var ActionFourRetake = element(by.linkText('Keep Exploring')); - var KeepExploringTitlePage = element(by.css('.col-sm-12')); - var KeepExploringBackLink = element(by.css('.btn-primary-back-mod')); - var ProgressWidgetCollapseIcon = element(by.css('.full-width > div > .ng-scope')); - var InterestSurveyTitle = element(by.css('.jrnys_lead-body-copy')); - var TextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)')); - var TextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)')); - var TextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)')); - var EspanolButton = element(by.linkText('Español')); - var EnglishButton = element(by.linkText('English')); - var LanguageAlertDiv = element(by.css('p:nth-child(7)')); - var LanguageAlterConfirmButton = element(by.css('.confirm')); - var DislikeEmoji = element(by.id('emoji_0_0')); - var MehEmoji = element(by.id('emoji_0_1')); - var UnsureEmoji = element(by.id('emoji_0_2')); - var LikeItEmoji = element(by.id('emoji_0_3')); - var LoveItEmoji = element(by.id('emoji_0_4')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var CancelSurveyButton = element(by.css('.btn-md')); - var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); - var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS'); - expect(await ProgressLevel.getText()).toEqual('Level: Scout'); - await ProgressWidgetExpandIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionOneCompleted.getText()).toContain('Account Creation'); - expect(await ActionOneCompleted.getText()).toContain('Completed'); - expect(await ActionTwo.getText()).toContain('Interest Survey'); - expect(await ActionTwoCompleted.getText()).toContain('Completed'); - //Interest Survey page - validate English & Spanish text - await ActionTwoRetake.click().then(function() { - browser.sleep(5000); - }); - expect(await InterestSurveyTitle.getText()).toEqual('Interest Survey'); - expect(await TextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); - expect(await TextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); - expect(await TextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); - await LikeItEmoji.click(); - await PreviousQuestion.click(); - await EspanolButton.click().then(function() { - browser.sleep(5000) - }); - expect(await LanguageAlertDiv.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?'); - await LanguageAlterConfirmButton.click(); - expect(await TextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!'); - expect(await TextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.'); - expect(await TextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!'); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click().then(function() { - browser.sleep(5000) - }); - await CancelSurveyButton.click().then(function() { - browser.sleep(5000); - browser.waitForAngular(); - }); - browser.executeScript('window.scrollTo(0, 1405);').then(function() { - browser.sleep(5000); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); EDM-1726 - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(5000); - }); - //Take Interest Survey - await ActionTwoRetake.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - await EnglishButton.click(); - browser.waitForAngular(); - await DislikeEmoji.click(); - await MehEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click();//5 - await LoveItEmoji.click(); - await MehEmoji.click(); - await UnsureEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click();//10 - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//15 - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click();//20 - await DislikeEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click();//25 - await LoveItEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//30 - await DislikeEmoji.click(); - await MehEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click();//35 - await LoveItEmoji.click(); - await MehEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click();//40 - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//45 - await DislikeEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click();//50 - await DislikeEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click();//55 - await LoveItEmoji.click(); - await MehEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//60 - browser.sleep(5000); - expect(await PageTitle.getText()).toEqual('Interest Survey Result'); - browser.sleep(5000); - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionThree.getText()).toContain('Skills Assessment'); - expect(await ActionThreeCompleted.getText()).toContain('Completed'); - await ActionThreeRetake.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionRetakeTitlePage.getText()).toEqual('Skills Assessment'); - await CancelButton.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionFour.getText()).toContain('Explore Careers'); - expect(await ActionFourCompleted.getText()).toContain('Completed'); - await ActionFourRetake.click().then(function() { - browser.sleep(5000); - }); - expect(await KeepExploringTitlePage.getText()).toEqual('Career Exploration'); - await KeepExploringBackLink.click().then(function() { - browser.sleep(5000); - }); - await ProgressWidgetCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await FirstOccupationCardTitle.getText()).not.toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await SecondOccupationCardTitle.getText()).not.toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).not.toEqual('Administrative Services Managers'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResultsWidget() { - it(': InterestSurveyResultsWidget, 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 TopResultsReadMoreCloseLink = element(by.css('.close')); - var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); - var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var TopResultTitleTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div > .ng-binding')); - var TopResultDescriptionTwo = element(by.css('.ng-scope:nth-child(4) .surveyResultTruncateText')); - var TopResultsReadMoreLinkTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div:nth-child(2)')); - var TopResultTitleThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div > .ng-binding')); - var TopResultDescriptionThree = element(by.css('.ng-scope:nth-child(5) .surveyResultTruncateText')); - var TopResultsReadMoreLinkThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div:nth-child(2)')); - - var InterestResultsLink = element(by.css('div:nth-child(6) .fa-chart-bar')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var TopThreeTraitsHeader = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var TopThreeTraitsOne = element(by.css('.col-md-4:nth-child(1) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionOne = element(by.css('.col-md-4:nth-child(1) .ng-binding:nth-child(2)')); - var TopThreeTraitsTwo = element(by.css('.col-md-4:nth-child(2) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionTwo = element(by.css('.col-md-4:nth-child(2) .ng-binding:nth-child(2)')); - var TopThreeTraitsThree = element(by.css('.col-md-4:nth-child(3) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionThree = element(by.css('.col-md-4:nth-child(3) .ng-binding:nth-child(2)')); - var ViewAllLink = element(by.linkText('View All')); - var TopTraitsOne = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsOneDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsTwo = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsTwoDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var TopTraitsThree = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsThreeDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsFour = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsFourDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var TopTraitsFive = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsFiveDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsSix = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsSixDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var XCloseLink = element(by.css('.close')); - var ShareResultsIcon = element(by.css('.fa-share-alt')); - var ShareResultsDivTitle = element(by.css('#interestSurveyShareResult > .jrnys_lead-body-copy')); - var ToTextBox = element(by.css('tr:nth-child(2) .form-control')); - var FromTextBox = element(by.css('tr:nth-child(1) .form-control')); - var CancelButton = element(by.css('.btn-alt-info')); - var SendButton = element(by.css('tr:nth-child(7) .btn-info')); - var DivAlertTitle = element(by.css('h2')); - var DivAlertMessage = element(by.css('p:nth-child(7)')); - var DivOKButton = element(by.css('.confirm')); - var EC = protractor.ExpectedConditions; - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - 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); - expect(await InterestSurveyWidgetTitle.getText()).toEqual('Interest Survey Results'); - expect(await TopResultTitleOne.getText()).toEqual('Enterprising (27)'); - expect(await TopResultDescriptionOne.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); - await TopResultsReadMoreLinkOne.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultsReadMoreTitle.getText()).toEqual('Enterprising (27)'); - expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); - expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); - await TopResultsReadMoreCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultTitleTwo.getText()).toEqual('Investigative (25)'); - expect(await TopResultDescriptionTwo.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); - await TopResultsReadMoreLinkTwo.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultsReadMoreTitle.getText()).toEqual('Investigative (25)'); - expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); - expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); - await TopResultsReadMoreCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultTitleThree.getText()).toEqual('Conventional (23)'); - expect(await TopResultDescriptionThree.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); - await TopResultsReadMoreLinkThree.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultsReadMoreTitle.getText()).toEqual('Conventional (23)'); - expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); - expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); - await TopResultsReadMoreCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest');//loading issue, not consistent EDM-1726 - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit');//loading issue, not consistent EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - browser.executeScript('window.scrollTo(0, 610);').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 XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - await ShareResultsIcon.click(); - expect(await ShareResultsDivTitle.getText()).toEqual('Email Your Results'); - await SendButton.click(); - browser.sleep(1000); - expect(await DivAlertTitle.getText()).toEqual('No Email'); - expect(await DivAlertMessage.getText()).toEqual('Please provide at least one email address to send.'); - await DivOKButton.click(); - browser.waitForAngular(); - await ToTextBox.sendKeys('jhuerta@edmin'); - await SendButton.click(); - browser.sleep(1000); - expect(await DivAlertTitle.getText()).toEqual('Invalid Email'); - expect(await DivAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.'); - await DivOKButton.click(); - browser.sleep(1000); - await CancelButton.click(); - browser.waitForAngular(); - /*await ShareResultsIcon.click();//INCONSISTENT - await FromTextBox.clear(); - await FromTextBox.sendKeys("Juan's Automated Regression"); - await ToTextBox.sendKeys('jhuerta@edmin.com'); - browser.sleep(1000); - await SendButton.click(); - browser.sleep(2500); - await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!'); - await expect(DivAlertMessage.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); - await DivOKButton.click(); - browser.waitForAngular(); - browser.wait(EC.elementToBeClickable(ShareResultsIcon)); - browser.waitForAngular(); - browser.getCurrentUrl();*/ - }); -} - -function InterestSurveyResultsClusters() { - it(': InterestSurveyResultsClusters, should verify the Interest Survey Clusters widget and jump to learn more page', async function () { - var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); - var WidgetDescription = element(by.css('.row > span:nth-child(2)')); - var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); - var SelectButton = element(by.xpath('//territory-card-action-bar/div/button')); - var PathwaysLink = element(by.linkText('Pathways')); - var ClustersLink = element(by.linkText('Clusters')); - var BestMatchIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span')); - var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i')); - var JourneymanIcon = element(by.xpath('/html/body/div[1]/div/div[2]/div[3]/div/survey-result-career/div/div/div[2]/div[1]/div[1]/div/career-territory-card/territory-card/div/div[3]/div[2]/territory-card-more-back/div/div/div/div/div[4]/div[2]')) - var LearnMoreButton = element(by.xpath('//div/div/div/div/div[2]/div[2]')); - var EC = protractor.ExpectedConditions; - var JourneyInfoIcon = element(by.css('.journey-info-circle')); - - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); - await PathwaysLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - await ClustersLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - //expect(await BestMatchIcon.getText()).toContain('Best Fit'); EDM-1726 - await AtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - await AtAGlanceBackOfCardXCloseLink.click().then(function() { - browser.sleep(2500); - }); - await OccupationCardEllipsis.click().then(function() { - browser.sleep(2500); - }); - await JourneymanIcon.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.wait(EC.elementToBeClickable(JourneyInfoIcon)); - 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('.journey-info-circle')); - var JourneyInfoDivTitle = element(by.css('.col-lg-12 > .ng-binding')); - var JourneyInfoDivSubText = element(by.css('.col-lg-12:nth-child(3)')); - var JourneyInfoDivXCloseLink = element(by.css('.fa-times')); - var JourneyEntryPoint = element(by.css('.journeyInput')); - var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding')); - var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); - var JourneysSideBarHeaderTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); - var JourneySaveIcon = element(by.css('#journeyitem0 .mapActionBarActive > .fas')); - var JourneySaveDivTitle = element(by.css('h2')); - var JourneySaveDivDescription = element(by.css('p:nth-child(7)')); - var JourneyPersistButtonNo = element(by.css('.cancel')); - var JourneyPersistButtonYes = element(by.css('.confirm')); - var JourneyDetailsIcon = element(by.css('#journeyitem0 .journey-info-circle')); - var ActionTitleBar = element(by.css('.ng-binding:nth-child(2)')); - var Expand8thGradeSubJourney = element(by.css('.ng-scope:nth-child(4) > div > div .side-bar-journey-detail-child-txt:nth-child(5)')); - var ExpandSubjectMathematicsSubJourney = element(by.css('.ng-scope:nth-child(11) .side-bar-journey-detail-child-txt:nth-child(6)')); - var ExpandSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var UpOneLevelLink = element(by.css('div:nth-child(1) > .sidebarBackTxt')); - var EditJourneyLink = element(by.linkText('Edit Journey')); - var WayPointOne = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding')); - var WayPointTwo = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding')); - var WayPointThree = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding')); - var WayPointFour = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding')); - var WayPointFive = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding')); - var WayPointSix = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding')); - var SelectWayPointTwoEllipsis = element(by.css('.itemWaypoint:nth-child(2) > .dropdown > .fas')); - var DeleteLink = element(by.linkText('Delete')); - var DeleteDiv = element(by.css('.modal-content > .ng-scope div:nth-child(1)')); - var DeleteDivRemoveThisWaypoint = element(by.css('.btn:nth-child(3)')); - var cancel = element(by.css('.fa-times-circle')); - var ActionBarSaveIconOne = element(by.css('.mapActionBarActive:nth-child(2) > .fas')); - var Select12thGradeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(7) > .dropdown > .fas')); - var InsertAStop = element(by.linkText('Insert a Stop')); - var SixthGradeWayPoint = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding:nth-child(1)')); - var SeventhGradeWayPoint = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding:nth-child(1)')); - var EightGradeWayPoint = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding:nth-child(1)')); - var NinethGradeWayPoint = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding:nth-child(1)')); - var TenthGradeWayPoint = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding:nth-child(1)')); - var EleventhGradeWayPoint = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding:nth-child(1)')); - var TwelvethGradeWayPoint = element(by.css('.itemWaypoint:nth-child(7) > .itemTextContainer > .ng-binding:nth-child(1)')); - var ThirteenthWayPoint = element(by.css('.itemWaypoint:nth-child(8) > .itemTextContainer > .ng-binding:nth-child(1)')); - var FourteenthWayPoint = element(by.css('.itemWaypoint:nth-child(9) > .itemTextContainer > .ng-binding:nth-child(1)')); - var EditSearchText = element(by.css('.sidebarNoResults:nth-child(1)')); - var MapSearchTextBox = element(by.css('#searchBox')); - var MagnifyingGlassIcon = element(by.css('.glyphicon-search')); - var ActionTitleBarTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); - var CertificationResultsTab = element(by.css('#tab-item-6 > .ng-binding'));//#tab-item-2 > .ng-binding')); - var ThirdResultViewOnMapIconIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(6) > .fas'));//#tab-content-2 #searchitem2 div:nth-child(6) > .fas')); - var MapZoomInIcon = element(by.css('.glyphicon-plus')); - var ThirdResultAddIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon'));//#tab-content-2 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon')); - var FifteenthWayPoint = element(by.css('.itemWaypoint:nth-child(10) > .itemTextContainer > .ng-binding')); - var ActionBarSaveIconTwo = element(by.css('.fa-save')); - var MapZoomOutIcon = element(by.css('.glyphicon-minus')); - var SelectCollegeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(9) > .dropdown > .fas')); - var ReOrderLink = element(by.linkText('Re-order')); - var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding:nth-child(1)')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*short cut to create journey - var Results = element(by.css('div:nth-child(6) .fa-chart-bar')); - var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); - var Select = element(by.xpath('//territory-card-action-bar/div/button')); - var Journey = element(by.xpath('//action-journey/span')); - await Results.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await Select.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await Select.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await Journey.click().then(function() { - browser.sleep(5000); - });//end*/ - - /*short cut to retrieve journey - var MyJourneys = element(by.css('#nbMyJourneys .span-navbar-hover')); - var Journey = element(by.xpath('//div[2]/div/div/span')); - var ViewOnMap = element(by.css('.col-md-4 > .btn-info')); - await MyJourneys.click().then(function() { - browser.sleep(2500); - }); - await Journey.click().then(function() { - browser.sleep(2500); - }); - await ViewOnMap.click().then(function() { - browser.sleep(2500); - });//end - hide upto row 829*/ - - 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 JourneyInfoDivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await JourneyEntryPoint.click(); - browser.waitForAngular(); - await JourneyEntryPoint.sendKeys('6'); - await SelectEntryPointDropDown.click(); - browser.waitForAngular(); - await StartYourJourneyButton.click(); - browser.waitForAngular(); - expect(await JourneysSideBarHeaderTwo.getText()).toEqual('Journey Search Results'); - browser.actions().mouseMove(JourneySaveIcon).perform().then(function() { - browser.sleep(1000); - }); - await JourneySaveIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneySaveDivTitle.getText()).toEqual('Journey saved!'); - expect(await JourneySaveDivDescription.getText()).toEqual('Would you like this journey to persist on the map?'); - await JourneyPersistButtonYes.click().then(function() { - browser.sleep(2500); - }); - await JourneyDetailsIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); - await Expand8thGradeSubJourney.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(element(by.css('.ng-scope:nth-child(5) div:nth-child(2) .side-bar-journey-detail-child-txt:nth-child(5)'))).perform().then(function() { - browser.sleep(2500); - }); - await ExpandSubjectMathematicsSubJourney.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(JourneyDetailsIcon).perform().then(function() { - browser.sleep(2500); - }); - await ExpandSubJourney.click().then(function() { - browser.sleep(5000); - }); - await ExpandSubJourney.click().then(function() { - browser.sleep(5000); - }); - await ExpandSubJourney.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); - expect(await WayPointOne.getText()).toEqual('Geometry'); - expect(await WayPointTwo.getText()).toEqual('Expressions and Equations'); - expect(await WayPointThree.getText()).toEqual('Mathematical Practices'); - expect(await WayPointFour.getText()).toEqual('The Number System'); - expect(await WayPointFive.getText()).toEqual('Statistics and Probability'); - expect(await WayPointSix.getText()).toEqual('Functions'); - await SelectWayPointTwoEllipsis.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(DeleteLink).perform().then(function() { - browser.sleep(1000); - }); - await DeleteLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DeleteDiv.getText()).toEqual('Are you sure you want to remove Expressions and Equations from this journey?'); - await DeleteDivRemoveThisWaypoint.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); - expect(await WayPointOne.getText()).toEqual('Geometry'); - expect(await WayPointTwo.getText()).toEqual('Mathematical Practices'); - expect(await WayPointThree.getText()).toEqual('The Number System'); - expect(await WayPointFour.getText()).toEqual('Statistics and Probability'); - expect(await WayPointFive.getText()).toEqual('Functions'); - await ActionBarSaveIconOne.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); - expect(await SixthGradeWayPoint.getText()).toEqual('6'); - expect(await SeventhGradeWayPoint.getText()).toEqual('7'); - expect(await EightGradeWayPoint.getText()).toEqual('8'); - expect(await NinethGradeWayPoint.getText()).toEqual('9'); - expect(await TenthGradeWayPoint.getText()).toEqual('10'); - expect(await EleventhGradeWayPoint.getText()).toEqual('11'); - browser.actions().mouseMove(FourteenthWayPoint).perform().then(function() { - browser.sleep(1000); - }); - expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); - expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await FourteenthWayPoint.getText()).toEqual('Administrative Services Managers'); - await Select12thGradeWayPointEllipsis.click().then(function() { - browser.sleep(2500) - }); - browser.actions().mouseMove(InsertAStop).perform().then(function() { - browser.sleep(1000); - }); - await InsertAStop.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Add Stop'); - expect(await EditSearchText.getText()).toEqual('Use the search bar above to find a stop to add to your journey, or pick one from the map.'); - await MapSearchTextBox.sendKeys('Engineer').then(function() { - browser.sleep(2500); - }); - await MagnifyingGlassIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionTitleBarTwo.getText()).toEqual('Search Results'); - await CertificationResultsTab.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() { - browser.sleep(1000); - }); - await ThirdResultViewOnMapIconIcon.click().then(function() { - browser.sleep(5000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await ThirdResultAddIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await SixthGradeWayPoint.getText()).toEqual('6'); - expect(await SeventhGradeWayPoint.getText()).toEqual('7'); - expect(await EightGradeWayPoint.getText()).toEqual('8'); - expect(await NinethGradeWayPoint.getText()).toEqual('9'); - expect(await TenthGradeWayPoint.getText()).toEqual('10'); - expect(await EleventhGradeWayPoint.getText()).toEqual('11'); - browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { - browser.sleep(1000); - }); - expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); - expect(await ThirteenthWayPoint.getText()).toEqual('National Chief Engineer'); - expect(await FourteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); - await ActionBarSaveIconTwo.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000) - }); - /*browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { - browser.sleep(1000); - });*/ - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - await SelectCollegeWayPointEllipsis.click().then(function() { - browser.sleep(2500) - }); - await ReOrderLink.click().then(function() { - browser.sleep(2500) - }); - browser.actions().dragAndDrop(GrabCollegeWayPoint, ThirteenthWayPoint).mouseUp().perform(); - browser.sleep(2500) - expect(await SixthGradeWayPoint.getText()).toEqual('6'); - expect(await SeventhGradeWayPoint.getText()).toEqual('7'); - expect(await EightGradeWayPoint.getText()).toEqual('8'); - expect(await NinethGradeWayPoint.getText()).toEqual('9'); - expect(await TenthGradeWayPoint.getText()).toEqual('10'); - expect(await EleventhGradeWayPoint.getText()).toEqual('11'); - browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { - browser.sleep(1000); - }); - expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); - expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await FourteenthWayPoint.getText()).toEqual('National Chief Engineer'); - expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); - await ActionBarSaveIconOne.click().then(function() { - browser.sleep(2500); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SkillsAssessmentWidget() { - it(': SkillsAssessmentWidget, should take Skills Assessment', async function () { - var InterestRetakeLink = element(by.css('div:nth-child(2) > .fa-tasks')); - var SkillsAssessmentPageTitle = element(by.css('.jrnys_lead-body-copy')); - var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)')); - var SkillsSubQuestion = element(by.css('.questionText > .ng-binding:nth-child(2)')); - var BeginnerIcon = element(by.id('emoji_0_0')); - var BasicIcon = element(by.id('emoji_0_1')); - var SkilledIcon = element(by.id('emoji_0_2')); - var AdvancedIcon = element(by.id('emoji_0_3')); - var ExpertIcon = element(by.id('emoji_0_4')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var SkillsAssessmentResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var YourTop3SkillsWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var FitHeader = element(by.css('.active .jrnys_lead-body-copy')); - var BestFitHeaderOne = element(by.css('.item:nth-child(1) .ng-binding:nth-child(2) > .ng-binding')); - var DescriptionOne = element(by.css('.active .ng-binding:nth-child(2)')); - var BestFitHeaderTwo = element(by.css('.item:nth-child(1) .ng-binding:nth-child(3) > .ng-binding')); - var DescriptionTwo = element(by.css('.active .ng-binding:nth-child(3)')); - var BestFitHeaderThree = element(by.css('.item:nth-child(1) .ng-binding:nth-child(4) > .ng-binding')); - var DescriptionThree = element(by.css('.active .ng-binding:nth-child(4)')); - var CarrouselRightScroll = element(by.css('.glyphicon-chevron-right')); - var GreatFitHeaderOne = element(by.css('.item:nth-child(2) .ng-binding:nth-child(2) > .ng-binding')); - var GreatFitHeaderTwo = element(by.css('.item:nth-child(2) .ng-binding:nth-child(3) > .ng-binding')); - var GreatFitHeaderThree = element(by.css('.item:nth-child(2) .ng-binding:nth-child(4) > .ng-binding')); - var GoodFitHeaderOne = element(by.css('.item:nth-child(3) .ng-binding:nth-child(2) > .ng-binding')); - var GoodFitHeaderTwo = element(by.css('.item:nth-child(3) .ng-binding:nth-child(3) > .ng-binding')); - var GoodFitHeaderThree = element(by.css('.item:nth-child(3) .ng-binding:nth-child(4) > .ng-binding')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 610);').then(function() { - browser.sleep(2500); - }); - await InterestRetakeLink.click().then(function() { - browser.sleep(5000); - }); - expect(await SkillsAssessmentPageTitle.getText()).toEqual('Skills Assessment'); - expect(await SkillsQuestion.getText()).toEqual('Administration and Management'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about business planning and leadership?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Biology'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about plant, animal and cell functions?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Body Coordination'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you coordinate moving your arms, legs, and torso together?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Building and Construction'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about construction materials, methods, and tools?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Chemistry'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know chemistry?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Clerical'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about administrative tasks and processes?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Complex Problem Solving'); - expect(await SkillsSubQuestion.getText()).toEqual('How good are you at figuring out the best way to solve a problem?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Computers and Electronics'); - expect(await SkillsSubQuestion.getText()).toEqual('How effective are you at using electronic equipment?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Customer and Personal Service'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to handle customer needs and resolve service problems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); - await AdvancedIcon.click(); - browser.sleep(2500); - await PreviousQuestion.click(); - browser.sleep(2500); - expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Fine Arts'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theory and techniques of an art form such as music, painting, drama, or other?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Foreign Language'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know a foreign language?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Helping People'); - expect(await SkillsSubQuestion.getText()).toEqual('How good are you at understanding how to help people?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Instructing'); - expect(await SkillsSubQuestion.getText()).toEqual('How skilled are you at teaching people how to do something?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Management of Financial Resources'); - expect(await SkillsSubQuestion.getText()).toEqual('What level of financial decision-maker are you?'); - await ExpertIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Mathematics'); - expect(await SkillsSubQuestion.getText()).toEqual('What is your level of math skill?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Mechanical'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you design, use, repair, and maintain machines?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Medicine and Dentistry'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to provide health care?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Memorization'); - expect(await SkillsSubQuestion.getText()).toEqual('How good is your memory?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Monitoring'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you assess your or others’ work?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Negotiation'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you persuade others to see different points of view or compromise?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Operations Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze needs and requirements, then make a plan that meets them?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Personnel and Human Resources'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and procedures for recruiting, hiring, and training employees?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Production and Processing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you oversee manufacturing and distribution processes?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Programming'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you write computer programs?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Psychology'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the methods of research, assessment, and treatment of human behavior?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Public Safety and Security'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the equipment, policies, procedures, and strategies used to promote security operations?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Quality Control Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you develop and use testing processes?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Repairing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you repair machines or systems using the needed tools?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Sales and Marketing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you perform marketing strategies and tactics?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Science'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you use scientific rules and methods to solve problems?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Sociology and Anthropology'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theories of group behavior, societal trends and influences, and human culture?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Speaking'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you convey information when you speak?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Systems Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Teaching and Course Design'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods of instruction?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Telecommunications'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you understand telecom systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Therapy and Counseling'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods used in counseling?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Time Management'); - expect(await SkillsSubQuestion.getText()).toEqual("How well do you manage your and others' time?"); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Troubleshooting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you identify and fix problems in machines or technology?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Writing'); - expect(await SkillsSubQuestion.getText()).toEqual("How well does your writing effectively communicate to an audience's particular need?"); - await BeginnerIcon.click(); - browser.sleep(10000); - expect(await SkillsAssessmentResultPageTitle.getText()).toEqual('Skills Assessment Result'); - expect(await YourTop3SkillsWidgetTitle.getText()).toEqual('Your top 3 skills View All'); - //expect(await FitHeader.getText()).toEqual('BEST FIT'); EDM-1726 - expect(await BestFitHeaderOne.getText()).toEqual('Building and Construction'); - expect(await DescriptionOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await BestFitHeaderTwo.getText()).toEqual('Foreign Language'); - expect(await DescriptionTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await BestFitHeaderThree.getText()).toEqual('Management of Financial Resources'); - expect(await DescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - expect(await FitHeader.getText()).toEqual('GREAT FIT'); - expect(await GreatFitHeaderOne.getText()).toEqual('Administration and Management'); - expect(await DescriptionOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); - expect(await GreatFitHeaderTwo.getText()).toEqual('Chemistry'); - expect(await DescriptionTwo.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); - expect(await GreatFitHeaderThree.getText()).toEqual('Mathematics'); - expect(await DescriptionThree.getText()).toContain('Using math to solve problems.'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - expect(await FitHeader.getText()).toEqual('GOOD FIT'); - expect(await GoodFitHeaderOne.getText()).toEqual('Biology'); - expect(await DescriptionOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); - expect(await GoodFitHeaderTwo.getText()).toEqual('Body Coordination'); - expect(await DescriptionTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); - expect(await GoodFitHeaderThree.getText()).toEqual('Clerical'); - expect(await DescriptionThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - //expect(await FitHeader.getText()).toEqual('BEST FIT'); EDM-1726 - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SkillsAssessmentResults() { - it(': SkillsAssessmentResults, should interact with Skills Assessment widget and validate results', async function () { - var SkillsAssessmentWidgetTitle = element(by.css('.bigScreenHeader')); - var BestFitHeader = element(by.css('div:nth-child(2) > b')); - var SkillsResultsOneTitle = element(by.css('.ng-scope:nth-child(4) > div > div > .ng-binding:nth-child(1)')); - var SkillsResultsOneDescription = element(by.css('.ng-scope:nth-child(4) .skillProfilerResultTruncateText')); - var SkillsResultsTwoTitle = element(by.css('.skillProfilerResultsSpacing:nth-child(5) > div > div > .ng-binding')); - var SkillsResultsTwoDescription = element(by.css('.ng-scope:nth-child(5) .skillProfilerResultTruncateText')); - var SkillsResultsThreeTitle = element(by.css('.ng-scope:nth-child(6) > div > div > .ng-binding')); - var SkillsResultsThreeDescription = element(by.css('.ng-scope:nth-child(6) .skillProfilerResultTruncateText')); - var SkillsResultsLink = element(by.css('div:nth-child(7) .fa-chart-bar')); - var SkillsAssessmentResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var ViewAllLink = element(by.linkText('View All')); - var BestFitDivHeader = element(by.css('.row:nth-child(1) > .col-xs-10 > .jrnys_lead-body-copy')); - var DivHeaderOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding')); - var DivDescriptionOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2)')); - var DivHeaderTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding')); - var DivDescriptionTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3)')); - var DivHeaderThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding')); - var DivDescriptionThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4)')); - var DivHeaderFour = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(5) > .ng-binding')); - var DivDescriptionFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5)')); - var DivHeaderFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6) > .ng-binding')); - var DivDescriptionFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6)')); - var DivHeaderSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7) > .ng-binding')); - var DivDescriptionSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7)')); - var DivHeaderSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8) > .ng-binding')); - var DivDescriptionSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8)')); - var BestFitDivXCloseLink = element(by.css('.close')); - var SkillsResultCardOne = element(by.xpath('//div[2]/span')); - var SkillsResultCardTwo = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardThree = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardFour = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardFive = element(by.xpath('//div[2]/div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardSix = element(by.xpath('//div[2]/div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 610);').then(function() { - browser.sleep(5000); - }); - expect(await SkillsAssessmentWidgetTitle.getText()).toEqual('Skills Assessment Results'); - //expect(await BestFitHeader.getText()).toEqual('BEST FIT'); EDM-1726 - expect(await SkillsResultsOneTitle.getText()).toEqual('Building and Construction'); - expect(await SkillsResultsOneDescription.getText()).toEqual('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await SkillsResultsTwoTitle.getText()).toEqual('Foreign Language'); - expect(await SkillsResultsTwoDescription.getText()).toEqual('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await SkillsResultsThreeTitle.getText()).toEqual('Management of Financial Resources'); - expect(await SkillsResultsThreeDescription.getText()).toEqual('Making spending decisions and keeping track of what is spent.'); - await SkillsResultsLink.click().then(function() { - browser.sleep(5000); - }); - expect(await SkillsAssessmentResultPageTitle.getText()).toEqual('Skills Assessment Result'); - await ViewAllLink.click().then(function() { - browser.sleep(1000); - }); - //expect(await BestFitDivHeader.getText()).toEqual('BEST FIT'); EDM-1726 - expect(await DivHeaderOne.getText()).toEqual('Building and Construction'); - expect(await DivDescriptionOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await DivHeaderTwo.getText()).toEqual('Foreign Language'); - expect(await DivDescriptionTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await DivHeaderThree.getText()).toEqual('Management of Financial Resources'); - expect(await DivDescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); - expect(await DivHeaderFour.getText()).toEqual('Operations Analysis'); - expect(await DivDescriptionFour.getText()).toContain('Figuring out what a product or service needs to be able to do.'); - expect(await DivHeaderFive.getText()).toEqual('Personnel and Human Resources'); - expect(await DivDescriptionFive.getText()).toContain('Knowledge of principles and procedures for personnel recruitment, selection, training, compensation and benefits, labor relations and negotiation, and personnel information systems.'); - expect(await DivHeaderSix.getText()).toEqual('Programming'); - expect(await DivDescriptionSix.getText()).toContain('Writing computer programs.'); - expect(await DivHeaderSeven.getText()).toEqual('Quality Control Analysis'); - expect(await DivDescriptionSeven.getText()).toContain('Testing how well a product or service works.'); - await BestFitDivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]'))).perform().then(function() { - browser.sleep(2500); - }); - expect(await SkillsResultCardOne.getText()).toEqual('Business Management & Administration'); - expect(await SkillsResultCardTwo.getText()).toEqual('Architecture & Construction'); - expect(await SkillsResultCardThree.getText()).toEqual('Science, Technology, Engineering & Math'); - //Scroll to bottom of page - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await SkillsResultCardFour.getText()).toEqual('Transportation, Distribution & Logistics'); - expect(await SkillsResultCardFive.getText()).toEqual('Cyber Security'); - expect(await SkillsResultCardSix.getText()).toEqual('Finance'); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function BeginCareerExploration() { - it(': BeginCareerExploration, should interact with Begin Career Exploration widget', async function () { - var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy')); - var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td')); - var ExploreCareersButton = element(by.css('td > .btn-info')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 610);').then(function() { - browser.sleep(5000); - }); - expect(await BeginCareerExplorationTitle.getText()).toEqual('Begin Career Exploration'); - expect(await BeginCareerExplorationDescription.getText()).toEqual('We like your adventurous spirit. Search for a career that aligns with your interests and Learn More about it.'); - await ExploreCareersButton.click().then(function() { - browser.sleep(10000); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyCareersCarousel() { - it(': MyCareersCarousel, should cycle through Recommended Careers carousel and click the View More link', async function () { - var WidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var CarrouselRightScroll = element(by.xpath('//div[3]/table/tbody/tr/td/div/div/a[2]/span')); - var ViewMoreLink = element(by.linkText('View More')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var FollowFirstOccupationCardIcon = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); - var FilterIcon = element(by.css('.widgetControlContainer')); - var FilterTitle = element(by.css('tr:nth-child(1) > .ng-binding')); - var MyResultsHeader = element(by.css('#recommendedCareerFilter tr:nth-child(2) > td')); - var InterestSurveyResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); - var InterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > td > input')); - var SkillsAssessmentResults = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(2)')); - var SkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(4) input')); - var MyFollowing = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(2)')); - var MyFollowingCheckBox = element(by.css('.ng-scope:nth-child(5) input')); - var RequiredJobPrepHeader= element(by.css('#recommendedCareerFilter tr:nth-child(6) > td')); - var MayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(2)')); - var MayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(7) input')); - var HighSchoolDiploma = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(2)')); - var HighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(8) input')); - var VocationalTrainingOrAssociatesDegrees = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); - var VocationalTrainingOrAssociatesDegreesCheckBox = element(by.css('.ng-scope:nth-child(9) input')); - var FourYearBachelorDegrees = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); - var FourYearBachelorDegreesCheckBox = element(by.css('.ng-scope:nth-child(10) input')); - var GraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(11) > .ng-binding')); - var GraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(11) input')); - var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(12) > td')); - var Best = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); - var BestCheckBox = element(by.css('.ng-scope:nth-child(13) input')); - var Great = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); - var GreatCheckBox = element(by.css('.ng-scope:nth-child(14) input')); - var Good = element(by.css('.ng-scope:nth-child(15) > .ng-binding')); - var GoodCheckBox = element(by.css('.ng-scope:nth-child(15) input')); - var ShowResultsByHeader = element(by.css('#recommendedCareerFilter tr:nth-child(16) > td')); - var BrightOutlook = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); - var BrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(17) input')); - var Green = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); - var GreenCheckBox = element(by.css('.ng-scope:nth-child(18) input')); - var Apprenticeships = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); - var ApprenticeshipsCheckBox = element(by.css('.ng-scope:nth-child(19) input')); - var Following = element(by.css('.ng-scope:nth-child(20) > .ng-binding')); - var FollowingCheckBox = element(by.css('.ng-scope:nth-child(20) input')); - var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(21) > td')); - var AtoZ = element(by.css('#recommendedCareerFilter tr:nth-child(22) > td:nth-child(2)')); - var AtoZRadioButton = element(by.css('td > .ng-pristine')); - var ZtoA = element(by.css('#recommendedCareerFilter tr:nth-child(23) > td:nth-child(2)')); - var ZtoARadioButton = element(by.css('tr:nth-child(23) .ng-pristine')); - var FilterButton = element(by.css('td > .btn-info')); - var NoResultsFoundAppliedFilters = element(by.css('.col-md-10')); - var BackLink = element(by.css('.btn-primary-back-mod')); - var NoResultsFound = element(by.css('.table-height:nth-child(1) td')); - var RemoveLeftFilterButton = element(by.css('.statusBtn:nth-child(1)')); - var RemoveShowMyResultsByFilterButton = element(by.css('.statusBtn:nth-child(2)')); - var RemoveRightFilterButton = element(by.css('.statusBtn:nth-child(3)')); - var WidgetFilterIcon = element(by.css('.fa-filter')); - var FilterButtonTwo = element(by.css('tr:nth-child(24) .btn-info')); - var RemoveLastFilterButton = element(by.css('.statusBtn')); - var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); - var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - - /*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Careers View All'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await ViewMoreLink.click(); - browser.sleep(5000); - expect(await PageTitle.getText()).toEqual('My Careers'); - await FollowFirstOccupationCardIcon.click().then(function() { - browser.sleep(3000); - }); - await FilterIcon.click(); - browser.sleep(2500); - expect(await FilterTitle.getText()).toEqual('Filter'); - expect(await MyResultsHeader.getText()).toEqual('My Results'); - expect(await InterestSurveyResults.getText()).toContain('Interest Survey Results ('); - expect(await SkillsAssessmentResults.getText()).toContain('Skills Assessment Results ('); - await SkillsAssessmentResultsCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await MyFollowing.getText()).toEqual('My Following (5)'); - expect(await RequiredJobPrepHeader.getText()).toEqual('Required Job Prep'); - expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED ('); - await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await HighSchoolDiploma.getText()).toContain('High School Diploma ('); - expect(await VocationalTrainingOrAssociatesDegrees.getText()).toContain('Vocational Training or Associates Degree ('); - expect(await FourYearBachelorDegrees.getText()).toContain('4 Year Bachelor Degree ('); - expect(await GraduateSchoolOrProfessionalDegree.getText()).toContain('Graduate School or Professional Degree ('); - expect(await FitHeader.getText()).toEqual('Fit'); - expect(await Best.getText()).toContain('Best ('); - await BestCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await Great.getText()).toContain('Great ('); - expect(await Good.getText()).toContain('Good ('); - await GoodCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await ShowResultsByHeader.getText()).toEqual('Show Results By'); - expect(await BrightOutlook.getText()).toContain('Bright Outlook ('); - expect(await Green.getText()).toContain('Green ('); - expect(await Apprenticeships.getText()).toContain('Apprenticeship ('); - expect(await Following.getText()).toEqual('Following (5)'); - await FollowingCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await SortHeader.getText()).toEqual('Sort'); - expect(await AtoZ.getText()).toEqual('A to Z'); - expect(await ZtoA.getText()).toEqual('Z to A'); - await ZtoARadioButton.click().then(function() { - browser.sleep(1000); - }); - await FilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await NoResultsFoundAppliedFilters.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await BackLink.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await RemoveLeftFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await RemoveShowMyResultsByFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - await RemoveRightFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); - await FollowFirstOccupationCardIcon.click().then(function() { - browser.sleep(2500); - }); - await WidgetFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await Following.getText()).toEqual('Following (4)'); - await FollowingCheckBox.click().then(function() { - browser.sleep(1000); - }); - await FilterButtonTwo.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - await RemoveLastFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - browser.sleep(2500); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function EditTopCareer() { - it(': EditTopCareer, should edit Top Career', async function () { - var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy')); - var TopCareerEditIcon = element(by.css('.full-width .fa-pencil')); - var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon')); - var TopCareerDivCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info')); - var TopCareerGreenText = element(by.css('.default-color:nth-child(2)')); - var TopCareerGreenSubText = element(by.css('.textPosition')); - var TopCareerDivAddButton = element(by.css('.resetBtn')); - var TopCareerDivTitle = element(by.css('h2')); - var TopCareerDivSubTitle = element(by.css('.row:nth-child(5) > .col-lg-8')); - var TopCareerDivHandle = element(by.css('.col-lg-8 > label')); - var TopCareerDivTextBox = element(by.id('searchBox')); - var TopCareerDivSelection = element(by.xpath('//div[2]/div/ul/li[3]/a/span')); - var TopCareerDivSaveButton = element(by.css('.row:nth-child(12) #photoBtn')); - var TopCareerDescription = element(by.css('.jrEllipsis3Lines')); - - /*browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1880);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Top Career'); - browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - }); - await TopCareerEditIcon.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivXRemoveLink.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivCancelButton.click().then(function() { - browser.sleep(1000); - }); - expect(await TopCareerGreenText.getText()).toEqual('Top Career'); - expect(await TopCareerGreenSubText.getText()).toEqual("Head in the clouds? Share what Career you’re thinking about!"); - await TopCareerDivAddButton.click().then(function() { - browser.sleep(2500); - }); - //expect(await TopCareerDivTitle.getText()).toEqual('Dream big, reach higher!'); Not reading value - expect(await TopCareerDivSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?"); - expect(await TopCareerDivHandle.getText()).toEqual('Job Title'); - await TopCareerDivTextBox.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivTextBox.sendKeys('Computer'); - browser.sleep(2500); - browser.actions().mouseMove(TopCareerDivSelection).perform().then(function() { - browser.sleep(2500); - }); - await TopCareerDivSelection.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivSaveButton.click().then(function() { - browser.sleep(1000); - }); - expect(await TopCareerDescription.getText()).toEqual('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function TopCareerWidget() { - it(': TopCareerWidget, should click the Top Career link and interact with Learn More page', async function () { - var TopCareerLink = element(by.css('td>.jrnys_support-text')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); - var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding')); - var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)')); - var XCloseLink = element(by.css('.close')); - var VideoIcon = element(by.css('.text-right .far')); - var FollowIcon = element(by.css('.text-right > span .journey-follow')); - var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); - var AtAGlanceHeader = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy')); - var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4')); - var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize')); - var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span')); - var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4')); - var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize')); - var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize')); - var PersonalityWidgetTitle = element(by.css('.widget-round-corners:nth-child(3) .fullHeight .jrnys_lead-body-copy')); - var PersonalityDescriptionOne = element(by.css('.carouselHeight > .ng-scope > tbody > tr > td > .ng-binding')); - var PersonalityDescriptionTwo = element(by.css('.ng-scope > tbody > tr:nth-child(2) div')); - var PersonalityBulletOne = element(by.css('table:nth-child(1) .ng-scope:nth-child(1) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(1) > td:nth-child(2) > .ng-binding')); - var PersonalityBulletThree = element(by.css('table:nth-child(1) .ng-scope:nth-child(2) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(2) > td:nth-child(2) > .ng-binding')); - var PersonalityBulletFive = element(by.css('table:nth-child(1) .ng-scope:nth-child(3) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(3) > td:nth-child(2) > .ng-binding')); - var WagesWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .fullHeight .jrnys_lead-body-copy')); - var WagesInfoIcon = element(by.css('.jrnys_lead-body-copy > .journey-info-circle')); - var WagesSubTextOne = element(by.css('table:nth-child(2) > tbody > tr:nth-child(2) div:nth-child(1)')); - var WagesSubTextTwo = element(by.xpath('//occupation-wages/div/div[2]/table/tbody/tr[2]/td/div[2]')); - var WagesSubTextThree = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0')); - var WagesCloseBackOfCardIcon = element(by.css('.fa-times-rectangle')); - var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text')); - var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text')); - var WagesHighText = element(by.css('g:nth-child(6) > text')); - var WagesMedianText = element(by.css('g:nth-child(7) > text')); - var WagesLowText = element(by.css('g:nth-child(8) > text')); - var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text')); - var Wages50KText = element(by.css('g:nth-child(4) > g:nth-child(2) > text')); - var Wages100KText = element(by.css('g:nth-child(3) > text')); - var Wages150KText = element(by.css('g:nth-child(4) > text')); - var Wages200KText = element(by.css('g:nth-child(5) > text')); - var WagesChangeLocationLink = element(by.css('.dropdown > .widgetRightControlContainer')); - var ZipCodeTextBox = element(by.css('.ng-valid-maxlength:nth-child(1)')); - var ApplyButton = element(by.css('tr:nth-child(1) > td > .btn')); - var DegreesWidgetTitle = element(by.css('#liDegree .jrnys_lead-body-copy')); - var DegreesCardOneHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/div')); - var DegreesCardTwoHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/div')); - var DegreesCardThreeHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/div')); - var DegreesRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var CertificatesWidgetTitle = element(by.css('#liCertificate .jrnys_lead-body-copy')); - var CertificatesCardOneHeader = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/div/div/div/div/div/table/tbody/tr/td/div')); - var CertificatesCardOneSubHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/span')); - var CertificatesCardTwoHeader = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/div/div/div[2]/div/div/table/tbody/tr/td/div')); - var CertificatesCardTwoSubHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/span')); - var CertificatesCardThreeHeader = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/div/div/div[3]/div/div/table/tbody/tr/td/div')); - var CertificatesCardThreeSubHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/span')); - var CertificatesRightScroll = element(by.css('.widget-round-corners:nth-child(6) .right:nth-child(4) > .glyphicon:nth-child(1)')); - var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div')); - var InstitutionsCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsCardOneAtAGlance = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(1) > .territoryCardIcon:nth-child(1) > .fas:nth-child(1)')); - var InstitutionsBackOfCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(2) .territoryCardTitleText')); - var InstitutionsBackOfCard4YearHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)')); - var InstitutionsBackOfCard4YearData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)')); - var InstitutionsBackOfCardUndergradHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)')); - var InstitutionsBackOfCardUndergradData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding')); - var InstitutionsBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText')); - var InstitutionsBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div')); - var InstitutionsBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText')); - var InstitutionsBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div')); - var InstitutionsCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); - var TopResourcesWidgetTitle = element(by.css('#id .jrnys_lead-body-copy')); - var TopResourcesCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .hotTitles')); - var TopResourcesCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .hotTitles')); - var TopResourcesCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .hotTitles')); - var TopResourcesRightScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var TopResourcesLeftScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a/span')); - var TopResourcesCardThreeSaveIcon = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .journey-save:nth-child(1)')); - var FindOpportunitiesWidgetTitle = element(by.css('.widgetTitleContainerFindJob > .noPaddingCol')); - var FindOpportunitiesSubText = element(by.css('.col-sm-12:nth-child(2)')); - var JobsTotalsLink = element(by.css('.col-sm-8 .job-title-display')); - var JobListingsDivHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); - var InternshipsTotalsLink = element(by.xpath('//div[2]/div/div[2]/div/div')); - var InternshipsListingsDivHeader = element(by.css('h6:nth-child(2) > .ng-binding')); - var ApprenticeshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)')); - var FindOpportunitiesChangeLocationLink = element(by.css('.text-right:nth-child(2)')); - var ChangeLocationDivTitle = element(by.css('b')); - var ChangeLocationDivSubTitle = element(by.css('.col-xs-11:nth-child(2)')); - var ChnageLocationEnterZipCodeTextBox = element(by.css('#inputZip')); - var ChangeLocationApplyButton = element(by.css('#indeedQuery')); - var SubmitResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12')); - var SubmitResourceWidgetSubTextOne = element(by.css('.row:nth-child(2) > .jrnys_body-copy:nth-child(1)')); - var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1')); - var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy')); - var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.row > .row > .col-xs-9 > .ng-binding')); - var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)')); - var MyResourceFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span')); - var MyResourceLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)')); - var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1')); - var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12')); - var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text')); - var SubmitAResourceDivTitle = element(by.css('h3')); - var SubmitAResourceDivCancelButton = element(by.css('.btn-blue-RoundTabsinfo')); - var TasksWidgetTitle = element(by.css('#tasksid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var TasksRowOne = element(by.css('#tasksid .ng-scope:nth-child(1) > .no-padding:nth-child(1)')); - var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .no-padding:nth-child(3)')); - var CategoryStatOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(4)')); - var TechnologyWidgetTitle = element(by.css('#technologyid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var KnowledgeWidgetTitle = element(by.css('#knowledgeid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var SkillsWidgetTitle = element(by.css('#skillsid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var WorkActivitiesWidgetTitle = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var AbilityWidgetTitle = element(by.css('#abilitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var NearbyPlacesWidgetTitle = element(by.css('#liNearby .jrnys_lead-body-copy')); - var NearbyPlacesCardOneHeader = element(by.xpath('//div[3]/div/div[2]/span')); - var NearbyPlacesCardTwoHeader = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var NearbyPlacesCardThreeHeader = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var NearbyPlacesLeftScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a/span')); - //var NearbyPlacesRightScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-right')); - //var NearbyPlacesLeftScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-left')); - - browser.executeScript('window.scrollTo(0, 1880);').then(function() { - browser.sleep(2500); - });//remove*/ - - await TopCareerLink.click().then(function() { - browser.sleep(10000); - }); - /*Description remove - expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists'); - await DescriptionDetail.click().then(function() { - browser.sleep(1000); - }); - expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - expect(await DescriptionSubText.getText()).toContain('Other Jobs:'); - expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Control System Computer Scientist; Scientific Programmer Analyst'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(VideoIcon).perform().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(FollowIcon).perform().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(JourneymanIcon).perform().then(function() { - browser.sleep(1000); - }); - //At A Glance - expect(await AtAGlanceHeader.getText()).toEqual('At A Glance'); - expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 59%"); - expect(await AtAGlanceStatOne.getText()).toContain("Associate's degree - 0%"); - expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 0%'); - expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520'); - expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceSubHeaderThree.getText()).toEqual(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain('19.2%'); - expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceStatFour.getText()).toEqual('2,500'); - expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceStatFive.getText()).toEqual('27,900'); - browser.executeScript('window.scrollTo(0, 405);').then(function() { - browser.sleep(2500); - }); - /*browser.actions().mouseMove(DegreesWidgetTitle).perform().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(5) #id > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - /*Personality remove - expect(await PersonalityWidgetTitle.getText()).toEqual('Personality'); - expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.'); - expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:'); - expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking'); - expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation'); - expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail'); - expect(await PersonalityBulletFour.getText()).toEqual('Independence'); - expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort'); - expect(await PersonalityBulletSix.getText()).toEqual('Initiative'); - //Wages - expect(await WagesWidgetTitle.getText()).toContain('Wages'); - await WagesInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await WagesSubTextOne.getText()).toEqual('Data provided by the Bureau of Labor Statistics.'); - expect(await WagesSubTextTwo.getText()).toEqual('For more information please visit:'); - expect(await WagesSubTextThree.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'); - await WagesCloseBackOfCardIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await WagesWidgetTitle.getText()).toContain('Change Location'); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('San Diego-Carlsbad, CA'); - expect(await WagesHighText.getText()).toEqual('High'); - expect(await WagesMedianText.getText()).toEqual('Median'); - expect(await WagesLowText.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await Wages50KText.getText()).toEqual('$50,000'); - expect(await Wages100KText.getText()).toEqual('$100,000'); - expect(await Wages150KText.getText()).toEqual('$150,000'); - expect(await Wages200KText.getText()).toEqual('$200,000'); - await WagesChangeLocationLink.click().then(function() { - browser.sleep(1000); - }); - await ZipCodeTextBox.click(); - await ZipCodeTextBox.clear(); - await ZipCodeTextBox.sendKeys('85013').then(function() { - browser.sleep(1000); - }); - await ApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ'); - /*browser.actions().mouseMove(CertificatesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 882);').then(function() { remove - browser.sleep(2495); - }); - //Degrees - expect(await DegreesWidgetTitle.getText()).toEqual('Degrees'); - expect(await DegreesCardOneHeader.getText()).toEqual('Computer Applications Minor—College-Wide'); - expect(await DegreesCardTwoHeader.getText()).toEqual('Computer Science B.S.'); - expect(await DegreesCardThreeHeader.getText()).toEqual('Computer Science M.S.'); - await DegreesRightScroll.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(InstitutionsWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 1360);').then(function() { remove - browser.sleep(2500); - }); - //Certificates - expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); - expect(await CertificatesCardOneHeader.getText()).toEqual('Certified Associate LabVIEW Developer'); - expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); - expect(await CertificatesCardTwoHeader.getText()).toEqual('Certified LabVIEW Architect'); - expect(await CertificatesCardTwoSubHeader.getText()).toEqual('Business Analysis'); - expect(await CertificatesCardThreeHeader.getText()).toEqual('Certified Biometrics Professional'); - expect(await CertificatesCardThreeSubHeader.getText()).toEqual('Business Financial Mgmt & Acctg'); - await CertificatesRightScroll.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(TopResourcesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 1995);').then(function() { remove - browser.sleep(2500); - }); - //Institutions - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); - expect(await InstitutionsCardOneHeader.getText()).toEqual('University of San Diego'); - await InstitutionsCardOneAtAGlance.click().then(function() { - browser.sleep(2500) - }); - expect(await InstitutionsBackOfCardOneHeader.getText()).toEqual('University of San Diego'); - expect(await InstitutionsBackOfCard4YearHeader.getText()).toEqual('4 Year'); - expect(await InstitutionsBackOfCard4YearData.getText()).toEqual('Private nonprofit'); - expect(await InstitutionsBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students'); - expect(await InstitutionsBackOfCardUndergradData.getText()).toEqual('5,677'); - expect(await InstitutionsBackOfCardLocationHeader.getText()).toContain('Location'); - expect(await InstitutionsBackOfCardLocationData.getText()).toEqual('City'); - expect(await InstitutionsBackOfCardClassroomHeader.getText()).toContain('Classrooms'); - expect(await InstitutionsBackOfCardClassroomData.getText()).toEqual('Medium'); - expect(await InstitutionsCardTwoHeader.getText()).toEqual('National University'); - expect(await InstitutionsCardThreeHeader.getText()).toEqual('Point Loma Nazarene University'); - await InstitutionsRightScroll.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(FindOpportunitiesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 2470);').then(function() { remove - browser.sleep(2500); - }); - //Top Resources - expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All'); - expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - browser.sleep(2500); - await TopResourcesRightScroll.click().then(function() { - browser.sleep(2500); - }); - await TopResourcesLeftScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResourcesCardThreeSaveIcon.click().then(function() { - browser.sleep(2500); - }); - /*browser.actions().mouseMove(TasksWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 2947);').then(function() { remove - browser.sleep(2500); - }); - //Find Opportunities - expect(await FindOpportunitiesWidgetTitle.getText()).toEqual('Find Opportunities'); - expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 50 mile radius of 92123.'); - expect(await JobsTotalsLink.getText()).toContain('Jobs'); - //expect(await JobsTotalsLink.getText()).toContain('85');//stored value needed - expect(await InternshipsTotalsLink.getText()).toContain('Internships'); - //expect(await InternshipsTotalsLink.getText()).toContain('0');//stored value needed - expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');//value sometimes is disabled - //expect(await ApprenticeshipsTotalsLink.getText()).toContain('0');//stored value needed - await FindOpportunitiesChangeLocationLink.click().then(function() { - browser.sleep(1000); - }); - expect(await ChangeLocationDivTitle.getText()).toEqual('Change Location'); - expect(await ChangeLocationDivSubTitle.getText()).toEqual("Let's search the location you're most interested in."); - await ChnageLocationEnterZipCodeTextBox.sendKeys('85013'); - browser.sleep(1000); - element(by.cssContainingText('option', '1000')).click().then(function() { - browser.sleep(1000); - }); - await ChangeLocationApplyButton.click().then(function() { - browser.sleep(1000); - }); - expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 1000 mile radius of you.'); - await JobsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await JobListingsDivHeader.getText()).toContain('Job Listings:');//stored value needed - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - /*await InternshipsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InternshipsListingsDivHeader.getText()).toContain('Internships: ');//stored value needed - await XCloseLink.click().then(function() { - browser.sleep(1000); - });*/ - /*expect(await JobsTotalsLink.getText()).toEqual('Jobs'); remove - //expect(await JobsTotalsLink.getText()).toContain('68');//stored value needed - expect(await InternshipsTotalsLink.getText()).toEqual('Internships'); - //expect(await InternshipsTotalsLink.getText()).toContain('0');//stored value needed - expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships'); - //expect(await Totals.getText()).toContain('3');//stored value needed - //Submit A Resource - expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource'); - expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources"); - expect(await TotalInJourneys.getText()).toContain('Total in Journeys'); - expect(await TotalInJourneys.getText()).toContain('1'); - await MySubmittedResourcesLink.click().then(function() { - browser.sleep(1000); - }); - expect(await MySubmittedResourcesWidgetTitle.getText()).toContain('My Submitted Resources'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - await EllipsisResource.click().then(function() { - browser.sleep(1000); - }); - expect(await MyResourceFollowIcon.getText()).toEqual('Follow'); - expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await ForThisMapPoint.getText()).toContain('For this map point'); - expect(await ForThisMapPoint.getText()).toContain('0'); - expect(await SubmitResourceWidgetSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); - await SubmitAResourceWidgetButton.click().then(function() { - browser.sleep(1000); - }); - expect(await SubmitAResourceDivTitle.getText()).toEqual('Submit a Resource'); - await SubmitAResourceDivCancelButton.click().then(function() { - browser.sleep(1000); - }); - /*browser.actions().mouseMove(KnowledgeWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 3225);').then(function() { - browser.sleep(25000); - }); - //Tasks - expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All'); - expect(await TasksRowOne.getText()).toEqual('Analyze problems to develop solutions in...'); - expect(await ImportanceStatOne.getText()).toEqual('82%'); - expect(await CategoryStatOne.getText()).toEqual('Core'); - //Technology - expect(await TechnologyWidgetTitle.getText()).toEqual('Technology View All'); - browser.sleep(1000); - /*browser.actions().mouseMove(WorkActivitiesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 3600);').then(function() { - browser.sleep(25000); - }); - //Knowledge - expect(await KnowledgeWidgetTitle.getText()).toEqual('Knowledge View All'); - //Skills - expect(await SkillsWidgetTitle.getText()).toEqual('Skills View All'); - browser.sleep(1000); - /*browser.actions().mouseMove(NearbyPlacesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 3743);').then(function() { remove - browser.sleep(2500); - }); - //Work Activities - expect(await WorkActivitiesWidgetTitle.getText()).toEqual('Work Activities View All'); - //Ability - expect(await AbilityWidgetTitle.getText()).toEqual('Ability View All'); - //Nearby Places - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(5000); - }); - expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places'); - expect(await NearbyPlacesCardOneHeader.getText()).toEqual('Computer and Information Systems Managers'); - expect(await NearbyPlacesCardTwoHeader.getText()).toEqual('Computer Network Architects'); - expect(await NearbyPlacesCardThreeHeader.getText()).toEqual('Computer Network Support Specialists'); - await NearbyPlacesRightScroll.click(); - browser.sleep(2500); - await NearbyPlacesLeftScroll.click(); - browser.sleep(2500);*/ - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function NearbyPlacesOccupationCard() { - it(': NearbyPlacesOccupationCard, should interact with Occupation cards on Nearby Places widget of Learn More page, then navigate to Following page an unfollow occupation', async function () { - var OccupationCardTitle = element(by.xpath('//territory-card/div/div/div[3]/div/div[2]/span')); - var OccupatonCardFollow = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); - var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardTitle = element(by.xpath('//territory-card/div/div[2]/div/div')); - var AtAGlanceBackOfCardDescription = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div')); - var AtAGlanceTypicalDegreeTitle = element(by.xpath('//div/div/div[2]/div/div/table/tbody/tr/td[2]/div')); - var AtAGlanceCollege = element(by.xpath('//tr[2]/td[2]/div')); - var AtAGlanceMasters = element(by.xpath('//tr[3]/td[2]/div')); - var AtAGlanceAssociates = element(by.xpath('//tr[4]/td[2]/div')); - var AtAGlanceSalary = element(by.xpath('//tr[16]/td[2]/div')); - var AtAGlanceSalaryStat = element(by.xpath('//tr[17]/td[2]/div')); - var AtAGlanceGrowth = element(by.xpath('//tr[19]/td[2]/div')); - var AtAGlanceGrowthStat = element(by.xpath('//tr[20]/td[2]/div')); - var AtAGlanceGrowthAverage = element(by.xpath('//td[2]/div[2]')); - var AtAGlanceJobOpenings = element(by.xpath('//tr[22]/td[2]/div')); - var AtAGlanceJobOpeningsStat = element(by.xpath('//tr[23]/td[2]/div')); - var AtAGlanceEmployed = element(by.xpath('//tr[25]/td[2]/div')); - var AtAGlanceEmployedStat = element(by.xpath('//tr[26]/td[2]/div')); - var AtAGlanceXCloseLink = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .glyphicon:nth-child(1)')); - var OccupationCardEllipsis = element(by.xpath('//territory-card/div/div/div/div[2]/div/i')); - var BackOfCardTitle = element(by.xpath('//territory-card/div/div[3]/div/div')); - var BackOfCardUnFollow = element(by.xpath('//territory-card-more-back/div/div/div/div/div/div[2]')); - var BackOfCardLearnMore = element(by.xpath('//territory-card-more-back/div/div/div/div/div[2]/div[2]')); - var BackOfCardMap = element(by.xpath('//territory-card-more-back/div/div/div/div/div[3]/div[2]')); - var BackOfCardJourney = element(by.xpath('//territory-card-more-back/div/div/div/div/div[4]/div[2]')); - var BackOfCardVideo = element(by.xpath('//territory-card-more-back/div/div/div/div/div[5]/div[2]')); - var BackOfCardAtAGlanceIcon = element(by.xpath('//div/div/div/div/div[6]/div[2]')); - var OccupationCardLearnMoreIcon = element(by.xpath('//action-learn-more/i')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - //var BackLink = element(by.css('.btn-primary-back-mod')); Not taking you back to LM page, takes you back to dashboard - var OccupationCardMapIcon = element(by.xpath('//action-map/i')); - var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)')); - var ObjectTitle = element(by.css('.side-bar-child-text:nth-child(2)')); - var ItemDescription = element(by.css('.sidebarDescription')); - var OccupationCardJourneymanIcon = element(by.xpath('//action-journey/span')); - var JourneySideBarHeader = element(by.css('.side-bar-child-text > span')); - var OccupationCardVideoIcon = element(by.xpath('//div[4]/career-one-stop-video/i')); - var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding')); - var XCloseVideoDivLink = element(by.css('.close:nth-child(2)')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - expect(await OccupationCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - await OccupatonCardFollow.click().then(function() { - browser.sleep(2500); - }); - await AtAGlanceHeaderRowIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await AtAGlanceTypicalDegreeTitle.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceCollege.getText()).toEqual('College (4 Year) - 48%'); - expect(await AtAGlanceMasters.getText()).toEqual("Some college - 26%"); - expect(await AtAGlanceAssociates.getText()).toEqual("Master's degree - 14%"); - expect(await AtAGlanceSalary.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceSalaryStat.getText()).toEqual('$139,220'); - expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceGrowthStat.getText()).toEqual('12%'); - expect(await AtAGlanceGrowthAverage.getText()).toEqual('ABOVE AVERAGE'); - expect(await AtAGlanceJobOpenings.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceJobOpeningsStat.getText()).toEqual('32,500'); - expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceEmployedStat.getText()).toEqual('367,600'); - await AtAGlanceXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await OccupationCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - await OccupationCardEllipsis.click().then(function() { - browser.sleep(1000); - }); - expect(await BackOfCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await BackOfCardUnFollow.getText()).toEqual('Follow'); - expect(await BackOfCardLearnMore.getText()).toEqual('Learn More'); - expect(await BackOfCardMap.getText()).toEqual('Map'); - expect(await BackOfCardJourney.getText()).toEqual('Journey'); - expect(await BackOfCardVideo.getText()).toEqual('Video'); - await BackOfCardAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await AtAGlanceTypicalDegreeTitle.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceCollege.getText()).toEqual('College (4 Year) - 48%'); - expect(await AtAGlanceMasters.getText()).toEqual("Some college - 26%"); - expect(await AtAGlanceAssociates.getText()).toEqual("Master's degree - 14%"); - expect(await AtAGlanceSalary.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceSalaryStat.getText()).toEqual('$139,220'); - expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceGrowthStat.getText()).toEqual('12%'); - expect(await AtAGlanceGrowthAverage.getText()).toEqual('ABOVE AVERAGE'); - expect(await AtAGlanceJobOpenings.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceJobOpeningsStat.getText()).toEqual('32,500'); - expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceEmployedStat.getText()).toEqual('367,600'); - await AtAGlanceXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await OccupationCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - await OccupationCardLearnMoreIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Systems Managers'); - browser.navigate().back().then(function() { - browser.sleep(10000); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - await OccupationCardMapIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await ObjectPath.getText()).toEqual('IT > Network Systems >'); - expect(await ObjectTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await ItemDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - browser.navigate().back().then(function() { - browser.sleep(10000); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - await OccupationCardJourneymanIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey'); - browser.navigate().back().then(function() { - browser.sleep(10000); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - await OccupationCardVideoIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await VideoTitle.getText()).toEqual('Computer and Information Systems Managers'); - await XCloseVideoDivLink.click().then(function() { - browser.sleep(1000); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function FollowingPage() { - it(': FollowingPage, should navigate to Following page and delete 3rd card', async function () { - var FollowingLink = element(by.css('.col-md-3:nth-child(4) .jrnys_stand-out-text')); - var ConnectionsTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(1)')); - var DivTitle = element(by.css('.default-color2 > h3')); - var DivSubText = element(by.css('.col-lg-12:nth-child(1)')); - var DivGotItButton = element(by.css('.row > .btn')); - var FollowersTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(2)')); - var DivCloseLlink = element(by.css('.glyphicon-remove')); - var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected')); - var SoftwareDevelopersApplicationsTitle = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.title.ng-binding')); - var SoftwareDevelopersApplicationsPathway = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.subtitle.ng-binding')); - var SoftwareDevelopersApplicationsUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(3) > td > div:nth-child(1) > div > span:nth-child(2) > social-follow-icon > span > i')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - await FollowingLink.click().then(function() { - browser.sleep(5000); - }); - await ConnectionsTab.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('This feature is on its way!'); - expect(await DivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next."); - await DivGotItButton.click().then(function() { - browser.sleep(1000); - }); - await FollowersTab.click().then(function() { - browser.sleep(1000); - }); - await DivCloseLlink.click().then(function() { - browser.sleep(1000); - }); - expect(await FollowingTab.getText()).toEqual('Following'); - expect(await SoftwareDevelopersApplicationsTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SoftwareDevelopersApplicationsPathway.getText()).toEqual('Information Technology'); - await SoftwareDevelopersApplicationsUnfollowIcon.click().then(function() { - browser.sleep(2500); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function AtAGlance() { - it(': AtAGlance, should click the At A Glance link and validate data', async function () { - var AtAGlanceLink = element(by.css('tr:nth-child(3) > td:nth-child(1) > .text-color-7a')); - var AtAGlanceWidgetTitle = element(by.css('.widgetHeaderContainer > .jrnys_lead-body-copy')); - var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4')); - var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize')); - var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span')); - var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4')); - var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize')); - var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize')); - var XCloseLink = element(by.css('.close')); - - //browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { - browser.executeScript('window.scrollTo(0, 1883);').then(function() { - browser.sleep(2500); - }); - await AtAGlanceLink.click().then(function() { - browser.sleep(2500); - }); - expect(await AtAGlanceWidgetTitle.getText()).toEqual('At A Glance'); - expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 59%"); - expect(await AtAGlanceStatOne.getText()).toContain("Associate's degree - 0%"); - expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 0%'); - expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520'); - expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceSubHeaderThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain('19.2%'); - expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceStatFour.getText()).toEqual('2,500'); - expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceStatFive.getText()).toEqual('27,900'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Personality() { - it(': Personality, should click the Personality link and validate data', async function() { - var PersonatlityLink = element(by.css('tr:nth-child(4) > td:nth-child(1) > .text-color-7a')); - var PersonatlityWidgetTitle = element(by.css('.ng-isolate-scope:nth-child(3) > .fullHeight .jrnys_lead-body-copy')); - var PersonatlityDescriptionOne = element(by.css('.carouselHeight > .ng-scope td > .ng-binding')); - var PersonatlityDescriptionTwo = element(by.css('.carouselHeight > .ng-scope tr:nth-child(2) div')); - var PersonatlityBulletOne = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(3) .ng-binding')); - var PersonatlityBulletTwo = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(4) .ng-binding')); - var PersonatlityBulletThree = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(5) .ng-binding')); - var PersonatlityBulletFour = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(6) .ng-binding')); - var PersonatlityBulletFive = element(by.css('.ng-scope:nth-child(7) > td > div > .ng-binding')); - var PersonatlityBulletSix = element(by.css('.ng-scope:nth-child(8) > td > div > .ng-binding')); - var XCloseLink = element(by.css('.close')); - - await PersonatlityLink.click().then(function() { - browser.sleep(2500); - }); - expect(await PersonatlityWidgetTitle.getText()).toEqual('Personality'); - expect(await PersonatlityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.'); - expect(await PersonatlityDescriptionTwo.getText()).toEqual('They do well at jobs that need:'); - expect(await PersonatlityBulletOne.getText()).toEqual('Analytical Thinking'); - expect(await PersonatlityBulletTwo.getText()).toEqual('Cooperation'); - expect(await PersonatlityBulletThree.getText()).toEqual('Attention to Detail'); - expect(await PersonatlityBulletFour.getText()).toEqual('Independence'); - expect(await PersonatlityBulletFive.getText()).toEqual('Achievement/Effort'); - expect(await PersonatlityBulletSix.getText()).toEqual('Initiative'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Wages() { - it(': Wages, should click the Wages link and change State drop down to Nevada', async function () { - var WagesLink = element(by.css('tr:nth-child(5) > td:nth-child(1) > .text-color-7a')); - var CurrentDataNational = element(by.css('g:nth-child(2) > g > text')); - var CurrentDataLocal = element(by.css('g:nth-child(3) > g > text')); - var XCloseLink = element(by.css('.close')); - var ChangeLocationLink = element(by.css('.dropdown > .widgetRightControlContainer')); - var ApplyButton = element(by.css('tr:nth-child(2) .btn-xs')); - - await WagesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNational.getText()).toEqual('National'); - expect(await CurrentDataLocal.getText()).toContain('San Diego-Carlsbad, CA'); - await ChangeLocationLink.click().then(function() { - browser.sleep(1000); - }); - element(by.cssContainingText('option', 'Nevada')).click().then(function() { - browser.sleep(1000); - }); - await ApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNational.getText()).toEqual('National'); - expect(await CurrentDataLocal.getText()).toEqual('Nevada'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Degrees() { - it(': Degrees, should click the Degrees link, expand/collapse first career card by title and validate data', async function () { - var DegreesLink = element(by.css('tr:nth-child(3) > td:nth-child(2) > .text-color-7a')); - var DegreesWidgetTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var DegreeTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .textSize:nth-child(1)')); - var DegreesEllipsis = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .col-sm-1')); - var DegreeDetails = element(by.css('#dropDownSocialOptionsComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 .row:nth-child(4) > .col-xs-9')); - var InstitutionTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(2) .item-title')); - var InstitutionData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(2) .item-body > .ng-binding')); - var CourseTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(3) .item-title')); - var CourseData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(3) .item-body > .ng-binding')); - var OccupationTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(4) .item-title')); - var OccupationData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(4) .item-body > .ng-binding')); - var SalaryTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(5) .item-title')); - var SalaryData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(5) .item-body > .ng-binding')); - var DegreeXCloseIcon = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .col-xs-1')); - var CarrouselRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var XCloseLink = element(by.css('.close')); - - await DegreesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DegreesWidgetTitle.getText()).toEqual('Degrees'); - expect(await DegreeTitle.getText()).toEqual('Computer Applications Minor—College-Wide'); - await DegreesEllipsis.click().then(function() { - browser.sleep(1000); - }); - await DegreeDetails.click().then(function() { - browser.sleep(1000); - }); - expect(await InstitutionTitle.getText()).toEqual('Institutions'); - expect(await InstitutionData.getText()).toEqual('2,419'); - expect(await CourseTitle.getText()).toEqual('Courses'); - expect(await CourseData.getText()).toEqual('0'); - expect(await OccupationTitle.getText()).toEqual('Occupations'); - expect(await OccupationData.getText()).toEqual('75'); - expect(await SalaryTitle.getText()).toEqual('Average Salary'); - expect(await SalaryData.getText()).toEqual('$98,931'); - await DegreeXCloseIcon.click().then(function() { - browser.sleep(1000); - }); - await DegreesEllipsis.click().then(function() { - browser.sleep(1000); - }); - await CarrouselRightScroll.click().then(function() { - browser.sleep(1000); - }); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Certificates() { - it(': Certificates, should click the Certificate link, expand/collapse first card by ellipsis validate data and scroll to second set', async function () { - var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a')); - var CertificatesWidgetTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var CertificateTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .textSize:nth-child(1)')); - var CertificateSubTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .text-color-4a')); - var CertificatesEllipsis = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .col-sm-1')); - var CertificateDetailsIcon = element(by.css('#dropDownSocialOptionsCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 .row:nth-child(4) > .col-xs-9')); - var EducationTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(2) .item-title')); - var EducationData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(2) .item-body > .ng-binding')); - var WorkExperienceTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(3) .item-title')); - var WorkExperienceData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(3) .item-body > .ng-binding')); - var ExamTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(4) .item-title')); - var ExamData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(4) .item-body > .ng-binding')); - var RenewalTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(5) .item-title')); - var RenewalData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(5) .item-body > .ng-binding')); - var CertificateXCloseIcon = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .col-xs-1')) - var CarrouselRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var XCloseLink = element(by.css('.close')); - - await CertificatesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); - expect(await CertificateTitle.getText()).toEqual('Certified Associate LabVIEW Developer'); - expect(await CertificateSubTitle.getText()).toEqual('Business Analysis'); - await CertificatesEllipsis.click(); - browser.sleep(1000); - await CertificateDetailsIcon.click(); - browser.sleep(1000); - expect(await EducationTitle.getText()).toEqual('Education and Training Required'); - expect(await EducationData.getText()).toEqual('No'); - expect(await WorkExperienceTitle.getText()).toEqual('Work Experience Required'); - expect(await WorkExperienceData.getText()).toEqual('No'); - expect(await ExamTitle.getText()).toEqual('Oral or Written Exam Required'); - expect(await ExamData.getText()).toEqual('Yes'); - expect(await RenewalTitle.getText()).toEqual('Renewal Required'); - expect(await RenewalData.getText()).toEqual('No'); - await CertificateXCloseIcon.click(); - browser.sleep(1000); - await CertificatesEllipsis.click(); - browser.sleep(1000); - await CarrouselRightScroll.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Institutions() { - it(': Institutions, should click the Institutions link, scroll to second set, expand by ellipsis, and validate data', async function () { - var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a')); - var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div')); - var CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); - var SchoolNameTitle = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .textSize')); - var InstitutionsEllipsis = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .col-sm-1')); - var InstitutionsFollowIcon = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-follow')); - var InstitutionsDetailsIcon = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-info')); - var UndergraduateTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(2) .item-title')); - var UndergraduateData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(2) .ng-binding > span')); - var NotRated = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(2) .item-body div')); - var TuitionTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(3) .item-title')); - var TuitionData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(3) .ng-binding > span')); - var TuitionAverage = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(3) .item-body div')); - var GraduateTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(4) .item-title')); - var GraduateData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(4) .ng-binding > span')); - var GraduateAverage = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(4) .item-body div')); - var EarningsTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(5) .item-title')); - var EarningsData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(5) .ng-binding > span')); - var EarningsAverage = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(5) .item-body div')); - var InstitutionsDetailsXCloseLink = element(by.css('#dropDownDataInstitutions_1_1 > .col-xs-1')); - var InstitutionsUnFollowIcon = element(by.css('.col-xs-2 .journey-follow-selected')); - var CarrouselLeftScroll = element(by.css('#recommendedColleges .left > .glyphicon')); - var XCloseLink = element(by.css('.close')); - - await InstitutionsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); - await CarrouselRightScroll.click(); - browser.sleep(1000); - //Bug - Incorrect institution being loaded at times(Golden Gate University-San Francisco) - await SchoolNameTitle.getText().then(async function(actualText) { - if(actualText.indexOf('San Diego State University') !== -1) { - expect(await SchoolNameTitle.getText()).toEqual('San Diego State University'); - await InstitutionsEllipsis.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsFollowIcon.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsDetailsIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students'); - expect(await UndergraduateData.getText()).toEqual('29,781'); - expect(await NotRated.getText()).toEqual('Not Rated'); - expect(await TuitionTitle.getText()).toEqual('Tuition'); - expect(await TuitionData.getText()).toEqual('$14,030'); - expect(await TuitionAverage.getText()).toEqual('Lower Than Average'); - expect(await GraduateTitle.getText()).toEqual('Graduation Rate'); - expect(await GraduateData.getText()).toEqual('74%'); - expect(await GraduateAverage.getText()).toEqual('Above Average'); - expect(await EarningsTitle.getText()).toEqual('Earnings After School'); - expect(await EarningsData.getText()).toEqual('$51,000'); - expect(await EarningsAverage.getText()).toEqual('Above Average'); - } else { - expect(await SchoolNameTitle.getText()).toEqual('Golden Gate University-San Francisco'); - await InstitutionsEllipsis.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsFollowIcon.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsDetailsIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students'); - expect(await UndergraduateData.getText()).toEqual('416'); - expect(await NotRated.getText()).toEqual('Not Rated'); - expect(await TuitionTitle.getText()).toEqual('Tuition'); - expect(await GraduateTitle.getText()).toEqual('Graduation Rate'); - expect(await EarningsTitle.getText()).toEqual('Earnings After School'); - expect(await EarningsData.getText()).toEqual('$71,100'); - expect(await EarningsAverage.getText()).toEqual('Above Average'); - } - }); - await InstitutionsDetailsXCloseLink.click(); - browser.sleep(1000); - await InstitutionsUnFollowIcon.click(); - browser.sleep(1000); - await InstitutionsEllipsis.click(); - browser.sleep(1000); - await CarrouselLeftScroll.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function TopResources() { - it(': TopResources, should click Top Resources link and expand fourth then expand first card and follow', async function () { - var TopResourcesLink = element(by.css('tr:nth-child(3) > td:nth-child(3) > .text-color-7a')); - var TopResourcesDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var FourthResourceCardTitle = element(by.css('.panel:nth-child(4) .ng-binding')); - var FirstResourceCardTitle = element(by.css('.panel:nth-child(1) .ng-binding')); - var FirstResourceCardEllipsis = element(by.css('.panel:nth-child(1) .glyphicon')); - var FirstFollowResourceIcon = element(by.css('.panel:nth-child(1) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)')); - var FirstResourceLearnMoreIcon = element(by.css('.panel:nth-child(1) .row:nth-child(2) div:nth-child(2) span:nth-child(2)')); - var XCloseLink = element(by.css('.close')); - - await TopResourcesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesDivTitle.getText()).toEqual('Computer and Information Research Scientists'); - expect(await FourthResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists'); - await FourthResourceCardTitle.click(); - browser.sleep(1000); - expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - await FirstResourceCardEllipsis.click(); - browser.sleep(1000); - expect(await FirstFollowResourceIcon.getText()).toEqual('Follow'); - await FirstResourceLearnMoreIcon.click(); - browser.sleep(5000); - browser.getAllWindowHandles().then(function (handles) { - //var SecondWindowHandle = handles[1]; - //var FirstWindowHandle = handles[0]; - browser.driver.switchTo().window(handles[1]).then(async function () { - browser.sleep(10000); - expect(await browser.driver.getCurrentUrl()).toEqual("https://www.onetonline.org/link/summary/15-1111.00"); - browser.driver.close(); - browser.sleep(2500); - browser.driver.switchTo().window(handles[0]); - expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - }); - }); - /*browser.driver.switchTo().window(handles[0]).then(async function () { - browser.sleep(5000); - expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - });*/ - //}); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function FindOpportunities() { - it(': FindOpportunities, should click Find Opportunities link', async function () { - var FindOpportunitiesLink = element(by.css('tr:nth-child(4) > td:nth-child(3) > .text-color-7a')); - var FindOpportunitiesWidgetTitle = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); - var XCloseLink = element(by.css('.close')); - - await FindOpportunitiesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await FindOpportunitiesWidgetTitle.getText()).toContain('Job Listings:');//stored value needed - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SubmitAResource() { - it(': SubmitAResource, should click Find Resources link', async function () { - var SubmitAResourceLink = element(by.css('tr:nth-child(5) > td:nth-child(3) > .text-color-7a')); - var SubmitAResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12')); - var SubmitAResourceSubTextOne = element(by.css('.row:nth-child(2) > .col-sm-12')); - var TotalInJourneysText = element(by.css('.col-xs-offset-1 .col-xs-offset-1')); - var TotalInJourneysValue = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy')); - var TotalInJourneysDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.row > .row .ng-binding')); - var XCloseLDivLinkOne = element(by.css('div:nth-child(2) > .close')); - var ForThisMapPointText = element(by.css('.display-right .col-xs-offset-1')); - var ForThisMapPointValue = element(by.css('.display-right .jrnys_lead-body-copy')); - var SubmitAResourceSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12')); - var SubmitAResourceButton = element(by.css('.col-sm-12 > .jrnys_support-text')); - var WidgetDivTitle = element(by.css('h3')); - var WebsiteURLLink = element(by.css('.Tag:nth-child(2) > label')); - var XCloseDivLinkTwo = element(by.css('.modal-header > .close')); - var XCloseLink = element(by.css('.close')); - - await SubmitAResourceLink.click().then(function() { - browser.sleep(2500); - }); - expect(await SubmitAResourceWidgetTitle.getText()).toEqual('Submit a Resource'); - expect(await SubmitAResourceSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources"); - expect(await TotalInJourneysText.getText()).toContain('Total in Journeys'); - expect(await TotalInJourneysValue.getText()).toEqual('1'); - await TotalInJourneysValue.click().then(function() { - browser.sleep(1000); - }); - expect(await TotalInJourneysDivTitle.getText()).toEqual('My Submitted Resources'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - await XCloseLDivLinkOne.click().then(function() { - browser.sleep(1000); - }); - expect(await ForThisMapPointText.getText()).toContain('For this map point'); - expect(await ForThisMapPointValue.getText()).toEqual('0'); - expect(await SubmitAResourceSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); - browser.waitForAngular(); - await SubmitAResourceButton.click(); - browser.waitForAngular(); - expect(await WidgetDivTitle.getText()).toEqual('Submit a Resource'); - browser.waitForAngular(); - WebsiteURLLink.click(); - await XCloseDivLinkTwo.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function NearbyPlaces() { - it(': NearbyPlaces, should click Nearby Places link, expand 1st card and play video', async function () { - var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a')); - var NearbyPlcaesWidgetTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var NearbyPlacesTitle = element(by.id('territoryCardMobileTitle')); - var NearbyPlacesEllipsis = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardIcon > .fas')); - var VideoIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(5) > div.territoryCardIconBackOfCard > career-one-stop-video > i'));//#dropDownSocialOptionsComputerandInformationResearchScientistsNearbyPlacesundefined .far')); - var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding')); - var XCloseVideoDivLink = element(by.css('.close:nth-child(2)')); - var NearbyPlacesAtAGlanceIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(6) > div.territoryCardIconBackOfCard > i')); - var NearbyPlacesDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.territoryCardDescriptionText.ng-binding')); - var TypicalDegreeTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div')); - var DegreeDataOne = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(2) > td:nth-child(2) > div')); - var DegreeDataTwo = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div')); - var DegreeDataThree = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(4) > td:nth-child(2) > div')); - var SalaryTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(16) > td:nth-child(2) > div')); - var SalaryData = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(17) > td:nth-child(2) > div')); - var GrowthTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(19) > td:nth-child(2) > div')); - var GrowthDataOne = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(20) > td.territoryCardBackOfCardItemText > div:nth-child(1)')); - var GrowthDataTwo = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(20) > td.territoryCardBackOfCardItemText > div:nth-child(3)')); - var OpeningsTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(22) > td:nth-child(2) > div')); - var OpeningsData = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(23) > td:nth-child(2) > div')); - var EmployedTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(25) > td:nth-child(2) > div')); - var EmployedData = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(26) > td:nth-child(2) > div')); - var XCloseLink = element(by.css('.close')); - - //browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { - browser.executeScript('window.scrollTo(0, 1885);').then(function() { - browser.sleep(2500); - }); - await NearbyPlacesLink.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - expect(await NearbyPlcaesWidgetTitle.getText()).toEqual('Nearby Places'); - browser.waitForAngular(); - expect(await NearbyPlacesTitle.getText()).toEqual('Computer and Information Systems Managers'); - await NearbyPlacesEllipsis.click(); - browser.sleep(2500); - await VideoIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await VideoTitle.getText()).toEqual('Computer and Information Systems Managers'); - await XCloseVideoDivLink.click().then(function() { - browser.sleep(2500); - }); - await NearbyPlacesAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await NearbyPlacesDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await TypicalDegreeTitle.getText()).toEqual('Typical Degree'); - expect(await DegreeDataOne.getText()).toEqual('College (4 Year) - 48%'); - expect(await DegreeDataTwo.getText()).toEqual('Some college - 26%'); - expect(await DegreeDataThree.getText()).toEqual("Master's degree - 14%"); - expect(await SalaryTitle.getText()).toEqual('Average Annual Salary'); - expect(await SalaryData.getText()).toEqual('$139,220'); - expect(await GrowthTitle.getText()).toEqual('Projected Growth'); - expect(await GrowthDataOne.getText()).toEqual('12%'); - expect(await GrowthDataTwo.getText()).toEqual('ABOVE AVERAGE'); - expect(await OpeningsTitle.getText()).toEqual('Projected Job Openings'); - expect(await OpeningsData.getText()).toEqual('32,500'); - expect(await EmployedTitle.getText()).toEqual('Currently Employed'); - expect(await EmployedData.getText()).toEqual('367,600'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Tasks() { - it(': Tasks, should click Tasks link and validate data', async function () { - var TasksLink = element(by.css('tr:nth-child(4) > td:nth-child(4) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('th:nth-child(2) > .text-color-7a')); - var CategoryHeader = element(by.css('th:nth-child(3) > .text-color-7a')); - var TasksRowOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a:nth-child(2)')); - var CategoryStatOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(3)')); - var TasksRowTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var ImportanceStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var CategoryStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(3)')); - var TasksRowThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var ImportanceStatThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a:nth-child(2)')); - var CategoryStatThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(3)')); - var TasksRowFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var ImportanceStatFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a:nth-child(2)')); - var CategoryStatFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(3)')); - var TasksRowFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var ImportanceStatFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a:nth-child(2)')); - var CategoryStatFive = element(by.css('.ng-scope:nth-child(5) > .text-center:nth-child(3)')); - var TasksRowSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var ImportanceStatSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a:nth-child(2)')); - var CategoryStatSix = element(by.css('.ng-scope:nth-child(6) > .text-center:nth-child(3)')); - var TasksRowSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var ImportanceStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a:nth-child(2)')); - var CategoryStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-center:nth-child(3)')); - var TasksRowEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var ImportanceStatEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a:nth-child(2)')); - var CategoryStatEight = element(by.css('.ng-scope:nth-child(8) > .text-center:nth-child(3)')); - var TasksRowNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var ImportanceStatNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a:nth-child(2)')); - var CategoryStatNine = element(by.css('.ng-scope:nth-child(9) > .text-center:nth-child(3)')); - var TasksRowTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var ImportanceStatTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a:nth-child(2)')); - var CategoryStatTen= element(by.css('.ng-scope:nth-child(10) > .text-center:nth-child(3)')); - var TasksRowEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var ImportanceStatEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a:nth-child(2)')); - var CategoryStatEleven = element(by.css('.ng-scope:nth-child(11) > .text-center:nth-child(3)')); - var TasksRowTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var ImportanceStatTwelve = element(by.css('.ng-scope:nth-child(12) > .text-color-7a:nth-child(2)')); - var CategoryStatTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center:nth-child(3)')); - var TasksRowThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var ImportanceStatThirteen = element(by.css('.ng-scope:nth-child(13) > .text-color-7a:nth-child(2)')); - var CategoryStatThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center:nth-child(3)')); - var TasksRowFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var ImportanceStatFourteen = element(by.css('.ng-scope:nth-child(14) > .text-color-7a:nth-child(2)')); - var CategoryStatFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center:nth-child(3)')); - var TasksRowFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var ImportanceStatFifteen = element(by.css('.ng-scope:nth-child(15) > .text-color-7a:nth-child(2)')); - var CategoryStatFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center:nth-child(3)')); - var XCloseLink = element(by.css('.close')); - - await TasksLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Tasks'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await CategoryHeader.getText()).toEqual('Category'); - expect(await TasksRowOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.'); - expect(await ImportanceStatOne.getText()).toEqual('82%'); - expect(await CategoryStatOne.getText()).toEqual('Core'); - expect(await TasksRowTwo.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.'); - expect(await ImportanceStatTwo.getText()).toEqual('71%'); - expect(await CategoryStatTwo.getText()).toEqual('Core'); - expect(await TasksRowThree.getText()).toEqual('Evaluate project plans and proposals to assess feasibility issues.'); - expect(await ImportanceStatThree.getText()).toEqual('70%'); - expect(await CategoryStatThree.getText()).toEqual('Core'); - expect(await TasksRowFour.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.'); - expect(await ImportanceStatFour.getText()).toEqual('66%'); - expect(await CategoryStatFour.getText()).toEqual('Core'); - expect(await TasksRowFive.getText()).toEqual('Consult with users, management, vendors, and technicians to determine computing needs and system requirements.'); - expect(await ImportanceStatFive.getText()).toEqual('66%'); - expect(await CategoryStatFive.getText()).toEqual('Core'); - expect(await TasksRowSix.getText()).toEqual('Meet with managers, vendors, and others to solicit cooperation and resolve problems.'); - expect(await ImportanceStatSix.getText()).toEqual('64%'); - expect(await CategoryStatSix.getText()).toEqual('Core'); - expect(await TasksRowSeven.getText()).toEqual('Conduct logical analyses of business, scientific, engineering, and other technical problems, formulating mathematical models of problems for solution by computers.'); - expect(await ImportanceStatSeven.getText()).toEqual('63%'); - expect(await CategoryStatSeven.getText()).toEqual('Core'); - expect(await TasksRowEight.getText()).toEqual('Develop and interpret organizational goals, policies, and procedures.'); - expect(await ImportanceStatEight.getText()).toEqual('59%'); - expect(await CategoryStatEight.getText()).toEqual('Core'); - expect(await TasksRowNine.getText()).toEqual('Participate in staffing decisions and direct training of subordinates.'); - expect(await ImportanceStatNine.getText()).toEqual('54%'); - expect(await CategoryStatNine.getText()).toEqual('Core'); - expect(await TasksRowTen.getText()).toEqual('Develop performance standards, and evaluate work in light of established standards.'); - expect(await ImportanceStatTen.getText()).toEqual('51%'); - expect(await CategoryStatTen.getText()).toEqual('Core'); - expect(await TasksRowEleven.getText()).toEqual('Design computers and the software that runs them.'); - expect(await ImportanceStatEleven.getText()).toEqual('74%'); - expect(await CategoryStatEleven .getText()).toEqual('Supplemental'); - expect(await TasksRowTwelve.getText()).toEqual('Maintain network hardware and software, direct network security measures, and monitor networks to ensure availability to system users.'); - expect(await ImportanceStatTwelve.getText()).toEqual('65%'); - expect(await CategoryStatTwelve.getText()).toEqual('Supplemental'); - expect(await TasksRowThirteen.getText()).toEqual('Participate in multidisciplinary projects in areas such as virtual reality, human-computer interaction, or robotics.'); - expect(await ImportanceStatThirteen.getText()).toEqual('62%'); - expect(await CategoryStatThirteen.getText()).toEqual('Supplemental'); - expect(await TasksRowFourteen.getText()).toEqual('Approve, prepare, monitor, and adjust operational budgets.'); - expect(await ImportanceStatFourteen.getText()).toEqual('58%'); - expect(await CategoryStatFourteen.getText()).toEqual('Supplemental'); - expect(await TasksRowFifteen.getText()).toEqual('Direct daily operations of departments, coordinating project activities with other departments.'); - expect(await ImportanceStatFifteen.getText()).toEqual('50%'); - expect(await CategoryStatFifteen.getText()).toEqual('Supplemental'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Technology() { - it(': Technology, should click Technology link and validate data', async function () { - var TechnologyLink = element(by.css('tr:nth-child(5) > td:nth-child(4) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var TechnologyTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding')); - var TechnologyDataOne = element(by.css('.ng-scope:nth-child(1) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var TechnologyDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding')); - var TechnologyDataThree = element(by.css('.ng-scope:nth-child(3) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding')); - var TechnologyDataFour = element(by.css('.ng-scope:nth-child(4) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding')); - var TechnologyDataFive = element(by.css('.ng-scope:nth-child(5) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding')); - var TechnologyDataSix = element(by.css('.ng-scope:nth-child(6) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding')); - var TechnologyDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding')); - var TechnologyDataEight = element(by.css('.ng-scope:nth-child(8) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); - var TechnologyDataNine = element(by.css('.ng-scope:nth-child(9) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); - var TechnologyDataTen = element(by.css('.ng-scope:nth-child(10) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding')); - var TechnologyDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding')); - var TechnologyDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); - var TechnologyDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); - var TechnologyDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding')); - var TechnologyDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding')); - var TechnologyDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); - var TechnologyDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); - var TechnologyDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleNineteen = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); - var TechnologyDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwenty = element(by.css('.ng-scope:nth-child(20) > .ng-binding')); - var TechnologyDataTwenty = element(by.css('.ng-scope:nth-child(20) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyOne = element(by.css('.ng-scope:nth-child(21) > .ng-binding')); - var TechnologyDataTwentyOne = element(by.css('.ng-scope:nth-child(21) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .ng-binding')); - var TechnologyDataTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyThree = element(by.css('.ng-scope:nth-child(23) > .ng-binding')); - var TechnologyDataTwentyThree = element(by.css('.ng-scope:nth-child(23) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyFour = element(by.css('.ng-scope:nth-child(24) > .ng-binding')); - var TechnologyDataTwentyFour = element(by.css('.ng-scope:nth-child(24) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyFive = element(by.css('.ng-scope:nth-child(25) > .ng-binding')); - var TechnologyDataTwentyFive = element(by.css('.ng-scope:nth-child(25) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentySix = element(by.css('.ng-scope:nth-child(26) > .ng-binding')); - var TechnologyDataTwentySix = element(by.css('.ng-scope:nth-child(26) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentySeven = element(by.css('.ng-scope:nth-child(27) > .ng-binding')); - var TechnologyDataTwentySeven = element(by.css('.ng-scope:nth-child(27) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyEight = element(by.css('.ng-scope:nth-child(28) > .ng-binding')); - var TechnologyDataTwentyEight = element(by.css('.ng-scope:nth-child(28) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyNine = element(by.css('.ng-scope:nth-child(29) > .ng-binding')); - var TechnologyDataTwentyNine = element(by.css('.ng-scope:nth-child(29) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirty = element(by.css('.ng-scope:nth-child(30) > .ng-binding')); - var TechnologyDataThirty = element(by.css('.ng-scope:nth-child(30) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirtyOne = element(by.css('.ng-scope:nth-child(31) > .ng-binding')); - var TechnologyDataThirtyOne = element(by.css('.ng-scope:nth-child(31) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirtyTwo = element(by.css('.ng-scope:nth-child(32) > .ng-binding')); - var TechnologyDataThirtyTwo = element(by.css('.ng-scope:nth-child(32) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirtyThree = element(by.css('.ng-scope:nth-child(33) > .ng-binding')); - var TechnologyDataThirtyThree = element(by.css('.ng-scope:nth-child(33) > .text-left > .ng-binding:nth-child(1)')); - var XCloseLink = element(by.css('.close')); - - await TechnologyLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Technology'); - expect(await TechnologyTitleOne.getText()).toEqual('Development environment software'); - expect(await TechnologyDataOne.getText()).toEqual('Ada ;'); - expect(await TechnologyTitleTwo.getText()).toEqual('Analytical or scientific software'); - expect(await TechnologyDataTwo.getText()).toEqual('Advanced numerical software ;'); - expect(await TechnologyTitleThree.getText()).toEqual('Data base management system software'); - expect(await TechnologyDataThree.getText()).toEqual('Apache Cassandra ;'); - expect(await TechnologyTitleFour.getText()).toEqual('Operating system software'); - expect(await TechnologyDataFour.getText()).toEqual('Bash ;'); - expect(await TechnologyTitleFive.getText()).toEqual('Object or component oriented development software'); - expect(await TechnologyDataFive.getText()).toEqual('C# ;'); - expect(await TechnologyTitleSix.getText()).toEqual('Business intelligence and data analysis software'); - expect(await TechnologyDataSix.getText()).toEqual('IBM Cognos Impromptu ;'); - expect(await TechnologyTitleSeven.getText()).toEqual('Data base user interface and query software'); - expect(await TechnologyDataSeven.getText()).toEqual('Apache Hive ;'); - expect(await TechnologyTitleEight.getText()).toEqual('Web platform development software'); - expect(await TechnologyDataEight.getText()).toEqual('Django ;'); - expect(await TechnologyTitleNine.getText()).toEqual('Graphics or photo imaging software'); - expect(await TechnologyDataNine.getText()).toEqual('Graphics pipelines ;'); - expect(await TechnologyTitleTen.getText()).toEqual('Compiler and decompiler software'); - expect(await TechnologyDataTen.getText()).toEqual('Greenhills Ada compilers ;'); - expect(await TechnologyTitleEleven.getText()).toEqual('Configuration management software'); - expect(await TechnologyDataEleven.getText()).toEqual('IBM Rational Apex ;'); - expect(await TechnologyTitleTwelve.getText()).toEqual('Clustering software'); - expect(await TechnologyDataTwelve.getText()).toEqual('Clustermatic ;'); - expect(await TechnologyTitleThirteen.getText()).toEqual('Enterprise application integration software'); - expect(await TechnologyDataThirteen .getText()).toEqual('Extensible markup language XML ;'); - expect(await TechnologyTitleFourteen.getText()).toEqual('Computer aided design CAD software'); - expect(await TechnologyDataFourteen.getText()).toEqual('Computer aided design and drafting CADD software ;'); - expect(await TechnologyTitleFifteen.getText()).toEqual('Spreadsheet software'); - expect(await TechnologyDataFifteen.getText()).toEqual('Microsoft Excel '); - expect(await TechnologyTitleSixteen.getText()).toEqual('Metadata management software'); - expect(await TechnologyDataSixteen.getText()).toEqual('CA Erwin Data Modeler '); - expect(await TechnologyTitleSeventeen.getText()).toEqual('Application server software'); - expect(await TechnologyDataSeventeen.getText()).toEqual('GitHub '); - expect(await TechnologyTitleEighteen.getText()).toEqual('Enterprise system management software'); - expect(await TechnologyDataEighteen.getText()).toEqual('Splunk Enterprise '); - expect(await TechnologyTitleNineteen.getText()).toEqual('Object oriented data base management software'); - expect(await TechnologyDataNineteen.getText()).toEqual('PostgreSQL '); - expect(await TechnologyTitleTwenty.getText()).toEqual('Enterprise resource planning ERP software'); - expect(await TechnologyDataTwenty.getText()).toEqual('SAP Business Objects'); - expect(await TechnologyTitleTwentyOne.getText()).toEqual('Communications server software'); - expect(await TechnologyDataTwentyOne.getText()).toEqual('IBM Domino'); - expect(await TechnologyTitleTwentyTwo.getText()).toEqual('Portal server software'); - expect(await TechnologyDataTwentyTwo.getText()).toEqual('Apache HTTP Server '); - expect(await TechnologyTitleTwentyThree.getText()).toEqual('Video creation and editing software'); - expect(await TechnologyDataTwentyThree.getText()).toEqual('Video editing software'); - expect(await TechnologyTitleTwentyFour.getText()).toEqual('File versioning software'); - expect(await TechnologyDataTwentyFour.getText()).toEqual('Git '); - expect(await TechnologyTitleTwentyFive.getText()).toEqual('Office suite software'); - expect(await TechnologyDataTwentyFive.getText()).toEqual('Microsoft Office '); - expect(await TechnologyTitleTwentySix.getText()).toEqual('Graphical user interface development software'); - expect(await TechnologyDataTwentySix.getText()).toEqual('Waikato Environment for Knowledge Analysis Weka'); - expect(await TechnologyTitleTwentySeven.getText()).toEqual('Sales and marketing software'); - expect(await TechnologyDataTwentySeven.getText()).toEqual('Google AdWords '); - expect(await TechnologyTitleTwentyEight.getText()).toEqual('Presentation software'); - expect(await TechnologyDataTwentyEight.getText()).toEqual('Microsoft PowerPoint '); - expect(await TechnologyTitleTwentyNine.getText()).toEqual('Map creation software'); - expect(await TechnologyDataTwentyNine.getText()).toEqual('ESRI ArcGIS software '); - expect(await TechnologyTitleThirty.getText()).toEqual('Web page creation and editing software'); - expect(await TechnologyDataThirty.getText()).toEqual('Plug-in file software'); - expect(await TechnologyTitleThirtyOne.getText()).toEqual('Data mining software'); - expect(await TechnologyDataThirtyOne.getText()).toEqual('Google Analytics '); - expect(await TechnologyTitleThirtyTwo.getText()).toEqual('Requirements analysis and system architecture software'); - expect(await TechnologyDataThirtyTwo.getText()).toEqual('Unified modeling language UML '); - expect(await TechnologyTitleThirtyThree.getText()).toEqual('Project management software'); - expect(await TechnologyDataThirtyThree.getText()).toEqual('Microsoft Project '); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Knowledge() { - it(': Knowledge, should click Knowledge link and validate data', async function () { - var KnowledgeLink = element(by.css('tr:nth-child(3) > td:nth-child(5) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var KnowledgeTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var KnowledgeDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var KnowledgeTitleTwo = element(by.css('tbody > .ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var KnowledgeDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var KnowledgeTitleThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var KnowledgeDataThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a')); - var KnowledgeTitleFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var KnowledgeDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var KnowledgeTitleFive = element(by.css('tbody > .ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var KnowledgeDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a')); - var KnowledgeTitleSix = element(by.css('tbody > .ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var KnowledgeDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a')); - var KnowledgeTitleSeven = element(by.css('tbody > .ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var KnowledgeDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a')); - var KnowledgeTitleEight = element(by.css('tbody > .ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var KnowledgeDataEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a')); - var KnowledgeTitleNine = element(by.css('tbody > .ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var KnowledgeDataNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a')); - var KnowledgeTitleTen = element(by.css('tbody > .ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var KnowledgeDataTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a')); - var KnowledgeTitleEleven = element(by.css('tbody > .ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var KnowledgeDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a')); - var XCloseLink = element(by.css('.close')); - - await KnowledgeLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Knowledge'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await KnowledgeTitleOne.getText()).toEqual('Computers and Electronics'); - expect(await KnowledgeDataOne.getText()).toEqual('90%'); - expect(await KnowledgeTitleTwo.getText()).toEqual('Mathematics'); - expect(await KnowledgeDataTwo.getText()).toEqual('82%'); - expect(await KnowledgeTitleThree.getText()).toEqual('English Language'); - expect(await KnowledgeDataThree.getText()).toEqual('79%'); - expect(await KnowledgeTitleFour.getText()).toEqual('Education and Training'); - expect(await KnowledgeDataFour.getText()).toEqual('73%'); - expect(await KnowledgeTitleFive.getText()).toEqual('Telecommunications'); - expect(await KnowledgeDataFive.getText()).toEqual('62%'); - expect(await KnowledgeTitleSix.getText()).toEqual('Design'); - expect(await KnowledgeDataSix.getText()).toEqual('59%'); - expect(await KnowledgeTitleSeven.getText()).toEqual('Administration and Management'); - expect(await KnowledgeDataSeven.getText()).toEqual('58%'); - expect(await KnowledgeTitleEight.getText()).toEqual('Engineering and Technology'); - expect(await KnowledgeDataEight.getText()).toEqual('58%'); - expect(await KnowledgeTitleNine.getText()).toEqual('Customer and Personal Service'); - expect(await KnowledgeDataNine.getText()).toEqual('55%'); - expect(await KnowledgeTitleTen.getText()).toEqual('Communications and Media'); - expect(await KnowledgeDataTen.getText()).toEqual('52%'); - expect(await KnowledgeTitleEleven.getText()).toEqual('Clerical'); - expect(await KnowledgeDataEleven.getText()).toEqual('50%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Skills() { - it(': Skills, should click Skills link and validate data', async function () { - var SkillsLink = element(by.css('tr:nth-child(4) > td:nth-child(5) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var SkillsTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var SkillsDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var SkillsTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var SkillsDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var SkillsTitleThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var SkillsDataThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a')); - var SkillsTitleFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var SkillsDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var SkillsTitleFive = element(by.css('tbody > .ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var SkillsDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a')); - var SkillsTitleSix = element(by.css('tbody > .ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var SkillsDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a')); - var SkillsTitleSeven = element(by.css('tbody > .ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var SkillsDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a')); - var SkillsTitleEight = element(by.css('tbody > .ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var SkillsDataEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a')); - var SkillsTitleNine = element(by.css('tbody > .ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var SkillsDataNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a')); - var SkillsTitleTen = element(by.css('tbody > .ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var SkillsDataTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a')); - var SkillsTitleEleven = element(by.css('tbody > .ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var SkillsDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a')); - var SkillsTitleTwelve = element(by.css('tbody > .ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var SkillsDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-color-7a')); - var SkillsTitleThirteen = element(by.css('tbody > .ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var SkillsDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-color-7a')); - var SkillsTitleFourteen = element(by.css('tbody > .ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var SkillsDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-color-7a')); - var SkillsTitleFifteen = element(by.css('tbody > .ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var SkillsDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-color-7a')); - var SkillsTitleSixteen = element(by.css('tbody > .ng-scope:nth-child(16) > .ng-binding:nth-child(1)')); - var SkillsDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-color-7a')); - var SkillsTitleSeventeen = element(by.css('tbody > .ng-scope:nth-child(17) > .ng-binding:nth-child(1)')); - var SkillsDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-color-7a')); - var SkillsTitleEighteen = element(by.css('tbody > .ng-scope:nth-child(18) > .ng-binding:nth-child(1)')); - var SkillsDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-color-7a')); - var SkillsTitleNineteen = element(by.css('tbody > .ng-scope:nth-child(19) > .ng-binding:nth-child(1)')); - var SkillsDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-color-7a')); - var XCloseLink = element(by.css('.close')); - - await SkillsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Skills'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await SkillsTitleOne.getText()).toEqual('Complex Problem Solving'); - expect(await SkillsDataOne.getText()).toEqual('72%'); - expect(await SkillsTitleTwo.getText()).toEqual('Critical Thinking'); - expect(await SkillsDataTwo.getText()).toEqual('69%'); - expect(await SkillsTitleThree.getText()).toEqual('Systems Analysis'); - expect(await SkillsDataThree.getText()).toEqual('69%'); - expect(await SkillsTitleFour.getText()).toEqual('Systems Evaluation'); - expect(await SkillsDataFour.getText()).toEqual('69%'); - expect(await SkillsTitleFive.getText()).toEqual('Judgment and Decision Making'); - expect(await SkillsDataFive.getText()).toEqual('66%'); - expect(await SkillsTitleSix.getText()).toEqual('Active Listening'); - expect(await SkillsDataSix.getText()).toEqual('63%'); - expect(await SkillsTitleSeven.getText()).toEqual('Programming'); - expect(await SkillsDataSeven.getText()).toEqual('63%'); - expect(await SkillsTitleEight.getText()).toEqual('Reading Comprehension'); - expect(await SkillsDataEight.getText()).toEqual('63%'); - expect(await SkillsTitleNine.getText()).toEqual('Time Management'); - expect(await SkillsDataNine.getText()).toEqual('63%'); - expect(await SkillsTitleTen.getText()).toEqual('Active Learning'); - expect(await SkillsDataTen.getText()).toEqual('60%'); - expect(await SkillsTitleEleven.getText()).toEqual('Speaking'); - expect(await SkillsDataEleven.getText()).toEqual('60%'); - expect(await SkillsTitleTwelve.getText()).toEqual('Writing'); - expect(await SkillsDataTwelve.getText()).toEqual('60%'); - expect(await SkillsTitleThirteen.getText()).toEqual('Operations Analysis'); - expect(await SkillsDataThirteen.getText()).toEqual('56%'); - expect(await SkillsTitleFourteen.getText()).toEqual('Mathematics'); - expect(await SkillsDataFourteen.getText()).toEqual('53%'); - expect(await SkillsTitleFifteen.getText()).toEqual('Monitoring'); - expect(await SkillsDataFifteen.getText()).toEqual('53%'); - expect(await SkillsTitleSixteen.getText()).toEqual('Science'); - expect(await SkillsDataSixteen.getText()).toEqual('53%'); - expect(await SkillsTitleSeventeen.getText()).toEqual('Coordination'); - expect(await SkillsDataSeventeen.getText()).toEqual('50%'); - expect(await SkillsTitleEighteen.getText()).toEqual('Management of Personnel Resources'); - expect(await SkillsDataEighteen.getText()).toEqual('50%'); - expect(await SkillsTitleNineteen.getText()).toEqual('Social Perceptiveness'); - expect(await SkillsDataNineteen.getText()).toEqual('50%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function WorkActivities() { - it(': WorkActivities, should click Work Activities link and validate data', async function () { - var WorkActivitiesLink = element(by.css('tr:nth-child(5) > td:nth-child(5) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var WorkActivitiesTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var WorkActivitiesTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var WorkActivitiesTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center')); - var WorkActivitiesTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var WorkActivitiesTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center')); - var WorkActivitiesTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center')); - var WorkActivitiesTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-center')); - var WorkActivitiesTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataEight = element(by.css('.ng-scope:nth-child(8) > .text-center')); - var WorkActivitiesTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataNine = element(by.css('.ng-scope:nth-child(9) > .text-center')); - var WorkActivitiesTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTen = element(by.css('.ng-scope:nth-child(10) > .text-center')); - var WorkActivitiesTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-center')); - var WorkActivitiesTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center')); - var WorkActivitiesTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center')); - var WorkActivitiesTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center')); - var WorkActivitiesTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center')); - var WorkActivitiesTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-center')); - var WorkActivitiesTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-center')); - var WorkActivitiesTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-center')); - var WorkActivitiesTitleNineteen = element(by.css('.ng-scope:nth-child(19) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-center')); - var WorkActivitiesTitleTwenty = element(by.css('.ng-scope:nth-child(20) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwenty = element(by.css('.ng-scope:nth-child(20) > .text-center')); - var WorkActivitiesTitleTwentyOne = element(by.css('.ng-scope:nth-child(21) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwentyOne = element(by.css('.ng-scope:nth-child(21) > .text-center')); - var WorkActivitiesTitleTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .text-center')); - var WorkActivitiesTitleTwentyThree = element(by.css('.ng-scope:nth-child(23) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwentyThree = element(by.css('.ng-scope:nth-child(23) > .text-center')); - var XCloseLink = element(by.css('.close')); - - await WorkActivitiesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Work Activities'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await WorkActivitiesTitleOne.getText()).toEqual('Interacting With Computers'); - expect(await WorkActivitiesDataOne.getText()).toEqual('92%'); - expect(await WorkActivitiesTitleTwo.getText()).toEqual('Getting Information'); - expect(await WorkActivitiesDataTwo.getText()).toEqual('90%'); - expect(await WorkActivitiesTitleThree.getText()).toEqual('Processing Information'); - expect(await WorkActivitiesDataThree.getText()).toEqual('87%'); - expect(await WorkActivitiesTitleFour.getText()).toEqual('Thinking Creatively'); - expect(await WorkActivitiesDataFour.getText()).toEqual('86%'); - expect(await WorkActivitiesTitleFive.getText()).toEqual('Making Decisions and Solving Problems'); - expect(await WorkActivitiesDataFive.getText()).toEqual('84%'); - expect(await WorkActivitiesTitleSix.getText()).toEqual('Updating and Using Relevant Knowledge'); - expect(await WorkActivitiesDataSix.getText()).toEqual('84%'); - expect(await WorkActivitiesTitleSeven.getText()).toEqual('Identifying Objects, Actions, and Events'); - expect(await WorkActivitiesDataSeven.getText()).toEqual('82%'); - expect(await WorkActivitiesTitleEight.getText()).toEqual('Documenting/Recording Information'); - expect(await WorkActivitiesDataEight.getText()).toEqual('80%'); - expect(await WorkActivitiesTitleNine.getText()).toEqual('Communicating with Supervisors, Peers, or Subordinates'); - expect(await WorkActivitiesDataNine.getText()).toEqual('79%'); - expect(await WorkActivitiesTitleTen.getText()).toEqual('Interpreting the Meaning of Information for Others'); - expect(await WorkActivitiesDataTen.getText()).toEqual('77%'); - expect(await WorkActivitiesTitleEleven.getText()).toEqual('Organizing, Planning, and Prioritizing Work'); - expect(await WorkActivitiesDataEleven.getText()).toEqual('76%'); - expect(await WorkActivitiesTitleTwelve.getText()).toEqual('Establishing and Maintaining Interpersonal Relationships'); - expect(await WorkActivitiesDataTwelve.getText()).toEqual('72%'); - expect(await WorkActivitiesTitleThirteen.getText()).toEqual('Analyzing Data or Information'); - expect(await WorkActivitiesDataThirteen.getText()).toEqual('71%'); - expect(await WorkActivitiesTitleFourteen.getText()).toEqual('Communicating with Persons Outside Organization'); - expect(await WorkActivitiesDataFourteen.getText()).toEqual('69%'); - expect(await WorkActivitiesTitleFifteen.getText()).toEqual('Developing Objectives and Strategies'); - expect(await WorkActivitiesDataFifteen.getText()).toEqual('69%'); - expect(await WorkActivitiesTitleSixteen.getText()).toEqual('Judging the Qualities of Things, Services, or People'); - expect(await WorkActivitiesDataSixteen.getText()).toEqual('66%'); - expect(await WorkActivitiesTitleSeventeen.getText()).toEqual('Scheduling Work and Activities'); - expect(await WorkActivitiesDataSeventeen.getText()).toEqual('65%'); - expect(await WorkActivitiesTitleEighteen.getText()).toEqual('Provide Consultation and Advice to Others'); - expect(await WorkActivitiesDataEighteen.getText()).toEqual('64%'); - expect(await WorkActivitiesTitleNineteen.getText()).toEqual('Evaluating Information to Determine Compliance with Standards'); - expect(await WorkActivitiesDataNineteen.getText()).toEqual('62%'); - expect(await WorkActivitiesTitleTwenty.getText()).toEqual('Coordinating the Work and Activities of Others'); - expect(await WorkActivitiesDataTwenty.getText()).toEqual('61%'); - expect(await WorkActivitiesTitleTwentyOne.getText()).toEqual('Estimating the Quantifiable Characteristics of Products, Events, or Information'); - expect(await WorkActivitiesDataTwentyOne.getText()).toEqual('61%'); - expect(await WorkActivitiesTitleTwentyTwo.getText()).toEqual('Developing and Building Teams'); - expect(await WorkActivitiesDataTwentyTwo.getText()).toEqual('52%'); - expect(await WorkActivitiesTitleTwentyThree.getText()).toEqual('Training and Teaching Others'); - expect(await WorkActivitiesDataTwentyThree.getText()).toEqual('52%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Ability() { - it(': Ability, should click Ability link and validate data', async function () { - var AbilityLink = element(by.css('td:nth-child(6) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var AbilityTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var AbilityDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var AbilityTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var AbilityDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var AbilityTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var AbilityDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center')); - var AbilityTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var AbilityDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var AbilityTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var AbilityDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center')); - var AbilityTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var AbilityDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center')); - var AbilityTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var AbilityDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-center')); - var AbilityTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var AbilityDataEight = element(by.css('.ng-scope:nth-child(8) > .text-center')); - var AbilityTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var AbilityDataNine = element(by.css('.ng-scope:nth-child(9) > .text-center')); - var AbilityTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var AbilityDataTen = element(by.css('.ng-scope:nth-child(10) > .text-center')); - var AbilityTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var AbilityDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-center')); - var AbilityTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var AbilityDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center')); - var AbilityTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var AbilityDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center')); - var AbilityTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var AbilityDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center')); - var AbilityTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var AbilityDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center')); - var AbilityTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding:nth-child(1)')); - var AbilityDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-center')); - var AbilityTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding:nth-child(1)')); - var AbilityDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-center')); - var AbilityTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding:nth-child(1)')); - var AbilityDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-center')); - var XCloseLink = element(by.css('.close')); - - await AbilityLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Ability'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await AbilityTitleOne.getText()).toEqual('Deductive Reasoning'); - expect(await AbilityDataOne.getText()).toEqual('72%'); - expect(await AbilityTitleTwo.getText()).toEqual('Inductive Reasoning'); - expect(await AbilityDataTwo.getText()).toEqual('72%'); - expect(await AbilityTitleThree.getText()).toEqual('Problem Sensitivity'); - expect(await AbilityDataThree.getText()).toEqual('69%'); - expect(await AbilityTitleFour.getText()).toEqual('Fluency of Ideas'); - expect(await AbilityDataFour.getText()).toEqual('66%'); - expect(await AbilityTitleFive.getText()).toEqual('Information Ordering'); - expect(await AbilityDataFive.getText()).toEqual('66%'); - expect(await AbilityTitleSix.getText()).toEqual('Near Vision'); - expect(await AbilityDataSix.getText()).toEqual('66%'); - expect(await AbilityTitleSeven.getText()).toEqual('Oral Comprehension'); - expect(await AbilityDataSeven.getText()).toEqual('66%'); - expect(await AbilityTitleEight.getText()).toEqual('Oral Expression'); - expect(await AbilityDataEight.getText()).toEqual('66%'); - expect(await AbilityTitleNine.getText()).toEqual('Written Comprehension'); - expect(await AbilityDataNine.getText()).toEqual('66%'); - expect(await AbilityTitleTen.getText()).toEqual('Category Flexibility'); - expect(await AbilityDataTen.getText()).toEqual('63%'); - expect(await AbilityTitleEleven.getText()).toEqual('Speech Clarity'); - expect(await AbilityDataEleven.getText()).toEqual('60%'); - expect(await AbilityTitleTwelve.getText()).toEqual('Speech Recognition'); - expect(await AbilityDataTwelve.getText()).toEqual('60%'); - expect(await AbilityTitleThirteen.getText()).toEqual('Written Expression'); - expect(await AbilityDataThirteen.getText()).toEqual('60%'); - expect(await AbilityTitleFourteen.getText()).toEqual('Originality'); - expect(await AbilityDataFourteen.getText()).toEqual('56%'); - expect(await AbilityTitleFifteen.getText()).toEqual('Selective Attention'); - expect(await AbilityDataFifteen.getText()).toEqual('56%'); - expect(await AbilityTitleSixteen.getText()).toEqual('Mathematical Reasoning'); - expect(await AbilityDataSixteen.getText()).toEqual('53%'); - expect(await AbilityTitleSeventeen.getText()).toEqual('Number Facility'); - expect(await AbilityDataSeventeen.getText()).toEqual('50%'); - expect(await AbilityTitleEighteen.getText()).toEqual('Perceptual Speed'); - expect(await AbilityDataEighteen.getText()).toEqual('50%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyResourcesCarousel() { - it(': MyResourcesCarousel, should click My Resources carousel View All link, expand and collapse resources and remove latest resource', async function () { - var WidgetTitle = element(by.css('#id > .ng-scope > .jrnys_lead-body-copy')); - var TopResources1stCardHeader = element(by.css('.col-xs-4:nth-child(1) tr:nth-child(2) > .hotTitles')); - var TopResources1stCardSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)')); - var ViewAllLink = element(by.css('#id > .ng-scope .text-color-7a')); - var WidgetDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.col-xs-9 > .ng-binding')); - var EllipsisMyResources = element(by.css('.glyphicon-option-vertical')); - var XCloseLink = element(by.css('.close')); - - /*browser.actions().mouseMove(element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1990);').then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Resources View All'); - expect(await TopResources1stCardHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResources1stCardSaveIcon.click().then(function() { - browser.sleep(5000); - }); - await ViewAllLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - expect(await WidgetDivTitle.getText()).toEqual('My Resources'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - await MyResourceTitle.click(); - browser.sleep(1000); - await EllipsisMyResources.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InstitutionsCarousel() { - it(': InstitutionsCarousel, should click Institution carousel View All link', async function () { - var WidgetTitle = element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy')); - var ViewAllLink = element(by.css('#myInstitutionsCollapsed .text-color-7a')); - var EditSearchWidgetTitle = element(by.css('.panel-with-page > .row > b')); - var BackLink = element(by.css('.btn-primary-back-mod')); - - /*browser.actions().mouseMove(element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 2465);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Institutions View All'); - await ViewAllLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - expect(await EditSearchWidgetTitle.getText()).toEqual('Edit Search'); - browser.sleep(2500); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await BackLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyJourneys() { - it(': MyJourneys, should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () { - var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)')); - var JourneySteps = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div')); - var LearnMoreLink = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) #appendHere > .jrnys_support-text')); - var JourneyLearnMoreTitle = element(by.css('.col-md-12 > .ng-binding')); - var JourneyWayPoint = element(by.css('.select-waypointTitle')); - var JourneyResource = element(by.css('.relatedResourceTitleRow')); - var JourneyNoResource = element(by.css('.col-md-12 > .col-md-12')); - var RightScroll = element(by.css('.glyphicon-menu-right')); - var BackLink = element(by.css('.btn-primary-back-mod')); - - /*browser.actions().mouseMove(element(by.id('journeyListWidget'))).perform(); - browser.sleep(5000);*/ - browser.executeScript('window.scrollTo(0, 3315);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('My Journeys'); - expect(await JourneySteps.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await JourneySteps.getText()).toContain('Learn More'); - expect(await JourneySteps.getText()).toContain('5 steps (0 Complete)'); - await LearnMoreLink.click(); - browser.sleep(5000); - expect(await JourneyLearnMoreTitle.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await JourneyWayPoint.getText()).toEqual('10'); - expect(await JourneyResource.getText()).toEqual('cnn'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('11'); - expect(await JourneyResource.getText()).toEqual('This is CNN'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('12'); - expect(await JourneyResource.getText()).toEqual('cnn'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('Computer Security Graduate Certificate'); - expect(await JourneyNoResource.getText()).toEqual('Sorry, no related resources!'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('Computer and Information Systems Managers'); - expect(await JourneyResource.getText()).toEqual('Computer and Information Systems Managers (Business, Management and Administration)'); - //await BackLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyJourneysPage() { - it(': MyJourneysPage, should navigate to My Journeys page view and delete 1st journey', async function () { - var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover')); - var PageTitle = element(by.css('.jrnys_lead-body-copy')); - var PageSubTitle = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); - var Select1stJourneyTitle = element(by.xpath('//span[contains(.,"6 to Administrative Services Managers through Business Administration B.A./B.S.")]')); - var SelectedJourneyBubbleOne = element(by.css('#mCSB_1_container > .firstWaypoint .lblClass')); - var SelectedJourneyBubbleTwo = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(2) .lblClass')); - var SelectedJourneyBubbleThree = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(3) .lblClass')); - var SelectedJourneyBubbleFour = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(4) .lblClass')); - var SelectedJourneyBubbleFive = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(5) .lblClass')); - var SelectedJourneyBubbleSix = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(6) .lblClass')); - var SelectedJourneyBubbleSeven = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(7) .lblClass')); - var SelectedJourneyBubbleEightOne = element(by.css('.fullSize-Journey:nth-child(8) .triple-line > .lblClass:nth-child(1)')); - var SelectedJourneyBubbleEightTwo = element(by.css('.fullSize-Journey:nth-child(8) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleEightThree = element(by.css('.fullSize-Journey:nth-child(8) .lblClass:nth-child(3)')); - var SelectedJourneyBubbleNineOne = element(by.css('.fullSize-Journey:nth-child(9) .triple-line > .lblClass:nth-child(1)')); - var SelectedJourneyBubbleNineTwo = element(by.css('.fullSize-Journey:nth-child(9) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleNineThree = element(by.css('.fullSize-Journey:nth-child(9) .lblClass:nth-child(3)')); - var SelectedJourneyBubbleTenOne = element(by.css('.fullSize-Journey:nth-child(10) .triple-line > .lblClass:nth-child(1)')); - var SelectedJourneyBubbleTenTwo = element(by.css('.fullSize-Journey:nth-child(10) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleTenThree = element(by.css('.fullSize-Journey:nth-child(10) .lblClass:nth-child(3)')); - var SelectedJourneyTitle = element(by.css('.col-md-12 > .ng-binding')); - var SelectedJourneySubTitle = element(by.css('.select-waypointTitle')); - var SelectedJourneyRightArrow = element(by.css('.glyphicon-menu-right')); - var JourneyLearnMoreSubTitle = element(by.css('.details-resourceRowTitle')); - var ViewOnMapButton = element(by.css('.col-md-4 > .btn-info')); - var JourneyViewOnMapTitle = element(by.css('.ng-binding:nth-child(2)')); - var JourneyTitleOnMap = element(by.css('#journey-view-single > .side-bar-child-text')); - var HowAmIDoingButton = element(by.css('.btn-success')); - var DivTitle = element(by.css('h2')); - var DivSubTitle = element(by.css('p:nth-child(7)')); - var DivOkButton = element(by.css('.confirm')); - var RemoveJourneyButton = element(by.css('#saveJourneyButton')); - var EC = protractor.ExpectedConditions; - var BackLink = element(by.css('.btn-primary-back-mod')); - var PersistOnMapRadioButton = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b input')); - - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await expect(PageTitle.getText()).toEqual('My Saved Journeys'); - expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map'); - expect(await Select1stJourneyTitle.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await SelectedJourneyBubbleOne.getText()).toEqual('6'); - expect(await SelectedJourneyBubbleTwo.getText()).toEqual('7'); - expect(await SelectedJourneyBubbleThree.getText()).toEqual('8'); - expect(await SelectedJourneyBubbleFour.getText()).toEqual('9'); - expect(await SelectedJourneyBubbleFive.getText()).toEqual('10'); - expect(await SelectedJourneyBubbleSix.getText()).toEqual('11'); - expect(await SelectedJourneyBubbleSeven.getText()).toEqual('12'); - expect(await SelectedJourneyBubbleEightOne.getText()).toEqual('Business'); - expect(await SelectedJourneyBubbleEightTwo.getText()).toEqual('Administratio'); - expect(await SelectedJourneyBubbleEightThree.getText()).toEqual('n B.A./B.S.'); - expect(await SelectedJourneyBubbleNineOne.getText()).toEqual('Certified'); - expect(await SelectedJourneyBubbleNineTwo.getText()).toEqual('Audio'); - expect(await SelectedJourneyBubbleNineThree.getText()).toEqual('Engineer'); - expect(await SelectedJourneyBubbleTenOne.getText()).toEqual('Administrativ'); - expect(await SelectedJourneyBubbleTenTwo.getText()).toEqual('e Services'); - expect(await SelectedJourneyBubbleTenThree.getText()).toEqual('Managers'); - await Select1stJourneyTitle.click().then(function() { - browser.sleep(5000); - }); - - expect(await SelectedJourneyTitle.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await SelectedJourneySubTitle.getText()).toEqual('6'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('7'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('8'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('9'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('10'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('11'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('12'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Business Administration B.A./B.S.'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Certified Audio Engineer'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Administrative Services Managers'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources'); - await ViewOnMapButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyViewOnMapTitle.getText()).toEqual('Journey View'); - expect(await JourneyTitleOnMap.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await Select1stJourneyTitle.click().then(function() { - browser.sleep(5000); - }); - await HowAmIDoingButton.click().then(function() { - browser.sleep(5000); - }); - expect(await DivTitle.getText()).toEqual('Oops!'); - expect(await DivSubTitle.getText()).toEqual("Sorry, we can't give you a quiz for this."); - await DivOkButton.click().then(function() { - browser.sleep(2500); - }); - await RemoveJourneyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DivTitle.getText()).toEqual('Are you sure?'); - expect(await DivSubTitle.getText()).toEqual('You will not be able to recover this journey!'); - await DivOkButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DivTitle.getText()).toEqual('Deleted!'); - expect(await DivSubTitle.getText()).toEqual('Your journey has been deleted.'); - await DivOkButton.click(); - browser.wait(EC.invisibilityOf(ViewOnMapButton)); - browser.waitForAngular(); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - await PersistOnMapRadioButton.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.wait(EC.invisibilityOf(Select1stJourneyTitle)); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MapInteraction() { - it(': MapInteraction, should navigate to map and interact with it', async function () { - var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover')); - var MapSearchTextBox = element(by.css('#searchBox')); - var MapSearchIcon = element(by.css('.glyphicon-search')); - var CollegeTabLink = element(by.xpath('//md-tab-item[2]/span'));//css('#tab-item-1 > .ng-binding')); - var CollegePath = element(by.css('#tab-content-1 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt')); - var CollegeTitle = element(by.css('#tab-content-1 #searchitem0 .side-bar-child-text:nth-child(2)')); - var CollegeDescription = element(by.css('#tab-content-1 #searchitem0 .sidebarDescription')); - var CertificationTabLink = element(by.css('#tab-item-2 > .ng-binding')); - var CertificationPath = element(by.css('#tab-content-2 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var CertificationTitle = element(by.css('#tab-content-2 #searchitem0 .side-bar-child-text:nth-child(2)')); - var CertificationDescription = element(by.css('#tab-content-2 #searchitem0 .sidebarDescription')); - var K12TabLink = element(by.css('#tab-item-3 > .ng-binding')); - var K12Path = element(by.css('#tab-content-3 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var K12Title = element(by.css('#tab-content-3 #searchitem0 .side-bar-child-text:nth-child(2)')); - var K12Description = element(by.css('#tab-content-3 #searchitem0 .sidebarDescription')); - var MilitaryTabLink = element(by.css('#tab-item-4 > .ng-binding')); - var MilitaryPath = element(by.css('#tab-content-4 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var MilitaryTitle = element(by.css('#tab-content-4 #searchitem0 .side-bar-child-text:nth-child(2)')); - var MilitaryDescription = element(by.css('#tab-content-4 #searchitem0 > div > div.panel-collapse.in > div > div > military-map-details > div > div:nth-child(3) > div')); - var CTETabLlink = element(by.css('#tab-item-5 > .ng-binding')); - var CTEPath = element(by.css('#tab-content-5 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var CTETitle = element(by.css('#tab-content-5 #searchitem0 .side-bar-child-text:nth-child(2)')); - var CTEDescription = element(by.css('#tab-content-5 #searchitem0 .sidebarDescription')); - var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon')); - var CareerTabLink = element(by.css('#tab-item-0 > .ng-binding')); - var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text')); - var ItemFourPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)')); - var ItemFourTitle = element(by.css('.side-bar-child-text:nth-child(2)')); - var ItemFourCareerChoicesHeader = element(by.css('.ng-scope:nth-child(1) > .panel > .sidebarPanelHeading')); - var ItemFourCareerChoicesStat = element(by.css('.ng-scope:nth-child(1) > .panel > .panel-body > .ng-binding')); - var ItemFourSkillsHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading')); - var ItemFourSkillsStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding')); - var ItemFourAbilitiesHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading')); - var ItemFourAbilitiesStat = element(by.css('.ng-scope:nth-child(3) > .panel > .panel-body > .ng-binding')); - var ItemFourKnowledgeChoicesHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading')); - var ItemFourKnowledgeChoicesStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding')); - var ItemFourViewOnMapIcon = element(by.css('#searchitem3 .fas')); - var CollapseIconDetailPanel = element(by.css('.btn-info .fa-angle-left')); - var MapZoomOutIcon = element(by.css('.glyphicon-minus')); - var HideJourneyButton = element(by.css('#persistJourneyButton > .ng-binding')); - var MapZoomInIcon = element(by.css('.glyphicon-plus')); - var ExpandIconDetailPanel = element(by.css('div:nth-child(2) > .back-btn-mod')); - var BackLink = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > div:nth-child(1) > div')); - var ItemOnePath = element(by.css('#searchitem0 .ng-scope > div > .side-bar-ancestory-txt')); - var ItemOneTitle = element(by.css('#searchitem0 .side-bar-child-text')); - var ItemDescription = element(by.css('.sidebarDescription')); - var ItemOneDegreeHeader = element(by.css('.ng-scope > .panel-heading')); - var ItemOneDegree = element(by.css('.panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var ItemOneDegreeOneStat = element(by.css('.ng-scope > .panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(2)')); - var ItemOneDegreeTwo = element(by.css('.panel-body > .ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var ItemOneDegreeTwoStat = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)')); - var ItemOneDegreeThree = element(by.css('.panel-body > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var ItemOneDegreeThreeStat = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); - var ItemOneSalaryHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading')); - var ItemOneSalaryStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding')); - var ItemOneGrowthHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading')); - var ItemOneGrowthStat = element(by.css('.panel-body > .ng-binding:nth-child(2)')); - var ItemOneGrowthStatTwo = element(by.css('.ng-scope > .panel > .panel-body > .ng-scope:nth-child(3)')); - var ItemOneJobOpeningsHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading')); - var ItemOneJobOpeningsStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding')); - var ItemOneEmployedHeader = element(by.css('.ng-scope:nth-child(5) .sidebarPanelHeading')); - var ItemOneEmployedStat = element(by.css('.ng-scope:nth-child(5) .panel-body > .ng-binding')); - var ItemOneViewOnMapIcon = element(by.css('#searchitem0 .fas')); - var MapSearchClearIcon = element(by.css('.glyphicon-remove')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - MapHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst'); - await MapSearchIcon.click().then(function() { - browser.sleep(10000); - }); - await CollegeTabLink.click().then(function() { - browser.sleep(2500); - }); - await CollegePath.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >'); - expect(await CollegeTitle.getText()).toEqual('Publishing Software'); - expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)'); - browser.sleep(2500); - await CertificationTabLink.click().then(function() { - browser.sleep(2500); - }); - await CertificationPath.click().then(function() { - browser.sleep(2500); - }); - expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >'); - expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst'); - expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.'); - await K12TabLink.click().then(function() { - browser.sleep(2500); - }); - await K12Path.click().then(function() { - browser.sleep(2500); - }); - expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >'); - expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); - expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); - await MilitaryTabLink.click().then(function() { - browser.sleep(2500); - }); - await MilitaryPath.click().then(function() { - browser.sleep(2500); - }); - expect(await MilitaryPath.getText()).toEqual('Calibration Technician > STEM >'); - expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts'); - expect(await MilitaryDescription.getText()).toEqual('No details for this location.'); - await CTETabLlink.click().then(function() { - browser.sleep(2500); - }); - await CTEPath.click().then(function() { - browser.sleep(5000); - }); - expect(await CTEPath.getText()).toEqual('Information Technology > Programming & Software Development >'); - expect(await CTETitle.getText()).toEqual('Quality Assurance'); - expect(await CTEDescription.getText()).toEqual('Perform quality assurance tasks as part of the software development cycle.'); - await ArrowTabLink.click().then(function() { - browser.sleep(2500); - }); - await CareerTabLink.click().then(function() { - browser.sleep(2500); - }); - await SearchCareerFour.click().then(function() { - browser.sleep(2500); - }); - expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); - expect(await ItemFourCareerChoicesHeader.getText()).toEqual('CAREER CHOICES'); - expect(await ItemFourCareerChoicesStat.getText()).toEqual('2'); - expect(await ItemFourSkillsHeader.getText()).toEqual('SKILLS'); - expect(await ItemFourSkillsStat.getText()).toEqual('35'); - expect(await ItemFourAbilitiesHeader.getText()).toEqual('ABILITIES'); - expect(await ItemFourAbilitiesStat.getText()).toEqual('52'); - expect(await ItemFourKnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); - expect(await ItemFourKnowledgeChoicesStat.getText()).toEqual('33'); - browser.actions().mouseMove(ItemFourViewOnMapIcon).perform().then(function() { - browser.sleep(2500); - }); - await ItemFourViewOnMapIcon.click(); - browser.sleep(2500); - expect(await ItemFourPath.getText()).toEqual('Career > Cyber Security >'); - expect(await ItemFourTitle.getText()).toEqual('Software Development (DEV)'); - expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); - expect(await ItemFourCareerChoicesHeader.getText()).toEqual('CAREER CHOICES'); - expect(await ItemFourCareerChoicesStat.getText()).toEqual('2'); - expect(await ItemFourSkillsHeader.getText()).toEqual('SKILLS'); - expect(await ItemFourSkillsStat.getText()).toEqual('35'); - expect(await ItemFourAbilitiesHeader.getText()).toEqual('ABILITIES'); - expect(await ItemFourAbilitiesStat.getText()).toEqual('52'); - expect(await ItemFourKnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); - expect(await ItemFourKnowledgeChoicesStat.getText()).toEqual('33'); - await CollapseIconDetailPanel.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await HideJourneyButton.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(1000); - }); - await HideJourneyButton.click().then(function() { - browser.sleep(2500); - }); - await ExpandIconDetailPanel.click().then(function() { - browser.sleep(2500); - }); - await BackLink.click().then(function() { - browser.sleep(2500); - }); - await ItemOneTitle.click().then(function() { - browser.sleep(2500); - }); - expect(await ItemOnePath.getText()).toEqual('IT > Programming & Software Development >'); - expect(await ItemOneTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers'); - expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.'); - expect(await ItemOneDegreeHeader.getText()).toEqual('TYPICAL DEGREE'); - expect(await ItemOneDegree.getText()).toEqual('College (4 Year)'); - expect(await ItemOneDegreeOneStat.getText()).toEqual('70%'); - expect(await ItemOneDegreeTwo.getText()).toEqual("Associate's degree"); - expect(await ItemOneDegreeTwoStat.getText()).toEqual('15%'); - expect(await ItemOneDegreeThree.getText()).toEqual('Professional degree certificate'); - expect(await ItemOneDegreeThreeStat.getText()).toEqual('7%'); - expect(await ItemOneSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY'); - expect(await ItemOneSalaryStat.getText()).toEqual('$88,510'); - expect(await ItemOneGrowthHeader.getText()).toEqual('PROJECTED GROWTH'); - expect(await ItemOneGrowthStat.getText()).toEqual('9.3'); - expect(await ItemOneGrowthStatTwo.getText()).toEqual('%'); - expect(await ItemOneJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS'); - expect(await ItemOneJobOpeningsStat.getText()).toEqual('22,400'); - browser.actions().mouseMove(ItemOneViewOnMapIcon).perform().then(function() { - browser.sleep(2500); - }); - expect(await ItemOneEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED'); - expect(await ItemOneEmployedStat.getText()).toEqual('287,200'); - await MapSearchClearIcon.click(); - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyActivityJourneys() { - it(': MyActivityJourneys, should validate My Journeys widget under the My Activity Dashboard', async function () { - var MyDashboardLink = element(by.linkText('My Dashboards')); - var MyActivityLink = element(by.linkText('My Activity')); - var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)')); - var ViewAllLink = element(by.css('.hover-color:nth-child(3)')); - var MySavedJourneysTitle = element(by.css('.jrnys_lead-body-copy')); - var ViewOnMapText = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); - var MySavedJourneyOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer')); - var MySavedJourneyTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer')); - var MySavedJourneyThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer')); - var MySavedJournyeFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer')); - var JourneyTitleOne = element(by.css('.borderTop .jrnys_body-copy')); - var JourneyLearnMoreLinkOne = element(by.css('.borderTop > #appendHere > .jrnys_support-text')); - var JourneyLearnMoreTitle = element(by.css('.col-md-12 > .ng-binding')); - var BackLink = element(by.css('.btn-primary-back-mod')); - var JourneyProgressStepsOne = element(by.css('.borderTop')); - var JourneyTitleTwo = element(by.css('#appendHere > div.journeyListWidgetDisabled.ng-hide')); - var JourneyLearnMoreLinkTwo = element(by.css('.hideSmallRange #appendHere > .jrnys_support-text')); - var JourneyProgressStepsTwo = element(by.css('.hideSmallRange > div')); - var JourneyTitleThree = element(by.css('#appendHere > div.jrnys_body-copy.ellipsis-on-desktop-sm-view.ng-binding')); - var JourneyLearnMoreLinkThree = element(by.css('.hideMidRange #appendHere > .jrnys_support-text')); - var JourneyProgressStepsThree = element(by.css('.hideMidRange > div')); - var JourneyTitleFour = element(by.css('#appendHere > div.jrnys_body-copy.ellipsis-on-desktop-sm-view.ng-binding')); - var JourneyLearnMoreLinkFour = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) #appendHere > .jrnys_support-text')); - var JourneyProgressStepsFour = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div')); - var CreateAJourneyButton = element(by.css('.text-right > .btn')); - - browser.actions().mouseMove(element(by.css('.dashTitleBlock > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1500); - }); - await MyDashboardLink.click().then(function() { - browser.sleep(1500); - }); - browser.actions().mouseMove(element(by.css('.dashboard-menu > .dropDownFAEdits:nth-child(3) > a'))).perform().then(function() { - browser.sleep(1000); - }); - await MyActivityLink.click().then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Journeys'); - await ViewAllLink.click().then(function() { - browser.sleep(5000); - }); - expect(await MySavedJourneysTitle.getText()).toEqual('My Saved Journeys'); - expect(await ViewOnMapText.getText()).toEqual('Select a Journey to show it on the map'); - expect(await MySavedJourneyOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await MySavedJourneyTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); - expect(await MySavedJourneyThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await MySavedJournyeFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - await JourneyLearnMoreLinkOne.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyLearnMoreTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyProgressStepsOne.getText()).toContain('7 steps (0 Complete)'); - //expect(await JourneyTitleTwo.getText()).toEqual(''); - expect(await JourneyLearnMoreLinkTwo.getText()).toEqual('Learn More'); - expect(await JourneyProgressStepsTwo.getText()).toContain('4 steps (0 Complete)'); - //expect(await JourneyTitleThree.getText()).toEqual(''); - expect(await JourneyLearnMoreLinkThree.getText()).toEqual('Learn More'); - expect(await JourneyProgressStepsThree.getText()).toContain('5 steps (0 Complete)'); - //expect(await JourneyTitleFour.getText()).toEqual(''); - expect(await JourneyLearnMoreLinkFour.getText()).toEqual('Learn More'); - expect(await JourneyProgressStepsFour.getText()).toContain('13 steps (0 Complete)'); - browser.executeScript('window.scrollTo(0, 235);').then(function() { - browser.sleep(1000); - }); - expect(await CreateAJourneyButton.getText()).toContain('Create a Journey'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SurveyMetrics() { - it(': SurveyMetrics, should navigate to My Activity Dashboard and interact with Survey Metrics widget and validate data of 07/30/2019', async function () { - var SurveyMetricsTitle = element(by.css('.widget-round-corners:nth-child(2) .fullHeight > .jrnys_lead-body-copy')); - var MostRecentResultsTitle = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-4')); - var MostRecentResultsStat = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-9')); - var SurveyHistoryTitle = element(by.css('.inner-content-padding:nth-child(2) > .col-sm-4')); - var SurveyHistoryStat = element(by.css('.jrnys_support-text:nth-child(2) > .ng-binding')); - var TimesTakenTitle = element(by.css('.inner-content-padding:nth-child(3) > .col-sm-4')); - var TimesTakenStat = element(by.css('.inner-content-padding:nth-child(3) > .col-sm-9')); - var NumberOfManualChangesTitle = element(by.css('.inner-content-padding:nth-child(4) > .col-sm-4')); - var NumberOfManualChangesStat = element(by.css('.inner-content-padding:nth-child(4) > .col-sm-9')); - var SurveyResultsViewAll = element(by.linkText('View All')); - var SurveyResultsDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var SurveyResultsDivTop3 = element(by.css('.jrnys_main-headline')); - var SurveyResultsDivSubTitle = element(by.css('.jrnys_lead-body-copy:nth-child(4)')); - var SurveyResultsDivSubTitleTwo = element(by.css('.jrnys_lead-body-copy:nth-child(6)')); - var SurveyResultsDivSubText = element(by.css('.col-sm-8:nth-child(1)')); - var SurveyResultsDivRealistic = element(by.css('.col-sm-6:nth-child(1) > .jrnys_lead-body-copy')); - var SurveyResultsDivRealisticReadMore = element(by.css('.text-center:nth-child(1) > .text-color-7a')); - var SurveyResultsReadMoreTitle = element(by.css('.col-lg-12 > .ng-binding')); - var SurveyResultsReadMoreDivDescription = element(by.css('.col-lg-12:nth-child(3)')); - var SurveyResultsDivXCloseLink = element(by.css('.default-color4a')); - var SurveyResultsDivInvestigative = element(by.css('.col-sm-6:nth-child(2) > .jrnys_lead-body-copy')); - var SurveyResultsDivInvestigativeReadMore = element(by.css('.text-center:nth-child(2) > .text-color-7a')); - var SurveyResultsDivArtistic = element(by.css('.text-center:nth-child(3) > .jrnys_lead-body-copy')); - var SurveyResultsDivArtisticReadMore = element(by.css('.text-center:nth-child(3) > .text-color-7a')); - var SurveyResultsDivSocial = element(by.css('.text-center:nth-child(4) > .jrnys_lead-body-copy')); - var SurveyResultsDivSocialReadMore = element(by.css('.text-center:nth-child(4) > .text-color-7a')); - var SurveyResultsDivEnterprising = element(by.css('.text-center:nth-child(5) > .jrnys_lead-body-copy')); - var SurveyResultsDivEnterprisingReadMore = element(by.css('.text-center:nth-child(5) > .text-color-7a')); - var SurveyResultsDivConventional = element(by.css('.text-center:nth-child(6) > .jrnys_lead-body-copy')); - var SurveyResultsDivConventionalReadMore = element(by.css('.text-center:nth-child(6) > .text-color-7a')); - var SurveyResultsReadMoreXCloseLink = element(by.css('.close > .fa')); - - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - expect(await SurveyMetricsTitle.getText()).toEqual('Survey Metrics View All'); - expect(await MostRecentResultsTitle.getText()).toEqual('Most Recent Result'); - expect(await MostRecentResultsStat.getText()).toEqual('Enterprising, Investigative, and Conventional'); - expect(await SurveyHistoryTitle.getText()).toEqual('Survey History'); - expect(await SurveyHistoryStat.getText()).toContain('Last Taken 2020-'); - expect(await TimesTakenTitle.getText()).toEqual('Times Taken'); - expect(await NumberOfManualChangesTitle.getText()).toEqual('Number of Manual Changes'); - await SurveyResultsViewAll.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivTitle.getText()).toContain('Survey Results for Automated Regression'); - element(by.cssContainingText('option', '2019-07-30 | 15:48:30')).click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivSubTitle.getText()).toContain("Automated's top strengths are:"); - expect(await SurveyResultsDivTop3.getText()).toContain('Artistic, Realistic, and Investigative'); - expect(await SurveyResultsDivSubTitleTwo.getText()).toContain('What does this mean?'); - expect(await SurveyResultsDivSubText.getText()).toContain('Artistic personality types are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative. Realistic personality types are independent, stable, persistent, genuine, practical, and thrifty.'); - expect(await SurveyResultsDivRealistic.getText()).toContain('Realistic'); - await SurveyResultsDivRealisticReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Realistic'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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.'); - await SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivInvestigative.getText()).toContain('Investigative'); - await SurveyResultsDivInvestigativeReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Investigative'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivArtistic.getText()).toContain('Artistic'); - await SurveyResultsDivArtisticReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Artistic'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivSocial.getText()).toContain('Social'); - await SurveyResultsDivSocialReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Social'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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.'); - await SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivEnterprising.getText()).toContain('Enterprising'); - await SurveyResultsDivEnterprisingReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Enterprising'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivConventional.getText()).toContain('Conventional'); - await SurveyResultsDivConventionalReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Conventional'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await SurveyResultsDivXCloseLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Logins() { - it(': Logins, should validate Logins widget under the My Activity Dashboard', async function () { - var LoginsWidgetTitle = element(by.css('.jrnys_lead-body-copy .col-lg-4')); - var LastLoggedInHeader = element(by.css('.login-display-row:nth-child(1) > .col-lg-4')); - var MonthOfHeader = element(by.css('.month-picker-lbl')); - var TotalLoginsHeader = element(by.css('.row:nth-child(3) > .col-lg-4')); - var TotalLoginsData = element(by.css('.row:nth-child(3) > .col-lg-8')); - var WeeklyCeilingLogin = element(by.css('text:nth-child(19)')); - var SundayHeader = element(by.css('text:nth-child(8)')); - var MondayHeader = element(by.css('text:nth-child(9)')); - var MondayData = element(by.css('rect:nth-child(2)')); - var TuesdayHeader = element(by.css('text:nth-child(10)')); - var TuesdayData = element(by.css('rect:nth-child(3)')); - var WednesdayHeader = element(by.css('text:nth-child(11)')); - var WednesdayData = element(by.css('rect:nth-child(4)')); - var ThursdayHeader = element(by.css('text:nth-child(12)')); - var ThursdayData = element(by.css('rect:nth-child(5)')); - var FridayHeader = element(by.css('text:nth-child(13)')); - var SaturdayHeader = element(by.css('text:nth-child(14)')); - var CalendarIcon = element(by.css('.fa-calendar')); - var CalendarLeftIcon = element(by.css('.glyphicon-chevron-left')); - var MonthOfNovember = element(by.xpath('//span[contains(.,"November")]')); - var ViewAllLink = element(by.css('.col-lg-4 > .text-color-7a')); - var LoginsDivTitle = element(by.css('.modalTitle')); - var November2019 = element(by.css('#loginMonthPicker > .month-picker-lbl')); - var LastLoggedInDivHeader = element(by.css('.row:nth-child(2) > .col-lg-3')); - var TotalLoginsDivHeader = element(by.css('.row:nth-child(3) > .col-lg-3')); - var TotalLoginsDivData = element(by.css('.row:nth-child(3) > .col-lg-9')); - var FrequencyOfLoginsDivHeader = element(by.css('.login-display-row:nth-child(4) > .col-xs-12')); - var FavoriteDaysToLoginDivHeader = element(by.css('.col-md-8 > div:nth-child(1)')); - var FavoriteDayDivHeaderOne = element(by.css('.col-md-8 > .ng-scope:nth-child(2) > .ng-binding')); - var FavoriteDayDivHeaderTwo = element(by.css('.ng-scope:nth-child(3) > .ng-binding')); - var FavoriteDayDivHeaderThree = element(by.css('.ng-scope:nth-child(4) > .ng-binding')); - var MonthLoginCeiling = element(by.css('text:nth-child(65)')); - var November1Header = element(by.css('#monthChart > text:nth-child(31)')); - var November2Header = element(by.css('#monthChart > text:nth-child(32)')); - var November3Header = element(by.css('#monthChart > text:nth-child(33)')); - var November4Header = element(by.css('#monthChart > text:nth-child(34)')); - var November5Header = element(by.css('#monthChart > text:nth-child(35)')); - var November6Header = element(by.css('#monthChart > text:nth-child(36)')); - var November7Header = element(by.css('#monthChart > text:nth-child(37)')); - var November8Header = element(by.css('#monthChart > text:nth-child(38)')); - var November9Header = element(by.css('#monthChart > text:nth-child(39)')); - var November10Header = element(by.css('#monthChart > text:nth-child(40)')); - var November11Header = element(by.css('#monthChart > text:nth-child(41)')); - var November12Header = element(by.css('#monthChart > text:nth-child(42)')); - var November13Header = element(by.css('#monthChart > text:nth-child(43)')); - var November14Header = element(by.css('#monthChart > text:nth-child(44)')); - var November15Header = element(by.css('#monthChart > text:nth-child(45)')); - var November16Header = element(by.css('#monthChart > text:nth-child(46)')); - var November17Header = element(by.css('#monthChart > text:nth-child(47)')); - var November18Header = element(by.css('#monthChart > text:nth-child(48)')); - var November18Data = element(by.css('#monthChart > rect:nth-child(18)')); - var November19Header = element(by.css('text:nth-child(49)')); - var November19Data = element(by.css('#monthChart > rect:nth-child(19)')); - var November20Header = element(by.css('text:nth-child(50)')); - var November21Header = element(by.css('text:nth-child(51)')); - var November22Header = element(by.css('text:nth-child(52)')); - var November23Header = element(by.css('#monthChart > text:nth-child(53)')); - var November24Header = element(by.css('text:nth-child(54)')); - var November25Header = element(by.css('text:nth-child(55)')); - var November26Header = element(by.css('text:nth-child(56)')); - var November27Header = element(by.css('text:nth-child(57)')); - var November28Header = element(by.css('text:nth-child(58)')); - var November29Header = element(by.css('text:nth-child(59)')); - var November30Header = element(by.css('text:nth-child(60)')); - var MonthlyTuesdayCeiling = element(by.css('#hourChart > text:nth-child(53)')); - var MonthlyTuesday12amHeader = element(by.css('text:nth-child(25)')); - var MonthlyTuesday3amHeader = element(by.css('text:nth-child(28)')); - var MonthlyTuesday6amHeader = element(by.css('#hourChart > text:nth-child(31)')); - var MonthlyTuesday9amHeader = element(by.css('#hourChart > text:nth-child(34)')); - var MonthlyTuesday12pmHeader = element(by.css('#hourChart > text:nth-child(37)')); - var MonthlyTuesday3pmHeader = element(by.css('#hourChart > text:nth-child(40)')); - var MonthlyTuesday3pmData = element(by.css('#hourChart > rect:nth-child(16)')); - var MonthlyTuesday6pmHeader = element(by.css('#hourChart > text:nth-child(43)')); - var MonthlyTuesday9pmHeader = element(by.css('#hourChart > text:nth-child(46)')); - var LoginsDivXCloseLink = element(by.css('.close')); - - browser.executeScript('window.scrollTo(0, 235);').then(function() { - browser.sleep(2500); - }); - expect(await LoginsWidgetTitle.getText()).toEqual('Logins View All'); - expect(await LastLoggedInHeader.getText()).toEqual('Last Logged In:'); - expect(await MonthOfHeader.getText()).not.toEqual('Month of November, 2019'); - expect(await TotalLoginsHeader.getText()).toEqual('Total Logins:'); - expect(await SundayHeader.getText()).toEqual('S'); - expect(await MondayHeader.getText()).toEqual('M'); - browser.actions().mouseMove(MondayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await TuesdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(TuesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await WednesdayHeader.getText()).toEqual('W'); - browser.actions().mouseMove(WednesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await ThursdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(ThursdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await FridayHeader.getText()).toEqual('F'); - expect(await SaturdayHeader.getText()).toEqual('S'); - await CalendarIcon.click().then(function() { - browser.sleep(2500); - }); - await CalendarLeftIcon.click().then(function() { - browser.sleep(2500); - }); - await MonthOfNovember.click().then(function() { - browser.sleep(2500); - }); - expect(await LoginsWidgetTitle.getText()).toEqual('Logins View All'); - expect(await LastLoggedInHeader.getText()).toEqual('Last Logged In:'); - expect(await MonthOfHeader.getText()).not.toEqual('Month of November, 2019'); - expect(await TotalLoginsHeader.getText()).toEqual('Total Logins:'); - expect(await WeeklyCeilingLogin.getText()).toEqual('132'); - expect(await TotalLoginsData.getText()).toEqual('404'); - expect(await MondayHeader.getText()).toEqual('M'); - browser.actions().mouseMove(MondayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await TuesdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(TuesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await WednesdayHeader.getText()).toEqual('W'); - browser.actions().mouseMove(WednesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await ThursdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(ThursdayData).perform().then(function() { - browser.sleep(2500); - }); - await ViewAllLink.click().then(function() { - browser.sleep(5000); - }); - expect(await LoginsDivTitle.getText()).toEqual('Login Results for Automated Regression'); - expect(await November2019.getText()).toEqual('11/2019'); - expect(await LastLoggedInDivHeader.getText()).toEqual('Last Logged In:'); - expect(await TotalLoginsDivHeader.getText()).toEqual('Total Logins:'); - expect(await TotalLoginsDivData.getText()).toEqual('404'); - expect(await FrequencyOfLoginsDivHeader.getText()).toEqual('Frequency of logins for the month of November 2019:'); - expect(await FavoriteDaysToLoginDivHeader.getText()).toEqual('Favorite days to login'); - expect(await FavoriteDayDivHeaderOne.getText()).toEqual('Tuesday - 132'); - expect(await FavoriteDayDivHeaderTwo.getText()).toEqual('Monday - 110'); - expect(await FavoriteDayDivHeaderThree.getText()).toEqual('Thursday - 101'); - expect(await MonthLoginCeiling.getText()).toEqual('60'); - expect(await November1Header.getText()).toEqual('1'); - expect(await November2Header.getText()).toEqual('2'); - expect(await November3Header.getText()).toEqual('3'); - expect(await November4Header.getText()).toEqual('4'); - expect(await November5Header.getText()).toEqual('5'); - expect(await November6Header.getText()).toEqual('6'); - expect(await November7Header.getText()).toEqual('7'); - expect(await November8Header.getText()).toEqual('8'); - expect(await November9Header.getText()).toEqual('9'); - expect(await November10Header.getText()).toEqual('10'); - expect(await November11Header.getText()).toEqual('11'); - expect(await November12Header.getText()).toEqual('12'); - expect(await November13Header.getText()).toEqual('13'); - expect(await November14Header.getText()).toEqual('14'); - expect(await November15Header.getText()).toEqual('15'); - expect(await November16Header.getText()).toEqual('16'); - expect(await November17Header.getText()).toEqual('17'); - expect(await November18Header.getText()).toEqual('18'); - browser.actions().mouseMove(November18Data).perform().then(function() { - browser.sleep(2500); - }); - expect(await November19Header.getText()).toEqual('19'); - browser.actions().mouseMove(November19Data).perform().then(function() { - browser.sleep(2500); - }); - expect(await November20Header.getText()).toEqual('20'); - expect(await November21Header.getText()).toEqual('21'); - expect(await November22Header.getText()).toEqual('22'); - expect(await November23Header.getText()).toEqual('23'); - expect(await November24Header.getText()).toEqual('24'); - expect(await November25Header.getText()).toEqual('25'); - expect(await November26Header.getText()).toEqual('26'); - expect(await November27Header.getText()).toEqual('27'); - expect(await November28Header.getText()).toEqual('28'); - expect(await November29Header.getText()).toEqual('29'); - expect(await November30Header.getText()).toEqual('30'); - expect(await MonthlyTuesdayCeiling.getText()).toEqual('24'); - expect(await MonthlyTuesday12amHeader.getText()).toEqual('12a'); - expect(await MonthlyTuesday3amHeader.getText()).toEqual('3a'); - expect(await MonthlyTuesday6amHeader.getText()).toEqual('6a'); - expect(await MonthlyTuesday9amHeader.getText()).toEqual('9a'); - expect(await MonthlyTuesday12pmHeader.getText()).toEqual('12p'); - expect(await MonthlyTuesday3pmHeader.getText()).toEqual('3p'); - browser.actions().mouseMove(MonthlyTuesday3pmData).perform().then(function() { - browser.sleep(2500); - }); - expect(await MonthlyTuesday6pmHeader.getText()).toEqual('6p'); - expect(await MonthlyTuesday9pmHeader.getText()).toEqual('9p'); - await LoginsDivXCloseLink.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InstitutionMetrics() { - it(': InstitutionMetrics, should validate Institution Metrics widget data', async function () { - var InstitutionMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .widget-padding > .jrnys_lead-body-copy')); - var InstitutionsOfInterestTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy')); - var InstitutionsOfInterestStat = element(by.css('.fullHeight:nth-child(1) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text')); - var AverageCostTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy')); - var AverageCostStat = element(by.css('.fullHeight:nth-child(1) > .widget-padding .td-metrics-data-width:nth-child(4) .jrnys_stand-out-text')); - var AverageSATACTScoresTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy')); - var AverageSATSubTitle = element(by.css('.text-left > .col-sm-3:nth-child(2)')); - var AverageSATReadingWritingStat = element(by.css('.col-md-9:nth-child(3) > div:nth-child(1)')); - var AverageSATMathStat = element(by.css('.col-md-9:nth-child(3) > div:nth-child(2)')); - var AverageACTSubTitle = element(by.css('.jrnys_stand-out-text:nth-child(4)')); - var AverageACTEnglishStat = element(by.css('.col-md-9 > .ng-binding:nth-child(1)')); - var AverageACTMathStat = element(by.css('.col-md-9 > .ng-binding:nth-child(2)')); - var AverageACTCumulativeStat = element(by.css('.col-md-9 > .ng-binding:nth-child(3)')); - var TopThreeLocationsTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)')); - var TopThreeLocationsStat = element(by.css('.td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(2)')); - var TypeOfInstitutionTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)')); - var TypeOfInstitutionStatOne = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(2)')); - var TypeOfInstitutionStatTwo = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(3)')); - var AverageGraduationRateTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)')); - var AverageGraduationRateStat = element(by.css('.col-sm-4:nth-child(2)')); - - /*browser.actions().mouseMove(element(by.css('#id > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 720);').then(function() { - browser.sleep(2500); - }); - expect(await InstitutionMetricsWidgetTitle.getText()).toEqual('Institution Metrics'); - expect(await InstitutionsOfInterestTitle.getText()).toEqual('Institutions Of Interest'); - expect(await InstitutionsOfInterestStat.getText()).toContain('3'); - expect(await AverageCostTitle.getText()).toContain('Average Cost'); - expect(await AverageCostStat.getText()).toContain('24,391/year'); - expect(await AverageSATACTScoresTitle.getText()).toContain('Average SAT/ACT Scores'); - expect(await AverageSATSubTitle.getText()).toContain('SAT'); - expect(await AverageSATReadingWritingStat.getText()).toContain('Reading & Writing - 612'); - expect(await AverageSATMathStat.getText()).toContain('Math - 615'); - expect(await AverageACTSubTitle.getText()).toContain('ACT'); - expect(await AverageACTEnglishStat.getText()).toContain('English - 27'); - expect(await AverageACTMathStat.getText()).toContain('Math - 26'); - expect(await AverageACTCumulativeStat.getText()).toContain('Cumulative - 27'); - expect(await TopThreeLocationsTitle.getText()).toContain('Top 3 Locations'); - expect(await TopThreeLocationsStat.getText()).toContain('CA'); - expect(await TypeOfInstitutionTitle.getText()).toContain('Type of Institution'); - expect(await TypeOfInstitutionStatOne.getText()).toContain('Public - 33%'); - expect(await TypeOfInstitutionStatTwo.getText()).toContain('Private nonprofit - 67%'); - expect(await AverageGraduationRateTitle.getText()).toContain('Average Graduation Rate'); - expect(await AverageGraduationRateStat.getText()).toContain('77%'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InstitutionsOfInterest() { - it(': InstitutionsOfInterest, should validate Institutions Of Interest widget data', async function () { - var InstitutionsOfInterestWidgetTitle = element(by.css('#id > .jrnys_lead-body-copy')); - var InstitutionsCardTitleOne = element(by.css('.col-xs-4:nth-child(1) .jrnys_body-copy')); - var InstitutionsUnfollowIconOne = element(by.css('.iconSpacing .journey-follow-selected')); - var InstitutionCardTitleTwo = element(by.css('.col-xs-4:nth-child(2) .jrnys_body-copy')); - var InstitutionCardTitleThree = element(by.css('.col-xs-4:nth-child(3) .jrnys_body-copy')); - var InstitutionOfInterestViewAllLink = element(by.css('.jrnys_lead-body-copy:nth-child(1) > .ng-binding')); - var InstitutionOfInterestDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var EllipsisInstitutions = element(by.css('.glyphicon-option-vertical:nth-child(1)')); - var InstitutionLearnMoreLink = element(by.css('.row:nth-child(1) > .col-xs-9 > span')); - var InstitutionDetailsLink = element(by.css('.row:nth-child(2) > .col-xs-9 > span')); - var UndergraduateStudentsTitle = element(by.css('.ng-scope:nth-child(1) > td > .item-title')); - var UndergraduateStudentsStat = element(by.css('.ng-scope:nth-child(1) > td > .item-body')); - var TuitionTitle = element(by.css('.ng-scope:nth-child(2) > td > .item-title')); - var TuitionStat = element(by.css('.ng-scope:nth-child(2) > td > .item-body')); - var GraduationRateTitle = element(by.css('.ng-scope:nth-child(3) > td > .item-title')); - var GraduationRateStat = element(by.css('.ng-scope:nth-child(3) > td > .item-body')); - var EarningsAfterSchoolTitle = element(by.css('.ng-scope:nth-child(4) > td > .item-title')); - var EarningsAfterSchoolStat = element(by.css('.ng-scope:nth-child(4) > td > .item-body')); - var InstitutionOfInterestDivXCloseLink = element(by.css('.default-color4a')); - var InstitutionCardLearnMoreButton = element(by.css('.in > .panel-body .row:nth-child(1) span')); - - /*browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1200);').then(function() { - browser.sleep(2500); - }); - expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All'); - expect(await InstitutionsCardTitleOne.getText()).toEqual('Golden Gate University-San Francisco'); - await InstitutionsUnfollowIconOne.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionCardTitleTwo.getText()).toEqual('San Diego State University'); - expect(await InstitutionCardTitleThree.getText()).toEqual('University of San Diego'); - await InstitutionOfInterestViewAllLink.click(); - expect(await InstitutionOfInterestDivTitle.getText()).toEqual('Institutions visited by Automated Regression'); - await EllipsisInstitutions.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionLearnMoreLink.getText()).toContain('Learn More'); - expect(await InstitutionDetailsLink.getText()).toContain('Details'); - expect(await UndergraduateStudentsTitle.getText()).toContain('Undergraduate Students'); - expect(await UndergraduateStudentsStat.getText()).toContain('29,781'); - expect(await TuitionTitle.getText()).toContain('Tuition'); - expect(await TuitionStat.getText()).toContain('$14,030'); - expect(await GraduationRateTitle.getText()).toContain('Graduation Rate'); - expect(await GraduationRateStat.getText()).toContain('0.7381'); - expect(await EarningsAfterSchoolTitle.getText()).toContain('Earnings After School'); - expect(await EarningsAfterSchoolStat.getText()).toContain('$51,000'); - browser.sleep(1000); - await InstitutionCardLearnMoreButton.click().then(function() { - browser.sleep(2500); - }) - browser.getAllWindowHandles().then(function (handles) { - var AtAGlanceWidgetTitle = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy')); - var FourYearTitle = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var FourYearStat = element(by.css('.row-height:nth-child(1) .ellipsis')); - var UndergraduateStudentsTitle = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var UndergraduateStudentsStat = element(by.css('.row-height:nth-child(2) .col-sm-offset-4 > div')); - var LocationTitle = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var LocationStat = element(by.css('.row-height:nth-child(3) .col-sm-offset-4 > div')); - var ClassroomsTitle = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var ClassroomsStat = element(by.css('.row-height:nth-child(4) .col-sm-offset-4 > div')); - var CostTitle = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var CostStat = element(by.css('.row-height:nth-child(5) .ellipsis')); - var GraduationRateTitle = element(by.css('.row-height:nth-child(6) .jrnys_support-text')); - var GraduationRateStat = element(by.css('.row-height:nth-child(6) .ellipsis')); - var ReturningStudentsTitle = element(by.css('.row-height:nth-child(7) .jrnys_support-text')); - var ReturningStudentsStat = element(by.css('.row-height:nth-child(7) .ellipsis')); - var AfterSchoolEarningsTitle = element(by.css('.row-height:nth-child(8) .jrnys_support-text')); - var AfterSchoolEarningsStat = element(by.css('.row-height:nth-child(8) .ellipsis')); - var PayingDownDebtTitle = element(by.css('.row-height:nth-child(9) .jrnys_support-text')); - var PayingDownDebtStat = element(by.css('.row-height:nth-child(9) .ellipsis')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - var LearnMoreInfoIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); - var DivTitle = element(by.css('.col-lg-12 > .ng-binding')); - var LearnMoreInfoDescription = element(by.linkText('http://www.sdsu.edu')); - var DivXCloseLink = element(by.css('.close > .fa')); - var LocationAndContactWidgetTitle = element(by.css('.widget-round-corners > .fullHeight > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var SchoolMapName = element(by.css('.col-xs-4:nth-child(1) > .ng-binding:nth-child(1)')); - var MapAddress = element(by.css('.col-xs-4 > .ng-binding:nth-child(2)')); - var AcademicProgramsWidgetTitle = element(by.css('#acadProgramsid > .jrnys_lead-body-copy')); - var AcademicProgramsInfoIcon = element(by.css('.header-carousel-icon')); - var DivDescription = element(by.css('.col-lg-12:nth-child(3)')); - var AcademicProgramsCardOne = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .jrnys_body-copy')); - var AcademicProgramsCardTwo = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .jrnys_body-copy')); - var AcademicProgramsCardThree = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .jrnys_body-copy')); - var TestScoresWidgetTitle = element(by.css('#TestScoresID .jrnys_lead-body-copy')); - var TestScoresWidgetInfoIcon = element(by.css('.header-icon:nth-child(2)')); - var TestScoresWidgetDescription = element(by.css('#TestScoresID > div:nth-child(2)')); - var TestScoresStatTitle = element(by.css('div:nth-child(3) > .ng-scope:nth-child(1) > .ng-binding')); - var TestScoresCriticalReading = element(by.css('.ng-scope:nth-child(1) > figure > .ng-binding')); - var CriticalReadingRangeStart = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-min > .ng-binding')); - var CriticalReadingRangeOne = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-lower > .ng-binding')); - var CriticalReadingRangeTwo = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-middle > .ng-binding')); - var CriticalReadingRangeThree = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-upper > .ng-binding')); - var CriticalReadingRangeEnd = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-max > .ng-binding')); - var TestScoresMath = element(by.css('.ng-scope:nth-child(2) > figure > .ng-binding')); - var MathRangeStart = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-min > .ng-binding')); - var MathRangeOne = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-lower > .ng-binding')); - var MathRangeTwo = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-middle > .ng-binding')); - var MathRangeThree = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-upper > .ng-binding')); - var MathRangeEnd = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-max > .ng-binding')); - var TestScoresWriting = element(by.css('.ng-scope:nth-child(3) > figure > .ng-binding')); - var WritingRangeStart = element(by.css('.ng-scope:nth-child(3) > figure .picc-range-label-min > .ng-binding')); - var WritingRangeEnd = element(by.css('.ng-scope:nth-child(3) > figure .picc-range-label-max > .ng-binding')); - var TestScoresACT = element(by.css('.ng-scope:nth-child(4) > .ng-binding')); - var ACTRangeStart = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-min > .ng-binding')); - var ACTRangeOne = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-lower > .ng-binding')); - var ACTRangeTwo = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-middle > .ng-binding')); - var ACTRangeThree = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-upper > .ng-binding')); - var ACTRangeEnd = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-max > .ng-binding')); - var GraduationAndRetentionWidgetTitle = element(by.css('#GraduationRetentionID .jrnys_lead-body-copy')); - var GraduationRateTitleTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) > .section-heading-wrapper > span')); - var GraduationRateInfoIcon = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) .fa')); - var GraduationRateStatOne = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) .label')); - var GraduationRateStatTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) figcaption > .ng-binding')); - var StudentsWhoReturnTitle = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) > .section-heading-wrapper > span')); - var StudentsWhoReturnInfoIcon = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) .fa')); - var StudentsWhoReturnStatOne = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) .label')); - var StudentsWhoReturnStatTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) figcaption > .ng-binding')); - var GraduationRetentionNationalAvg = element(by.css('#GraduationRetentionID > .row div:nth-child(3)')); - var CostWidgetTitle = element(by.css('#CostID .jrnys_lead-body-copy')); - var AverageAnnualCostTitle = element(by.css('#CostID .col-xs-6 > div > span')); - var AverageAnnualCostInfoIcon = element(by.css('#CostID > .row .fa')); - var AverageAnnualCostStatOne = element(by.css('.picc-meter-line > .font-size')); - var AverageAnnualCostStatTwo = element(by.css('figcaption > .font-size')); - var CostNationalAvg = element(by.css('.font-size:nth-child(3)')); - var CostWidgetHeader = element(by.css('.spacer-bottom-small')); - var CostWidgetDescription = element(by.css('.family-income-align')); - var CostByFamilyIncome = element(by.css('#CostID .col-xs-6:nth-child(2) > div:nth-child(3)')); - var FamilyIncomeHeader = element(by.css('.family-income-header > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatOne = element(by.css('.family-income-row:nth-child(5) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatTwo = element(by.css('.family-income-row:nth-child(6) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatThree = element(by.css('.family-income-row:nth-child(7) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatFour = element(by.css('.family-income-row:nth-child(8) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatFive = element(by.css('.family-income-row:nth-child(9) > .col-xs-6:nth-child(1)')); - var AverageCostHeader = element(by.css('.font-size:nth-child(2)')); - var AverageCostStatOne = element(by.css('.family-income-row:nth-child(5) > .text-center')); - var AverageCostStatTwo = element(by.css('.family-income-row:nth-child(6) > .text-center')); - var AverageCostStatThree = element(by.css('.family-income-row:nth-child(7) > .text-center')); - var AverageCostStatFour = element(by.css('.family-income-row:nth-child(8) > .text-center')); - var AverageCostStatFive = element(by.css('.family-income-row:nth-child(9) > .text-center')); - var FinancialAidAndDebtWidgetTitle = element(by.css('#FinancialAidDebtID .jrnys_lead-body-copy')); - var FinancialAidAndDebtInfoIcon = element(by.css('.header-icon:nth-child(1)')); - var TypicalTotalDebtTitle = element(by.css('.col-xs-5:nth-child(1) > div:nth-child(1)')); - var TypicalTotalDebtInfoIcon = element(by.css('.col-xs-5:nth-child(1) .fa')); - var TypicalTotalDebtStat = element(by.css('.col-xs-5:nth-child(1) > .ng-binding')); - var StudentLoansStat = element(by.css('.col-xs-6 tr:nth-child(1) > .ng-binding')); - var StudentLoansTitle = element(by.css('tr:nth-child(1) > .pie-label')); - var NoStudentLoansStat = element(by.css('tr:nth-child(2) > .ng-binding')); - var NoStudentLoansTitle = element(by.css('tr:nth-child(2) > .pie-label')); - var StudentsPayingDownDebtTitle = element(by.css('.spacer-bottom > .section-heading')); - var StudentsPayingDownDebtInfoIcon = element(by.css('.spacer-bottom > .fa')); - var PayingDownDebtStatOne = element(by.css('.debt-meter .label')); - var PayingDownDebtStatTwo = element(by.css('.debt-meter > figcaption > .ng-binding')); - var PayingDownDebtNationalAvg = element(by.css('.row:nth-child(3) > .col-xs-6 > div:nth-child(3)')); - var TypicalMonthlyLoanPaymentTitle = element(by.css('.col-xs-offset-1:nth-child(2) > div:nth-child(1)')); - var TypicalMonthlyLoanPaymentInfoIcon = element(by.css('.col-xs-5:nth-child(2) .fa')); - var TypicalMonthlyLoanPaymentStat = element(by.css('.col-xs-5:nth-child(2) > .ng-binding')); - var EarningsAfterSchoolWidgetTitle = element(by.css('#EarningsAfterSchoolID .jrnys_lead-body-copy')); - var PercentageEarningTitle = element(by.css('.col-xs-6:nth-child(1) > .earn-section-wrapper > span')); - var PercentageEarningInfoIcon = element(by.css('.col-xs-6:nth-child(1) > .earn-section-wrapper > .fa')); - var PercentageEarningStat = element(by.css('.col-xs-6 > .ng-binding:nth-child(2)')); - var PercentageEarningDescription = element(by.css('#EarningsAfterSchoolID .col-xs-6:nth-child(1) > div:nth-child(3)')); - var SalaryAfterAttendingTitle = element(by.css('.section-heading-wrapper > .section-heading')); - var SalaryAfterAttendingInfoIcon = element(by.css('.col-xs-6:nth-child(2) > .earn-section-wrapper > .fa')); - var SalaryAfterAttendingStatOne = element(by.css('#EarningsAfterSchoolID .label')); - var SalaryAfterAttendingStatTwo = element(by.css('#EarningsAfterSchoolID figcaption > .ng-binding')); - var SalaryAfterAttendingNationalAvg = element(by.css('#EarningsAfterSchoolID .col-xs-6:nth-child(2) > div:nth-child(3)')); - - browser.switchTo().window(handles[1]).then(async function () { - browser.sleep(5000); - expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122409"); - expect(await AtAGlanceWidgetTitle.getText()).toEqual('At A Glance'); - expect(await FourYearTitle.getText()).toEqual('4 year'); - expect(await FourYearStat.getText()).toEqual('Public'); - expect(await UndergraduateStudentsTitle.getText()).toEqual('Undergraduate Students'); - expect(await UndergraduateStudentsStat.getText()).toEqual('29,781'); - expect(await LocationTitle.getText()).toEqual('Location'); - expect(await LocationStat.getText()).toEqual('City'); - expect(await ClassroomsTitle.getText()).toEqual('Classrooms'); - expect(await ClassroomsStat.getText()).toEqual('Large'); - expect(await CostTitle.getText()).toEqual('Cost'); - expect(await CostStat.getText()).toEqual('Lower Than Average'); - expect(await GraduationRateTitle.getText()).toEqual('Graduation Rate'); - expect(await GraduationRateStat.getText()).toEqual('Above Average'); - expect(await ReturningStudentsTitle.getText()).toEqual('Returning students'); - expect(await ReturningStudentsStat.getText()).toEqual('Above Average'); - expect(await AfterSchoolEarningsTitle.getText()).toEqual('After School Earnings'); - expect(await AfterSchoolEarningsStat.getText()).toEqual('Above Average'); - expect(await PayingDownDebtTitle.getText()).toEqual('Paying Down Debt'); - expect(await PayingDownDebtStat.getText()).toEqual('Above Average'); - expect(await LearnMoreTitle.getText()).toEqual('San Diego State University'); - await LearnMoreInfoIcon.click(); - browser.sleep(2500); - expect(await DivTitle.getText()).toEqual('San Diego State University'); - expect(await LearnMoreInfoDescription.getText()).toEqual('http://www.sdsu.edu'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 165);').then(function() { - browser.sleep(1000); - }); - expect(await LocationAndContactWidgetTitle.getText()).toEqual('Location & Contact'); - expect(await SchoolMapName.getText()).toEqual('San Diego State University'); - expect(await MapAddress.getText()).toEqual('San Diego, CA 92182-0001'); - browser.sleep(2500); - browser.executeScript('window.scrollTo(0, 480);').then(function() { - browser.sleep(1000); - }); - expect(await AcademicProgramsWidgetTitle.getText()).toEqual('Academic Programs'); - await AcademicProgramsInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Academic Programs'); - expect(await DivDescription.getText()).toEqual('The five largest programs of study, as measured as the share of degrees awarded.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await AcademicProgramsCardOne.getText()).toEqual('Business, Management, Marketing, and Related Support Services'); - expect(await AcademicProgramsCardTwo.getText()).toEqual('Social Sciences'); - expect(await AcademicProgramsCardThree.getText()).toEqual('Health Professions and Related Programs'); - browser.executeScript('window.scrollTo(0, 1330);').then(function() { - browser.sleep(1000); - }); - expect(await TestScoresWidgetTitle.getText()).toEqual('Test Scores'); - await TestScoresWidgetInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Test Scores'); - expect(await DivDescription.getText()).toEqual('At schools that report their test scores, 50 percent had scores within this range. Of the remaining 50 percent, half were above the range and half were below. Not all schools require test scores.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TestScoresWidgetDescription.getText()).toEqual('Students who were admitted and enrolled typically has standardized test scores in these ranges.'); - expect(await TestScoresStatTitle.getText()).toEqual('SAT'); - expect(await TestScoresCriticalReading.getText()).toEqual('Critical Reading'); - expect(await CriticalReadingRangeStart.getText()).toEqual('0'); - expect(await CriticalReadingRangeOne.getText()).toEqual('550'); - expect(await CriticalReadingRangeTwo.getText()).toEqual('595'); - expect(await CriticalReadingRangeThree.getText()).toEqual('640'); - expect(await CriticalReadingRangeEnd.getText()).toEqual('800'); - expect(await TestScoresMath.getText()).toEqual('Math'); - expect(await MathRangeStart.getText()).toEqual('0'); - expect(await MathRangeOne.getText()).toEqual('540'); - expect(await MathRangeTwo.getText()).toEqual('595'); - expect(await MathRangeThree.getText()).toEqual('650'); - expect(await MathRangeEnd.getText()).toEqual('800'); - expect(await TestScoresWriting.getText()).toEqual('Writing(Data not available)'); - expect(await WritingRangeStart.getText()).toEqual('0'); - expect(await WritingRangeEnd.getText()).toEqual('800'); - expect(await TestScoresACT.getText()).toEqual('ACT'); - expect(await ACTRangeStart.getText()).toEqual('0'); - expect(await ACTRangeOne.getText()).toEqual('23'); - expect(await ACTRangeTwo.getText()).toEqual('26'); - expect(await ACTRangeThree.getText()).toEqual('28'); - expect(await ACTRangeEnd.getText()).toEqual('36'); - expect(await GraduationAndRetentionWidgetTitle.getText()).toEqual('Graduation & Retention'); - expect(await GraduationRateTitleTwo.getText()).toEqual('Graduation Rate'); - await GraduationRateInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Graduation Rate'); - expect(await DivDescription.getText()).toEqual('The graduation rate within 150 percent of the expected time to completion (typically six years for schools that award predominantly four-year degrees and three years for schools that award predominantly two-year degrees). These rates are only for full-time students enrolled for the first time.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await GraduationRateStatOne.getText()).toEqual('42%'); - expect(await GraduationRateStatTwo.getText()).toEqual('74%'); - expect(await StudentsWhoReturnTitle.getText()).toEqual('Students Who Return After Their First Year'); - await StudentsWhoReturnInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Students Who Return After Their First Year'); - expect(await DivDescription.getText()).toEqual('The share of first-time, full-time undergraduates who returned to the institution after their freshman year.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentsWhoReturnStatOne.getText()).toEqual('68%'); - expect(await StudentsWhoReturnStatTwo.getText()).toEqual('89%'); - expect(await GraduationRetentionNationalAvg.getText()).toEqual('---- National Average'); - expect(await CostWidgetTitle.getText()).toEqual('Cost'); - expect(await AverageAnnualCostTitle.getText()).toEqual('Average Annual Cost'); - await AverageAnnualCostInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Average Annual Cost'); - expect(await DivDescription.getText()).toEqual('The average annual net price for federal financial aid recipients, after aid from the school, state, or federal government. For public schools, this is only the average cost for in-state students.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await AverageAnnualCostStatOne.getText()).toEqual('$16,127'); - expect(await AverageAnnualCostStatTwo.getText()).toEqual('$14,030'); - expect(await CostNationalAvg.getText()).toEqual('---- National Average'); - expect(await CostWidgetHeader.getText()).toEqual('By Family Income'); - expect(await CostWidgetDescription.getText()).toEqual('Depending on the federal, state, or institutional grant aid available, students in your income bracket may pay more or less than the overall average costs.'); - expect(await CostByFamilyIncome.getText()).toEqual('Average cost by family income'); - expect(await FamilyIncomeHeader.getText()).toEqual('Family Income'); - expect(await FamilyIncomeStatOne.getText()).toEqual('$0-$30,000'); - expect(await FamilyIncomeStatTwo.getText()).toEqual('$30,001-$48,000'); - expect(await FamilyIncomeStatThree.getText()).toEqual('$48,001-$75,000'); - expect(await FamilyIncomeStatFour.getText()).toEqual('$75,001-$110,000'); - expect(await FamilyIncomeStatFive.getText()).toEqual('$110,001+'); - expect(await AverageCostHeader.getText()).toEqual('Average Cost'); - expect(await AverageCostStatOne.getText()).toEqual('$8,182'); - expect(await AverageCostStatTwo.getText()).toEqual('$10,145'); - expect(await AverageCostStatThree.getText()).toEqual('$14,311'); - expect(await AverageCostStatFour.getText()).toEqual('$18,262'); - expect(await AverageCostStatFive.getText()).toEqual('$20,547'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await FinancialAidAndDebtWidgetTitle.getText()).toEqual('Financial Aid & Debt'); - await FinancialAidAndDebtInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Students Receiving Federal Loans'); - expect(await DivDescription.getText()).toEqual('The share of undergraduate students who borrowed federal loans to help pay for college. Excludes Parent PLUS loans.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TypicalTotalDebtTitle.getText()).toEqual('Typical Total Debt'); - await TypicalTotalDebtInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Typical Total Debt'); - expect(await DivDescription.getText()).toEqual('The median federal debt of undergraduate borrowers who completed. This figure includes only federal loans; it excludes private student loans and Parent PLUS loans.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TypicalTotalDebtStat.getText()).toEqual('$15,340'); - expect(await StudentLoansStat.getText()).toEqual('31%'); - expect(await StudentLoansTitle.getText()).toEqual('Students Receiving Federal Loans'); - expect(await NoStudentLoansStat.getText()).toEqual('69%'); - expect(await NoStudentLoansTitle.getText()).toEqual('Not Receiving Student Loans'); - expect(await StudentsPayingDownDebtTitle.getText()).toEqual('Students Paying Down Debt'); - await StudentsPayingDownDebtInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Students Paying Down Debt'); - expect(await DivDescription.getText()).toEqual('The share of students who have repaid at least $1 of the principal balance on their federal loans within 3 years of leaving school.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await PayingDownDebtStatOne.getText()).toEqual('46%'); - expect(await PayingDownDebtStatTwo.getText()).toEqual('66%'); - expect(await PayingDownDebtNationalAvg.getText()).toEqual('---- National Average'); - expect(await TypicalMonthlyLoanPaymentTitle.getText()).toEqual('Typical Monthly Loan Payment'); - await TypicalMonthlyLoanPaymentInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Typical Monthly Loan Payment'); - expect(await DivDescription.getText()).toEqual('The median monthly load payment for students who completed, if it were repaid over 10 years at a 4.29 percent interest rate.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TypicalMonthlyLoanPaymentStat.getText()).toEqual('$159/mo'); - expect(await PercentageEarningTitle.getText()).toEqual('Percentage Earning Above High School Grad'); - expect(await EarningsAfterSchoolWidgetTitle.getText()).toEqual('Earnings After School'); - await PercentageEarningInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Percentage Earning Above High School Grad'); - expect(await DivDescription.getText()).toEqual('The share of former students earning more than $25,000, or about the average earnings of a high school graduate aged 25-34, 6 years after they first enroll.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await PercentageEarningStat.getText()).toEqual('70%'); - expect(await PercentageEarningDescription.getText()).toEqual('of students who attend this school earned, on average, more than those with only a high school diploma.'); - expect(await SalaryAfterAttendingTitle.getText()).toEqual('Salary After Attending'); - await SalaryAfterAttendingInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Salary After Attending'); - expect(await DivDescription.getText()).toEqual('The median earnings of former students who received federal financial aid, at 10 years after entering the school.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SalaryAfterAttendingStatOne.getText()).toEqual('$33,500'); - expect(await SalaryAfterAttendingStatTwo.getText()).toEqual('$51,000'); - expect(await SalaryAfterAttendingNationalAvg.getText()).toEqual('---- National Average'); - browser.driver.close(); - browser.switchTo().window(handles[0]); - browser.sleep(5000); - expect(browser.driver.getCurrentUrl()).toContain("/activityDashboard"); - expect(InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All'); - await InstitutionOfInterestDivXCloseLink.click().then(function() { - browser.sleep(2500); - }) - }); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function OccupationMetrics() { - it(': OccupationMetrics, should validate Occupation Metrics widget data', async function () { - var OccupationMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy')); - var OccupationsOfInterestTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy')); - var OccupationsOfInterestStat = element(by.css('.fullHeight:nth-child(2) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text')); - var AverageAnnualSalaryTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy')); - var AverageAnnualSalaryStat = element(by.css('.fullHeight:nth-child(2) > .widget-padding .td-metrics-data-width:nth-child(4) .jrnys_stand-out-text')); - var AverageProjectedJobOpeningsTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy')); - var AverageProjectedJobOpeningsStat = element(by.css('.text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) > .text-left > .ng-binding')); - var TopClustersTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)')); - var TopClustersStatOne = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(2)')); - var TopClustersStatTwo = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(3)')); - var TopClustersStatThree = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(4)')); - var AverageProjectedGrowthTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)')); - var AverageProjectedGrowthStat = element(by.css('.jrnys_body-copy:nth-child(2) > .ng-binding')); - var TypicalDegreesTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)')); - var TypicalDegreesStatOne = element(by.css('.td-metrics-data-width:nth-child(6) .ng-scope:nth-child(2)')); - var TypicalDegreesStatTwo = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(3)')); - var TypicalDegreesStatThree = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(4)')); - - /*browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 2050);').then(function() { - browser.sleep(10000); - }); - expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics'); - expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest'); - expect(await OccupationsOfInterestStat.getText()).toContain('81'); - expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary'); - expect(await AverageAnnualSalaryStat.getText()).toContain('$70,63'); - expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings'); - expect(await AverageProjectedJobOpeningsStat.getText()).toContain('23,523'); - expect(await TopClustersTitle.getText()).toContain('Top Clusters'); - expect(await TopClustersStatOne.getText()).toContain('Health Science'); - expect(await TopClustersStatTwo.getText()).toContain('Information Technology'); - expect(await TopClustersStatThree.getText()).toContain('Education & Training'); - expect(await AverageProjectedGrowthTitle.getText()).toContain('Average Projected Growth'); - expect(await AverageProjectedGrowthStat.getText()).toContain('LOWER THAN AVERAGE'); - expect(await TypicalDegreesTitle.getText()).toContain('Typical Degrees'); - expect(await TypicalDegreesStatOne.getText()).toContain('27% College (4 Year)'); - expect(await TypicalDegreesStatTwo.getText()).toContain("17% Master's degree"); - expect(await TypicalDegreesStatThree.getText()).toContain('11% High school'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function OccupationsOfInterest() { - it(': OccupationsOfInterest, should verify Occupations Of Interest widget data', async function () { - var OccupationsOfInterestWidgetTitle = element(by.css('#occupationVisitedId .jrnys_lead-body-copy')); - var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//territory-card/div/div[2]/div/div[2]/span')); - var OccupationsOfInterestViewAllLink = element(by.css('#occupationVisitedId .text-color-7a')); - var OccupationsOfInterestTitle = element(by.css('.col-sm-12 > .ng-binding')); - var OccupationsOfInterestFirstCard = element(by.id('territoryCardMobileTitle')); - var FirstOccupationCardDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.territoryCardDescriptionText.ng-binding')); - var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a')); - - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - /*browser.executeScript('window.scrollTo(0, 2350);').then(function() { - browser.sleep(2500); - });*/ - expect(await OccupationsOfInterestWidgetTitle.getText()).toEqual('Occupations Of Interest View All'); - await AtAGlanceHeaderRowIcon.click().then(function() { - browser.sleep(1000); - }); - await AtAGlanceBackOfCardXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await OccupationsOfInterestViewAllLink.click().then(function() { - browser.sleep(5000); - }); - expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations visited by Automated Regression'); - expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Computer and Information Systems Managers'); - await OccupationsOfInterestFirstCard.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - await OccupationsOfInterestXCloseLink.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function AccountProfile() { - it(': AccountProfile, should navigate to Account Profile and validate data', async function () { - var ProfileImage = element(by.css('.roundCenterBackgroundImage')); - var ProfileLink = element(by.linkText('Profile')); - var PageTitle = element(by.css('.view-title')); - var UserName = element(by.css('.only-bottom-margin')); - var EmailHandle = element(by.css('.col-md-8 > .text-muted:nth-child(1)')); - var BirthdayHandle = element(by.css('.text-muted:nth-child(3)')); - var ActiveRoleHandle = element(by.css('.text-muted:nth-child(5)')); - var ZipCodeHandle = element(by.css('.text-muted:nth-child(7)')); - var UserInfo = element(by.css('.col-md-8')); - var EditAccount = element(by.css('.btn:nth-child(12)')); - var EditPageTitle = element(by.css('.view-title')); - var FirstNameTextBox = element(by.xpath('//input[@name="first"]')); - var LastNameTextBox = element(by.xpath('//input[@name="lastname"]')); - var EmailAddressTextBox = element(by.xpath('//input[@name="email"]')); - var ZipCodeTextBox = element(by.xpath('//input[@name="zip"]')); - var BirthdayTextBox = element(by.css('#datepicker')); - var ChangePasswordButton = element(by.css('.btn-lg:nth-child(1)')); - var ChangePageTitle = element(by.css('h3')); - var ChangePasswordValidation = element(by.css('.requiredMark')); - var OldPasswordTextBox = element(by.xpath('//input[@name="password"]')); - var NewPasswordTextBox = element(by.css('.form-control:nth-child(6)')); - var ConfirmPasswordTextBox = element(by.css('.form-control:nth-child(9)')); - var ChangePasswordSaveButton = element(by.css('.modal-footer > .btn')); - var SaveButton = element(by.name('submit')); - var ManageSecurityQuestions = element(by.css('.btn:nth-child(15)')); - var ManageSecurityTitle = element(by.css('.security-question-header')); - var ManageSecuritySubTitle = element(by.css('.col-md-9:nth-child(2)')); - var SecurityValidationOne = element(by.css('.ng-scope:nth-child(1) > .row:nth-child(2) > .col-md-12')); - var SecurityValidationTwo = element(by.css('.ng-scope:nth-child(1) > .row:nth-child(5) > .col-md-12')); - var SecurityQuestionOne = element(by.css('#secQuestion0')); - var SecuritySelectionOne = element(by.css('#secQuestion0 > option:nth-child(2)')); - var SecurityAnswerOne = element(by.css('.ng-scope:nth-child(1) > .row .ng-pristine')); - var SecurityQuestionTwo = element(by.css('#secQuestion1')); - var SecuritySelectionTwo = element(by.css('#secQuestion1 > option:nth-child(3)')); - var SecurityAnswerTwo = element(by.css('.ng-scope:nth-child(2) .ng-pristine')); - var SecurityQuestionThree = element(by.css('#secQuestion2')); - var SecuritySelectionThree = element(by.css('#secQuestion2 > option:nth-child(5)')); - var SecurityAnswerThree = element(by.css('.ng-pristine')); - var SecurityQuestionSave = element(by.css('.col-lg-4 > #photoBtn')); - var ManageSecurityValidation = element(by.css('.row:nth-child(11) > .col-lg-9')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(ProfileLink).perform().then(function() { - browser.sleep(1500); - }); - await ProfileLink.click().then(function() { - browser.sleep(1000); - }); - expect(await PageTitle.getText()).toEqual('Account Information'); - expect(await UserName.getText()).toEqual('Automated Regression'); - expect(await EmailHandle.getText()).toEqual('Email:'); - //expect(await UserInfo.getText()).toContain('jhuerta@edmin.com'); - expect(await BirthdayHandle.getText()).toEqual('Birthday:'); - expect(await UserInfo.getText()).toContain('2000-02-15'); - expect(await ActiveRoleHandle.getText()).toEqual('Active Role:'); - expect(await ZipCodeHandle.getText()).toEqual('ZIP Code:'); - expect(await UserInfo.getText()).toContain('92123'); - await EditAccount.click(); - browser.sleep(1000); - expect(await EditPageTitle.getText()).toEqual('Edit Account Information'); - expect(await FirstNameTextBox.getAttribute('value')).toEqual('Automated'); - expect(await LastNameTextBox.getAttribute('value')).toEqual('Regression'); - expect(await EmailAddressTextBox.getAttribute('value')).toEqual(''); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('92123'); - expect(await BirthdayTextBox.getAttribute('value')).toEqual('2000-02-15'); - await ChangePasswordButton.click(); - browser.sleep(1000); - expect(await ChangePageTitle.getText()).toEqual('Change your password...'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - expect(await ChangePasswordValidation.getText()).toEqual('Please provide Old Password and ensure two New Passwords are matched.'); - await OldPasswordTextBox.sendKeys('123Auto123'); - await NewPasswordTextBox.sendKeys('3Dm1nAuto'); - await ConfirmPasswordTextBox.sendKeys('3Dm1nAuto'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - expect(await ChangePasswordValidation.getText()).toEqual('Your old password was incorrect. Try again.'); - await OldPasswordTextBox.sendKeys('3Dm1nAuto'); - await NewPasswordTextBox.sendKeys('EDminAuto'); - await ConfirmPasswordTextBox.sendKeys('3Dm1nAuto'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - expect(await ChangePasswordValidation.getText()).toEqual('Please provide Old Password and ensure two New Passwords are matched.'); - await NewPasswordTextBox.sendKeys('3Dm1nAuto'); - await ConfirmPasswordTextBox.sendKeys('3Dm1nAuto'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - await SaveButton.click(); - browser.sleep(1000); - await ManageSecurityQuestions.click(); - browser.sleep(1000); - expect(await ManageSecurityTitle.getText()).toEqual('We care about your security'); - expect(await ManageSecuritySubTitle.getText()).toEqual('To help you recover your account in the future please provide additional recovery information.'); - await SecurityQuestionSave.click(); - browser.sleep(1000); - expect(await SecurityValidationOne.getText()).toContain('Please select security question'); - await SecurityQuestionOne.click(); - await SecuritySelectionOne.click(); - await SecurityQuestionSave.click(); - browser.sleep(1000); - expect(await SecurityValidationTwo.getText()).toContain('Missing security answer'); - await SecurityAnswerOne.click(); - await SecurityAnswerOne.sendKeys('6194222927'); - await SecurityQuestionTwo.click(); - await SecuritySelectionTwo.click(); - await SecurityAnswerTwo.click(); - await SecurityAnswerTwo.sendKeys('Rosario'); - await SecurityQuestionThree.click(); - await SecuritySelectionThree.click(); - await SecurityAnswerThree.click(); - await SecurityAnswerThree.sendKeys('Seamus'); - await SecurityQuestionSave.click(); - browser.sleep(1000); - expect(await ManageSecurityValidation.getText()).toEqual('Security questions are updated'); - browser.sleep(1000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function AccountPortfolio() { - it(': AccountPortfolio, should navigate to portfolio and validate resource', async function () { - var ProfileImage = element(by.css('.roundCenterBackgroundImage')); - var PortfolioLink = element(by.linkText('Portfolio')); - var SubmittedResourcesTitle = element(by.css('.ng-scope > .jrnys_lead-body-copy')); - var MyResourceTitle = element(by.css('.hotTitles')); - var GoogleDriveTitle = element(by.css('.default-color:nth-child(2)')); - var GoogleDriveSubTitle = element(by.css('.default-color:nth-child(3)')); - var SignInToGoogleDriveButton = element(by.id('authorize-button')); - - browser.waitForAngular(); - browser.sleep(1000); - await ProfileImage.click(); - browser.sleep(1000); - browser.actions().mouseMove(PortfolioLink).perform().then(function() { - browser.sleep(1500); - }); - await PortfolioLink.click(); - browser.sleep(5000); - expect(await SubmittedResourcesTitle.getText()).toEqual('My Submitted Resources View All'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await GoogleDriveTitle.getText()).toEqual('Google Drive'); - expect(await GoogleDriveSubTitle.getText()).toContain('Sign in to your Google Drive account to access all your files!'); - expect(await SignInToGoogleDriveButton.getText()).toEqual('Sign in to Google Drive'); - 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); - }); - }); -} \ No newline at end of file diff --git a/beginCareerExplorationWidget_config.js b/beginCareerExplorationWidget_config.js deleted file mode 100644 index 53c23fa..0000000 --- a/beginCareerExplorationWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//beginCareerExplorationWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['beginCareerExplorationWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/beginCareerExplorationWidget_spec.js b/beginCareerExplorationWidget_spec.js deleted file mode 100644 index d935d4d..0000000 --- a/beginCareerExplorationWidget_spec.js +++ /dev/null @@ -1,560 +0,0 @@ -//beginCareerExplorationWidget_spec.js - -describe('Begin Career Exploration Widget script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - BeginCareerExplorationWidget(); - - //Sign Out*/ - SignOut(); -}); - -function BeginCareerExplorationWidget() { - it(': BeginCareerExplorationWidget, should interact with Begin Career Exploration widget', async function () { - var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy')); - var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td')); - var ExploreCareersButton = element(by.css('td > .btn')); - var CareerExplorationPageTitle = element(by.css('.col-sm-12')); - var SearchOccupationsTextBox = element(by.css('div:nth-child(3) > div > div > .form-control')); - var SearchOccupationsTextBoxSearchIcon = element(by.css('div:nth-child(3) > div > div > .cursorPointer > .glyphicon-search')); - var SearchOccupationsTextBoxXClearIcon = element(by.css('div:nth-child(3) > div > div > .cursorPointer > .glyphicon-remove')); - var SkillsFilterButton = 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 AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureAndConstructionSelectButton = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .btn')); - var ArtsAVTechnologyAndCommunications = element(by.css('#\\31 48161d3-2bf8-4703-bf6b-17f05cafc9f0 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)')); - var PreviousLinkText = element(by.linkText('Previous')); - var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)')); - var NextLinkText = element(by.linkText('Next')); - var Construction = element(by.css('#bd9b4a77-7eb1-4789-9c38-86ac3f913736 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DesignPreConstruction = element(by.css('#\\39 431385b-51e1-475b-a643-e54dc0aeea49 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DesignPreConstructionSelectButton = element(by.css('#\\39 431385b-51e1-475b-a643-e54dc0aeea49 > #territoryCardContainer .btn')); - var MaintenanceOperations = element(by.css('#\\30 bc17fc3-6310-404b-a047-6c7d4f0a8e9b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectsExceptLandscapeAndNaval = element(by.css('#\\34 729871a-cff9-4010-8f1c-2688fe8c4def > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitecturalAndCivilDrafters = element(by.css('#\\30 ad4aeb1-3795-4a92-9bdf-d79cec3c29f4 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitecturalAndEngineeringManagers = element(by.css('#\\32 dbe648d-2f34-41d0-8ada-5042e198dbdc > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitecturalDrafters = element(by.css('#\\31 bb7457e-a632-4e39-90c4-b8cf6b3ddc9e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureTeachersPostsecondary = element(by.css('#\\37 6fdf0a6-0344-40df-8c8d-ecba5149b1e8 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CartographersAndPhotogrammetrists = element(by.css('#\\32 e5845bf-42d6-4b55-b7ad-f107a47f39ea > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - //Interests Filter Applied - var HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var HealthScience = element(by.css('#\\33 7735fc5-77f8-4a3c-8814-51c377b7affd > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - //Interests Filter Applied - Next page - var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecuritySelectButton = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .btn')); - var ProgramProjectManagementPMAAndAcquisition = element(by.css('#b1c57f1e-c36a-44a8-8a13-b22e4ca718d9 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ProgramProjectManagementPMAAndAcquisitionSelectButton = element(by.css('#b1c57f1e-c36a-44a8-8a13-b22e4ca718d9 > #territoryCardContainer .btn')); - var ProgramManager = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .ng-binding')); - var ProgramManagerAtAGlance = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardItemText')); - var ProgramManagerLearnMoreIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText')); - var ProgramManagerMapIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText')); - var ProgramManagerJourneymanIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(3) > .territoryCardActionBarText')); - var ProgramManagerVideoIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText')); - var ITProjectManager = element(by.css('#b1cea8c1-1a7b-44e4-b496-b7d65dafba57 > #territoryCardContainer .ng-binding')); - var KnowledgeManagementKMG = element(by.css('#\\30 dbacd12-5686-4775-92a8-c5d6d966aa94 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecurityManagementMGT = element(by.css('#\\37 087ce2a-5602-4e7a-ac42-250182301aa3 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var LegalAdviceAndAdvocacyLGA = element(by.css('#a7e8c68e-f950-4a97-bd11-5921ae44880b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var StrategicPlanningAndPolicySPP = element(by.css('#e2428422-fb4c-422c-872f-3eaf4d3c0ef1 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SystemsArchitectureARC = element(by.css('#ec3ceca4-90b5-4ff2-8053-d4cac211cb08 > #territoryCardContainer .ng-binding')); - var Manufacturing = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var InformationTechnology = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var InformationTechnologySelectButton = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .btn')); - var NetworkSystems = element(by.css('#\\36 045e379-c666-4d31-ba08-e52292ae73b2 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ProgrammingAndSoftwareDevelopment = element(by.css('#\\39 69d6437-0dd5-4b0d-b2b2-df22e5a6e8f5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var InformationSupportAndServices = element(by.css('#e114cd00-ac4a-4fb9-8fd6-a31e15930149 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ClusterLinkText = element(by.linkText('Clusters')); - var AgricultureFoodAndNaturalResourcesFiltered = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureAndConstructionFiltered = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministrationFiltered = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecurityFiltered = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var EducationAndTrainingFiltered = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var FinanceFiltered = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var NoSearchResultsFoundText = element(by.css('.widget-padding > .ng-scope')); - var HealthcareComputerOccupationsAllOther = element(by.css('#\\35 3bf5478-a200-463b-9d75-5ecff46f5f51 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AdministrationComputerOccupationsAllOther = element(by.css('#acd267d5-6d77-4d35-bd93-e6554fc24262 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ITNetworkSystemsComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var STEMComputerOccupationsAllOther = element(by.css('#\\30 6316b7c-432f-4415-8995-3fe0da506e4e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ITInformationSupportAndServicesComputerOccupationsAllOther = element(by.css('#\\31 2f718c6-ed62-445b-a6f3-bef905dba871 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerHardwareEngineers = element(by.css('#b85d7e02-739f-464c-b163-6c7b7ac56fd4 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DashboardHeaderLink = element(by.css('.navbar-brand > img')); - - browser.executeScript('window.scrollTo(0, 592);').then(function() { - browser.sleep(5000); - }); - expect(await BeginCareerExplorationTitle.getText()).toEqual('Begin Career Exploration'); - expect(await BeginCareerExplorationDescription.getText()).toEqual('We like your adventurous spirit. Search for a career that aligns with your interests and Learn More about it.'); - await ExploreCareersButton.click().then(function() { - browser.sleep(10000); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await ArchitectureAndConstructionSelectButton.click().then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - expect(await Construction.getText()).toEqual('Construction'); - expect(await DesignPreConstruction.getText()).toEqual('Design/Pre-Construction'); - expect(await MaintenanceOperations.getText()).toEqual('Maintenance/Operations'); - await DesignPreConstructionSelectButton.click().then(function() { - browser.sleep(5000); - }); - 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 ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval'); - expect(await ArchitecturalAndCivilDrafters.getText()).toEqual('Architectural and Civil Drafters'); - expect(await ArchitecturalAndEngineeringManagers.getText()).toEqual('Architectural and Engineering Managers'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters'); - expect(await ArchitectureTeachersPostsecondary.getText()).toEqual('Architecture Teachers, Postsecondary'); - expect(await CartographersAndPhotogrammetrists.getText()).toEqual('Cartographers and Photogrammetrists'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - //Apply Interests Filter - await InterestsFilterButton.click().then(function() { - browser.sleep(2500); - }); - //Interests Filter Appplied - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await Manufacturing.getText()).toEqual('Manufacturing'); - expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); - expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - //Selected Cyber Security - await CyberSecuritySelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - expect(await CyberSecurityManagementMGT.getText()).toEqual('Cybersecurity Management (MGT)'); - expect(await KnowledgeManagementKMG.getText()).toEqual('Knowledge Management (KMG)'); - expect(await LegalAdviceAndAdvocacyLGA.getText()).toEqual('Legal Advice and Advocacy (LGA)'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await ProgramProjectManagementPMAAndAcquisition.getText()).toEqual('Program/Project Management (PMA) and Acquisition'); - expect(await StrategicPlanningAndPolicySPP.getText()).toEqual('Strategic Planning and Policy (SPP)'); - expect(await SystemsArchitectureARC.getText()).toEqual('Systems Architecture (ARC)'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - //Selected Cyber Crime Investigator - await ProgramProjectManagementPMAAndAcquisitionSelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 ProgramManager.getText()).toContain('Program Manager'); - expect(await ProgramManagerAtAGlance.getText()).toContain('At a'); - expect(await ProgramManagerAtAGlance.getText()).toContain('Glance'); - expect(await ProgramManagerLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await ProgramManagerMapIcon.getText()).toEqual('Map'); - expect(await ProgramManagerJourneymanIcon.getText()).toEqual('Journey'); - expect(await ProgramManagerVideoIcon.getText()).toEqual('Video'); - expect(await ITProjectManager.getText()).toContain('IT Project Manager'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - //Apply Skills Filter - await SkillsFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await Manufacturing.getText()).toEqual('Manufacturing'); - expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); - expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - //Selected Information Technology - await InformationTechnologySelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - expect(await NetworkSystems.getText()).toEqual('Network Systems'); - expect(await ProgrammingAndSoftwareDevelopment.getText()).toEqual('Programming and Software Development'); - expect(await InformationSupportAndServices.getText()).toEqual('Information Support and Services'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await ClusterLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResourcesFiltered.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstructionFiltered.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministrationFiltered.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurityFiltered.getText()).toEqual('Cyber Security'); - expect(await EducationAndTrainingFiltered.getText()).toEqual('Education & Training'); - expect(await FinanceFiltered.getText()).toEqual('Finance'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - //Removed Interests Filter - await InterestsFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - //Search Occupation TextBox - await SearchOccupationsTextBox.sendKeys('Baseball'); - await SearchOccupationsTextBoxSearchIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await NoSearchResultsFoundText.getText()).toEqual('No results found.'); - await SearchOccupationsTextBoxXClearIcon.click().then(function() { - browser.sleep(2500); - }); - await SearchOccupationsTextBox.sendKeys('Computer'); - SearchOccupationsTextBox.sendKeys(protractor.Key.ENTER).then(function() { - browser.sleep(1000); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Occupations'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); - expect(await HealthcareComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await AdministrationComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await ITNetworkSystemsComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await STEMComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await ITInformationSupportAndServicesComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await ComputerHardwareEngineers.getText()).toEqual('Computer Hardware Engineers'); - //Back to Dashboard - 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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/createJourney_config.js b/createJourney_config.js deleted file mode 100644 index d05a584..0000000 --- a/createJourney_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//createJourney_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['createJourney_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/createJourney_spec.js b/createJourney_spec.js deleted file mode 100644 index d4d956c..0000000 --- a/createJourney_spec.js +++ /dev/null @@ -1,1334 +0,0 @@ -//createJourney_spec.js - -//const { EventEmitter } = require("selenium-webdriver"); - -describe('Create Journey 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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - //<<<>>> - CreateJourney(); - DeleteCreatedJourney(); - - //Sign Out - SignOut(); -}); - -function CreateJourney() { - it(': CreateJourney, should create a Journey to Top Interest Survey Result', async function () { - //Select Journey Occupation Card - var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .ng-binding')); - var AdministrativeLawJudgesAdjudicatorsAndHearingOffices = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AdministrativeServiceManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AdministrativeServiceManagersJourneyIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(3) .ng-scope:nth-child(1) > .ng-scope:nth-child(1) > .ng-scope:nth-child(1)')); - var MultipleClusterDIVTitle = element(by.css('.ng-scope > .territoryCardTitleText')); - var BusinessManagementAndAdministration = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministrationSelectButton = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .btn')); - var GovernmentAndPublicAdministration = element(by.css('.col-xs-4:nth-child(2) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - var HealthScience = element(by.css('.col-xs-4:nth-child(3) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - //Create Your Journey Page - 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 JourneyInfoDivXCloseLink = element(by.css('.fa-times')); - var JourneyEntryPoint = element(by.css('.journeyInput')); - var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding')); - var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); - //Journey Search Results - var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding')); - var JourneysResultsTabDefault = element(by.css('#tab-item-0 > .ng-binding')); - var JourneyResultTitleOne = element(by.css('#journeyitem0 .side-bar-child-text')); - var JourneyDetailsIcon = element(by.css('#tab-content-0 #journeyitem0 > div > div:nth-child(1) > .map-action-bar-icon-text')); - var JourneySaveIcon = element(by.css('#tab-content-0 #journeyitem0 .mapActionBarActive > .map-action-bar-icon-text')); - var JourneyResultTitleTwo = element(by.css('#journeyitem1 .side-bar-child-text')); - var JourneyResultTitleThree = element(by.css('#journeyitem2 .side-bar-child-text')); - var JourneysResultsTabTwo = element(by.css('#tab-item-1 > .ng-binding')); - var JourneysResultsTabThree = element(by.css('#tab-item-2 > .ng-binding')); - var JourneysResultsTabFour = element(by.css('#tab-item-3 > .ng-binding')); - var MyResultsFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(2)')); - var FilterDIVTitle = element(by.css('.modal-content > .ng-scope > .ng-binding')); - var MyResultsDIVSubTitle = element(by.css('tr:nth-child(1) > td')); - var MyResultsDIVInterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(2) > .mapCheckbox > input')); - var MyResultsDIVInterestSurveyResults = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)')); - var MyResultsDIVSkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > .mapCheckbox > input')); - var MyResultsDIVSkillsAssessmentResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); - var JobPrepFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(3)')); - var JobPrepDIVSubTitle = element(by.css('tr:nth-child(5) > td')); - var JobPrepDIVMayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(6) input')); - var JobPrepDIVMayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(2)')); - var JobPrepDIVHighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(7) input')); - var JobPrepDIVHighSchoolDiploma = element(by.css('.ng-scope:nth-child(7) > .ng-binding')); - var JobPrepDIVVocationalTrainingOrAssociatesDegreeCheckBox = element(by.css('.ng-scope:nth-child(8) input')); - var JobPrepDIVVocationalTrainingOrAssociatesDegree = element(by.css('.ng-scope:nth-child(8) > .ng-binding')); - var JobPrepDIV4YearBachelorDegreeCheckBox = element(by.css('.ng-scope:nth-child(9) input')); - var JobPrepDIV4YearBachelorDegree = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); - var JobPrepDIVGraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(10) input')); - var JobPrepDIVGraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); - var FitFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(4)')); - var FitDIVSubTitle = element(by.css('tr:nth-child(11) > td')); - var FitDIVBestCheckBox = element(by.css('.ng-scope:nth-child(12) input')); - var FitDIVBest = element(by.css('.ng-scope:nth-child(12) > .ng-binding')); - var FitDIVGreatCheckBox = element(by.css('.ng-scope:nth-child(13) input')); - var FitDIVGreat = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); - var FitDIVGoodCheckBox = element(by.css('.ng-scope:nth-child(14) input')); - var FitDIVGood = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); - var CategoryFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(5)')); - var CategoryDIVSubTitle = element(by.css('tr:nth-child(15) > td')); - var CategoryDIVBrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(16) input')); - var CategoryDIVBrightOutlook = element(by.css('.ng-scope:nth-child(16) > .ng-binding')); - var CategoryDIVGreenCheckBox = element(by.css('.ng-scope:nth-child(17) input')); - var CategoryDIVGreen = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); - var CategoryDIVApprenticeshipCheckBox = element(by.css('.ng-scope:nth-child(18) input')); - var CategoryDIVApprenticeship = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); - var CategoryDIVFollowingCheckBox = element(by.css('.ng-scope:nth-child(19) input')); - var CategoryDIVFollowing = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); - var CareerFiltersDIVFilterButton = element(by.css('td > .btn-info')); - var CareersFilterDIVCancelButton = element(by.css('.btn-alt-info')); - var ResultsTabTwo = element(by.css('#tab-item-5 > .ng-binding')); - var TabTwoResultsPathOne = element(by.css('#tab-content-5 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabTwoResultsChildOne = element(by.css('#tab-content-5 #searchitem0 .side-bar-child-text')); - var TabTwoResultsPathTwo = element(by.css('#tab-content-5 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabTwoResultsChildTwo = element(by.css('#tab-content-5 #searchitem1 .side-bar-child-text')); - var TabTwoResultsPathThree = element(by.css('#tab-content-5 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabTwoResultsChildThree = element(by.css('#tab-content-5 #searchitem2 .side-bar-child-text')); - var TabTwoResultsPathFour = element(by.css('#tab-content-5 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabTwoResultsChildFour = element(by.css('#tab-content-5 #searchitem3 .side-bar-child-text')); - var ResultsTabThree = element(by.css('#tab-item-6 > .ng-binding')); - var TabThreeResultsPathOne = element(by.css('#tab-content-6 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabThreeResultsChildOne = element(by.css('#tab-content-6 #searchitem0 .side-bar-child-text')); - var TabThreeResultsPathTwo = element(by.css('#tab-content-6 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabThreeResultsChildTwo = element(by.css('#tab-content-6 #searchitem1 .side-bar-child-text')); - var TabThreeResultsPathThree = element(by.css('#tab-content-6 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabThreeResultsChildThree = element(by.css('#tab-content-6 #searchitem2 .side-bar-child-text')); - var TabThreeResultsPathFour = element(by.css('#tab-content-6 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabThreeResultsChildFour = element(by.css('#tab-content-6 #searchitem3 .side-bar-child-text')); - var ResultsTabFour = element(by.css('#tab-item-7 > .ng-binding')); - var TabFourResultsPathOne = element(by.css('#tab-content-7 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFourResultsChildOne = element(by.css('#tab-content-7 #searchitem0 .side-bar-child-text')); - var TabFourResultsPathTwo = element(by.css('#tab-content-7 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFourResultsChildTwo = element(by.css('#tab-content-7 #searchitem1 .side-bar-child-text')); - var TabFourResultsPathThree = element(by.css('#tab-content-7 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFourResultsChildThree = element(by.css('#tab-content-7 #searchitem2 .side-bar-child-text')); - var TabFourResultsPathFour = element(by.css('#tab-content-7 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFourResultsChildFour = element(by.css('#tab-content-7 #searchitem2 .side-bar-child-text')); - var ResultsTabFive = element(by.css('#tab-item-8 > .ng-binding')); - var TabFiveResultsPathOne = element(by.css('#tab-content-8 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFiveResultsChildOne = element(by.css('#tab-content-8 #searchitem0 .side-bar-child-text')); - var TabFiveResultsPathTwo = element(by.css('#tab-content-8 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFiveResultsChildTwo = element(by.css('#tab-content-8 #searchitem1 .side-bar-child-text')); - var TabFiveResultsPathThree = element(by.css('#tab-content-8 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFiveResultsChildThree = element(by.css('#tab-content-8 #searchitem2 .side-bar-child-text')); - var TabFiveResultsPathFour = element(by.css('#tab-content-8 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabFiveResultsChildFour = element(by.css('#tab-content-8 #searchitem3 .side-bar-child-text')); - var ResultsTabSix = element(by.css('#tab-item-9 > .ng-binding')); - var TabSixResultsPathOne = element(by.css('#tab-content-9 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabSixResultsChildOne = element(by.css('#tab-content-9 #searchitem0 .side-bar-child-text')); - var TabSixResultsPathTwo = element(by.css('#tab-content-9 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabSixResultsChildTwo = element(by.css('#tab-content-9 #searchitem1 .side-bar-child-text')); - var TabSixResultsPathThree = element(by.css('#tab-content-9 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabSixResultsChildThree = element(by.css('#tab-content-9 #searchitem2 .side-bar-child-text')); - var TabSixResultsPathFour = element(by.css('#tab-content-9 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var TabSixResultsChildFour = element(by.css('#tab-content-9 #searchitem3 .side-bar-child-text')); - var ResultsTabLeftArrow = element(by.css('.ng-scope:nth-child(2) > md-icon')); - var DefaultResultsTab = element(by.css('#tab-item-4 > .ng-binding')); - var DefaultTabResultsPathOne = element(by.css('#tab-content-4 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var DefaultTabResultsChildOne = element(by.css('#tab-content-4 #searchitem0 .side-bar-child-text')); - var DefaultTabResultsPathTwo = element(by.css('#tab-content-4 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var DefaultTabResultsChildTwo = element(by.css('#tab-content-4 #searchitem1 .side-bar-child-text')); - var DefaultTabResultsPathThree = element(by.css('#tab-content-4 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var DefaultTabResultsChildThree = element(by.css('#tab-content-4 #searchitem2 .side-bar-child-text')); - var DefaultTabResultsPathFour = element(by.css('#tab-content-4 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt')); - var DefaultTabResultsChildFour = element(by.css('#tab-content-4 #searchitem3 .side-bar-child-text')); - //Journey stop DIV - var JourneyStopDIVTitle = element(by.css('.row:nth-child(1) > .col-md-12:nth-child(1)')); - var CertificationCheckBox = element(by.css('#awm0 > .md-container')); - var CertificationCheckBoxTitle = element(by.css('#awm0 .ng-binding')); - var DegreeProgramCheckBox = element(by.css('#awm1 > .md-container')); - var DegreeProgramCheckBoxTitle = element(by.css('#awm1 .ng-binding')); - var CertifiedLegalManagerCardTitle = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .waypointCardTitle')); - var CertifiedLegalManagerCardButton = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .btn')); - var CertifiedMedicalOfficeManagerCardTitle = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .waypointCardTitle')); - var MasterOfBusinessAdministrationMBAAtAGlanceIcon = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .territoryCardItemText')); - var BusinssAdministrationMinorCardTitle= element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .waypointCardTitle')); - var MasterOfBusinessAdministrationMBACardTitle = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .waypointCardTitle')); - var MasterOfBusinessAdministrationMBABackOfCardTitle = element(by.css('div:nth-child(1) > #territoryCardTitleHeader > .territoryCardTitleText')); - var MasterOfBusinessAdministrationMBABackOfCardSubText = element(by.css('div:nth-child(1) > div > .territoryCardDescriptionText')); - var MasterOfBusinessAdministrationMBABackOfCardXCloseIcon = element(by.css('div:nth-child(1) > #territoryCardTitleHeader .glyphicon')); - var MasterOfBusinessAdministrationMBACardButton = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .btn')); - var StrategicMeetingManagementCertificationCardTitle = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .waypointCardTitle')); - var StrategicMeetingManagementCertificationCardButton = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .btn')); - var JourneyStopDIVSubText = element(by.css('#addWaypointsModalAddedWaypointsCarousel .ng-scope')); - var JourneyStopDIVSkipLink = element(by.css('.btn-inverse')); - var JourneyStopDIVSearchTextBox = element(by.css('#addWaypointsModalSearchInput')); - var JourneyStopDIVSearchIcon = element(by.css('div:nth-child(1) > .cursorPointer > .glyphicon-search')); - var JourneyStopDIVSearchResultText = element(by.css('.carousel-inner > .ng-scope:nth-child(2)')); - var JourneyStopDIVXIcon = element(by.css('div:nth-child(1) > .cursorPointer > .glyphicon-remove')); - var JourneyStopDIVRightArrowIcon = element(by.css('#allWaypointsCarousel > .right > .glyphicon')); - var CertifiedPracticeManagerCardTitle = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(1) .waypointCardTitle')); - var CertifiedPracticeManagerCardButton = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(1) .btn')); - var CourtAndJudicialSecurityManagerCardTitle = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(2) .waypointCardTitle')); - var CertifiedWebProfessionalServerAdministratorCardTitle = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(3) .waypointCardTitle')); - var JourneyStopDIVLeftArrowIcon = element(by.css('#allWaypointsCarousel > .left > .glyphicon')); - var StrategicMeetingManagementCertificationAddedStopTitle = element(by.css('.waypointCardTitle > .ng-binding')); - var MasterOfBusinessAdministrationMBAAddedStopTitle = element(by.css('.col-xs-6:nth-child(2) .waypointCardTitle > .ng-binding')); - var CertifiedPracticeManagerAddedStopTitle = element(by.css('.item:nth-child(3) .waypointCardTitle:nth-child(1) > .ng-binding:nth-child(1)')); - var CertifiedLegalManagerAddedStopTitle = element(by.css('.item:nth-child(3) > .col-xs-6:nth-child(2) .waypointCardTitle:nth-child(1) > .ng-binding:nth-child(1)')); - var JourneyStopDIVBottomPanelLeftArrowIcon = element(by.css('#addWaypointsModalAddedWaypointsCarousel > .left > .glyphicon')); - var StrategicMeetingManagementCertificationRemoveButton = element(by.css('.item:nth-child(2) > .col-xs-6:nth-child(1) .waypointNotAdded')); - var MasterOfBusinessAdministrationMBAAddedStopTitleTwo = element(by.css('.waypointCardTitle > .ng-binding')); - var CertifiedPracticeManagerAddedStopTitleTwo = element(by.css('.col-xs-6:nth-child(2) .waypointCardTitle > .ng-binding')); - var AddToJourneyButton = element(by.css('.btn:nth-child(2)')); - var JourneyInactiveSaveIcon = element(by.css('div:nth-child(3) > div:nth-child(3)')); - //Saved Journey - var GotItDIVText = element(by.css('.tooltip-inner')); - var GotItDIVButtonOne = element(by.css('.journeyViewToolTipWaypointAddedConfirm > .btn')); - var GotItDIVButtonTwo = element(by.css('.btn-lg')); - var ActionTitleBar = element(by.css('#sideBarTabJourneyItemHeader > .side-bar-child-text')); - //Edit Journey - 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 SeventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var SeventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)')); - var EightGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var EightGradeWayPointCluster = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)')); - var NinethGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var NinethGradeWayPointCluster = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)')); - var ArtsEducation = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var LibraryMedia = element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var Mathematics = element(by.css('.ng-scope:nth-child(4) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var MathematicalPractices = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var AlgebraI = element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var StatisticsAndProbability = element(by.css('.ng-scope:nth-child(4) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var AlgebraII = element(by.css('.ng-scope:nth-child(5) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var Precalculus = element(by.css('.ng-scope:nth-child(6) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var MathematicsIII = element(by.css('.ng-scope:nth-child(7) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var MathematicsII = element(by.css('.ng-scope:nth-child(8) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var CalculusStandards = element(by.css('.ng-scope:nth-child(9) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var MathematicsI = element(by.css('.ng-scope:nth-child(10) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var AdvancedPlacementProbabilityAndStatisticsStandards = element(by.css('.ng-scope:nth-child(11) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var Geometry = element(by.css('.ng-scope:nth-child(12) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var UsingProbabilityToMakeDecisions = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var ExpressingGeometricPropertiesWithEquations= element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var Circles = element(by.css('.ng-scope:nth-child(4) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var FindArcLengthsandAreasOfSectorsOfCircles = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var DeriveUsingSimilarity = element(by.css('.disableJourneyItem:nth-child(6)')); - var UnderstandAndApplyTheoremsAboutCircles = element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var ModelingWithGeometry = element(by.css('.ng-scope:nth-child(5) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var Congruence = element(by.css('.ng-scope:nth-child(6) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var ConditionalProbabilityAndTheRulesOfProbability = element(by.css('.ng-scope:nth-child(7) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var SimilarityRightTrianglesAndTrigonometry = element(by.css('.ng-scope:nth-child(8) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var GeometricMeasurementAndDimensions = element(by.css('.ng-scope:nth-child(9) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var SocialStudies = element(by.css('.ng-scope:nth-child(5) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var Science = element(by.css('.ng-scope:nth-child(6) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var TechnologyEducation = element(by.css('.ng-scope:nth-child(7) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var LanguageArts = element(by.css('.ng-scope:nth-child(8) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var HealthAndPE = element(by.css('.ng-scope:nth-child(9) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var WorldLanguages = element(by.css('.ng-scope:nth-child(10) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)')); - var TenthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_4 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var TenthGradeWayPointCluster = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)')); - var EleventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_5 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var EleventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_5 .side-bar-journey-detail-child-txt:nth-child(5)')); - var TwelfthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_6 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var TwelfthGradeWayPointCluster = element(by.css('#journeyViewToolTip_6 .side-bar-journey-detail-child-txt:nth-child(5)')); - var CollegeStopWayPointTopLevel = element(by.css('#journeyViewToolTip_7 .ng-binding:nth-child(1)')); - var CollegeStopWayPointCluster = element(by.css('#journeyViewToolTip_7 > .ng-isolate-scope .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var CollegeStopWayPointPathway = element(by.css('#journeyViewToolTip_7 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelOne = element(by.css('#journeyViewToolTip_8 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterOne = element(by.css('#journeyViewToolTip_8 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayOne = element(by.css('#journeyViewToolTip_8 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelTwo = element(by.css('#journeyViewToolTip_9 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterTwo = element(by.css('#journeyViewToolTip_9 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayTwo = element(by.css('#journeyViewToolTip_9 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelThree = element(by.css('#journeyViewToolTip_10 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterThree = element(by.css('#journeyViewToolTip_10 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayThree = element(by.css('#journeyViewToolTip_10 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelFour = element(by.css('#journeyViewToolTip_11 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterFour = element(by.css('#journeyViewToolTip_11 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayFour = element(by.css('#journeyViewToolTip_11 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyNewEndWayPointTopLevel = element(by.css('#journeyViewToolTip_12 .ng-binding:nth-child(1)')); - var JourneyNewEndWayPointCluster = element(by.css('#journeyViewToolTip_12 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyNewEndWayPointPathway = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)')); - var UpOneLevelLink = element(by.linkText('Up One Level')); - var CertifiedLegalManagerEllipsis = element(by.css('.itemWaypoint:nth-child(11) > .dropdown > .fas')); - var InsertAStop = element(by.linkText('Insert a Stop')); - var EditSearchText = element(by.css('.sidebarNoResults:nth-child(1)')); - var MapSearchTextBox = element(by.css('#searchBox')); - var MagnifyingGlassIcon = element(by.css('.glyphicon-search')); - var JourneysEditTitleHeader = element(by.css('div:nth-child(1) > div:nth-child(2) > .ng-binding')) - var EditWayPointHeaderOne = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderTwo = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding')); - var EditWayPointEllipsisTwo = element(by.css('.itemWaypoint:nth-child(2) > .dropdown > .fas')); - var DeleteLink = element(by.linkText('Delete')); - var DeleteDIVText = element(by.css('.modal-content > .ng-scope div:nth-child(1)')); - var CancelButton = element(by.css('div:nth-child(2) > .btn:nth-child(1)')); - var RemoveThisWaypointButton = element(by.css('.btn:nth-child(3)')); - var EditWayPointHeaderThree = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderFour = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderFive = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderSix = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderSeven = element(by.css('.itemWaypoint:nth-child(7) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderEight = element(by.css('.itemWaypoint:nth-child(8) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderNine = element(by.css('.itemWaypoint:nth-child(9) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderTen = element(by.css('.itemWaypoint:nth-child(10) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderEleven = element(by.css('.itemWaypoint:nth-child(11) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderTwelve = element(by.css('.itemWaypoint:nth-child(12) > .itemTextContainer > .ng-binding')); - var EditWayPointHeaderThirteen = element(by.css('.itemWaypoint:nth-child(13) > .itemTextContainer > .ng-binding')); - var EditWayPointSaveIcon = element(by.css('.mapActionBarActive:nth-child(2) > .fas')); - var MapZoomInIcon = element(by.css('.glyphicon-plus')); - var JourneyExitWayPoint = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)')); - var CollegeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(8) > .dropdown > .fas')); - var ReOrderLink = element(by.linkText('Re-order')); - var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding')); - var ThirdResultViewOnMapIconIcon = element(by.css('#searchitem2 div:nth-child(6) > .fas')); - var ThirdResultAddIcon = element(by.css('#searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon')); - var MapZoomOutIcon = element(by.css('.glyphicon-minus')); - - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - });+expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOffices.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await AdministrativeServiceManagers.getText()).toEqual('Administrative Services Managers'); - expect(AdministrativeServiceManagersJourneyIcon.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue - await AdministrativeServiceManagersJourneyIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await MultipleClusterDIVTitle.getText()).toEqual('Administrative Services Managers is found in a few different clusters. Select the cluster below that you would like to create a Journey:'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration'); - expect(await HealthScience.getText()).toEqual('Health Science'); - expect(BusinessManagementAndAdministrationSelectButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await BusinessManagementAndAdministrationSelectButton.getText()).toEqual('Select'); - await BusinessManagementAndAdministrationSelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey'); - await JourneyInfoIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneyInfoDivTitle.getText()).toEqual('Create Your Journey'); - expect(await JourneyInfoDivSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.'); - await JourneyInfoDivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await JourneyEntryPoint.click(); - browser.waitForAngular(); - await JourneyEntryPoint.sendKeys('6'); - await SelectEntryPointDropDown.click(); - browser.waitForAngular(); - expect(StartYourJourneyButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - expect(await StartYourJourneyButton.getText()).toEqual('Start Your Journey'); - await StartYourJourneyButton.click(); - browser.waitForAngular(); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); - expect(await JourneysResultsTabDefault.getText()).toEqual('College'); - expect(await JourneysResultsTabTwo.getText()).toEqual('Certification'); - expect(await JourneysResultsTabThree.getText()).toEqual('K-12'); - expect(await JourneysResultsTabFour.getText()).toEqual('Military'); - expect(await JourneyResultTitleOne.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await JourneyDetailsIcon.getText()).toEqual('Journey Details'); - expect(await JourneyResultTitleTwo.getText()).toEqual('6 to Administrative Services Managers through Business Administration Minor'); - expect(await JourneyResultTitleThree.getText()).toEqual('6 to Administrative Services Managers through Master of Business Administration (MBA)'); - expect(await JourneySaveIcon.getText()).toEqual('Save'); - browser.actions().mouseMove(JourneySaveIcon).perform().then(function() { - browser.sleep(1000); - }); - await JourneySaveIcon.click().then(function() { - browser.sleep(5000); - }); - //Add Stop DIV - 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 CertificationCheckBoxTitle.getText()).toEqual('Certification'); - expect(await DegreeProgramCheckBoxTitle.getText()).toEqual('Degree Program'); - expect(await CertifiedLegalManagerCardTitle.getText()).toEqual('Certified Legal Manager'); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Add'); - expect(await CertifiedMedicalOfficeManagerCardTitle.getText()).toEqual('Certified Medical Office Manager'); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Add'); - //Added Stop Section - expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.'); - expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip'); - //Add Stop DIV - await JourneyStopDIVSearchTextBox.sendKeys('Potato').then(function() { - browser.sleep(2500); - }); - await JourneyStopDIVSearchIcon.click().then(function() { - browser.sleep(2500); - }); - 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 JourneyStopDIVSearchResultText.getText()).toEqual('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await JourneyStopDIVXIcon.click().then(function() { - browser.sleep(2500); - }); - 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 CertificationCheckBoxTitle.getText()).toEqual('Certification'); - expect(await DegreeProgramCheckBoxTitle.getText()).toEqual('Degree Program'); - expect(await CertifiedLegalManagerCardTitle.getText()).toEqual('Certified Legal Manager'); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Add'); - expect(await CertifiedMedicalOfficeManagerCardTitle.getText()).toEqual('Certified Medical Office Manager'); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Add'); - //Added Stop Section - expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.'); - expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip'); - //Add Stop DIV - await StrategicMeetingManagementCertificationCardButton.click().then(function() { - browser.sleep(2500); - }); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Added'); - //Added Stop Section - expect(await StrategicMeetingManagementCertificationAddedStopTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationRemoveButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationRemoveButton.getText()).toEqual('Remove'); - //Add Stop DIV - await CertificationCheckBox.click().then(function() { - browser.sleep(5000); - }); - expect(await BusinssAdministrationMinorCardTitle.getText()).toEqual('Business Administration Minor'); - expect(await MasterOfBusinessAdministrationMBACardTitle.getText()).toEqual('Master of Business Administration (MBA)'); - expect(MasterOfBusinessAdministrationMBACardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await MasterOfBusinessAdministrationMBACardButton.getText()).toEqual('Add'); - await MasterOfBusinessAdministrationMBAAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await MasterOfBusinessAdministrationMBABackOfCardTitle.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await MasterOfBusinessAdministrationMBABackOfCardSubText.getText()).toEqual('The MBA is an integrated graduate program focused on leadership, innovation and sustainability. Students master essential technical skills through the Value Chain of Business courses and gain in-depth understanding of the global context of business in the Foundations of Competitiveness courses. In addition, students take a series of Applied Skills and Leadership courses that are integrated based on a set of managerial competencies, skills and perspectives. A highlight of the MBA program is the International Experience, which requires that all MBA students participate in either a 10-14 day study abroad program or a Portland Metro-based international business experience during their MBA experience. The MBA is designed to accommodate students with business and non-business undergraduate degrees and is best suited for those who have gained at least two years of industry experience prior to their admission date.'); - await MasterOfBusinessAdministrationMBABackOfCardXCloseIcon.click().then(function() { - browser.sleep(2500); - }); - expect(MasterOfBusinessAdministrationMBACardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await MasterOfBusinessAdministrationMBACardButton.getText()).toEqual('Add'); - await MasterOfBusinessAdministrationMBACardButton.click().then(function() { - browser.sleep(2500); - }); - expect(MasterOfBusinessAdministrationMBACardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await MasterOfBusinessAdministrationMBACardButton.getText()).toEqual('Added'); - //Added Stop Section - expect(await StrategicMeetingManagementCertificationAddedStopTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationRemoveButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationRemoveButton.getText()).toEqual('Remove'); - expect(await MasterOfBusinessAdministrationMBAAddedStopTitle.getText()).toEqual('Master of Business Administration (MBA)'); - //Add Stop DIV - await CertificationCheckBox.click().then(function() { - browser.sleep(5000); - }); - 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 CertificationCheckBoxTitle.getText()).toEqual('Certification'); - expect(await DegreeProgramCheckBoxTitle.getText()).toEqual('Degree Program'); - expect(await CertifiedLegalManagerCardTitle.getText()).toEqual('Certified Legal Manager'); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Add'); - expect(await CertifiedMedicalOfficeManagerCardTitle.getText()).toEqual('Certified Medical Office Manager'); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Added'); - //Added Stop Section - expect(await StrategicMeetingManagementCertificationAddedStopTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationRemoveButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationRemoveButton.getText()).toEqual('Remove'); - expect(await MasterOfBusinessAdministrationMBAAddedStopTitle.getText()).toEqual('Master of Business Administration (MBA)'); - //Add Stop DIV - await JourneyStopDIVRightArrowIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CertifiedPracticeManagerCardTitle.getText()).toEqual('Certified Practice Manager'); - expect(await CourtAndJudicialSecurityManagerCardTitle.getText()).toEqual('Court and Judicial Security Manager'); - expect(await CertifiedWebProfessionalServerAdministratorCardTitle.getText()).toEqual('Certified Web Professional - Server Administrator'); - expect(CertifiedPracticeManagerCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CertifiedPracticeManagerCardButton.getText()).toEqual('Add'); - await CertifiedPracticeManagerCardButton.click().then(function() { - browser.sleep(2500); - }); - expect(CertifiedPracticeManagerCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await CertifiedPracticeManagerCardButton.getText()).toEqual('Added'); - //Added Stop Section - expect(await CertifiedPracticeManagerAddedStopTitle.getText()).toEqual('Certified Practice Manager'); - //Add Stop DIV - await JourneyStopDIVLeftArrowIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CertifiedLegalManagerCardTitle.getText()).toEqual('Certified Legal Manager'); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Add'); - expect(await CertifiedMedicalOfficeManagerCardTitle.getText()).toEqual('Certified Medical Office Manager'); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Added'); - await CertifiedLegalManagerCardButton.click().then(function() { - browser.sleep(2500); - }); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Added'); - //Added Stop Section - expect(await CertifiedPracticeManagerAddedStopTitle.getText()).toEqual('Certified Practice Manager'); - expect(await CertifiedLegalManagerAddedStopTitle.getText()).toEqual('Certified Legal Manager'); - await JourneyStopDIVBottomPanelLeftArrowIcon.click().then(function() { - browser.sleep(2500); - }); - //Add Stop DIV - expect(await CertifiedLegalManagerCardTitle.getText()).toEqual('Certified Legal Manager'); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Added'); - expect(await CertifiedMedicalOfficeManagerCardTitle.getText()).toEqual('Certified Medical Office Manager'); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Added'); - //Added Stop Section - expect(StrategicMeetingManagementCertificationRemoveButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationRemoveButton.getText()).toEqual('Remove'); - expect(await MasterOfBusinessAdministrationMBAAddedStopTitle.getText()).toEqual('Master of Business Administration (MBA)'); - await StrategicMeetingManagementCertificationRemoveButton.click().then(function() { - browser.sleep(2500); - }); - //Add Stop DIV - expect(await CertifiedLegalManagerCardTitle.getText()).toEqual('Certified Legal Manager'); - expect(CertifiedLegalManagerCardButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await CertifiedLegalManagerCardButton.getText()).toEqual('Added'); - expect(await CertifiedMedicalOfficeManagerCardTitle.getText()).toEqual('Certified Medical Office Manager'); - expect(await StrategicMeetingManagementCertificationCardTitle.getText()).toEqual('Strategic Meeting Management Certification'); - expect(StrategicMeetingManagementCertificationCardButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await StrategicMeetingManagementCertificationCardButton.getText()).toEqual('Add'); - //Added stop section - expect(await MasterOfBusinessAdministrationMBAAddedStopTitleTwo.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await CertifiedPracticeManagerAddedStopTitleTwo.getText()).toEqual('Certified Practice Manager'); - expect(AddToJourneyButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await AddToJourneyButton.getText()).toEqual('Add to Journey'); - await AddToJourneyButton.click().then(function() { - browser.sleep(5000); - }); - expect(JourneyInactiveSaveIcon.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //green - expect(await GotItDIVText.getText()).toEqual('You can find your added stop(s) here'); - expect(await GotItDIVButtonOne.getText()).toEqual('Got it!'); - await GotItDIVButtonOne.click().then(function() { - browser.sleep(2500); - }); - expect(await GotItDIVText.getText()).toEqual('You can edit your added stop by selecting edit here'); - expect(await GotItDIVButtonTwo.getText()).toEqual('Got it!'); - await GotItDIVButtonTwo.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); - expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await EditJourneyLink.getText()).toEqual('Edit Journey'); - expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('K-8'); - expect(await JourneyEntryWayPointCluster.getText()).toEqual('6'); - expect(await SeventhGradeWayPointTopLevel.getText()).toEqual('K-8'); - expect(await SeventhGradeWayPointCluster.getText()).toEqual('7'); - expect(await EightGradeWayPointTopLevel.getText()).toEqual('K-8'); - expect(await EightGradeWayPointCluster.getText()).toEqual('8'); - expect(await NinethGradeWayPointTopLevel.getText()).toEqual('HS'); - expect(await NinethGradeWayPointCluster.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'); - browser.actions().mouseMove(AddedStopWayPointPathwayFour).perform().then(function() { - browser.sleep(2500); - }); - expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration'); - expect(await CollegeStopWayPointPathway.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await AddedStopWayPointTopLevelOne.getText()).toContain('College'); - expect(await AddedStopWayPointClusterOne.getText()).toEqual('Administration'); - expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Core'); - expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications'); - expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Practice Manager'); - expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('Advanced'); - expect(await AddedStopWayPointClusterThree.getText()).toEqual('Other Certifications'); - expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Certified Legal Manager'); - expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('Administration'); - expect(await AddedStopWayPointClusterFour.getText()).toEqual('Management'); - expect(await AddedStopWayPointPathwayFour.getText()).toEqual('Administrative Services Managers'); - await NinethGradeWayPointCluster.click().then(function() { - browser.sleep(5000); - }); - expect(await ArtsEducation.getText()).toEqual('Arts Education'); - expect(await LibraryMedia.getText()).toEqual('Library Media'); - expect(await Mathematics.getText()).toEqual('Mathematics'); - expect(await SocialStudies.getText()).toEqual('Social Studies'); - expect(await Science.getText()).toEqual('Science'); - expect(await TechnologyEducation.getText()).toEqual('Technology Education'); - expect(await LanguageArts.getText()).toEqual('Language Arts'); - expect(await HealthAndPE.getText()).toEqual('Health and PE'); - expect(await WorldLanguages.getText()).toEqual('World Languages'); - await Mathematics.click().then(function() { - browser.sleep(5000); - }); - expect(await MathematicalPractices.getText()).toEqual('Mathematical Practices'); - expect(await AlgebraI.getText()).toEqual('Algebra I'); - expect(await StatisticsAndProbability.getText()).toEqual('Statistics and Probability'); - expect(await AlgebraII.getText()).toEqual('Algebra II'); - expect(await Precalculus.getText()).toEqual('Precalculus'); - expect(await MathematicsIII.getText()).toEqual('Mathematics III'); - expect(await MathematicsII.getText()).toEqual('Mathematics II'); - expect(await CalculusStandards.getText()).toEqual('Calculus Standards'); - expect(await MathematicsI.getText()).toEqual('Mathematics I'); - expect(await AdvancedPlacementProbabilityAndStatisticsStandards.getText()).toEqual('Advanced Placement Probability and Statistics Standards'); - browser.actions().mouseMove(Geometry).perform().then(function() { - browser.sleep(2500); - }); - expect(await Geometry.getText()).toEqual('Geometry'); - await Geometry.click().then(function() { - browser.sleep(5000); - }); - expect(await UsingProbabilityToMakeDecisions.getText()).toEqual('Statistics and Probability: Using Probability to Make Decisions'); - browser.actions().mouseMove(GeometricMeasurementAndDimensions).perform().then(function() { - browser.sleep(2500); - }); - expect(await ExpressingGeometricPropertiesWithEquations.getText()).toEqual('Geometry: Expressing Geometric Properties with Equations'); - expect(await Circles.getText()).toEqual('Geometry: Circles'); - expect(await ModelingWithGeometry.getText()).toEqual('Geometry: Modeling with Geometry'); - expect(await Congruence.getText()).toEqual('Geometry: Congruence'); - expect(await ConditionalProbabilityAndTheRulesOfProbability.getText()).toEqual('Statistics and Probability: Conditional Probability and the Rules of Probability'); - expect(await SimilarityRightTrianglesAndTrigonometry.getText()).toEqual('Geometry: Similarity, Right Triangles, and Trigonometry'); - expect(await GeometricMeasurementAndDimensions.getText()).toEqual('Geometry: Geometric Measurement and Dimension'); - await Circles.click().then(function() { - browser.sleep(5000); - }); - expect(await FindArcLengthsandAreasOfSectorsOfCircles.getText()).toEqual('Find arc lengths and areas of sectors of circles. [Radian introduced only as unit of measure]'); - expect(await UnderstandAndApplyTheoremsAboutCircles.getText()).toEqual('Understand and apply theorems about circles.'); - await FindArcLengthsandAreasOfSectorsOfCircles.click().then(function() { - browser.sleep(5000); - }); - expect(await DeriveUsingSimilarity.getText()).toEqual('Derive using similarity the fact that the length of the arc intercepted by an angle is proportional to the radius, and define the radian measure of the angle as the constant of proportionality; derive the formula for the area of a sector. Convert between degrees and radians. CA'); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(5000) - }); - expect(await JourneysEditTitleHeader.getText()).toEqual('Journey Edit'); - expect(await EditWayPointHeaderOne.getText()).toEqual('Statistics and Probability: Using Probability to Make Decisions'); - expect(await EditWayPointHeaderTwo.getText()).toEqual('Geometry: Expressing Geometric Properties with Equations'); - expect(await EditWayPointHeaderThree.getText()).toEqual('Geometry: Circles'); - expect(await EditWayPointHeaderFour.getText()).toEqual('Geometry: Modeling with Geometry'); - expect(await EditWayPointHeaderFive.getText()).toEqual('Geometry: Congruence'); - expect(await EditWayPointHeaderSix.getText()).toEqual('Statistics and Probability: Conditional Probability and the Rules of Probability'); - expect(await EditWayPointHeaderSeven.getText()).toEqual('Geometry: Similarity, Right Triangles, and Trigonometry'); - expect(await EditWayPointHeaderEight.getText()).toEqual('Geometry: Geometric Measurement and Dimension'); - await EditWayPointEllipsisTwo.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(DeleteLink).perform().then(function() { - browser.sleep(1000); - }); - await DeleteLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DeleteDIVText.getText()).toEqual('Are you sure you want to remove Geometry: Expressing Geometric Properties with Equations from this journey?'); - expect(CancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CancelButton.getText()).toEqual('Cancel'); - expect(RemoveThisWaypointButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await RemoveThisWaypointButton.getText()).toEqual('Remove this waypoint'); - await RemoveThisWaypointButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysEditTitleHeader.getText()).toEqual('Journey Edit'); - expect(await EditWayPointHeaderOne.getText()).toEqual('Statistics and Probability: Using Probability to Make Decisions'); - expect(await EditWayPointHeaderTwo.getText()).toEqual('Geometry: Circles'); - expect(await EditWayPointHeaderThree.getText()).toEqual('Geometry: Modeling with Geometry'); - expect(await EditWayPointHeaderFour.getText()).toEqual('Geometry: Congruence'); - expect(await EditWayPointHeaderFive.getText()).toEqual('Statistics and Probability: Conditional Probability and the Rules of Probability'); - expect(await EditWayPointHeaderSix.getText()).toEqual('Geometry: Similarity, Right Triangles, and Trigonometry'); - expect(await EditWayPointHeaderSeven.getText()).toEqual('Geometry: Geometric Measurement and Dimension'); - expect(EditWayPointSaveIcon.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue - await EditWayPointSaveIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneysEditTitleHeader.getText()).toEqual('Journey Edit'); - browser.actions().mouseMove(EditWayPointHeaderTwelve).perform().then(function() { - browser.sleep(1000); - }); - await CertifiedLegalManagerEllipsis.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(InsertAStop).perform().then(function() { - browser.sleep(1000); - }); - await InsertAStop.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Add Stop'); - expect(await EditSearchText.getText()).toEqual('Use the search bar above to find a stop to add to your journey, or pick one from the map.'); - await MapSearchTextBox.sendKeys('Engineer').then(function() { - browser.sleep(2500); - }); - await MagnifyingGlassIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysActionTitleHeader.getText()).toEqual('Search Results'); - expect(await DefaultResultsTab.getText()).toEqual('Career'); - expect(MyResultsFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await MyResultsFilterButton.getText()).toEqual('My Results'); - expect(JobPrepFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); - expect(FitFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await FitFilterButton.getText()).toEqual('Fit'); - expect(CategoryFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CategoryFilterButton.getText()).toEqual('Category'); - expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); - expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other'); - expect(await DefaultTabResultsPathTwo.getText()).toEqual('Healthcare > Health Informatics >'); - expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other'); - expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >'); - expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other'); - expect(await DefaultTabResultsPathFour.getText()).toEqual('Agriculture > Natural Resources Systems >'); - expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other'); - expect(await ResultsTabTwo.getText()).toEqual('College'); - await ResultsTabTwo.click().then(function() { - browser.sleep(5000); - }); - expect(await TabTwoResultsPathOne.getText()).toEqual('STEM > Bachelor of Science in Mechanical Engineering Degree Requirements >'); - expect(await TabTwoResultsChildOne.getText()).toEqual('Introduction to Electrical Engineering Lab'); - expect(await TabTwoResultsPathTwo.getText()).toEqual('STEM > Civil Engineering B.S. (BSCE) >'); - expect(await TabTwoResultsChildTwo.getText()).toEqual('Civil and Environmental Engineering Computations'); - expect(await TabTwoResultsPathThree.getText()).toEqual('STEM > Environmental Engineering B.S.(BSENVE) >'); - expect(await TabTwoResultsChildThree.getText()).toEqual('Civil and Environmental Engineering Computations'); - expect(await TabTwoResultsPathFour.getText()).toEqual('STEM > Bachelor of Science in Mechanical Engineering Degree Requirements >'); - expect(await TabTwoResultsChildFour.getText()).toEqual('Engineering Measurement and Instrumentation Systems Lab'); - expect(await ResultsTabThree.getText()).toEqual('Certification'); - await ResultsTabThree.click().then(function() { - browser.sleep(5000); - }); - expect(await TabThreeResultsPathOne.getText()).toEqual('Advanced > Other Certifications >'); - expect(await TabThreeResultsChildOne.getText()).toEqual('Structural Engineer'); - expect(await TabThreeResultsPathTwo.getText()).toEqual('Advanced > International Fluid Power Society >'); - expect(await TabThreeResultsChildTwo.getText()).toEqual('Fluid Power Engineer'); - expect(await TabThreeResultsPathThree.getText()).toEqual('Business Financial Mgmt & Acctg > Advanced >'); - expect(await TabThreeResultsChildThree.getText()).toEqual('Association of Energy Engineers'); - expect(await TabThreeResultsPathFour.getText()).toEqual('Management > Advanced >'); - expect(await TabThreeResultsChildFour.getText()).toEqual('Association of Energy Engineers'); - expect(await ResultsTabFour.getText()).toEqual('K-12'); - await ResultsTabFour.click().then(function() { - browser.sleep(5000); - }); - expect(await TabFourResultsPathOne.getText()).toEqual('1 > Science >'); - expect(await TabFourResultsChildOne.getText()).toEqual('ENGINEERING DESIGN'); - expect(await TabFourResultsPathTwo.getText()).toEqual('Science > ENGINEERING DESIGN >'); - expect(await TabFourResultsChildTwo.getText()).toEqual('Engineering Design'); - expect(await TabFourResultsPathThree.getText()).toEqual('Science > ENGINEERING DESIGN >'); - expect(await TabFourResultsChildThree.getText()).toEqual('Engineering Design'); - expect(await TabFourResultsPathFour.getText()).toEqual('Science > ENGINEERING DESIGN >'); - expect(await TabFourResultsChildFour.getText()).toEqual('Engineering Design'); - expect(await ResultsTabFive.getText()).toEqual('Military'); - await ResultsTabFive.click().then(function() { - browser.sleep(5000); - }); - expect(await TabFiveResultsPathOne.getText()).toEqual('Precision Measurement Equipment Laboratory > Manufacturing >'); - expect(await TabFiveResultsChildOne.getText()).toEqual('Mechanical Engineering Technicians'); - expect(await TabFiveResultsPathTwo.getText()).toEqual('Construction Engineering Supervisor > Architecture >'); - expect(await TabFiveResultsChildTwo.getText()).toEqual('Civil Engineering Technicians'); - expect(await TabFiveResultsPathThree.getText()).toEqual('Bridge Crewmember > Architecture >'); - expect(await TabFiveResultsChildThree.getText()).toEqual('Civil Engineering Technicians'); - expect(await TabFiveResultsPathFour.getText()).toEqual('Technical Engineer > Architecture >'); - expect(await TabFiveResultsChildFour.getText()).toEqual('Civil Engineering Technicians'); - expect(await ResultsTabSix.getText()).toEqual('CTE'); - await ResultsTabSix.click().then(function() { - browser.sleep(5000); - }); - expect(await TabSixResultsPathOne.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >'); - expect(await TabSixResultsChildOne.getText()).toEqual('Identify engine systems and components.'); - expect(await TabSixResultsPathTwo.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >'); - expect(await TabSixResultsChildTwo.getText()).toEqual('Analyze and troubleshoot engines.'); - expect(await TabSixResultsPathThree.getText()).toEqual('Demonstrate Installation Tools > Demonstrate generating technical documentation. >'); - expect(await TabSixResultsChildThree.getText()).toEqual('Demonstrate the ability to document engineering changes.'); - expect(await TabSixResultsPathFour.getText()).toEqual('Decision Making Information > Enhance usability of computer system operations. >'); - expect(await TabSixResultsChildFour.getText()).toEqual('Explain usability engineering methods.'); - await ResultsTabLeftArrow.click().then(function() { - browser.sleep(5000); - }); - expect(await DefaultResultsTab.getText()).toEqual('Career'); - await DefaultResultsTab.click().then(function() { - browser.sleep(5000); - }); - expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); - expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other'); - expect(await DefaultTabResultsPathTwo.getText()).toEqual('Healthcare > Health Informatics >'); - expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other'); - expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >'); - expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other'); - expect(await DefaultTabResultsPathFour.getText()).toEqual('Agriculture > Natural Resources Systems >'); - expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other'); - expect(await MyResultsFilterButton.getText()).toEqual('My Results'); - expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); - expect(await FitFilterButton.getText()).toEqual('Fit'); - expect(await CategoryFilterButton.getText()).toEqual('Category'); - await MyResultsFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FilterDIVTitle.getText()).toEqual('Career Filter'); - expect(await MyResultsDIVSubTitle.getText()).toEqual('My Results'); - await MyResultsDIVInterestSurveyResultsCheckBox.click().then(function() { - browser.sleep(2500); - }); - expect(await MyResultsDIVInterestSurveyResults.getText()).toEqual('Interest Survey Results (12)'); - expect(await MyResultsDIVSkillsAssessmentResults.getText()).toEqual('Skills Matcher Results (9)'); - expect(CareerFiltersDIVFilterButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CareerFiltersDIVFilterButton.getText()).toEqual('Filter'); - expect(CareersFilterDIVCancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CareersFilterDIVCancelButton.getText()).toEqual('Cancel'); - await CareerFiltersDIVFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(MyResultsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await MyResultsFilterButton.getText()).toEqual('My Results'); - expect(JobPrepFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); - expect(FitFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await FitFilterButton.getText()).toEqual('Fit'); - expect(CategoryFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CategoryFilterButton.getText()).toEqual('Category'); - expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); - expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathTwo.getText()).toEqual('Public Administration > Planning >'); - expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >'); - expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); - expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers'); - await JobPrepFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FilterDIVTitle.getText()).toEqual('Career Filter'); - expect(await JobPrepDIVSubTitle.getText()).toEqual('Job Prep'); - expect(await JobPrepDIVMayRequireHighSchoolDiplomaOrGED.getText()).toEqual('May Require High School Diploma or GED (11)'); - expect(await JobPrepDIVHighSchoolDiploma.getText()).toEqual('High School Diploma (52)'); - await JobPrepDIVVocationalTrainingOrAssociatesDegreeCheckBox.click().then(function() { - browser.sleep(2500); - }); - expect(await JobPrepDIVVocationalTrainingOrAssociatesDegree.getText()).toEqual('Vocational Training or Associates Degree (104)'); - expect(await JobPrepDIV4YearBachelorDegree.getText()).toEqual('4 Year Bachelor Degree (98)'); - expect(await JobPrepDIVGraduateSchoolOrProfessionalDegree.getText()).toEqual('Graduate School or Professional Degree (65)'); - expect(CareerFiltersDIVFilterButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CareerFiltersDIVFilterButton.getText()).toEqual('Filter'); - expect(CareersFilterDIVCancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CareersFilterDIVCancelButton.getText()).toEqual('Cancel'); - await CareerFiltersDIVFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(MyResultsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await MyResultsFilterButton.getText()).toEqual('My Results'); - expect(JobPrepFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); - expect(FitFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await FitFilterButton.getText()).toEqual('Fit'); - expect(CategoryFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CategoryFilterButton.getText()).toEqual('Category'); - expect(await DefaultTabResultsPathOne.getText()).toEqual('Marketing > Professional Sales & Marketing >'); - expect(await DefaultTabResultsChildOne.getText()).toEqual('Sales Engineers'); - expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Engineering & Technology >'); - expect(await DefaultTabResultsChildTwo.getText()).toEqual('Fire-Prevention and Protection Engineers'); - expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >'); - expect(await DefaultTabResultsChildThree.getText()).toEqual('Industrial Engineers'); - expect(await DefaultTabResultsPathFour.getText()).toEqual('Agriculture > Agribusiness Systems >'); - expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products'); - await FitFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FitDIVSubTitle.getText()).toEqual('Fit'); - await FitDIVBestCheckBox.click().then(function() { - browser.sleep(2500); - }); - expect(await FitDIVBest.getText()).toEqual('Best (12)'); - await FitDIVGreatCheckBox.click().then(function() { - browser.sleep(2500); - }); - expect(await FitDIVGreat.getText()).toEqual('Great (6)'); - expect(await FitDIVGood.getText()).toEqual('Good (3)'); - expect(CareerFiltersDIVFilterButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CareerFiltersDIVFilterButton.getText()).toEqual('Filter'); - expect(CareersFilterDIVCancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CareersFilterDIVCancelButton.getText()).toEqual('Cancel'); - await CareerFiltersDIVFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(MyResultsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await MyResultsFilterButton.getText()).toEqual('My Results'); - expect(JobPrepFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); - expect(FitFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await FitFilterButton.getText()).toEqual('Fit'); - expect(CategoryFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CategoryFilterButton.getText()).toEqual('Category'); - expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); - expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathTwo.getText()).toEqual('Public Administration > Planning >'); - expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >'); - expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); - expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers'); - await CategoryFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CategoryDIVSubTitle.getText()).toEqual('Category'); - expect(await CategoryDIVBrightOutlook.getText()).toEqual('Bright Outlook (34)'); - await CategoryDIVGreenCheckBox.click().then(function() { - browser.sleep(2500); - }); - expect(await CategoryDIVGreen.getText()).toEqual('Green (79)'); - expect(await CategoryDIVApprenticeship.getText()).toEqual('Apprenticeship (52)'); - await CategoryDIVFollowingCheckBox.click().then(function() { - browser.sleep(2500); - }); - expect(await CategoryDIVFollowing.getText()).toEqual('Following (0)'); - expect(CareerFiltersDIVFilterButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue - expect(await CareerFiltersDIVFilterButton.getText()).toEqual('Filter'); - expect(CareersFilterDIVCancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white - expect(await CareersFilterDIVCancelButton.getText()).toEqual('Cancel'); - await CareerFiltersDIVFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(MyResultsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await MyResultsFilterButton.getText()).toEqual('My Results'); - expect(JobPrepFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); - expect(FitFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await FitFilterButton.getText()).toEqual('Fit'); - expect(CategoryFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //green - expect(await CategoryFilterButton.getText()).toEqual('Category'); - expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); - expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathTwo.getText()).toEqual('Public Administration > Planning >'); - expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >'); - expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers'); - expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); - expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers'); - browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() { - browser.sleep(1000); - }); - await ThirdResultViewOnMapIconIcon.click().then(function() { - browser.sleep(5000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await ThirdResultAddIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await EditWayPointHeaderOne.getText()).toEqual('6'); - expect(await EditWayPointHeaderTwo.getText()).toEqual('7'); - expect(await EditWayPointHeaderThree.getText()).toEqual('8'); - expect(await EditWayPointHeaderFour.getText()).toEqual('9'); - expect(await EditWayPointHeaderFive.getText()).toEqual('10'); - expect(await EditWayPointHeaderSix.getText()).toEqual('11'); - expect(await EditWayPointHeaderSeven.getText()).toEqual('12'); - expect(await EditWayPointHeaderEight.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await EditWayPointHeaderNine.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await EditWayPointHeaderTen.getText()).toEqual('Certified Practice Manager'); - expect(await EditWayPointHeaderEleven.getText()).toEqual('Certified Legal Manager'); - expect(await EditWayPointHeaderTwelve.getText()).toEqual('Architectural and Engineering Managers'); - expect(await EditWayPointHeaderThirteen.getText()).toEqual('Administrative Services Managers'); - expect(EditWayPointSaveIcon.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue - await EditWayPointSaveIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(JourneyExitWayPoint).perform().then(function() { - browser.sleep(1000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - browser.actions().mouseMove(EditWayPointHeaderThirteen).perform().then(function() { - browser.sleep(1000); - }); - await CollegeWayPointEllipsis.click().then(function() { - browser.sleep(2500) - }); - browser.actions().mouseMove(ReOrderLink).perform().then(function() { - browser.sleep(1000); - }); - await ReOrderLink.click().then(function() { - browser.sleep(2500) - }); - browser.actions().mouseDown(GrabCollegeWayPoint).mouseMove(EditWayPointHeaderTwelve).mouseUp(EditWayPointHeaderTwelve).perform(); - browser.sleep(2500); - expect(await EditWayPointHeaderOne.getText()).toEqual('6'); - expect(await EditWayPointHeaderTwo.getText()).toEqual('7'); - expect(await EditWayPointHeaderThree.getText()).toEqual('8'); - expect(await EditWayPointHeaderFour.getText()).toEqual('9'); - expect(await EditWayPointHeaderFive.getText()).toEqual('10'); - expect(await EditWayPointHeaderSix.getText()).toEqual('11'); - expect(await EditWayPointHeaderSeven.getText()).toEqual('12'); - expect(await EditWayPointHeaderEight.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await EditWayPointHeaderNine.getText()).toEqual('Certified Practice Manager'); - expect(await EditWayPointHeaderTen.getText()).toEqual('Certified Legal Manager'); - expect(await EditWayPointHeaderEleven.getText()).toEqual('Architectural and Engineering Managers'); - expect(await EditWayPointHeaderTwelve.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await EditWayPointHeaderThirteen.getText()).toEqual('Administrative Services Managers'); - await EditWayPointSaveIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey View'); - expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('K-8'); - expect(await JourneyEntryWayPointCluster.getText()).toEqual('6'); - expect(await SeventhGradeWayPointTopLevel.getText()).toEqual('K-8'); - expect(await SeventhGradeWayPointCluster.getText()).toEqual('7'); - expect(await EightGradeWayPointTopLevel.getText()).toEqual('K-8'); - expect(await EightGradeWayPointCluster.getText()).toEqual('8'); - expect(await NinethGradeWayPointTopLevel.getText()).toEqual('HS'); - expect(await NinethGradeWayPointCluster.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'); - browser.actions().mouseMove(JourneyNewEndWayPointPathway).perform().then(function() { - browser.sleep(2500); - }); - expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration'); - expect(await CollegeStopWayPointPathway.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await AddedStopWayPointTopLevelOne.getText()).toContain('Core'); - expect(await AddedStopWayPointClusterOne.getText()).toEqual('Other Certifications'); - expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Certified Practice Manager'); - expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced'); - expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications'); - expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager'); - expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('IT'); - expect(await AddedStopWayPointClusterThree.getText()).toEqual('Programming & Software Development'); - expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers'); - expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College'); - expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration'); - expect(await AddedStopWayPointPathwayFour.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await JourneyNewEndWayPointTopLevel.getText()).toEqual('Administration'); - expect(await JourneyNewEndWayPointCluster.getText()).toEqual('Management'); - expect(await JourneyNewEndWayPointPathway.getText()).toEqual('Administrative Services Managers'); - 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')); - 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(.,"6 to Administrative Services Managers through Business Administration B.A./B.S.")]')); - 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 SeventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var SeventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)')); - var EightGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var EightGradeWayPointCluster = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)')); - var NinethGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var NinethGradeWayPointCluster = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)')); - var TenthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_4 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var TenthGradeWayPointCluster = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)')); - var EleventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_5 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var EleventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_5 .side-bar-journey-detail-child-txt:nth-child(5)')); - var TwelfthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_6 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var TwelfthGradeWayPointCluster = element(by.css('#journeyViewToolTip_6 .side-bar-journey-detail-child-txt:nth-child(5)')); - var CollegeStopWayPointTopLevel = element(by.css('#journeyViewToolTip_7 .ng-binding:nth-child(1)')); - var CollegeStopWayPointCluster = element(by.css('#journeyViewToolTip_7 > .ng-isolate-scope .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var CollegeStopWayPointPathway = element(by.css('#journeyViewToolTip_7 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelOne = element(by.css('#journeyViewToolTip_8 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterOne = element(by.css('#journeyViewToolTip_8 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayOne = element(by.css('#journeyViewToolTip_8 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelTwo = element(by.css('#journeyViewToolTip_9 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterTwo = element(by.css('#journeyViewToolTip_9 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayTwo = element(by.css('#journeyViewToolTip_9 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelThree = element(by.css('#journeyViewToolTip_10 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterThree = element(by.css('#journeyViewToolTip_10 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayThree = element(by.css('#journeyViewToolTip_10 .side-bar-journey-detail-child-txt:nth-child(5)')); - var AddedStopWayPointTopLevelFour = element(by.css('#journeyViewToolTip_11 .ng-binding:nth-child(1)')); - var AddedStopWayPointClusterFour = element(by.css('#journeyViewToolTip_11 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var AddedStopWayPointPathwayFour = element(by.css('#journeyViewToolTip_11 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyNewEndWayPointTopLevel = element(by.css('#journeyViewToolTip_12 .ng-binding:nth-child(1)')); - var JourneyNewEndWayPointCluster = element(by.css('#journeyViewToolTip_12 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyNewEndWayPointPathway = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)')); - var MyJourneysHowAmIDoingButton = element(by.css('.btn-success')); - var MyJourneysSubText = element(by.css('.details-resourceRowTitle')); - var JourneysGreeting = element(by.css('.dropdown')); - var QA_MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer')); - var PROD_MySavedJourneysTitleOne = element(by.css('#\\30 d40fce9-6c74-4889-9de2-c89cfcd55d0d .cursorPointer')); - var QA_MySavedJourneysTitleTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer')); - var PROD_MySavedJourneysTitleTwo = element(by.css('#f16005c8-54b9-4add-9760-8e4127e14c1f .cursorPointer')); - var QA_MySavedJourneysTitleThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer')); - var PROD_MySavedJourneysTitleThree = element(by.css('#c56fb102-fef6-488f-b970-c89aa9d86aeb .cursorPointer')); - var QA_MySavedJourneysTitleFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer')); - var PROD_MySavedJourneysTitleFour = element(by.css('#\\35 2fa1577-63a9-4f8f-9ca4-317a54226ed7 .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('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - await MyJourneysSelectCreatedJourney.click().then(function() { - browser.sleep(2500); - }); - expect(await MyJourneysTitleRow.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('6'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('7'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('8'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - 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('Master of Business Administration (MBA)'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Certified Practice Manager'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Certified Legal Manager'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Architectural and Engineering Managers'); - 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('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await EditJourneyLink.getText()).toEqual('Edit Journey'); - expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('K-8'); - expect(await JourneyEntryWayPointCluster.getText()).toEqual('6'); - expect(await SeventhGradeWayPointTopLevel.getText()).toEqual('K-8'); - expect(await SeventhGradeWayPointCluster.getText()).toEqual('7'); - expect(await EightGradeWayPointTopLevel.getText()).toEqual('K-8'); - expect(await EightGradeWayPointCluster.getText()).toEqual('8'); - expect(await NinethGradeWayPointTopLevel.getText()).toEqual('HS'); - expect(await NinethGradeWayPointCluster.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'); - browser.actions().mouseMove(JourneyNewEndWayPointPathway).perform().then(function() { - browser.sleep(2500); - }); - expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration'); - expect(await CollegeStopWayPointPathway.getText()).toEqual('Master of Business Administration (MBA)'); - expect(await AddedStopWayPointTopLevelOne.getText()).toContain('Core'); - expect(await AddedStopWayPointClusterOne.getText()).toEqual('Other Certifications'); - expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Certified Practice Manager'); - expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced'); - expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications'); - expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager'); - expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('IT'); - expect(await AddedStopWayPointClusterThree.getText()).toEqual('Programming & Software Development'); - expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers'); - expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College'); - expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration'); - expect(await AddedStopWayPointPathwayFour.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await JourneyNewEndWayPointTopLevel.getText()).toEqual('Administration'); - expect(await JourneyNewEndWayPointCluster.getText()).toEqual('Management'); - expect(await JourneyNewEndWayPointPathway.getText()).toEqual('Administrative Services Managers'); - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(2500); - }); - await MyJourneysSelectCreatedJourney.click().then(function() { - browser.sleep(2500); - }); - expect(await MyJourneysHowAmIDoingButton.getText()).toEqual('How am I doing?'); - 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); - }); - expect(await MyJourneysRemoveJourneyButton.getText()).toEqual('Remove Journey'); - 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); - }); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await QA_MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await QA_MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); - expect(await QA_MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await QA_MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); - } else { - expect(await PROD_MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await PROD_MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); - expect(await PROD_MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await PROD_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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/fullTestSuite_config.js b/fullTestSuite_config.js deleted file mode 100644 index 44a533c..0000000 --- a/fullTestSuite_config.js +++ /dev/null @@ -1,62 +0,0 @@ -//fullTestSuite_config.js - -var today = new Date(); -var mm = today.getMonth()+1; //January is 0 -var dd = today.getDate(); -var yyyy = today.getFullYear(); -var hour = today.getHours(); -var minute = today.getMinutes(); - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: [ - 'createAccount_spec.js', - 'loginWithInstitution_spec.js', - 'userProfile_spec.js', - 'profileAndMyProgressWidgets_spec.js', - 'interestSurveyResultsWidget_spec.js', - //'skillsMatcherResultsWidget_spec.js', - //'beginCareerExplorationWidget_spec.js', - 'myCareersWidget_spec.js', - //'topCareerWidget_spec.js', - 'createJourney_spec.js', - 'myResourcesWidget_spec.js', - //'institutionsWidget_spec.js', - 'myJourneysWidget_spec.js' - ], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - signup: 'https://app-qa.journeysmap.com/Journey/index.html#/signup', - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - nonAngularURL: 'https://app-qa.journeysmap.com/UI/User/Profile', - code: 'N0R7Y7RO', //QA N0R7Y7RO //PROD 0W3SNBQ7 - createUserName: 'AutomatedTest' + mm + dd + yyyy + hour + minute + '@journeysmap.com', - username: 'QA_AutomatedRegression', - loginWithInstitutionUsername: 'GNight147', //QA GNight147 //PRODuser147 - password: '3Dm!nAuto' - }, - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/institutionsWidget_config.js b/institutionsWidget_config.js deleted file mode 100644 index daedd87..0000000 --- a/institutionsWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//institutionsWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['institutionsWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/institutionsWidget_spec.js b/institutionsWidget_spec.js deleted file mode 100644 index 8805d67..0000000 --- a/institutionsWidget_spec.js +++ /dev/null @@ -1,208 +0,0 @@ -//institutionsWidget_spec.js - -describe('Institutions Widget script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - InstitutionsWidget(); - - //Sign Out*/ - SignOut(); -}); - -function InstitutionsWidget() { - it(': InstitutionsWidget, should interact with Institutions Widget and validate data', async function () { - var InstitutionsWidgetTitle = element(by.css('#institutionCarousel .jrnys_lead-body-copy')); - var InstitutionsViewAllLink = element(by.css('#institutionCarousel .text-color-7a')); - var EditSearchTitle = element(by.css('.panel-with-page > .row > b')); - var ProgramDegreesSubTitle = element(by.css('.row:nth-child(2) b')); - var ChooseADegreeHeader = element(by.css('.row:nth-child(2) > div:nth-child(2)')); - var ChooseAProgramHeader = element(by.css('.row:nth-child(2) > div:nth-child(3)')); - var LocationSubTitle = element(by.css('.row:nth-child(3) b')); - var ChooseAStateHeader = element(by.css('.row:nth-child(3) > div:nth-child(2)')); - var ChooseARegionHeader = element(by.css('.row:nth-child(3) > div:nth-child(3)')); - var EngerAZipCodeHeader = element(by.css('.row:nth-child(4) > .col-xs-6:nth-child(1)')); - var MileRadiusHeader = element(by.css('.col-xs-6:nth-child(2)')); - var InstitutionsSearchResults = element(by.css('#divCSCSearchResult b')) - var BackLink = element(by.css('.btn-primary-back-mod')); - var LomaLindaUniversity = element(by.css('#territoryCardContainer > div > div:nth-child(3) > div > div.territoryCardTitleText.territoryCardTitleHeight > span')); - var WestCoastUniversityOrangeCounty = element(by.css('')); - var WestCoastUniversityOntario = element(by.css('')); - var UniversityOfSanDiego = element(by.xpath("//span[contains(.,'University of San Diego')]")); - var UniversityOfSanDiegoAtAGlanceIcon = element(by.css('#territoryCardContainer > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div > div.territoryCardItemText.territoryCardMediaHide')); - var UniversityOfSanDiegoBackOfCardTitle = element(by.css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding')); - var UniversityOfSanDiegoBackOfCard4YearHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)')); - var UniversityOfSanDiegoBackOfCard4YearData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)')); - var UniversityOfSanDiegoBackOfCardUndergradHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)')); - var UniversityOfSanDiegoBackOfCardUndergradData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding')); - var UniversityOfSanDiegoBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText')); - var UniversityOfSanDiegoBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div')); - var UniversityOfSanDiegoBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText')); - var UniversityOfSanDiegoBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div')); - var UniversityOfSanDiegoBackOfCardXCloseIcon = element(by.css('#territoryCardTitleHeader > div:nth-child(2) > span')); - var UniversityOfSanDiegoEllipsisIcon = element(by.css('#territoryCardContainer > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div > i')); - var UniversityOfSanDiegoBackOfCardTitleTwo = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText')); - var UniversityOfSanDiegoBackOfCardFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText')); - var UniversityOfSanDiegoBackOfCardLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText')); - var UniversityOfSanDiegoLearnMoreTitle = element(by.css('td .jrnys_lead-body-copy')); - var UniversityOfSanDiegoLearnMoreIIcon = element(by.css('.journey-info-circle')); - var UniversityOfSanDiegoLearnMoreDIVTitle = element(by.css('.col-lg-12 > .ng-binding')); - var UniversityOfSanDiegoLearnMoreDIVLink = element(by.linkText('http://www.sandiego.edu')); - var CloseXDIVIcon = element(by.css('.fa-times')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > span')); - var UniversityOfSanDiegoBackOfCardAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText')); - var AlliantInternationalUniversitySanDiego = element(by.xpath("//span[contains(.,'Alliant International University-San Diego')]")); - var NationalUniversity = element(by.xpath("//span[contains(.,'National University')]")); - var InstitutionsRightScroll = element(by.xpath('//div[2]/div/a[2]/span')); - var PointLomaNazareneUniversity = element(by.xpath("//span[contains(.,'Point Loma Nazarene University')]")); - var UniversityOfCaliforniaSanDiego = element(by.xpath("//span[contains(.,'University of California-San Diego')]")); - var SanDiegoStateUniversity = element(by.xpath("//span[contains(.,'San Diego State University')]")); - - browser.executeScript('window.scrollTo(0, 2838);').then(function() { - browser.sleep(2500); - }); - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); - await InstitutionsViewAllLink.click().then(function() { - browser.sleep(2500); - }); - //College Search Page - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(await EditSearchTitle.getText()).toEqual('Edit Search'); - expect(await ProgramDegreesSubTitle.getText()).toEqual('Programs/Degrees'); - expect(await ChooseADegreeHeader.getText()).toContain('Choose a Degree'); - expect(await ChooseAProgramHeader.getText()).toContain('Choose a Program'); - expect(await LocationSubTitle.getText()).toEqual('Location'); - expect(await ChooseAStateHeader.getText()).toContain('Choose a state'); - expect(await ChooseARegionHeader.getText()).toContain('Choose a region'); - expect(await EngerAZipCodeHeader.getText()).toEqual('Enter a ZIP code'); - expect(await MileRadiusHeader.getText()).toEqual('Mile radius'); - expect(await InstitutionsSearchResults.getText()).toContain('Search Results ('); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - //Dashboard - browser.executeScript('window.scrollTo(0, 2838);').then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego'); - expect(await AlliantInternationalUniversitySanDiego.getText()).toEqual('Alliant International University-San Diego') - expect(await NationalUniversity.getText()).toEqual('National University'); - await UniversityOfSanDiegoAtAGlanceIcon.click().then(function() { - browser.sleep(2500) - }); - expect(await UniversityOfSanDiegoBackOfCardTitle.getText()).toEqual('University of San Diego'); - expect(await UniversityOfSanDiegoBackOfCard4YearHeader.getText()).toEqual('4 Year'); - expect(await UniversityOfSanDiegoBackOfCard4YearData.getText()).toEqual('Private nonprofit'); - expect(await UniversityOfSanDiegoBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students'); - expect(await UniversityOfSanDiegoBackOfCardUndergradData.getText()).toEqual('5,760'); - expect(await UniversityOfSanDiegoBackOfCardLocationHeader.getText()).toContain('Location'); - expect(await UniversityOfSanDiegoBackOfCardLocationData.getText()).toEqual('City'); - expect(await UniversityOfSanDiegoBackOfCardClassroomHeader.getText()).toContain('Classrooms'); - expect(await UniversityOfSanDiegoBackOfCardClassroomData.getText()).toEqual('Medium'); - await UniversityOfSanDiegoBackOfCardXCloseIcon.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 2838);').then(function() { - browser.sleep(1000); - }); - await UniversityOfSanDiegoEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfSanDiegoBackOfCardTitleTwo.getText()).toEqual('University of San Diego'); - expect(await UniversityOfSanDiegoBackOfCardFollowIcon.getText()).toEqual('Follow'); - expect(await UniversityOfSanDiegoBackOfCardLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await UniversityOfSanDiegoBackOfCardAtAGlanceIcon.getText()).toEqual('At A Glance'); - await UniversityOfSanDiegoBackOfCardLearnMoreIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfSanDiegoLearnMoreTitle.getText()).toEqual('University of San Diego'); - await UniversityOfSanDiegoLearnMoreIIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfSanDiegoLearnMoreDIVTitle.getText()).toEqual('University of San Diego'); - expect(await UniversityOfSanDiegoLearnMoreDIVLink.getText()).toEqual('http://www.sandiego.edu'); - await CloseXDIVIcon.click().then(function() { - browser.sleep(2500); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 2838);').then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego'); - expect(await AlliantInternationalUniversitySanDiego.getText()).toEqual('Alliant International University-San Diego') - expect(await NationalUniversity.getText()).toEqual('National University'); - await InstitutionsRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University'); - expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego'); - expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University'); - 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().then(function() { - browser.sleep(1000); - }); - await ProfileImage.click().then(function() { - browser.sleep(1000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/interestSurveyResultsWidget_config.js b/interestSurveyResultsWidget_config.js deleted file mode 100644 index 045c3cd..0000000 --- a/interestSurveyResultsWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//interestSurveyResultsWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['interestSurveyResultsWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/interestSurveyResultsWidget_spec.js b/interestSurveyResultsWidget_spec.js deleted file mode 100644 index aa51e1a..0000000 --- a/interestSurveyResultsWidget_spec.js +++ /dev/null @@ -1,1050 +0,0 @@ -//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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_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('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')); - var MyCareersWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - - //Scroll down to Interest Survey Results widget - browser.executeScript('window.scrollTo(0, 592);').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'); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await MyCareersWidgetTitle.getText()).toEqual('My Careers View All'); - expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); - }); -} - -function InterestSurveyResultsWidgetRetake() { - it(': InterestSurveyResultsWidgetRetake, retake interest survey', async function () { - var InterestSurveyRetake = element(by.css('div:nth-child(3) > .fa-tasks')); - var EnglishLanguageButton = element(by.css('.btn-xs:nth-child(1)')); - var SpanishLanguageButton = element(by.css('.btn:nth-child(2)')); - 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 CancelTestButton = element(by.css('.btn-md')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var DashboardHeaderLink = element(by.css('.navbar-brand > img')); - var MyCareersWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var AccountantsAndAuditors = element(by.xpath("//div[@id='territoryCardContainer']/div/div[3]/div/div[2]/span")); - var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.xpath("(//div[@id='territoryCardContainer']/div/div[3]/div/div[2]/span)[2]")); - var AdministrativeServicesManagers = element(by.xpath("(//div[@id='territoryCardContainer']/div/div[3]/div/div[2]/span)[3]")); - - //Scroll down to Interest Survey Results widget - browser.executeScript('window.scrollTo(0, 592);').then(function() { - browser.sleep(2500); - }); - //Retake Interest Survey - await InterestSurveyRetake.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await EnglishLanguageButton.getText()).toEqual('English'); - expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - expect(await SpanishLanguageButton.getText()).toEqual('Español'); - expect(await CancelTestButton.getText()).toEqual('Cancel Test'); - await LikeItEmoji.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().then(function() { - 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 MyCareersWidgetTitle.getText()).toEqual('My Careers View All'); - expect(await AccountantsAndAuditors.getText()).not.toEqual('Accountants And Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).not.toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await AdministrativeServicesManagers.getText()).not.toEqual('Administrative Services Managers'); - 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 InterestSurveyWidgetTitle = element(by.css('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 TopResultTitleTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div > .ng-binding')); - var TopResultDescriptionTwo = element(by.css('.ng-scope:nth-child(4) .surveyResultTruncateText')); - 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 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')); - var MyCareersWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - 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 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 DIVAlertTitleTwo = element(by.css('h2')); - var DIVAlertMessageTwo = element(by.css('p:nth-child(7)')); - var DIVOKButtonTwo = element(by.css('.confirm')); - var EC = protractor.ExpectedConditions; - var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn')); - - //Scroll down to Interest Survey Results widget - browser.executeScript('window.scrollTo(0, 592);').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').then(function() { - browser.sleep(1000); - }); - //await EditRealisticTextBox.sendKeys(protractor.Key.CONTROL, "a", protractor.Key.DELETE).sendKeys('21').sendKeys(protractor.Key.TAB); SAMPLE - 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').then(function() { - 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').then(function() { - 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').then(function() { - 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').then(function() { - 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').then(function() { - 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.'); - await EditInterestSurveyDIVSaveButton.click().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.'); - 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.'); - 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.'); - expect(await InterestResultsIcon.getText()).toEqual('Results'); - expect(await InterestEditIcon.getText()).toEqual('Edit'); - expect(await InterestRetakeIcon.getText()).toEqual('Retake'); - //EDM-1959 My Careers widget does not auto update after editing Interest Survey Results - browser.refresh().then(function() { - browser.sleep(5000); - });//REMOVE - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(2500); - }); - expect(await MyCareersWidgetTitle.getText()).toEqual('My Careers View All'); - expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - 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'); - //Scroll down to Interest Survey Results widget - browser.executeScript('window.scrollTo(0, 592);').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().then(function() { - browser.sleep(2500); - }); - expect(await ShareResultsDIVTitle.getText()).toEqual('Email Your Results'); - expect(await CancelButton.getText()).toEqual('Cancel'); - expect(await SendButton.getText()).toEqual('Send'); - await SendButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVAlertTitle.getText()).toEqual('No Email'); - expect(await DIVAlertMessage.getText()).toEqual('Please provide at least one email address to send.'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - await ToTextBox.sendKeys('jhuerta@edmin'); - await SendButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVAlertTitle.getText()).toEqual('Invalid Email'); - expect(await DIVAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - await FromTextBox.clear().then(function() { - browser.sleep(1500); - }); - await FromTextBox.sendKeys("Juan's Automated Regression"); - browser.sleep(1500); - await ToTextBox.sendKeys('.com').then(function() { - browser.sleep(2500); - }); - await SendButton.click().then(function() { - browser.sleep(2500); - }); - browser.wait(EC.visibilityOf(DIVAlertTitleTwo), 30000).then(function() { - browser.sleep(2500); - }); - await expect(DIVAlertTitleTwo.getText()).toEqual('Your interest survey results are in flight!'); - await expect(DIVAlertMessageTwo.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); - await DIVOKButtonTwo.click().then(function() { - browser.waitForAngular(); - }); - browser.wait(EC.elementToBeClickable(ExploreCareersButton), 30000).then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResultsWidgetResults() { - it(': InterestSurveyResultsWidgetResults, should verify the Interest Survey results 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 SkillsFilterButton = element(by.css('.filter-category-off: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 AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #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 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 FinancialAndInvestmentPlanning = element(by.css('#\\32 f8e3d00-1d7a-46f6-bf4e-c907540ab958 > #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 InsuranceServices = element(by.css('#e42868e2-b210-40c6-a842-b6acddc27f68 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var PreviousLinkText = element(by.linkText('Previous')); - var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)')); - var NextLinkText = 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 HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var InformationTechnology = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var Manufactoring = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)')); - 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 HydroelectricProductionManagers = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var HydroelectricProductionManagersAtAGlanceIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer div > div > div > .territoryCardItemText')); - var HydroelectricProductionManagersAtGlanceTitle = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer #territoryCardTitleHeader > .territoryCardTitleText')); - var HydroelectricProductionManagersAtAGlanceDescription = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .territoryCardDescriptionText')); - var HydroelectricProductionManagersAtAGlanceXCloseIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .glyphicon')); - var HydroelectricProductionManagersFitMatchIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .ng-scope div:nth-child(1) > .territoryCardItemText')); - var HydroelectricProductionManagersEllipsis = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas')); - var HydroelectricProductionManagersEllipsisTitle = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText')); - var HydroelectricProductionManagersEllipsisFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText')); - var HydroelectricProductionManagersEllipsisLearnMoreIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText')); - var HydroelectricProductionManagersEllipsisMapIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText')); - var HydroelectricProductionManagersEllipsisJourneymanIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText')); - var HydroelectricProductionManagersEllipsisVideoIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText')); - var HydroelectricProductionManagersEllipsisAtAGlanceIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText')); - var EC = protractor.ExpectedConditions; - var HydroelectricProductionManagersJourneyInfoIcon = element(by.css('span > .journey-info-circle')); - var IndustrialProductionManagers = element(by.css('#\\31 7fcdfd2-02ce-4816-95c6-ff7831fd520a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var FirstLineSupervisorsOfProductionAndOperatingWorkers = element(by.css('#\\32 85eaa19-0bb5-4460-a739-44fe976d6f7a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CostEstimators = element(by.css('#\\32 ac6e68d-b85d-49d6-8be9-b2dc3b9ed93f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var RegulatoryAffairsManagers = element(by.css('#\\32 d1bd8ed-49cc-4311-a396-d83f0bf17dfa > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var MedicalAndHealthServicesManagers = element(by.css('#\\33 9b9fe6d-efc3-4f9b-906e-0d24b9b3687d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - 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')); - - await ExploreCareersButton.click().then(function() { - browser.sleep(2500); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology');//not this one - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await Manufactoring.getText()).toEqual('Manufacturing'); - expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); - expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - 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 HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await InformationTechnology.getText()).toEqual('Information Technology'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - //Selected Finances - await FinanceSelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services'); - expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management'); - expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await InsuranceServices.getText()).toEqual('Insurance Services'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - //Selected Business Financial Management - await BusinessFinancialManagementSelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await PathwaysLink.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - 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 BusinessFinancialManagement.getText()).toEqual('Business Financial Management'); - expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await InsuranceServices.getText()).toEqual('Insurance Services'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - await ClustersLink.click().then(function() { - browser.sleep(2500); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await BusinessManagementAndAdministrationSelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - expect(await Marketing.getText()).toEqual('Marketing'); - expect(await BusinessFinancialManagementAndAccounting.getText()).toEqual('Business Financial Management and Accounting'); - expect(await AdministrativeAndInformationSuport.getText()).toEqual('Administrative and Information Support'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await HumanResources.getText()).toEqual('Human Resources'); - expect(await Management.getText()).toEqual('Management'); - expect(await BusinessAnalysis.getText()).toEqual('Business Analysis'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await ManagementSelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations'); - expect(await HydroelectricProductionManagers.getText()).toEqual('Hydroelectric Production Managers'); - expect(await IndustrialProductionManagers.getText()).toEqual('Industrial Production Managers'); - expect(await FirstLineSupervisorsOfProductionAndOperatingWorkers.getText()).toEqual('First-Line Supervisors of Production and Operating Workers'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(await CostEstimators.getText()).toEqual('Cost Estimators'); - expect(await RegulatoryAffairsManagers.getText()).toEqual('Regulatory Affairs Managers'); - expect(await MedicalAndHealthServicesManagers.getText()).toEqual('Medical and Health Services Managers'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await HydroelectricProductionManagersAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await HydroelectricProductionManagersAtGlanceTitle.getText()).toEqual('Hydroelectric Production Managers'); - expect(await HydroelectricProductionManagersAtAGlanceDescription.getText()).toEqual('Manage operations at hydroelectric power generation facilities. Maintain and monitor hydroelectric plant equipment for efficient and safe plant operations.'); - await HydroelectricProductionManagersAtAGlanceXCloseIcon.click().then(function() { - browser.sleep(2500); - }); - //expect(await HydroelectricProductionManagersFitMatchIcon.getText()).toContain('Best Fit'); EDM-1726 - await HydroelectricProductionManagersEllipsis.click().then(function() { - browser.sleep(2500); - }); - expect(await HydroelectricProductionManagersEllipsisTitle.getText()).toEqual('Hydroelectric Production Managers'); - expect(await HydroelectricProductionManagersEllipsisFollowIcon.getText()).toEqual('Follow'); - expect(await HydroelectricProductionManagersEllipsisLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await HydroelectricProductionManagersEllipsisMapIcon.getText()).toEqual('Map'); - expect(await HydroelectricProductionManagersEllipsisJourneymanIcon.getText()).toEqual('Journey'); - expect(await HydroelectricProductionManagersEllipsisVideoIcon.getText()).toEqual('Video'); - expect(await HydroelectricProductionManagersEllipsisAtAGlanceIcon.getText()).toEqual('At A Glance'); - await HydroelectricProductionManagersEllipsisJourneymanIcon.click().then(function() { - browser.sleep(5000); - browser.waitForAngular(); - }); - browser.wait(EC.elementToBeClickable(HydroelectricProductionManagersJourneyInfoIcon)); - 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 EC = protractor.ExpectedConditions; - 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('.navbar-brand > img')); - - 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().then(function() { - browser.waitForAngular(); - }); - await JourneyEntryPoint.sendKeys('9'); - await SelectEntryPointDropDown.click().then(function() { - browser.waitForAngular(); - }); - await StartYourJourneyButton.click().then(function() { - browser.waitForAngular(); - }); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); - expect(await JourneyResultTitleOne.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.'); - expect(await JourneyResultTitleTwo.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration Minor'); - expect(await JourneyResultTitleThree.getText()).toEqual('9 to Hydroelectric Production Managers through Global Supply Chain Management Graduate Certificate'); - browser.actions().mouseMove(JourneySaveIcon).perform().then(function() { - browser.sleep(1000); - }); - await JourneySaveIcon.click().then(function() { - browser.sleep(10000); - }); - browser.wait(EC.visibilityOf(JourneyStopDIVTitle), 30000).then(function() { - browser.sleep(2500); - }); - 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('Distributed Generation Certified Professional'); - expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Business Administration Minor'); - expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Global Supply Chain Management Graduate Certificate'); - 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 Hydroelectric Production 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')); - 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 Hydroelectric Production 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.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]")); - var MySavedJourneysTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]")); - var MySavedJourneysTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]")); - var MySavedJourneysTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]")); - - 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 Hydroelectric Production 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('Hydroelectric'); - await MyJourneysSelectCreatedJourney.click().then(function() { - browser.sleep(2500); - }); - expect(await MyJourneysTitleRow.getText()).toEqual('9 to Hydroelectric Production 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('Hydroelectric Production 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 Hydroelectric Production 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('Hydroelectric Production 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().then(function() { - browser.sleep(1000); - }); - await ProfileImage.click().then(function() { - browser.sleep(1000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/journeysmap_config.js b/journeysmap_config.js deleted file mode 100644 index cd26890..0000000 --- a/journeysmap_config.js +++ /dev/null @@ -1,29 +0,0 @@ -// config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['journeysmap_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.driver.manage().window().maximize(); - }, - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/journeysmap_spec.js b/journeysmap_spec.js deleted file mode 100644 index 0a56177..0000000 --- a/journeysmap_spec.js +++ /dev/null @@ -1,5009 +0,0 @@ -//journeysmap_spec.js - -describe('Journeysmap 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'); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('Login'); - }); - - //Sign In - SignIn(UserNameTextBox, PasswordTextBox); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - function SignIn(UserNameTextBox, PasswordTextBox) { - it('should sign into journeysmap.com', async function () { - var PageGreetingText = element(by.css('td > div > div:nth-child(1)')); - var PageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)')); - var PageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope')); - var NextButton = element(by.css('.btn')); - var EC = protractor.ExpectedConditions; - var InvalidIcon = element(by.css('.far:nth-child(4)')); - var PageValidationText = element(by.css('.ng-binding:nth-child(1)')); - var EyeIcon = element(by.css('.fa-eye')); - 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('edmin123').then(function() { - browser.sleep(2500); - }); - expect(await PageSubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); - expect(await PageSubTextTwo.getText()).toEqual('Forgot your password? Click here.'); - await NextButton.click().then(function() { - browser.sleep(2500); - }); - browser.wait(EC.visibilityOf(InvalidIcon)); - expect(await PageValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); - await PasswordTextBox.click().then(function() { - browser.sleep(2500); - }); - browser.wait(EC.invisibilityOf(PageValidationText)); - await EyeIcon.click().then(function() { - browser.sleep(2500); - }); - await PasswordTextBox.clear().then(function() { - browser.sleep(1000); - PasswordTextBox.sendKeys('3Dm!nAuto'); - browser.sleep(1000); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - //<<<>>> - ProfileWidget(); - - MyProgressWidget(); - - InterestSurveyResultsWidget(); - InterestSurveyResultsClusters(); - InterestSurveyResultsCreateJourney(); - - SkillsAssessmentWidget(); - SkillsAssessmentResults(); - BeginCareerExploration(); - - MyCareersCarousel(); - - /*Top Career Widget - EditTopCareer(); - TopCareerWidget(); - NearbyPlacesOccupationCard(); - FollowingPage(); - AtAGlance(); - Personality(); - Wages(); - Degrees(); - Certificates(); - Institutions(); - TopResources(); - FindOpportunities(); - SubmitAResource(); - NearbyPlaces(); - Tasks(); - Technology(); - Knowledge(); - Skills(); - WorkActivities(); - Ability(); - - MyResourcesCarousel(); - - InstitutionsCarousel(); - - MyJourneys(); - - //<<<>>> - MyJourneysPage(); - - //<<<>>> - MapInteraction(); - - //<<<>>> - MyActivityJourneys(); - SurveyMetrics(); - Logins(); - InstitutionMetrics(); - InstitutionsOfInterest(); - OccupationMetrics(); - OccupationsOfInterest(); - - //<<<>>> - //Profile - AccountProfile(); - //Portfolio - AccountPortfolio(); - //Sign Out*/ - SignOut(); -}); - -function ProfileWidget() { - it(': ProfileWidget, should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () { - var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa')); - var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text')); - var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text')); - var FollowersDivTitle = element(by.css('.default-color2 > h3')); - var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)')); - var FollowersDivGotItButton = element(by.css('.btn-lg')); - var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy')); - var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil')); - var ABoutMeInputArea = element(by.id('inputArea')); - var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy')); - var RoleModelNameOne = element(by.css('.inner-content-padding > .textSize:nth-child(1)')); - var RoleModelNameTwo = element(by.css('.textSize:nth-child(2)')); - var EducationWidgetTitle = element(by.css('#education > .jrnys_lead-body-copy')); - var EducationStartEndDate = element(by.css('.col-xs-4 > .ng-binding:nth-child(1)')); - var EducationSchoolName = element(by.css('.col-xs-8')); - - expect(await ConnectionsLink.getText()).toEqual('CONNECTIONS'); - await FollowersLink.click().then(function() { - browser.sleep(1000); - }); - expect(await FollowersDivTitle.getText()).toEqual('This feature is on its way!'); - expect(await FollowersDivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next."); - await FollowersDivGotItButton.click().then(function() { - browser.sleep(1000); - }); - await ProfileWidgetExpandCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AboutMeWidgetTitle.getText()).toEqual('About Me'); - browser.actions().mouseMove(element(by.css('.ng-scope > #aboutMeFull'))).perform().then(function() { - browser.sleep(1000); - }); - await AboutMePencil.click().then(function() { - browser.sleep(1000); - }); - await ABoutMeInputArea.clear().then(function() { - browser.sleep(2500); - }); - await ABoutMeInputArea.sendKeys('This is my automated bio, there are many like it but this one is mine.'); - await AboutMePencil.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 780);').then(function() { - browser.sleep(2500); - }); - expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model'); - expect(await RoleModelNameOne.getText()).toEqual('Elon Musk'); - expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson'); - expect(await EducationWidgetTitle.getText()).toEqual('Education'); - expect(await EducationStartEndDate.getText()).toEqual('06/2005'); - expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await ProfileWidgetExpandCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyProgressWidget() { - it(': MyProgressWidget, should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { - var MyProgressWidgetTitle = element(by.css('.yourProgressTitle')); - var ProgressLevel = element(by.css('.myProgressLevel')); - var ProgressWidgetExpandIcon = element(by.css('.full-width .ng-scope')); - var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope')); - var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); - var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); - var ActionTwoRetake = element(by.linkText('Retake')); - var ActionRetakeTitlePage = element(by.css('.jrnys_lead-body-copy')); - var CancelButton = element(by.css('.btn-md')); - var ActionThree = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); - var ActionThreeCompleted = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); - var ActionThreeRetake = element(by.css('.col-md-3:nth-child(3) .redo')); - var ActionFour = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); - var ActionFourCompleted = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); - var ActionFourRetake = element(by.linkText('Keep Exploring')); - var KeepExploringTitlePage = element(by.css('.col-sm-12')); - var KeepExploringBackLink = element(by.css('.btn-primary-back-mod')); - var ProgressWidgetCollapseIcon = element(by.css('.full-width > div > .ng-scope')); - var InterestSurveyTitle = element(by.css('.jrnys_lead-body-copy')); - var TextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)')); - var TextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)')); - var TextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)')); - var EspanolButton = element(by.linkText('Español')); - var EnglishButton = element(by.linkText('English')); - var LanguageAlertDiv = element(by.css('p:nth-child(7)')); - var LanguageAlterConfirmButton = element(by.css('.confirm')); - var DislikeEmoji = element(by.id('emoji_0_0')); - var MehEmoji = element(by.id('emoji_0_1')); - var UnsureEmoji = element(by.id('emoji_0_2')); - var LikeItEmoji = element(by.id('emoji_0_3')); - var LoveItEmoji = element(by.id('emoji_0_4')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var CancelSurveyButton = element(by.css('.btn-md')); - var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); - var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS'); - expect(await ProgressLevel.getText()).toEqual('Level: Scout'); - await ProgressWidgetExpandIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionOneCompleted.getText()).toContain('Account Creation'); - expect(await ActionOneCompleted.getText()).toContain('Completed'); - expect(await ActionTwo.getText()).toContain('Interest Survey'); - expect(await ActionTwoCompleted.getText()).toContain('Completed'); - //Interest Survey page - validate English & Spanish text - await ActionTwoRetake.click().then(function() { - browser.sleep(5000); - }); - expect(await InterestSurveyTitle.getText()).toEqual('Interest Survey'); - expect(await TextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); - expect(await TextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); - expect(await TextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); - await LikeItEmoji.click(); - await PreviousQuestion.click(); - await EspanolButton.click().then(function() { - browser.sleep(5000) - }); - expect(await LanguageAlertDiv.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?'); - await LanguageAlterConfirmButton.click(); - expect(await TextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!'); - expect(await TextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.'); - expect(await TextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!'); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click().then(function() { - browser.sleep(5000) - }); - await CancelSurveyButton.click().then(function() { - browser.sleep(5000); - browser.waitForAngular(); - }); - browser.executeScript('window.scrollTo(0, 1405);').then(function() { - browser.sleep(5000); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); EDM-1726 - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(5000); - }); - //Take Interest Survey - await ActionTwoRetake.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - await EnglishButton.click(); - browser.waitForAngular(); - await DislikeEmoji.click(); - await MehEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click();//5 - await LoveItEmoji.click(); - await MehEmoji.click(); - await UnsureEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click();//10 - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//15 - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click();//20 - await DislikeEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click();//25 - await LoveItEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//30 - await DislikeEmoji.click(); - await MehEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click();//35 - await LoveItEmoji.click(); - await MehEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await DislikeEmoji.click();//40 - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//45 - await DislikeEmoji.click(); - await LoveItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click();//50 - await DislikeEmoji.click(); - await MehEmoji.click(); - await DislikeEmoji.click(); - await LikeItEmoji.click(); - await LikeItEmoji.click();//55 - await LoveItEmoji.click(); - await MehEmoji.click(); - await LikeItEmoji.click(); - await LoveItEmoji.click(); - await MehEmoji.click();//60 - browser.sleep(5000); - expect(await PageTitle.getText()).toEqual('Interest Survey Result'); - browser.sleep(5000); - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionThree.getText()).toContain('Skills Assessment'); - expect(await ActionThreeCompleted.getText()).toContain('Completed'); - await ActionThreeRetake.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionRetakeTitlePage.getText()).toEqual('Skills Assessment'); - await CancelButton.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionFour.getText()).toContain('Explore Careers'); - expect(await ActionFourCompleted.getText()).toContain('Completed'); - await ActionFourRetake.click().then(function() { - browser.sleep(5000); - }); - expect(await KeepExploringTitlePage.getText()).toEqual('Career Exploration'); - await KeepExploringBackLink.click().then(function() { - browser.sleep(5000); - }); - await ProgressWidgetCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await FirstOccupationCardTitle.getText()).not.toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await SecondOccupationCardTitle.getText()).not.toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).not.toEqual('Administrative Services Managers'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResultsWidget() { - it(': InterestSurveyResultsWidget, 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 TopResultsReadMoreCloseLink = element(by.css('.close')); - var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); - var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var TopResultTitleTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div > .ng-binding')); - var TopResultDescriptionTwo = element(by.css('.ng-scope:nth-child(4) .surveyResultTruncateText')); - var TopResultsReadMoreLinkTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div:nth-child(2)')); - var TopResultTitleThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div > .ng-binding')); - var TopResultDescriptionThree = element(by.css('.ng-scope:nth-child(5) .surveyResultTruncateText')); - var TopResultsReadMoreLinkThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div:nth-child(2)')); - - var InterestResultsLink = element(by.css('div:nth-child(6) .fa-chart-bar')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var TopThreeTraitsHeader = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var TopThreeTraitsOne = element(by.css('.col-md-4:nth-child(1) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionOne = element(by.css('.col-md-4:nth-child(1) .ng-binding:nth-child(2)')); - var TopThreeTraitsTwo = element(by.css('.col-md-4:nth-child(2) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionTwo = element(by.css('.col-md-4:nth-child(2) .ng-binding:nth-child(2)')); - var TopThreeTraitsThree = element(by.css('.col-md-4:nth-child(3) .jrnys_lead-body-copy')); - var TopThreeTraitsDescriptionThree = element(by.css('.col-md-4:nth-child(3) .ng-binding:nth-child(2)')); - var ViewAllLink = element(by.linkText('View All')); - var TopTraitsOne = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsOneDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsTwo = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsTwoDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var TopTraitsThree = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsThreeDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsFour = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsFourDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var TopTraitsFive = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); - var TopTraitsFiveDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); - var TopTraitsSix = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); - var TopTraitsSixDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); - var XCloseLink = element(by.css('.close')); - var ShareResultsIcon = element(by.css('.fa-share-alt')); - var ShareResultsDivTitle = element(by.css('#interestSurveyShareResult > .jrnys_lead-body-copy')); - var ToTextBox = element(by.css('tr:nth-child(2) .form-control')); - var FromTextBox = element(by.css('tr:nth-child(1) .form-control')); - var CancelButton = element(by.css('.btn-alt-info')); - var SendButton = element(by.css('tr:nth-child(7) .btn-info')); - var DivAlertTitle = element(by.css('h2')); - var DivAlertMessage = element(by.css('p:nth-child(7)')); - var DivOKButton = element(by.css('.confirm')); - var EC = protractor.ExpectedConditions; - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - 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); - expect(await InterestSurveyWidgetTitle.getText()).toEqual('Interest Survey Results'); - expect(await TopResultTitleOne.getText()).toEqual('Enterprising (27)'); - expect(await TopResultDescriptionOne.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); - await TopResultsReadMoreLinkOne.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultsReadMoreTitle.getText()).toEqual('Enterprising (27)'); - expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); - expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); - await TopResultsReadMoreCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultTitleTwo.getText()).toEqual('Investigative (25)'); - expect(await TopResultDescriptionTwo.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); - await TopResultsReadMoreLinkTwo.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultsReadMoreTitle.getText()).toEqual('Investigative (25)'); - expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); - expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); - await TopResultsReadMoreCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultTitleThree.getText()).toEqual('Conventional (23)'); - expect(await TopResultDescriptionThree.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); - await TopResultsReadMoreLinkThree.click().then(function() { - browser.sleep(1000); - }); - expect(await TopResultsReadMoreTitle.getText()).toEqual('Conventional (23)'); - expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); - expect(await TopResultsReadMoreDescriptionB.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); - await TopResultsReadMoreCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest');//loading issue, not consistent EDM-1726 - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit');//loading issue, not consistent EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - browser.executeScript('window.scrollTo(0, 610);').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 XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - await ShareResultsIcon.click(); - expect(await ShareResultsDivTitle.getText()).toEqual('Email Your Results'); - await SendButton.click(); - browser.sleep(1000); - expect(await DivAlertTitle.getText()).toEqual('No Email'); - expect(await DivAlertMessage.getText()).toEqual('Please provide at least one email address to send.'); - await DivOKButton.click(); - browser.waitForAngular(); - await ToTextBox.sendKeys('jhuerta@edmin'); - await SendButton.click(); - browser.sleep(1000); - expect(await DivAlertTitle.getText()).toEqual('Invalid Email'); - expect(await DivAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.'); - await DivOKButton.click(); - browser.sleep(1000); - await CancelButton.click(); - browser.waitForAngular(); - /*await ShareResultsIcon.click();//INCONSISTENT - await FromTextBox.clear(); - await FromTextBox.sendKeys("Juan's Automated Regression"); - await ToTextBox.sendKeys('jhuerta@edmin.com'); - browser.sleep(1000); - await SendButton.click(); - browser.sleep(2500); - await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!'); - await expect(DivAlertMessage.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); - await DivOKButton.click(); - browser.waitForAngular(); - browser.wait(EC.elementToBeClickable(ShareResultsIcon)); - browser.waitForAngular(); - browser.getCurrentUrl();*/ - }); -} - -function InterestSurveyResultsClusters() { - it(': InterestSurveyResultsClusters, should verify the Interest Survey Clusters widget and jump to learn more page', async function () { - var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); - var WidgetDescription = element(by.css('.row > span:nth-child(2)')); - var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); - var SelectButton = element(by.xpath('//territory-card-action-bar/div/button')); - var PathwaysLink = element(by.linkText('Pathways')); - var ClustersLink = element(by.linkText('Clusters')); - var BestMatchIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span')); - var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i')); - var JourneymanIcon = element(by.xpath('/html/body/div[1]/div/div[2]/div[3]/div/survey-result-career/div/div/div[2]/div[1]/div[1]/div/career-territory-card/territory-card/div/div[3]/div[2]/territory-card-more-back/div/div/div/div/div[4]/div[2]')) - var LearnMoreButton = element(by.xpath('//div/div/div/div/div[2]/div[2]')); - var EC = protractor.ExpectedConditions; - var JourneyInfoIcon = element(by.css('.journey-info-circle')); - - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); - await PathwaysLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); - await ClustersLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await SelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - //expect(await BestMatchIcon.getText()).toContain('Best Fit'); EDM-1726 - await AtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - await AtAGlanceBackOfCardXCloseLink.click().then(function() { - browser.sleep(2500); - }); - await OccupationCardEllipsis.click().then(function() { - browser.sleep(2500); - }); - await JourneymanIcon.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.wait(EC.elementToBeClickable(JourneyInfoIcon)); - 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('.journey-info-circle')); - var JourneyInfoDivTitle = element(by.css('.col-lg-12 > .ng-binding')); - var JourneyInfoDivSubText = element(by.css('.col-lg-12:nth-child(3)')); - var JourneyInfoDivXCloseLink = element(by.css('.fa-times')); - var JourneyEntryPoint = element(by.css('.journeyInput')); - var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding')); - var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); - var JourneysSideBarHeaderTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); - var JourneySaveIcon = element(by.css('#journeyitem0 .mapActionBarActive > .fas')); - var JourneySaveDivTitle = element(by.css('h2')); - var JourneySaveDivDescription = element(by.css('p:nth-child(7)')); - var JourneyPersistButtonNo = element(by.css('.cancel')); - var JourneyPersistButtonYes = element(by.css('.confirm')); - var JourneyDetailsIcon = element(by.css('#journeyitem0 .journey-info-circle')); - var ActionTitleBar = element(by.css('.ng-binding:nth-child(2)')); - var Expand8thGradeSubJourney = element(by.css('.ng-scope:nth-child(4) > div > div .side-bar-journey-detail-child-txt:nth-child(5)')); - var ExpandSubjectMathematicsSubJourney = element(by.css('.ng-scope:nth-child(11) .side-bar-journey-detail-child-txt:nth-child(6)')); - var ExpandSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); - var UpOneLevelLink = element(by.css('div:nth-child(1) > .sidebarBackTxt')); - var EditJourneyLink = element(by.linkText('Edit Journey')); - var WayPointOne = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding')); - var WayPointTwo = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding')); - var WayPointThree = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding')); - var WayPointFour = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding')); - var WayPointFive = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding')); - var WayPointSix = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding')); - var SelectWayPointTwoEllipsis = element(by.css('.itemWaypoint:nth-child(2) > .dropdown > .fas')); - var DeleteLink = element(by.linkText('Delete')); - var DeleteDiv = element(by.css('.modal-content > .ng-scope div:nth-child(1)')); - var DeleteDivRemoveThisWaypoint = element(by.css('.btn:nth-child(3)')); - var cancel = element(by.css('.fa-times-circle')); - var ActionBarSaveIconOne = element(by.css('.mapActionBarActive:nth-child(2) > .fas')); - var Select12thGradeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(7) > .dropdown > .fas')); - var InsertAStop = element(by.linkText('Insert a Stop')); - var SixthGradeWayPoint = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding:nth-child(1)')); - var SeventhGradeWayPoint = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding:nth-child(1)')); - var EightGradeWayPoint = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding:nth-child(1)')); - var NinethGradeWayPoint = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding:nth-child(1)')); - var TenthGradeWayPoint = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding:nth-child(1)')); - var EleventhGradeWayPoint = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding:nth-child(1)')); - var TwelvethGradeWayPoint = element(by.css('.itemWaypoint:nth-child(7) > .itemTextContainer > .ng-binding:nth-child(1)')); - var ThirteenthWayPoint = element(by.css('.itemWaypoint:nth-child(8) > .itemTextContainer > .ng-binding:nth-child(1)')); - var FourteenthWayPoint = element(by.css('.itemWaypoint:nth-child(9) > .itemTextContainer > .ng-binding:nth-child(1)')); - var EditSearchText = element(by.css('.sidebarNoResults:nth-child(1)')); - var MapSearchTextBox = element(by.css('#searchBox')); - var MagnifyingGlassIcon = element(by.css('.glyphicon-search')); - var ActionTitleBarTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); - var CertificationResultsTab = element(by.css('#tab-item-6 > .ng-binding'));//#tab-item-2 > .ng-binding')); - var ThirdResultViewOnMapIconIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(6) > .fas'));//#tab-content-2 #searchitem2 div:nth-child(6) > .fas')); - var MapZoomInIcon = element(by.css('.glyphicon-plus')); - var ThirdResultAddIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon'));//#tab-content-2 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon')); - var FifteenthWayPoint = element(by.css('.itemWaypoint:nth-child(10) > .itemTextContainer > .ng-binding')); - var ActionBarSaveIconTwo = element(by.css('.fa-save')); - var MapZoomOutIcon = element(by.css('.glyphicon-minus')); - var SelectCollegeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(9) > .dropdown > .fas')); - var ReOrderLink = element(by.linkText('Re-order')); - var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding:nth-child(1)')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*short cut to create journey - var Results = element(by.css('div:nth-child(6) .fa-chart-bar')); - var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); - var Select = element(by.xpath('//territory-card-action-bar/div/button')); - var Journey = element(by.xpath('//action-journey/span')); - await Results.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await Select.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await Select.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { - browser.sleep(2500); - }); - await Journey.click().then(function() { - browser.sleep(5000); - });//end*/ - - /*short cut to retrieve journey - var MyJourneys = element(by.css('#nbMyJourneys .span-navbar-hover')); - var Journey = element(by.xpath('//div[2]/div/div/span')); - var ViewOnMap = element(by.css('.col-md-4 > .btn-info')); - await MyJourneys.click().then(function() { - browser.sleep(2500); - }); - await Journey.click().then(function() { - browser.sleep(2500); - }); - await ViewOnMap.click().then(function() { - browser.sleep(2500); - });//end - hide upto row 829*/ - - 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 JourneyInfoDivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await JourneyEntryPoint.click(); - browser.waitForAngular(); - await JourneyEntryPoint.sendKeys('6'); - await SelectEntryPointDropDown.click(); - browser.waitForAngular(); - await StartYourJourneyButton.click(); - browser.waitForAngular(); - expect(await JourneysSideBarHeaderTwo.getText()).toEqual('Journey Search Results'); - browser.actions().mouseMove(JourneySaveIcon).perform().then(function() { - browser.sleep(1000); - }); - await JourneySaveIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneySaveDivTitle.getText()).toEqual('Journey saved!'); - expect(await JourneySaveDivDescription.getText()).toEqual('Would you like this journey to persist on the map?'); - await JourneyPersistButtonYes.click().then(function() { - browser.sleep(2500); - }); - await JourneyDetailsIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); - await Expand8thGradeSubJourney.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(element(by.css('.ng-scope:nth-child(5) div:nth-child(2) .side-bar-journey-detail-child-txt:nth-child(5)'))).perform().then(function() { - browser.sleep(2500); - }); - await ExpandSubjectMathematicsSubJourney.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(JourneyDetailsIcon).perform().then(function() { - browser.sleep(2500); - }); - await ExpandSubJourney.click().then(function() { - browser.sleep(5000); - }); - await ExpandSubJourney.click().then(function() { - browser.sleep(5000); - }); - await ExpandSubJourney.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); - expect(await WayPointOne.getText()).toEqual('Geometry'); - expect(await WayPointTwo.getText()).toEqual('Expressions and Equations'); - expect(await WayPointThree.getText()).toEqual('Mathematical Practices'); - expect(await WayPointFour.getText()).toEqual('The Number System'); - expect(await WayPointFive.getText()).toEqual('Statistics and Probability'); - expect(await WayPointSix.getText()).toEqual('Functions'); - await SelectWayPointTwoEllipsis.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(DeleteLink).perform().then(function() { - browser.sleep(1000); - }); - await DeleteLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DeleteDiv.getText()).toEqual('Are you sure you want to remove Expressions and Equations from this journey?'); - await DeleteDivRemoveThisWaypoint.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); - expect(await WayPointOne.getText()).toEqual('Geometry'); - expect(await WayPointTwo.getText()).toEqual('Mathematical Practices'); - expect(await WayPointThree.getText()).toEqual('The Number System'); - expect(await WayPointFour.getText()).toEqual('Statistics and Probability'); - expect(await WayPointFive.getText()).toEqual('Functions'); - await ActionBarSaveIconOne.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await UpOneLevelLink.click().then(function() { - browser.sleep(5000); - }); - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); - expect(await SixthGradeWayPoint.getText()).toEqual('6'); - expect(await SeventhGradeWayPoint.getText()).toEqual('7'); - expect(await EightGradeWayPoint.getText()).toEqual('8'); - expect(await NinethGradeWayPoint.getText()).toEqual('9'); - expect(await TenthGradeWayPoint.getText()).toEqual('10'); - expect(await EleventhGradeWayPoint.getText()).toEqual('11'); - browser.actions().mouseMove(FourteenthWayPoint).perform().then(function() { - browser.sleep(1000); - }); - expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); - expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await FourteenthWayPoint.getText()).toEqual('Administrative Services Managers'); - await Select12thGradeWayPointEllipsis.click().then(function() { - browser.sleep(2500) - }); - browser.actions().mouseMove(InsertAStop).perform().then(function() { - browser.sleep(1000); - }); - await InsertAStop.click().then(function() { - browser.sleep(2500); - }); - expect(await ActionTitleBar.getText()).toEqual('Journey Add Stop'); - expect(await EditSearchText.getText()).toEqual('Use the search bar above to find a stop to add to your journey, or pick one from the map.'); - await MapSearchTextBox.sendKeys('Engineer').then(function() { - browser.sleep(2500); - }); - await MagnifyingGlassIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await ActionTitleBarTwo.getText()).toEqual('Search Results'); - await CertificationResultsTab.click().then(function() { - browser.sleep(5000); - }); - browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() { - browser.sleep(1000); - }); - await ThirdResultViewOnMapIconIcon.click().then(function() { - browser.sleep(5000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await ThirdResultAddIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await SixthGradeWayPoint.getText()).toEqual('6'); - expect(await SeventhGradeWayPoint.getText()).toEqual('7'); - expect(await EightGradeWayPoint.getText()).toEqual('8'); - expect(await NinethGradeWayPoint.getText()).toEqual('9'); - expect(await TenthGradeWayPoint.getText()).toEqual('10'); - expect(await EleventhGradeWayPoint.getText()).toEqual('11'); - browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { - browser.sleep(1000); - }); - expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); - expect(await ThirteenthWayPoint.getText()).toEqual('National Chief Engineer'); - expect(await FourteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); - await ActionBarSaveIconTwo.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000) - }); - /*browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { - browser.sleep(1000); - });*/ - await EditJourneyLink.click().then(function() { - browser.sleep(2500) - }); - await SelectCollegeWayPointEllipsis.click().then(function() { - browser.sleep(2500) - }); - await ReOrderLink.click().then(function() { - browser.sleep(2500) - }); - browser.actions().dragAndDrop(GrabCollegeWayPoint, ThirteenthWayPoint).mouseUp().perform(); - browser.sleep(2500) - expect(await SixthGradeWayPoint.getText()).toEqual('6'); - expect(await SeventhGradeWayPoint.getText()).toEqual('7'); - expect(await EightGradeWayPoint.getText()).toEqual('8'); - expect(await NinethGradeWayPoint.getText()).toEqual('9'); - expect(await TenthGradeWayPoint.getText()).toEqual('10'); - expect(await EleventhGradeWayPoint.getText()).toEqual('11'); - browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { - browser.sleep(1000); - }); - expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); - expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); - expect(await FourteenthWayPoint.getText()).toEqual('National Chief Engineer'); - expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); - await ActionBarSaveIconOne.click().then(function() { - browser.sleep(2500); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SkillsAssessmentWidget() { - it(': SkillsAssessmentWidget, should take Skills Assessment', async function () { - var InterestRetakeLink = element(by.css('div:nth-child(2) > .fa-tasks')); - var SkillsAssessmentPageTitle = element(by.css('.jrnys_lead-body-copy')); - var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)')); - var SkillsSubQuestion = element(by.css('.questionText > .ng-binding:nth-child(2)')); - var BeginnerIcon = element(by.id('emoji_0_0')); - var BasicIcon = element(by.id('emoji_0_1')); - var SkilledIcon = element(by.id('emoji_0_2')); - var AdvancedIcon = element(by.id('emoji_0_3')); - var ExpertIcon = element(by.id('emoji_0_4')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var SkillsAssessmentResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var YourTop3SkillsWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var FitHeader = element(by.css('.active .jrnys_lead-body-copy')); - var BestFitHeaderOne = element(by.css('.item:nth-child(1) .ng-binding:nth-child(2) > .ng-binding')); - var DescriptionOne = element(by.css('.active .ng-binding:nth-child(2)')); - var BestFitHeaderTwo = element(by.css('.item:nth-child(1) .ng-binding:nth-child(3) > .ng-binding')); - var DescriptionTwo = element(by.css('.active .ng-binding:nth-child(3)')); - var BestFitHeaderThree = element(by.css('.item:nth-child(1) .ng-binding:nth-child(4) > .ng-binding')); - var DescriptionThree = element(by.css('.active .ng-binding:nth-child(4)')); - var CarrouselRightScroll = element(by.css('.glyphicon-chevron-right')); - var GreatFitHeaderOne = element(by.css('.item:nth-child(2) .ng-binding:nth-child(2) > .ng-binding')); - var GreatFitHeaderTwo = element(by.css('.item:nth-child(2) .ng-binding:nth-child(3) > .ng-binding')); - var GreatFitHeaderThree = element(by.css('.item:nth-child(2) .ng-binding:nth-child(4) > .ng-binding')); - var GoodFitHeaderOne = element(by.css('.item:nth-child(3) .ng-binding:nth-child(2) > .ng-binding')); - var GoodFitHeaderTwo = element(by.css('.item:nth-child(3) .ng-binding:nth-child(3) > .ng-binding')); - var GoodFitHeaderThree = element(by.css('.item:nth-child(3) .ng-binding:nth-child(4) > .ng-binding')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 610);').then(function() { - browser.sleep(2500); - }); - await InterestRetakeLink.click().then(function() { - browser.sleep(5000); - }); - expect(await SkillsAssessmentPageTitle.getText()).toEqual('Skills Assessment'); - expect(await SkillsQuestion.getText()).toEqual('Administration and Management'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about business planning and leadership?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Biology'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about plant, animal and cell functions?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Body Coordination'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you coordinate moving your arms, legs, and torso together?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Building and Construction'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about construction materials, methods, and tools?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Chemistry'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know chemistry?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Clerical'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about administrative tasks and processes?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Complex Problem Solving'); - expect(await SkillsSubQuestion.getText()).toEqual('How good are you at figuring out the best way to solve a problem?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Computers and Electronics'); - expect(await SkillsSubQuestion.getText()).toEqual('How effective are you at using electronic equipment?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Customer and Personal Service'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to handle customer needs and resolve service problems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); - await AdvancedIcon.click(); - browser.sleep(2500); - await PreviousQuestion.click(); - browser.sleep(2500); - expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Fine Arts'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theory and techniques of an art form such as music, painting, drama, or other?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Foreign Language'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know a foreign language?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Helping People'); - expect(await SkillsSubQuestion.getText()).toEqual('How good are you at understanding how to help people?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Instructing'); - expect(await SkillsSubQuestion.getText()).toEqual('How skilled are you at teaching people how to do something?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Management of Financial Resources'); - expect(await SkillsSubQuestion.getText()).toEqual('What level of financial decision-maker are you?'); - await ExpertIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Mathematics'); - expect(await SkillsSubQuestion.getText()).toEqual('What is your level of math skill?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Mechanical'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you design, use, repair, and maintain machines?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Medicine and Dentistry'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to provide health care?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Memorization'); - expect(await SkillsSubQuestion.getText()).toEqual('How good is your memory?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Monitoring'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you assess your or others’ work?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Negotiation'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you persuade others to see different points of view or compromise?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Operations Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze needs and requirements, then make a plan that meets them?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Personnel and Human Resources'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and procedures for recruiting, hiring, and training employees?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Production and Processing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you oversee manufacturing and distribution processes?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Programming'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you write computer programs?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Psychology'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the methods of research, assessment, and treatment of human behavior?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Public Safety and Security'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the equipment, policies, procedures, and strategies used to promote security operations?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Quality Control Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you develop and use testing processes?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Repairing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you repair machines or systems using the needed tools?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Sales and Marketing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you perform marketing strategies and tactics?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Science'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you use scientific rules and methods to solve problems?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Sociology and Anthropology'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theories of group behavior, societal trends and influences, and human culture?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Speaking'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you convey information when you speak?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Systems Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Teaching and Course Design'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods of instruction?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Telecommunications'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you understand telecom systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Therapy and Counseling'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods used in counseling?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Time Management'); - expect(await SkillsSubQuestion.getText()).toEqual("How well do you manage your and others' time?"); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Troubleshooting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you identify and fix problems in machines or technology?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Writing'); - expect(await SkillsSubQuestion.getText()).toEqual("How well does your writing effectively communicate to an audience's particular need?"); - await BeginnerIcon.click(); - browser.sleep(10000); - expect(await SkillsAssessmentResultPageTitle.getText()).toEqual('Skills Assessment Result'); - expect(await YourTop3SkillsWidgetTitle.getText()).toEqual('Your top 3 skills View All'); - //expect(await FitHeader.getText()).toEqual('BEST FIT'); EDM-1726 - expect(await BestFitHeaderOne.getText()).toEqual('Building and Construction'); - expect(await DescriptionOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await BestFitHeaderTwo.getText()).toEqual('Foreign Language'); - expect(await DescriptionTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await BestFitHeaderThree.getText()).toEqual('Management of Financial Resources'); - expect(await DescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - expect(await FitHeader.getText()).toEqual('GREAT FIT'); - expect(await GreatFitHeaderOne.getText()).toEqual('Administration and Management'); - expect(await DescriptionOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); - expect(await GreatFitHeaderTwo.getText()).toEqual('Chemistry'); - expect(await DescriptionTwo.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); - expect(await GreatFitHeaderThree.getText()).toEqual('Mathematics'); - expect(await DescriptionThree.getText()).toContain('Using math to solve problems.'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - expect(await FitHeader.getText()).toEqual('GOOD FIT'); - expect(await GoodFitHeaderOne.getText()).toEqual('Biology'); - expect(await DescriptionOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); - expect(await GoodFitHeaderTwo.getText()).toEqual('Body Coordination'); - expect(await DescriptionTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); - expect(await GoodFitHeaderThree.getText()).toEqual('Clerical'); - expect(await DescriptionThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - //expect(await FitHeader.getText()).toEqual('BEST FIT'); EDM-1726 - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SkillsAssessmentResults() { - it(': SkillsAssessmentResults, should interact with Skills Assessment widget and validate results', async function () { - var SkillsAssessmentWidgetTitle = element(by.css('.bigScreenHeader')); - var BestFitHeader = element(by.css('div:nth-child(2) > b')); - var SkillsResultsOneTitle = element(by.css('.ng-scope:nth-child(4) > div > div > .ng-binding:nth-child(1)')); - var SkillsResultsOneDescription = element(by.css('.ng-scope:nth-child(4) .skillProfilerResultTruncateText')); - var SkillsResultsTwoTitle = element(by.css('.skillProfilerResultsSpacing:nth-child(5) > div > div > .ng-binding')); - var SkillsResultsTwoDescription = element(by.css('.ng-scope:nth-child(5) .skillProfilerResultTruncateText')); - var SkillsResultsThreeTitle = element(by.css('.ng-scope:nth-child(6) > div > div > .ng-binding')); - var SkillsResultsThreeDescription = element(by.css('.ng-scope:nth-child(6) .skillProfilerResultTruncateText')); - var SkillsResultsLink = element(by.css('div:nth-child(7) .fa-chart-bar')); - var SkillsAssessmentResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var ViewAllLink = element(by.linkText('View All')); - var BestFitDivHeader = element(by.css('.row:nth-child(1) > .col-xs-10 > .jrnys_lead-body-copy')); - var DivHeaderOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding')); - var DivDescriptionOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2)')); - var DivHeaderTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding')); - var DivDescriptionTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3)')); - var DivHeaderThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding')); - var DivDescriptionThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4)')); - var DivHeaderFour = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(5) > .ng-binding')); - var DivDescriptionFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5)')); - var DivHeaderFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6) > .ng-binding')); - var DivDescriptionFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6)')); - var DivHeaderSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7) > .ng-binding')); - var DivDescriptionSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7)')); - var DivHeaderSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8) > .ng-binding')); - var DivDescriptionSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8)')); - var BestFitDivXCloseLink = element(by.css('.close')); - var SkillsResultCardOne = element(by.xpath('//div[2]/span')); - var SkillsResultCardTwo = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardThree = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardFour = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardFive = element(by.xpath('//div[2]/div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var SkillsResultCardSix = element(by.xpath('//div[2]/div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 610);').then(function() { - browser.sleep(5000); - }); - expect(await SkillsAssessmentWidgetTitle.getText()).toEqual('Skills Assessment Results'); - //expect(await BestFitHeader.getText()).toEqual('BEST FIT'); EDM-1726 - expect(await SkillsResultsOneTitle.getText()).toEqual('Building and Construction'); - expect(await SkillsResultsOneDescription.getText()).toEqual('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await SkillsResultsTwoTitle.getText()).toEqual('Foreign Language'); - expect(await SkillsResultsTwoDescription.getText()).toEqual('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await SkillsResultsThreeTitle.getText()).toEqual('Management of Financial Resources'); - expect(await SkillsResultsThreeDescription.getText()).toEqual('Making spending decisions and keeping track of what is spent.'); - await SkillsResultsLink.click().then(function() { - browser.sleep(5000); - }); - expect(await SkillsAssessmentResultPageTitle.getText()).toEqual('Skills Assessment Result'); - await ViewAllLink.click().then(function() { - browser.sleep(1000); - }); - //expect(await BestFitDivHeader.getText()).toEqual('BEST FIT'); EDM-1726 - expect(await DivHeaderOne.getText()).toEqual('Building and Construction'); - expect(await DivDescriptionOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await DivHeaderTwo.getText()).toEqual('Foreign Language'); - expect(await DivDescriptionTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await DivHeaderThree.getText()).toEqual('Management of Financial Resources'); - expect(await DivDescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); - expect(await DivHeaderFour.getText()).toEqual('Operations Analysis'); - expect(await DivDescriptionFour.getText()).toContain('Figuring out what a product or service needs to be able to do.'); - expect(await DivHeaderFive.getText()).toEqual('Personnel and Human Resources'); - expect(await DivDescriptionFive.getText()).toContain('Knowledge of principles and procedures for personnel recruitment, selection, training, compensation and benefits, labor relations and negotiation, and personnel information systems.'); - expect(await DivHeaderSix.getText()).toEqual('Programming'); - expect(await DivDescriptionSix.getText()).toContain('Writing computer programs.'); - expect(await DivHeaderSeven.getText()).toEqual('Quality Control Analysis'); - expect(await DivDescriptionSeven.getText()).toContain('Testing how well a product or service works.'); - await BestFitDivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]'))).perform().then(function() { - browser.sleep(2500); - }); - expect(await SkillsResultCardOne.getText()).toEqual('Business Management & Administration'); - expect(await SkillsResultCardTwo.getText()).toEqual('Architecture & Construction'); - expect(await SkillsResultCardThree.getText()).toEqual('Science, Technology, Engineering & Math'); - //Scroll to bottom of page - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await SkillsResultCardFour.getText()).toEqual('Transportation, Distribution & Logistics'); - expect(await SkillsResultCardFive.getText()).toEqual('Cyber Security'); - expect(await SkillsResultCardSix.getText()).toEqual('Finance'); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function BeginCareerExploration() { - it(': BeginCareerExploration, should interact with Begin Career Exploration widget', async function () { - var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy')); - var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td')); - var ExploreCareersButton = element(by.css('td > .btn-info')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 610);').then(function() { - browser.sleep(5000); - }); - expect(await BeginCareerExplorationTitle.getText()).toEqual('Begin Career Exploration'); - expect(await BeginCareerExplorationDescription.getText()).toEqual('We like your adventurous spirit. Search for a career that aligns with your interests and Learn More about it.'); - await ExploreCareersButton.click().then(function() { - browser.sleep(10000); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyCareersCarousel() { - it(': MyCareersCarousel, should cycle through Recommended Careers carousel and click the View More link', async function () { - var WidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var CarrouselRightScroll = element(by.xpath('//div[3]/table/tbody/tr/td/div/div/a[2]/span')); - var ViewMoreLink = element(by.linkText('View More')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var FollowFirstOccupationCardIcon = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); - var FilterIcon = element(by.css('.widgetControlContainer')); - var FilterTitle = element(by.css('tr:nth-child(1) > .ng-binding')); - var MyResultsHeader = element(by.css('#recommendedCareerFilter tr:nth-child(2) > td')); - var InterestSurveyResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); - var InterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > td > input')); - var SkillsAssessmentResults = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(2)')); - var SkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(4) input')); - var MyFollowing = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(2)')); - var MyFollowingCheckBox = element(by.css('.ng-scope:nth-child(5) input')); - var RequiredJobPrepHeader= element(by.css('#recommendedCareerFilter tr:nth-child(6) > td')); - var MayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(2)')); - var MayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(7) input')); - var HighSchoolDiploma = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(2)')); - var HighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(8) input')); - var VocationalTrainingOrAssociatesDegrees = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); - var VocationalTrainingOrAssociatesDegreesCheckBox = element(by.css('.ng-scope:nth-child(9) input')); - var FourYearBachelorDegrees = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); - var FourYearBachelorDegreesCheckBox = element(by.css('.ng-scope:nth-child(10) input')); - var GraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(11) > .ng-binding')); - var GraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(11) input')); - var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(12) > td')); - var Best = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); - var BestCheckBox = element(by.css('.ng-scope:nth-child(13) input')); - var Great = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); - var GreatCheckBox = element(by.css('.ng-scope:nth-child(14) input')); - var Good = element(by.css('.ng-scope:nth-child(15) > .ng-binding')); - var GoodCheckBox = element(by.css('.ng-scope:nth-child(15) input')); - var ShowResultsByHeader = element(by.css('#recommendedCareerFilter tr:nth-child(16) > td')); - var BrightOutlook = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); - var BrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(17) input')); - var Green = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); - var GreenCheckBox = element(by.css('.ng-scope:nth-child(18) input')); - var Apprenticeships = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); - var ApprenticeshipsCheckBox = element(by.css('.ng-scope:nth-child(19) input')); - var Following = element(by.css('.ng-scope:nth-child(20) > .ng-binding')); - var FollowingCheckBox = element(by.css('.ng-scope:nth-child(20) input')); - var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(21) > td')); - var AtoZ = element(by.css('#recommendedCareerFilter tr:nth-child(22) > td:nth-child(2)')); - var AtoZRadioButton = element(by.css('td > .ng-pristine')); - var ZtoA = element(by.css('#recommendedCareerFilter tr:nth-child(23) > td:nth-child(2)')); - var ZtoARadioButton = element(by.css('tr:nth-child(23) .ng-pristine')); - var FilterButton = element(by.css('td > .btn-info')); - var NoResultsFoundAppliedFilters = element(by.css('.col-md-10')); - var BackLink = element(by.css('.btn-primary-back-mod')); - var NoResultsFound = element(by.css('.table-height:nth-child(1) td')); - var RemoveLeftFilterButton = element(by.css('.statusBtn:nth-child(1)')); - var RemoveShowMyResultsByFilterButton = element(by.css('.statusBtn:nth-child(2)')); - var RemoveRightFilterButton = element(by.css('.statusBtn:nth-child(3)')); - var WidgetFilterIcon = element(by.css('.fa-filter')); - var FilterButtonTwo = element(by.css('tr:nth-child(24) .btn-info')); - var RemoveLastFilterButton = element(by.css('.statusBtn')); - var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); - var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); - var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - - /*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Careers View All'); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await CarrouselRightScroll.click(); - browser.sleep(2500); - await ViewMoreLink.click(); - browser.sleep(5000); - expect(await PageTitle.getText()).toEqual('My Careers'); - await FollowFirstOccupationCardIcon.click().then(function() { - browser.sleep(3000); - }); - await FilterIcon.click(); - browser.sleep(2500); - expect(await FilterTitle.getText()).toEqual('Filter'); - expect(await MyResultsHeader.getText()).toEqual('My Results'); - expect(await InterestSurveyResults.getText()).toContain('Interest Survey Results ('); - expect(await SkillsAssessmentResults.getText()).toContain('Skills Assessment Results ('); - await SkillsAssessmentResultsCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await MyFollowing.getText()).toEqual('My Following (5)'); - expect(await RequiredJobPrepHeader.getText()).toEqual('Required Job Prep'); - expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED ('); - await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await HighSchoolDiploma.getText()).toContain('High School Diploma ('); - expect(await VocationalTrainingOrAssociatesDegrees.getText()).toContain('Vocational Training or Associates Degree ('); - expect(await FourYearBachelorDegrees.getText()).toContain('4 Year Bachelor Degree ('); - expect(await GraduateSchoolOrProfessionalDegree.getText()).toContain('Graduate School or Professional Degree ('); - expect(await FitHeader.getText()).toEqual('Fit'); - expect(await Best.getText()).toContain('Best ('); - await BestCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await Great.getText()).toContain('Great ('); - expect(await Good.getText()).toContain('Good ('); - await GoodCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await ShowResultsByHeader.getText()).toEqual('Show Results By'); - expect(await BrightOutlook.getText()).toContain('Bright Outlook ('); - expect(await Green.getText()).toContain('Green ('); - expect(await Apprenticeships.getText()).toContain('Apprenticeship ('); - expect(await Following.getText()).toEqual('Following (5)'); - await FollowingCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await SortHeader.getText()).toEqual('Sort'); - expect(await AtoZ.getText()).toEqual('A to Z'); - expect(await ZtoA.getText()).toEqual('Z to A'); - await ZtoARadioButton.click().then(function() { - browser.sleep(1000); - }); - await FilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await NoResultsFoundAppliedFilters.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await BackLink.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await RemoveLeftFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); - await RemoveShowMyResultsByFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - await RemoveRightFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); - await FollowFirstOccupationCardIcon.click().then(function() { - browser.sleep(2500); - }); - await WidgetFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await Following.getText()).toEqual('Following (4)'); - await FollowingCheckBox.click().then(function() { - browser.sleep(1000); - }); - await FilterButtonTwo.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - await RemoveLastFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - browser.sleep(2500); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function EditTopCareer() { - it(': EditTopCareer, should edit Top Career', async function () { - var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy')); - var TopCareerEditIcon = element(by.css('.full-width .fa-pencil')); - var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon')); - var TopCareerDivCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info')); - var TopCareerGreenText = element(by.css('.default-color:nth-child(2)')); - var TopCareerGreenSubText = element(by.css('.textPosition')); - var TopCareerDivAddButton = element(by.css('.resetBtn')); - var TopCareerDivTitle = element(by.css('h2')); - var TopCareerDivSubTitle = element(by.css('.row:nth-child(5) > .col-lg-8')); - var TopCareerDivHandle = element(by.css('.col-lg-8 > label')); - var TopCareerDivTextBox = element(by.id('searchBox')); - var TopCareerDivSelection = element(by.xpath('//div[2]/div/ul/li[3]/a/span')); - var TopCareerDivSaveButton = element(by.css('.row:nth-child(12) #photoBtn')); - var TopCareerDescription = element(by.css('.jrEllipsis3Lines')); - - /*browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1880);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Top Career'); - browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - }); - await TopCareerEditIcon.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivXRemoveLink.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivCancelButton.click().then(function() { - browser.sleep(1000); - }); - expect(await TopCareerGreenText.getText()).toEqual('Top Career'); - expect(await TopCareerGreenSubText.getText()).toEqual("Head in the clouds? Share what Career you’re thinking about!"); - await TopCareerDivAddButton.click().then(function() { - browser.sleep(2500); - }); - //expect(await TopCareerDivTitle.getText()).toEqual('Dream big, reach higher!'); Not reading value - expect(await TopCareerDivSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?"); - expect(await TopCareerDivHandle.getText()).toEqual('Job Title'); - await TopCareerDivTextBox.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivTextBox.sendKeys('Computer'); - browser.sleep(2500); - browser.actions().mouseMove(TopCareerDivSelection).perform().then(function() { - browser.sleep(2500); - }); - await TopCareerDivSelection.click().then(function() { - browser.sleep(1000); - }); - await TopCareerDivSaveButton.click().then(function() { - browser.sleep(1000); - }); - expect(await TopCareerDescription.getText()).toEqual('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function TopCareerWidget() { - it(': TopCareerWidget, should click the Top Career link and interact with Learn More page', async function () { - var TopCareerLink = element(by.css('td>.jrnys_support-text')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); - var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding')); - var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)')); - var XCloseLink = element(by.css('.close')); - var VideoIcon = element(by.css('.text-right .far')); - var FollowIcon = element(by.css('.text-right > span .journey-follow')); - var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); - var AtAGlanceHeader = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy')); - var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4')); - var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize')); - var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span')); - var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4')); - var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize')); - var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize')); - var PersonalityWidgetTitle = element(by.css('.widget-round-corners:nth-child(3) .fullHeight .jrnys_lead-body-copy')); - var PersonalityDescriptionOne = element(by.css('.carouselHeight > .ng-scope > tbody > tr > td > .ng-binding')); - var PersonalityDescriptionTwo = element(by.css('.ng-scope > tbody > tr:nth-child(2) div')); - var PersonalityBulletOne = element(by.css('table:nth-child(1) .ng-scope:nth-child(1) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(1) > td:nth-child(2) > .ng-binding')); - var PersonalityBulletThree = element(by.css('table:nth-child(1) .ng-scope:nth-child(2) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(2) > td:nth-child(2) > .ng-binding')); - var PersonalityBulletFive = element(by.css('table:nth-child(1) .ng-scope:nth-child(3) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(3) > td:nth-child(2) > .ng-binding')); - var WagesWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .fullHeight .jrnys_lead-body-copy')); - var WagesInfoIcon = element(by.css('.jrnys_lead-body-copy > .journey-info-circle')); - var WagesSubTextOne = element(by.css('table:nth-child(2) > tbody > tr:nth-child(2) div:nth-child(1)')); - var WagesSubTextTwo = element(by.xpath('//occupation-wages/div/div[2]/table/tbody/tr[2]/td/div[2]')); - var WagesSubTextThree = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0')); - var WagesCloseBackOfCardIcon = element(by.css('.fa-times-rectangle')); - var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text')); - var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text')); - var WagesHighText = element(by.css('g:nth-child(6) > text')); - var WagesMedianText = element(by.css('g:nth-child(7) > text')); - var WagesLowText = element(by.css('g:nth-child(8) > text')); - var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text')); - var Wages50KText = element(by.css('g:nth-child(4) > g:nth-child(2) > text')); - var Wages100KText = element(by.css('g:nth-child(3) > text')); - var Wages150KText = element(by.css('g:nth-child(4) > text')); - var Wages200KText = element(by.css('g:nth-child(5) > text')); - var WagesChangeLocationLink = element(by.css('.dropdown > .widgetRightControlContainer')); - var ZipCodeTextBox = element(by.css('.ng-valid-maxlength:nth-child(1)')); - var ApplyButton = element(by.css('tr:nth-child(1) > td > .btn')); - var DegreesWidgetTitle = element(by.css('#liDegree .jrnys_lead-body-copy')); - var DegreesCardOneHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/div')); - var DegreesCardTwoHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/div')); - var DegreesCardThreeHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/div')); - var DegreesRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var CertificatesWidgetTitle = element(by.css('#liCertificate .jrnys_lead-body-copy')); - var CertificatesCardOneHeader = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/div/div/div/div/div/table/tbody/tr/td/div')); - var CertificatesCardOneSubHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/span')); - var CertificatesCardTwoHeader = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/div/div/div[2]/div/div/table/tbody/tr/td/div')); - var CertificatesCardTwoSubHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/span')); - var CertificatesCardThreeHeader = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/div/div/div[3]/div/div/table/tbody/tr/td/div')); - var CertificatesCardThreeSubHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/span')); - var CertificatesRightScroll = element(by.css('.widget-round-corners:nth-child(6) .right:nth-child(4) > .glyphicon:nth-child(1)')); - var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div')); - var InstitutionsCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsCardOneAtAGlance = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(1) > .territoryCardIcon:nth-child(1) > .fas:nth-child(1)')); - var InstitutionsBackOfCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(2) .territoryCardTitleText')); - var InstitutionsBackOfCard4YearHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)')); - var InstitutionsBackOfCard4YearData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)')); - var InstitutionsBackOfCardUndergradHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)')); - var InstitutionsBackOfCardUndergradData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding')); - var InstitutionsBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText')); - var InstitutionsBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div')); - var InstitutionsBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText')); - var InstitutionsBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div')); - var InstitutionsCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); - var TopResourcesWidgetTitle = element(by.css('#id .jrnys_lead-body-copy')); - var TopResourcesCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .hotTitles')); - var TopResourcesCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .hotTitles')); - var TopResourcesCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .hotTitles')); - var TopResourcesRightScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var TopResourcesLeftScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a/span')); - var TopResourcesCardThreeSaveIcon = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .journey-save:nth-child(1)')); - var FindOpportunitiesWidgetTitle = element(by.css('.widgetTitleContainerFindJob > .noPaddingCol')); - var FindOpportunitiesSubText = element(by.css('.col-sm-12:nth-child(2)')); - var JobsTotalsLink = element(by.css('.col-sm-8 .job-title-display')); - var JobListingsDivHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); - var InternshipsTotalsLink = element(by.xpath('//div[2]/div/div[2]/div/div')); - var InternshipsListingsDivHeader = element(by.css('h6:nth-child(2) > .ng-binding')); - var ApprenticeshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)')); - var FindOpportunitiesChangeLocationLink = element(by.css('.text-right:nth-child(2)')); - var ChangeLocationDivTitle = element(by.css('b')); - var ChangeLocationDivSubTitle = element(by.css('.col-xs-11:nth-child(2)')); - var ChnageLocationEnterZipCodeTextBox = element(by.css('#inputZip')); - var ChangeLocationApplyButton = element(by.css('#indeedQuery')); - var SubmitResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12')); - var SubmitResourceWidgetSubTextOne = element(by.css('.row:nth-child(2) > .jrnys_body-copy:nth-child(1)')); - var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1')); - var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy')); - var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.row > .row > .col-xs-9 > .ng-binding')); - var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)')); - var MyResourceFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span')); - var MyResourceLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)')); - var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1')); - var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12')); - var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text')); - var SubmitAResourceDivTitle = element(by.css('h3')); - var SubmitAResourceDivCancelButton = element(by.css('.btn-blue-RoundTabsinfo')); - var TasksWidgetTitle = element(by.css('#tasksid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var TasksRowOne = element(by.css('#tasksid .ng-scope:nth-child(1) > .no-padding:nth-child(1)')); - var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .no-padding:nth-child(3)')); - var CategoryStatOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(4)')); - var TechnologyWidgetTitle = element(by.css('#technologyid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var KnowledgeWidgetTitle = element(by.css('#knowledgeid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var SkillsWidgetTitle = element(by.css('#skillsid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var WorkActivitiesWidgetTitle = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var AbilityWidgetTitle = element(by.css('#abilitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var NearbyPlacesWidgetTitle = element(by.css('#liNearby .jrnys_lead-body-copy')); - var NearbyPlacesCardOneHeader = element(by.xpath('//div[3]/div/div[2]/span')); - var NearbyPlacesCardTwoHeader = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var NearbyPlacesCardThreeHeader = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); - var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var NearbyPlacesLeftScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a/span')); - //var NearbyPlacesRightScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-right')); - //var NearbyPlacesLeftScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-left')); - - browser.executeScript('window.scrollTo(0, 1880);').then(function() { - browser.sleep(2500); - });//remove*/ - - await TopCareerLink.click().then(function() { - browser.sleep(10000); - }); - /*Description remove - expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists'); - await DescriptionDetail.click().then(function() { - browser.sleep(1000); - }); - expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - expect(await DescriptionSubText.getText()).toContain('Other Jobs:'); - expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Control System Computer Scientist; Scientific Programmer Analyst'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(VideoIcon).perform().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(FollowIcon).perform().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(JourneymanIcon).perform().then(function() { - browser.sleep(1000); - }); - //At A Glance - expect(await AtAGlanceHeader.getText()).toEqual('At A Glance'); - expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 59%"); - expect(await AtAGlanceStatOne.getText()).toContain("Associate's degree - 0%"); - expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 0%'); - expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520'); - expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceSubHeaderThree.getText()).toEqual(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain('19.2%'); - expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceStatFour.getText()).toEqual('2,500'); - expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceStatFive.getText()).toEqual('27,900'); - browser.executeScript('window.scrollTo(0, 405);').then(function() { - browser.sleep(2500); - }); - /*browser.actions().mouseMove(DegreesWidgetTitle).perform().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(5) #id > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - /*Personality remove - expect(await PersonalityWidgetTitle.getText()).toEqual('Personality'); - expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.'); - expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:'); - expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking'); - expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation'); - expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail'); - expect(await PersonalityBulletFour.getText()).toEqual('Independence'); - expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort'); - expect(await PersonalityBulletSix.getText()).toEqual('Initiative'); - //Wages - expect(await WagesWidgetTitle.getText()).toContain('Wages'); - await WagesInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await WagesSubTextOne.getText()).toEqual('Data provided by the Bureau of Labor Statistics.'); - expect(await WagesSubTextTwo.getText()).toEqual('For more information please visit:'); - expect(await WagesSubTextThree.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'); - await WagesCloseBackOfCardIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await WagesWidgetTitle.getText()).toContain('Change Location'); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('San Diego-Carlsbad, CA'); - expect(await WagesHighText.getText()).toEqual('High'); - expect(await WagesMedianText.getText()).toEqual('Median'); - expect(await WagesLowText.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await Wages50KText.getText()).toEqual('$50,000'); - expect(await Wages100KText.getText()).toEqual('$100,000'); - expect(await Wages150KText.getText()).toEqual('$150,000'); - expect(await Wages200KText.getText()).toEqual('$200,000'); - await WagesChangeLocationLink.click().then(function() { - browser.sleep(1000); - }); - await ZipCodeTextBox.click(); - await ZipCodeTextBox.clear(); - await ZipCodeTextBox.sendKeys('85013').then(function() { - browser.sleep(1000); - }); - await ApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ'); - /*browser.actions().mouseMove(CertificatesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 882);').then(function() { remove - browser.sleep(2495); - }); - //Degrees - expect(await DegreesWidgetTitle.getText()).toEqual('Degrees'); - expect(await DegreesCardOneHeader.getText()).toEqual('Computer Applications Minor—College-Wide'); - expect(await DegreesCardTwoHeader.getText()).toEqual('Computer Science B.S.'); - expect(await DegreesCardThreeHeader.getText()).toEqual('Computer Science M.S.'); - await DegreesRightScroll.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(InstitutionsWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 1360);').then(function() { remove - browser.sleep(2500); - }); - //Certificates - expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); - expect(await CertificatesCardOneHeader.getText()).toEqual('Certified Associate LabVIEW Developer'); - expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); - expect(await CertificatesCardTwoHeader.getText()).toEqual('Certified LabVIEW Architect'); - expect(await CertificatesCardTwoSubHeader.getText()).toEqual('Business Analysis'); - expect(await CertificatesCardThreeHeader.getText()).toEqual('Certified Biometrics Professional'); - expect(await CertificatesCardThreeSubHeader.getText()).toEqual('Business Financial Mgmt & Acctg'); - await CertificatesRightScroll.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(TopResourcesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 1995);').then(function() { remove - browser.sleep(2500); - }); - //Institutions - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); - expect(await InstitutionsCardOneHeader.getText()).toEqual('University of San Diego'); - await InstitutionsCardOneAtAGlance.click().then(function() { - browser.sleep(2500) - }); - expect(await InstitutionsBackOfCardOneHeader.getText()).toEqual('University of San Diego'); - expect(await InstitutionsBackOfCard4YearHeader.getText()).toEqual('4 Year'); - expect(await InstitutionsBackOfCard4YearData.getText()).toEqual('Private nonprofit'); - expect(await InstitutionsBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students'); - expect(await InstitutionsBackOfCardUndergradData.getText()).toEqual('5,677'); - expect(await InstitutionsBackOfCardLocationHeader.getText()).toContain('Location'); - expect(await InstitutionsBackOfCardLocationData.getText()).toEqual('City'); - expect(await InstitutionsBackOfCardClassroomHeader.getText()).toContain('Classrooms'); - expect(await InstitutionsBackOfCardClassroomData.getText()).toEqual('Medium'); - expect(await InstitutionsCardTwoHeader.getText()).toEqual('National University'); - expect(await InstitutionsCardThreeHeader.getText()).toEqual('Point Loma Nazarene University'); - await InstitutionsRightScroll.click(); - browser.sleep(2500); - /*browser.actions().mouseMove(FindOpportunitiesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 2470);').then(function() { remove - browser.sleep(2500); - }); - //Top Resources - expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All'); - expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - browser.sleep(2500); - await TopResourcesRightScroll.click().then(function() { - browser.sleep(2500); - }); - await TopResourcesLeftScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResourcesCardThreeSaveIcon.click().then(function() { - browser.sleep(2500); - }); - /*browser.actions().mouseMove(TasksWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 2947);').then(function() { remove - browser.sleep(2500); - }); - //Find Opportunities - expect(await FindOpportunitiesWidgetTitle.getText()).toEqual('Find Opportunities'); - expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 50 mile radius of 92123.'); - expect(await JobsTotalsLink.getText()).toContain('Jobs'); - //expect(await JobsTotalsLink.getText()).toContain('85');//stored value needed - expect(await InternshipsTotalsLink.getText()).toContain('Internships'); - //expect(await InternshipsTotalsLink.getText()).toContain('0');//stored value needed - expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');//value sometimes is disabled - //expect(await ApprenticeshipsTotalsLink.getText()).toContain('0');//stored value needed - await FindOpportunitiesChangeLocationLink.click().then(function() { - browser.sleep(1000); - }); - expect(await ChangeLocationDivTitle.getText()).toEqual('Change Location'); - expect(await ChangeLocationDivSubTitle.getText()).toEqual("Let's search the location you're most interested in."); - await ChnageLocationEnterZipCodeTextBox.sendKeys('85013'); - browser.sleep(1000); - element(by.cssContainingText('option', '1000')).click().then(function() { - browser.sleep(1000); - }); - await ChangeLocationApplyButton.click().then(function() { - browser.sleep(1000); - }); - expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 1000 mile radius of you.'); - await JobsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await JobListingsDivHeader.getText()).toContain('Job Listings:');//stored value needed - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - /*await InternshipsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InternshipsListingsDivHeader.getText()).toContain('Internships: ');//stored value needed - await XCloseLink.click().then(function() { - browser.sleep(1000); - });*/ - /*expect(await JobsTotalsLink.getText()).toEqual('Jobs'); remove - //expect(await JobsTotalsLink.getText()).toContain('68');//stored value needed - expect(await InternshipsTotalsLink.getText()).toEqual('Internships'); - //expect(await InternshipsTotalsLink.getText()).toContain('0');//stored value needed - expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships'); - //expect(await Totals.getText()).toContain('3');//stored value needed - //Submit A Resource - expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource'); - expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources"); - expect(await TotalInJourneys.getText()).toContain('Total in Journeys'); - expect(await TotalInJourneys.getText()).toContain('1'); - await MySubmittedResourcesLink.click().then(function() { - browser.sleep(1000); - }); - expect(await MySubmittedResourcesWidgetTitle.getText()).toContain('My Submitted Resources'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - await EllipsisResource.click().then(function() { - browser.sleep(1000); - }); - expect(await MyResourceFollowIcon.getText()).toEqual('Follow'); - expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await ForThisMapPoint.getText()).toContain('For this map point'); - expect(await ForThisMapPoint.getText()).toContain('0'); - expect(await SubmitResourceWidgetSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); - await SubmitAResourceWidgetButton.click().then(function() { - browser.sleep(1000); - }); - expect(await SubmitAResourceDivTitle.getText()).toEqual('Submit a Resource'); - await SubmitAResourceDivCancelButton.click().then(function() { - browser.sleep(1000); - }); - /*browser.actions().mouseMove(KnowledgeWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 3225);').then(function() { - browser.sleep(25000); - }); - //Tasks - expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All'); - expect(await TasksRowOne.getText()).toEqual('Analyze problems to develop solutions in...'); - expect(await ImportanceStatOne.getText()).toEqual('82%'); - expect(await CategoryStatOne.getText()).toEqual('Core'); - //Technology - expect(await TechnologyWidgetTitle.getText()).toEqual('Technology View All'); - browser.sleep(1000); - /*browser.actions().mouseMove(WorkActivitiesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 3600);').then(function() { - browser.sleep(25000); - }); - //Knowledge - expect(await KnowledgeWidgetTitle.getText()).toEqual('Knowledge View All'); - //Skills - expect(await SkillsWidgetTitle.getText()).toEqual('Skills View All'); - browser.sleep(1000); - /*browser.actions().mouseMove(NearbyPlacesWidgetTitle).perform().then(function() { - browser.sleep(1000); - });*/ - /*browser.executeScript('window.scrollTo(0, 3743);').then(function() { remove - browser.sleep(2500); - }); - //Work Activities - expect(await WorkActivitiesWidgetTitle.getText()).toEqual('Work Activities View All'); - //Ability - expect(await AbilityWidgetTitle.getText()).toEqual('Ability View All'); - //Nearby Places - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(5000); - }); - expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places'); - expect(await NearbyPlacesCardOneHeader.getText()).toEqual('Computer and Information Systems Managers'); - expect(await NearbyPlacesCardTwoHeader.getText()).toEqual('Computer Network Architects'); - expect(await NearbyPlacesCardThreeHeader.getText()).toEqual('Computer Network Support Specialists'); - await NearbyPlacesRightScroll.click(); - browser.sleep(2500); - await NearbyPlacesLeftScroll.click(); - browser.sleep(2500);*/ - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function NearbyPlacesOccupationCard() { - it(': NearbyPlacesOccupationCard, should interact with Occupation cards on Nearby Places widget of Learn More page, then navigate to Following page an unfollow occupation', async function () { - var OccupationCardTitle = element(by.xpath('//territory-card/div/div/div[3]/div/div[2]/span')); - var OccupatonCardFollow = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); - var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardTitle = element(by.xpath('//territory-card/div/div[2]/div/div')); - var AtAGlanceBackOfCardDescription = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div')); - var AtAGlanceTypicalDegreeTitle = element(by.xpath('//div/div/div[2]/div/div/table/tbody/tr/td[2]/div')); - var AtAGlanceCollege = element(by.xpath('//tr[2]/td[2]/div')); - var AtAGlanceMasters = element(by.xpath('//tr[3]/td[2]/div')); - var AtAGlanceAssociates = element(by.xpath('//tr[4]/td[2]/div')); - var AtAGlanceSalary = element(by.xpath('//tr[16]/td[2]/div')); - var AtAGlanceSalaryStat = element(by.xpath('//tr[17]/td[2]/div')); - var AtAGlanceGrowth = element(by.xpath('//tr[19]/td[2]/div')); - var AtAGlanceGrowthStat = element(by.xpath('//tr[20]/td[2]/div')); - var AtAGlanceGrowthAverage = element(by.xpath('//td[2]/div[2]')); - var AtAGlanceJobOpenings = element(by.xpath('//tr[22]/td[2]/div')); - var AtAGlanceJobOpeningsStat = element(by.xpath('//tr[23]/td[2]/div')); - var AtAGlanceEmployed = element(by.xpath('//tr[25]/td[2]/div')); - var AtAGlanceEmployedStat = element(by.xpath('//tr[26]/td[2]/div')); - var AtAGlanceXCloseLink = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .glyphicon:nth-child(1)')); - var OccupationCardEllipsis = element(by.xpath('//territory-card/div/div/div/div[2]/div/i')); - var BackOfCardTitle = element(by.xpath('//territory-card/div/div[3]/div/div')); - var BackOfCardUnFollow = element(by.xpath('//territory-card-more-back/div/div/div/div/div/div[2]')); - var BackOfCardLearnMore = element(by.xpath('//territory-card-more-back/div/div/div/div/div[2]/div[2]')); - var BackOfCardMap = element(by.xpath('//territory-card-more-back/div/div/div/div/div[3]/div[2]')); - var BackOfCardJourney = element(by.xpath('//territory-card-more-back/div/div/div/div/div[4]/div[2]')); - var BackOfCardVideo = element(by.xpath('//territory-card-more-back/div/div/div/div/div[5]/div[2]')); - var BackOfCardAtAGlanceIcon = element(by.xpath('//div/div/div/div/div[6]/div[2]')); - var OccupationCardLearnMoreIcon = element(by.xpath('//action-learn-more/i')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - //var BackLink = element(by.css('.btn-primary-back-mod')); Not taking you back to LM page, takes you back to dashboard - var OccupationCardMapIcon = element(by.xpath('//action-map/i')); - var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)')); - var ObjectTitle = element(by.css('.side-bar-child-text:nth-child(2)')); - var ItemDescription = element(by.css('.sidebarDescription')); - var OccupationCardJourneymanIcon = element(by.xpath('//action-journey/span')); - var JourneySideBarHeader = element(by.css('.side-bar-child-text > span')); - var OccupationCardVideoIcon = element(by.xpath('//div[4]/career-one-stop-video/i')); - var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding')); - var XCloseVideoDivLink = element(by.css('.close:nth-child(2)')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - expect(await OccupationCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - await OccupatonCardFollow.click().then(function() { - browser.sleep(2500); - }); - await AtAGlanceHeaderRowIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await AtAGlanceTypicalDegreeTitle.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceCollege.getText()).toEqual('College (4 Year) - 48%'); - expect(await AtAGlanceMasters.getText()).toEqual("Some college - 26%"); - expect(await AtAGlanceAssociates.getText()).toEqual("Master's degree - 14%"); - expect(await AtAGlanceSalary.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceSalaryStat.getText()).toEqual('$139,220'); - expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceGrowthStat.getText()).toEqual('12%'); - expect(await AtAGlanceGrowthAverage.getText()).toEqual('ABOVE AVERAGE'); - expect(await AtAGlanceJobOpenings.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceJobOpeningsStat.getText()).toEqual('32,500'); - expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceEmployedStat.getText()).toEqual('367,600'); - await AtAGlanceXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await OccupationCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - await OccupationCardEllipsis.click().then(function() { - browser.sleep(1000); - }); - expect(await BackOfCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await BackOfCardUnFollow.getText()).toEqual('Follow'); - expect(await BackOfCardLearnMore.getText()).toEqual('Learn More'); - expect(await BackOfCardMap.getText()).toEqual('Map'); - expect(await BackOfCardJourney.getText()).toEqual('Journey'); - expect(await BackOfCardVideo.getText()).toEqual('Video'); - await BackOfCardAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await AtAGlanceTypicalDegreeTitle.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceCollege.getText()).toEqual('College (4 Year) - 48%'); - expect(await AtAGlanceMasters.getText()).toEqual("Some college - 26%"); - expect(await AtAGlanceAssociates.getText()).toEqual("Master's degree - 14%"); - expect(await AtAGlanceSalary.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceSalaryStat.getText()).toEqual('$139,220'); - expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceGrowthStat.getText()).toEqual('12%'); - expect(await AtAGlanceGrowthAverage.getText()).toEqual('ABOVE AVERAGE'); - expect(await AtAGlanceJobOpenings.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceJobOpeningsStat.getText()).toEqual('32,500'); - expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceEmployedStat.getText()).toEqual('367,600'); - await AtAGlanceXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await OccupationCardTitle.getText()).toEqual('Computer and Information Systems Managers'); - await OccupationCardLearnMoreIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Systems Managers'); - browser.navigate().back().then(function() { - browser.sleep(10000); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - await OccupationCardMapIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await ObjectPath.getText()).toEqual('IT > Network Systems >'); - expect(await ObjectTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await ItemDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - browser.navigate().back().then(function() { - browser.sleep(10000); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - await OccupationCardJourneymanIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey'); - browser.navigate().back().then(function() { - browser.sleep(10000); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - await OccupationCardVideoIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await VideoTitle.getText()).toEqual('Computer and Information Systems Managers'); - await XCloseVideoDivLink.click().then(function() { - browser.sleep(1000); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function FollowingPage() { - it(': FollowingPage, should navigate to Following page and delete 3rd card', async function () { - var FollowingLink = element(by.css('.col-md-3:nth-child(4) .jrnys_stand-out-text')); - var ConnectionsTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(1)')); - var DivTitle = element(by.css('.default-color2 > h3')); - var DivSubText = element(by.css('.col-lg-12:nth-child(1)')); - var DivGotItButton = element(by.css('.row > .btn')); - var FollowersTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(2)')); - var DivCloseLlink = element(by.css('.glyphicon-remove')); - var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected')); - var SoftwareDevelopersApplicationsTitle = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.title.ng-binding')); - var SoftwareDevelopersApplicationsPathway = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.subtitle.ng-binding')); - var SoftwareDevelopersApplicationsUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(3) > td > div:nth-child(1) > div > span:nth-child(2) > social-follow-icon > span > i')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - await FollowingLink.click().then(function() { - browser.sleep(5000); - }); - await ConnectionsTab.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('This feature is on its way!'); - expect(await DivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next."); - await DivGotItButton.click().then(function() { - browser.sleep(1000); - }); - await FollowersTab.click().then(function() { - browser.sleep(1000); - }); - await DivCloseLlink.click().then(function() { - browser.sleep(1000); - }); - expect(await FollowingTab.getText()).toEqual('Following'); - expect(await SoftwareDevelopersApplicationsTitle.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SoftwareDevelopersApplicationsPathway.getText()).toEqual('Information Technology'); - await SoftwareDevelopersApplicationsUnfollowIcon.click().then(function() { - browser.sleep(2500); - }); - await DashboardHeaderLink.click().then(function() { - browser.sleep(10000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function AtAGlance() { - it(': AtAGlance, should click the At A Glance link and validate data', async function () { - var AtAGlanceLink = element(by.css('tr:nth-child(3) > td:nth-child(1) > .text-color-7a')); - var AtAGlanceWidgetTitle = element(by.css('.widgetHeaderContainer > .jrnys_lead-body-copy')); - var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4')); - var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize')); - var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span')); - var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4')); - var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize')); - var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize')); - var XCloseLink = element(by.css('.close')); - - //browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { - browser.executeScript('window.scrollTo(0, 1883);').then(function() { - browser.sleep(2500); - }); - await AtAGlanceLink.click().then(function() { - browser.sleep(2500); - }); - expect(await AtAGlanceWidgetTitle.getText()).toEqual('At A Glance'); - expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 59%"); - expect(await AtAGlanceStatOne.getText()).toContain("Associate's degree - 0%"); - expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 0%'); - expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520'); - expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceSubHeaderThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain('19.2%'); - expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceStatFour.getText()).toEqual('2,500'); - expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceStatFive.getText()).toEqual('27,900'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Personality() { - it(': Personality, should click the Personality link and validate data', async function() { - var PersonatlityLink = element(by.css('tr:nth-child(4) > td:nth-child(1) > .text-color-7a')); - var PersonatlityWidgetTitle = element(by.css('.ng-isolate-scope:nth-child(3) > .fullHeight .jrnys_lead-body-copy')); - var PersonatlityDescriptionOne = element(by.css('.carouselHeight > .ng-scope td > .ng-binding')); - var PersonatlityDescriptionTwo = element(by.css('.carouselHeight > .ng-scope tr:nth-child(2) div')); - var PersonatlityBulletOne = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(3) .ng-binding')); - var PersonatlityBulletTwo = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(4) .ng-binding')); - var PersonatlityBulletThree = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(5) .ng-binding')); - var PersonatlityBulletFour = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(6) .ng-binding')); - var PersonatlityBulletFive = element(by.css('.ng-scope:nth-child(7) > td > div > .ng-binding')); - var PersonatlityBulletSix = element(by.css('.ng-scope:nth-child(8) > td > div > .ng-binding')); - var XCloseLink = element(by.css('.close')); - - await PersonatlityLink.click().then(function() { - browser.sleep(2500); - }); - expect(await PersonatlityWidgetTitle.getText()).toEqual('Personality'); - expect(await PersonatlityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.'); - expect(await PersonatlityDescriptionTwo.getText()).toEqual('They do well at jobs that need:'); - expect(await PersonatlityBulletOne.getText()).toEqual('Analytical Thinking'); - expect(await PersonatlityBulletTwo.getText()).toEqual('Cooperation'); - expect(await PersonatlityBulletThree.getText()).toEqual('Attention to Detail'); - expect(await PersonatlityBulletFour.getText()).toEqual('Independence'); - expect(await PersonatlityBulletFive.getText()).toEqual('Achievement/Effort'); - expect(await PersonatlityBulletSix.getText()).toEqual('Initiative'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Wages() { - it(': Wages, should click the Wages link and change State drop down to Nevada', async function () { - var WagesLink = element(by.css('tr:nth-child(5) > td:nth-child(1) > .text-color-7a')); - var CurrentDataNational = element(by.css('g:nth-child(2) > g > text')); - var CurrentDataLocal = element(by.css('g:nth-child(3) > g > text')); - var XCloseLink = element(by.css('.close')); - var ChangeLocationLink = element(by.css('.dropdown > .widgetRightControlContainer')); - var ApplyButton = element(by.css('tr:nth-child(2) .btn-xs')); - - await WagesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNational.getText()).toEqual('National'); - expect(await CurrentDataLocal.getText()).toContain('San Diego-Carlsbad, CA'); - await ChangeLocationLink.click().then(function() { - browser.sleep(1000); - }); - element(by.cssContainingText('option', 'Nevada')).click().then(function() { - browser.sleep(1000); - }); - await ApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNational.getText()).toEqual('National'); - expect(await CurrentDataLocal.getText()).toEqual('Nevada'); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Degrees() { - it(': Degrees, should click the Degrees link, expand/collapse first career card by title and validate data', async function () { - var DegreesLink = element(by.css('tr:nth-child(3) > td:nth-child(2) > .text-color-7a')); - var DegreesWidgetTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var DegreeTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .textSize:nth-child(1)')); - var DegreesEllipsis = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .col-sm-1')); - var DegreeDetails = element(by.css('#dropDownSocialOptionsComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 .row:nth-child(4) > .col-xs-9')); - var InstitutionTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(2) .item-title')); - var InstitutionData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(2) .item-body > .ng-binding')); - var CourseTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(3) .item-title')); - var CourseData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(3) .item-body > .ng-binding')); - var OccupationTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(4) .item-title')); - var OccupationData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(4) .item-body > .ng-binding')); - var SalaryTitle = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(5) .item-title')); - var SalaryData = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .row:nth-child(5) .item-body > .ng-binding')); - var DegreeXCloseIcon = element(by.css('#dropDownDataComputerApplicationsMinorCollegeWideDegrees63f93734c4e948cd8ff4041e10760da5 > .col-xs-1')); - var CarrouselRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var XCloseLink = element(by.css('.close')); - - await DegreesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DegreesWidgetTitle.getText()).toEqual('Degrees'); - expect(await DegreeTitle.getText()).toEqual('Computer Applications Minor—College-Wide'); - await DegreesEllipsis.click().then(function() { - browser.sleep(1000); - }); - await DegreeDetails.click().then(function() { - browser.sleep(1000); - }); - expect(await InstitutionTitle.getText()).toEqual('Institutions'); - expect(await InstitutionData.getText()).toEqual('2,419'); - expect(await CourseTitle.getText()).toEqual('Courses'); - expect(await CourseData.getText()).toEqual('0'); - expect(await OccupationTitle.getText()).toEqual('Occupations'); - expect(await OccupationData.getText()).toEqual('75'); - expect(await SalaryTitle.getText()).toEqual('Average Salary'); - expect(await SalaryData.getText()).toEqual('$98,931'); - await DegreeXCloseIcon.click().then(function() { - browser.sleep(1000); - }); - await DegreesEllipsis.click().then(function() { - browser.sleep(1000); - }); - await CarrouselRightScroll.click().then(function() { - browser.sleep(1000); - }); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Certificates() { - it(': Certificates, should click the Certificate link, expand/collapse first card by ellipsis validate data and scroll to second set', async function () { - var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a')); - var CertificatesWidgetTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var CertificateTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .textSize:nth-child(1)')); - var CertificateSubTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .text-color-4a')); - var CertificatesEllipsis = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .col-sm-1')); - var CertificateDetailsIcon = element(by.css('#dropDownSocialOptionsCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 .row:nth-child(4) > .col-xs-9')); - var EducationTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(2) .item-title')); - var EducationData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(2) .item-body > .ng-binding')); - var WorkExperienceTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(3) .item-title')); - var WorkExperienceData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(3) .item-body > .ng-binding')); - var ExamTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(4) .item-title')); - var ExamData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(4) .item-body > .ng-binding')); - var RenewalTitle = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(5) .item-title')); - var RenewalData = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .row:nth-child(5) .item-body > .ng-binding')); - var CertificateXCloseIcon = element(by.css('#dropDownDataCertifiedAssociateLabVIEWDeveloperCertificates06943e36d76a4fcc9e67780aff668435 > .col-xs-1')) - var CarrouselRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var XCloseLink = element(by.css('.close')); - - await CertificatesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); - expect(await CertificateTitle.getText()).toEqual('Certified Associate LabVIEW Developer'); - expect(await CertificateSubTitle.getText()).toEqual('Business Analysis'); - await CertificatesEllipsis.click(); - browser.sleep(1000); - await CertificateDetailsIcon.click(); - browser.sleep(1000); - expect(await EducationTitle.getText()).toEqual('Education and Training Required'); - expect(await EducationData.getText()).toEqual('No'); - expect(await WorkExperienceTitle.getText()).toEqual('Work Experience Required'); - expect(await WorkExperienceData.getText()).toEqual('No'); - expect(await ExamTitle.getText()).toEqual('Oral or Written Exam Required'); - expect(await ExamData.getText()).toEqual('Yes'); - expect(await RenewalTitle.getText()).toEqual('Renewal Required'); - expect(await RenewalData.getText()).toEqual('No'); - await CertificateXCloseIcon.click(); - browser.sleep(1000); - await CertificatesEllipsis.click(); - browser.sleep(1000); - await CarrouselRightScroll.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Institutions() { - it(': Institutions, should click the Institutions link, scroll to second set, expand by ellipsis, and validate data', async function () { - var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a')); - var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div')); - var CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); - var SchoolNameTitle = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .textSize')); - var InstitutionsEllipsis = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .col-sm-1')); - var InstitutionsFollowIcon = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-follow')); - var InstitutionsDetailsIcon = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-info')); - var UndergraduateTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(2) .item-title')); - var UndergraduateData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(2) .ng-binding > span')); - var NotRated = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(2) .item-body div')); - var TuitionTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(3) .item-title')); - var TuitionData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(3) .ng-binding > span')); - var TuitionAverage = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(3) .item-body div')); - var GraduateTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(4) .item-title')); - var GraduateData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(4) .ng-binding > span')); - var GraduateAverage = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(4) .item-body div')); - var EarningsTitle = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(5) .item-title')); - var EarningsData = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(5) .ng-binding > span')); - var EarningsAverage = element(by.css('#dropDownDataInstitutions_1_1 > .row:nth-child(5) .item-body div')); - var InstitutionsDetailsXCloseLink = element(by.css('#dropDownDataInstitutions_1_1 > .col-xs-1')); - var InstitutionsUnFollowIcon = element(by.css('.col-xs-2 .journey-follow-selected')); - var CarrouselLeftScroll = element(by.css('#recommendedColleges .left > .glyphicon')); - var XCloseLink = element(by.css('.close')); - - await InstitutionsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); - await CarrouselRightScroll.click(); - browser.sleep(1000); - //Bug - Incorrect institution being loaded at times(Golden Gate University-San Francisco) - await SchoolNameTitle.getText().then(async function(actualText) { - if(actualText.indexOf('San Diego State University') !== -1) { - expect(await SchoolNameTitle.getText()).toEqual('San Diego State University'); - await InstitutionsEllipsis.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsFollowIcon.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsDetailsIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students'); - expect(await UndergraduateData.getText()).toEqual('29,781'); - expect(await NotRated.getText()).toEqual('Not Rated'); - expect(await TuitionTitle.getText()).toEqual('Tuition'); - expect(await TuitionData.getText()).toEqual('$14,030'); - expect(await TuitionAverage.getText()).toEqual('Lower Than Average'); - expect(await GraduateTitle.getText()).toEqual('Graduation Rate'); - expect(await GraduateData.getText()).toEqual('74%'); - expect(await GraduateAverage.getText()).toEqual('Above Average'); - expect(await EarningsTitle.getText()).toEqual('Earnings After School'); - expect(await EarningsData.getText()).toEqual('$51,000'); - expect(await EarningsAverage.getText()).toEqual('Above Average'); - } else { - expect(await SchoolNameTitle.getText()).toEqual('Golden Gate University-San Francisco'); - await InstitutionsEllipsis.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsFollowIcon.click().then(function() { - browser.sleep(1000); - }); - await InstitutionsDetailsIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students'); - expect(await UndergraduateData.getText()).toEqual('416'); - expect(await NotRated.getText()).toEqual('Not Rated'); - expect(await TuitionTitle.getText()).toEqual('Tuition'); - expect(await GraduateTitle.getText()).toEqual('Graduation Rate'); - expect(await EarningsTitle.getText()).toEqual('Earnings After School'); - expect(await EarningsData.getText()).toEqual('$71,100'); - expect(await EarningsAverage.getText()).toEqual('Above Average'); - } - }); - await InstitutionsDetailsXCloseLink.click(); - browser.sleep(1000); - await InstitutionsUnFollowIcon.click(); - browser.sleep(1000); - await InstitutionsEllipsis.click(); - browser.sleep(1000); - await CarrouselLeftScroll.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function TopResources() { - it(': TopResources, should click Top Resources link and expand fourth then expand first card and follow', async function () { - var TopResourcesLink = element(by.css('tr:nth-child(3) > td:nth-child(3) > .text-color-7a')); - var TopResourcesDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var FourthResourceCardTitle = element(by.css('.panel:nth-child(4) .ng-binding')); - var FirstResourceCardTitle = element(by.css('.panel:nth-child(1) .ng-binding')); - var FirstResourceCardEllipsis = element(by.css('.panel:nth-child(1) .glyphicon')); - var FirstFollowResourceIcon = element(by.css('.panel:nth-child(1) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)')); - var FirstResourceLearnMoreIcon = element(by.css('.panel:nth-child(1) .row:nth-child(2) div:nth-child(2) span:nth-child(2)')); - var XCloseLink = element(by.css('.close')); - - await TopResourcesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesDivTitle.getText()).toEqual('Computer and Information Research Scientists'); - expect(await FourthResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists'); - await FourthResourceCardTitle.click(); - browser.sleep(1000); - expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - await FirstResourceCardEllipsis.click(); - browser.sleep(1000); - expect(await FirstFollowResourceIcon.getText()).toEqual('Follow'); - await FirstResourceLearnMoreIcon.click(); - browser.sleep(5000); - browser.getAllWindowHandles().then(function (handles) { - //var SecondWindowHandle = handles[1]; - //var FirstWindowHandle = handles[0]; - browser.driver.switchTo().window(handles[1]).then(async function () { - browser.sleep(10000); - expect(await browser.driver.getCurrentUrl()).toEqual("https://www.onetonline.org/link/summary/15-1111.00"); - browser.driver.close(); - browser.sleep(2500); - browser.driver.switchTo().window(handles[0]); - expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - }); - }); - /*browser.driver.switchTo().window(handles[0]).then(async function () { - browser.sleep(5000); - expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - });*/ - //}); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function FindOpportunities() { - it(': FindOpportunities, should click Find Opportunities link', async function () { - var FindOpportunitiesLink = element(by.css('tr:nth-child(4) > td:nth-child(3) > .text-color-7a')); - var FindOpportunitiesWidgetTitle = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); - var XCloseLink = element(by.css('.close')); - - await FindOpportunitiesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await FindOpportunitiesWidgetTitle.getText()).toContain('Job Listings:');//stored value needed - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SubmitAResource() { - it(': SubmitAResource, should click Find Resources link', async function () { - var SubmitAResourceLink = element(by.css('tr:nth-child(5) > td:nth-child(3) > .text-color-7a')); - var SubmitAResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12')); - var SubmitAResourceSubTextOne = element(by.css('.row:nth-child(2) > .col-sm-12')); - var TotalInJourneysText = element(by.css('.col-xs-offset-1 .col-xs-offset-1')); - var TotalInJourneysValue = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy')); - var TotalInJourneysDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.row > .row .ng-binding')); - var XCloseLDivLinkOne = element(by.css('div:nth-child(2) > .close')); - var ForThisMapPointText = element(by.css('.display-right .col-xs-offset-1')); - var ForThisMapPointValue = element(by.css('.display-right .jrnys_lead-body-copy')); - var SubmitAResourceSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12')); - var SubmitAResourceButton = element(by.css('.col-sm-12 > .jrnys_support-text')); - var WidgetDivTitle = element(by.css('h3')); - var WebsiteURLLink = element(by.css('.Tag:nth-child(2) > label')); - var XCloseDivLinkTwo = element(by.css('.modal-header > .close')); - var XCloseLink = element(by.css('.close')); - - await SubmitAResourceLink.click().then(function() { - browser.sleep(2500); - }); - expect(await SubmitAResourceWidgetTitle.getText()).toEqual('Submit a Resource'); - expect(await SubmitAResourceSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources"); - expect(await TotalInJourneysText.getText()).toContain('Total in Journeys'); - expect(await TotalInJourneysValue.getText()).toEqual('1'); - await TotalInJourneysValue.click().then(function() { - browser.sleep(1000); - }); - expect(await TotalInJourneysDivTitle.getText()).toEqual('My Submitted Resources'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - await XCloseLDivLinkOne.click().then(function() { - browser.sleep(1000); - }); - expect(await ForThisMapPointText.getText()).toContain('For this map point'); - expect(await ForThisMapPointValue.getText()).toEqual('0'); - expect(await SubmitAResourceSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); - browser.waitForAngular(); - await SubmitAResourceButton.click(); - browser.waitForAngular(); - expect(await WidgetDivTitle.getText()).toEqual('Submit a Resource'); - browser.waitForAngular(); - WebsiteURLLink.click(); - await XCloseDivLinkTwo.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function NearbyPlaces() { - it(': NearbyPlaces, should click Nearby Places link, expand 1st card and play video', async function () { - var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a')); - var NearbyPlcaesWidgetTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var NearbyPlacesTitle = element(by.id('territoryCardMobileTitle')); - var NearbyPlacesEllipsis = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardIcon > .fas')); - var VideoIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(5) > div.territoryCardIconBackOfCard > career-one-stop-video > i'));//#dropDownSocialOptionsComputerandInformationResearchScientistsNearbyPlacesundefined .far')); - var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding')); - var XCloseVideoDivLink = element(by.css('.close:nth-child(2)')); - var NearbyPlacesAtAGlanceIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(6) > div.territoryCardIconBackOfCard > i')); - var NearbyPlacesDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.territoryCardDescriptionText.ng-binding')); - var TypicalDegreeTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div')); - var DegreeDataOne = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(2) > td:nth-child(2) > div')); - var DegreeDataTwo = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div')); - var DegreeDataThree = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(4) > td:nth-child(2) > div')); - var SalaryTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(16) > td:nth-child(2) > div')); - var SalaryData = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(17) > td:nth-child(2) > div')); - var GrowthTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(19) > td:nth-child(2) > div')); - var GrowthDataOne = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(20) > td.territoryCardBackOfCardItemText > div:nth-child(1)')); - var GrowthDataTwo = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(20) > td.territoryCardBackOfCardItemText > div:nth-child(3)')); - var OpeningsTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(22) > td:nth-child(2) > div')); - var OpeningsData = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(23) > td:nth-child(2) > div')); - var EmployedTitle = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(25) > td:nth-child(2) > div')); - var EmployedData = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > div > table > tbody > tr:nth-child(26) > td:nth-child(2) > div')); - var XCloseLink = element(by.css('.close')); - - //browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() { - browser.executeScript('window.scrollTo(0, 1885);').then(function() { - browser.sleep(2500); - }); - await NearbyPlacesLink.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - expect(await NearbyPlcaesWidgetTitle.getText()).toEqual('Nearby Places'); - browser.waitForAngular(); - expect(await NearbyPlacesTitle.getText()).toEqual('Computer and Information Systems Managers'); - await NearbyPlacesEllipsis.click(); - browser.sleep(2500); - await VideoIcon.click().then(function() { - browser.sleep(10000); - }); - expect(await VideoTitle.getText()).toEqual('Computer and Information Systems Managers'); - await XCloseVideoDivLink.click().then(function() { - browser.sleep(2500); - }); - await NearbyPlacesAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await NearbyPlacesDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await TypicalDegreeTitle.getText()).toEqual('Typical Degree'); - expect(await DegreeDataOne.getText()).toEqual('College (4 Year) - 48%'); - expect(await DegreeDataTwo.getText()).toEqual('Some college - 26%'); - expect(await DegreeDataThree.getText()).toEqual("Master's degree - 14%"); - expect(await SalaryTitle.getText()).toEqual('Average Annual Salary'); - expect(await SalaryData.getText()).toEqual('$139,220'); - expect(await GrowthTitle.getText()).toEqual('Projected Growth'); - expect(await GrowthDataOne.getText()).toEqual('12%'); - expect(await GrowthDataTwo.getText()).toEqual('ABOVE AVERAGE'); - expect(await OpeningsTitle.getText()).toEqual('Projected Job Openings'); - expect(await OpeningsData.getText()).toEqual('32,500'); - expect(await EmployedTitle.getText()).toEqual('Currently Employed'); - expect(await EmployedData.getText()).toEqual('367,600'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Tasks() { - it(': Tasks, should click Tasks link and validate data', async function () { - var TasksLink = element(by.css('tr:nth-child(4) > td:nth-child(4) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('th:nth-child(2) > .text-color-7a')); - var CategoryHeader = element(by.css('th:nth-child(3) > .text-color-7a')); - var TasksRowOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a:nth-child(2)')); - var CategoryStatOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(3)')); - var TasksRowTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var ImportanceStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var CategoryStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(3)')); - var TasksRowThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var ImportanceStatThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a:nth-child(2)')); - var CategoryStatThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(3)')); - var TasksRowFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var ImportanceStatFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a:nth-child(2)')); - var CategoryStatFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(3)')); - var TasksRowFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var ImportanceStatFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a:nth-child(2)')); - var CategoryStatFive = element(by.css('.ng-scope:nth-child(5) > .text-center:nth-child(3)')); - var TasksRowSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var ImportanceStatSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a:nth-child(2)')); - var CategoryStatSix = element(by.css('.ng-scope:nth-child(6) > .text-center:nth-child(3)')); - var TasksRowSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var ImportanceStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a:nth-child(2)')); - var CategoryStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-center:nth-child(3)')); - var TasksRowEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var ImportanceStatEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a:nth-child(2)')); - var CategoryStatEight = element(by.css('.ng-scope:nth-child(8) > .text-center:nth-child(3)')); - var TasksRowNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var ImportanceStatNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a:nth-child(2)')); - var CategoryStatNine = element(by.css('.ng-scope:nth-child(9) > .text-center:nth-child(3)')); - var TasksRowTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var ImportanceStatTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a:nth-child(2)')); - var CategoryStatTen= element(by.css('.ng-scope:nth-child(10) > .text-center:nth-child(3)')); - var TasksRowEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var ImportanceStatEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a:nth-child(2)')); - var CategoryStatEleven = element(by.css('.ng-scope:nth-child(11) > .text-center:nth-child(3)')); - var TasksRowTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var ImportanceStatTwelve = element(by.css('.ng-scope:nth-child(12) > .text-color-7a:nth-child(2)')); - var CategoryStatTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center:nth-child(3)')); - var TasksRowThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var ImportanceStatThirteen = element(by.css('.ng-scope:nth-child(13) > .text-color-7a:nth-child(2)')); - var CategoryStatThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center:nth-child(3)')); - var TasksRowFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var ImportanceStatFourteen = element(by.css('.ng-scope:nth-child(14) > .text-color-7a:nth-child(2)')); - var CategoryStatFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center:nth-child(3)')); - var TasksRowFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var ImportanceStatFifteen = element(by.css('.ng-scope:nth-child(15) > .text-color-7a:nth-child(2)')); - var CategoryStatFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center:nth-child(3)')); - var XCloseLink = element(by.css('.close')); - - await TasksLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Tasks'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await CategoryHeader.getText()).toEqual('Category'); - expect(await TasksRowOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.'); - expect(await ImportanceStatOne.getText()).toEqual('82%'); - expect(await CategoryStatOne.getText()).toEqual('Core'); - expect(await TasksRowTwo.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.'); - expect(await ImportanceStatTwo.getText()).toEqual('71%'); - expect(await CategoryStatTwo.getText()).toEqual('Core'); - expect(await TasksRowThree.getText()).toEqual('Evaluate project plans and proposals to assess feasibility issues.'); - expect(await ImportanceStatThree.getText()).toEqual('70%'); - expect(await CategoryStatThree.getText()).toEqual('Core'); - expect(await TasksRowFour.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.'); - expect(await ImportanceStatFour.getText()).toEqual('66%'); - expect(await CategoryStatFour.getText()).toEqual('Core'); - expect(await TasksRowFive.getText()).toEqual('Consult with users, management, vendors, and technicians to determine computing needs and system requirements.'); - expect(await ImportanceStatFive.getText()).toEqual('66%'); - expect(await CategoryStatFive.getText()).toEqual('Core'); - expect(await TasksRowSix.getText()).toEqual('Meet with managers, vendors, and others to solicit cooperation and resolve problems.'); - expect(await ImportanceStatSix.getText()).toEqual('64%'); - expect(await CategoryStatSix.getText()).toEqual('Core'); - expect(await TasksRowSeven.getText()).toEqual('Conduct logical analyses of business, scientific, engineering, and other technical problems, formulating mathematical models of problems for solution by computers.'); - expect(await ImportanceStatSeven.getText()).toEqual('63%'); - expect(await CategoryStatSeven.getText()).toEqual('Core'); - expect(await TasksRowEight.getText()).toEqual('Develop and interpret organizational goals, policies, and procedures.'); - expect(await ImportanceStatEight.getText()).toEqual('59%'); - expect(await CategoryStatEight.getText()).toEqual('Core'); - expect(await TasksRowNine.getText()).toEqual('Participate in staffing decisions and direct training of subordinates.'); - expect(await ImportanceStatNine.getText()).toEqual('54%'); - expect(await CategoryStatNine.getText()).toEqual('Core'); - expect(await TasksRowTen.getText()).toEqual('Develop performance standards, and evaluate work in light of established standards.'); - expect(await ImportanceStatTen.getText()).toEqual('51%'); - expect(await CategoryStatTen.getText()).toEqual('Core'); - expect(await TasksRowEleven.getText()).toEqual('Design computers and the software that runs them.'); - expect(await ImportanceStatEleven.getText()).toEqual('74%'); - expect(await CategoryStatEleven .getText()).toEqual('Supplemental'); - expect(await TasksRowTwelve.getText()).toEqual('Maintain network hardware and software, direct network security measures, and monitor networks to ensure availability to system users.'); - expect(await ImportanceStatTwelve.getText()).toEqual('65%'); - expect(await CategoryStatTwelve.getText()).toEqual('Supplemental'); - expect(await TasksRowThirteen.getText()).toEqual('Participate in multidisciplinary projects in areas such as virtual reality, human-computer interaction, or robotics.'); - expect(await ImportanceStatThirteen.getText()).toEqual('62%'); - expect(await CategoryStatThirteen.getText()).toEqual('Supplemental'); - expect(await TasksRowFourteen.getText()).toEqual('Approve, prepare, monitor, and adjust operational budgets.'); - expect(await ImportanceStatFourteen.getText()).toEqual('58%'); - expect(await CategoryStatFourteen.getText()).toEqual('Supplemental'); - expect(await TasksRowFifteen.getText()).toEqual('Direct daily operations of departments, coordinating project activities with other departments.'); - expect(await ImportanceStatFifteen.getText()).toEqual('50%'); - expect(await CategoryStatFifteen.getText()).toEqual('Supplemental'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Technology() { - it(': Technology, should click Technology link and validate data', async function () { - var TechnologyLink = element(by.css('tr:nth-child(5) > td:nth-child(4) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var TechnologyTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding')); - var TechnologyDataOne = element(by.css('.ng-scope:nth-child(1) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var TechnologyDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding')); - var TechnologyDataThree = element(by.css('.ng-scope:nth-child(3) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding')); - var TechnologyDataFour = element(by.css('.ng-scope:nth-child(4) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding')); - var TechnologyDataFive = element(by.css('.ng-scope:nth-child(5) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding')); - var TechnologyDataSix = element(by.css('.ng-scope:nth-child(6) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding')); - var TechnologyDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding')); - var TechnologyDataEight = element(by.css('.ng-scope:nth-child(8) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); - var TechnologyDataNine = element(by.css('.ng-scope:nth-child(9) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); - var TechnologyDataTen = element(by.css('.ng-scope:nth-child(10) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding')); - var TechnologyDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding')); - var TechnologyDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); - var TechnologyDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); - var TechnologyDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding')); - var TechnologyDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding')); - var TechnologyDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); - var TechnologyDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); - var TechnologyDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleNineteen = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); - var TechnologyDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwenty = element(by.css('.ng-scope:nth-child(20) > .ng-binding')); - var TechnologyDataTwenty = element(by.css('.ng-scope:nth-child(20) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyOne = element(by.css('.ng-scope:nth-child(21) > .ng-binding')); - var TechnologyDataTwentyOne = element(by.css('.ng-scope:nth-child(21) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .ng-binding')); - var TechnologyDataTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyThree = element(by.css('.ng-scope:nth-child(23) > .ng-binding')); - var TechnologyDataTwentyThree = element(by.css('.ng-scope:nth-child(23) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyFour = element(by.css('.ng-scope:nth-child(24) > .ng-binding')); - var TechnologyDataTwentyFour = element(by.css('.ng-scope:nth-child(24) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyFive = element(by.css('.ng-scope:nth-child(25) > .ng-binding')); - var TechnologyDataTwentyFive = element(by.css('.ng-scope:nth-child(25) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentySix = element(by.css('.ng-scope:nth-child(26) > .ng-binding')); - var TechnologyDataTwentySix = element(by.css('.ng-scope:nth-child(26) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentySeven = element(by.css('.ng-scope:nth-child(27) > .ng-binding')); - var TechnologyDataTwentySeven = element(by.css('.ng-scope:nth-child(27) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyEight = element(by.css('.ng-scope:nth-child(28) > .ng-binding')); - var TechnologyDataTwentyEight = element(by.css('.ng-scope:nth-child(28) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleTwentyNine = element(by.css('.ng-scope:nth-child(29) > .ng-binding')); - var TechnologyDataTwentyNine = element(by.css('.ng-scope:nth-child(29) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirty = element(by.css('.ng-scope:nth-child(30) > .ng-binding')); - var TechnologyDataThirty = element(by.css('.ng-scope:nth-child(30) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirtyOne = element(by.css('.ng-scope:nth-child(31) > .ng-binding')); - var TechnologyDataThirtyOne = element(by.css('.ng-scope:nth-child(31) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirtyTwo = element(by.css('.ng-scope:nth-child(32) > .ng-binding')); - var TechnologyDataThirtyTwo = element(by.css('.ng-scope:nth-child(32) > .text-left > .ng-binding:nth-child(1)')); - var TechnologyTitleThirtyThree = element(by.css('.ng-scope:nth-child(33) > .ng-binding')); - var TechnologyDataThirtyThree = element(by.css('.ng-scope:nth-child(33) > .text-left > .ng-binding:nth-child(1)')); - var XCloseLink = element(by.css('.close')); - - await TechnologyLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Technology'); - expect(await TechnologyTitleOne.getText()).toEqual('Development environment software'); - expect(await TechnologyDataOne.getText()).toEqual('Ada ;'); - expect(await TechnologyTitleTwo.getText()).toEqual('Analytical or scientific software'); - expect(await TechnologyDataTwo.getText()).toEqual('Advanced numerical software ;'); - expect(await TechnologyTitleThree.getText()).toEqual('Data base management system software'); - expect(await TechnologyDataThree.getText()).toEqual('Apache Cassandra ;'); - expect(await TechnologyTitleFour.getText()).toEqual('Operating system software'); - expect(await TechnologyDataFour.getText()).toEqual('Bash ;'); - expect(await TechnologyTitleFive.getText()).toEqual('Object or component oriented development software'); - expect(await TechnologyDataFive.getText()).toEqual('C# ;'); - expect(await TechnologyTitleSix.getText()).toEqual('Business intelligence and data analysis software'); - expect(await TechnologyDataSix.getText()).toEqual('IBM Cognos Impromptu ;'); - expect(await TechnologyTitleSeven.getText()).toEqual('Data base user interface and query software'); - expect(await TechnologyDataSeven.getText()).toEqual('Apache Hive ;'); - expect(await TechnologyTitleEight.getText()).toEqual('Web platform development software'); - expect(await TechnologyDataEight.getText()).toEqual('Django ;'); - expect(await TechnologyTitleNine.getText()).toEqual('Graphics or photo imaging software'); - expect(await TechnologyDataNine.getText()).toEqual('Graphics pipelines ;'); - expect(await TechnologyTitleTen.getText()).toEqual('Compiler and decompiler software'); - expect(await TechnologyDataTen.getText()).toEqual('Greenhills Ada compilers ;'); - expect(await TechnologyTitleEleven.getText()).toEqual('Configuration management software'); - expect(await TechnologyDataEleven.getText()).toEqual('IBM Rational Apex ;'); - expect(await TechnologyTitleTwelve.getText()).toEqual('Clustering software'); - expect(await TechnologyDataTwelve.getText()).toEqual('Clustermatic ;'); - expect(await TechnologyTitleThirteen.getText()).toEqual('Enterprise application integration software'); - expect(await TechnologyDataThirteen .getText()).toEqual('Extensible markup language XML ;'); - expect(await TechnologyTitleFourteen.getText()).toEqual('Computer aided design CAD software'); - expect(await TechnologyDataFourteen.getText()).toEqual('Computer aided design and drafting CADD software ;'); - expect(await TechnologyTitleFifteen.getText()).toEqual('Spreadsheet software'); - expect(await TechnologyDataFifteen.getText()).toEqual('Microsoft Excel '); - expect(await TechnologyTitleSixteen.getText()).toEqual('Metadata management software'); - expect(await TechnologyDataSixteen.getText()).toEqual('CA Erwin Data Modeler '); - expect(await TechnologyTitleSeventeen.getText()).toEqual('Application server software'); - expect(await TechnologyDataSeventeen.getText()).toEqual('GitHub '); - expect(await TechnologyTitleEighteen.getText()).toEqual('Enterprise system management software'); - expect(await TechnologyDataEighteen.getText()).toEqual('Splunk Enterprise '); - expect(await TechnologyTitleNineteen.getText()).toEqual('Object oriented data base management software'); - expect(await TechnologyDataNineteen.getText()).toEqual('PostgreSQL '); - expect(await TechnologyTitleTwenty.getText()).toEqual('Enterprise resource planning ERP software'); - expect(await TechnologyDataTwenty.getText()).toEqual('SAP Business Objects'); - expect(await TechnologyTitleTwentyOne.getText()).toEqual('Communications server software'); - expect(await TechnologyDataTwentyOne.getText()).toEqual('IBM Domino'); - expect(await TechnologyTitleTwentyTwo.getText()).toEqual('Portal server software'); - expect(await TechnologyDataTwentyTwo.getText()).toEqual('Apache HTTP Server '); - expect(await TechnologyTitleTwentyThree.getText()).toEqual('Video creation and editing software'); - expect(await TechnologyDataTwentyThree.getText()).toEqual('Video editing software'); - expect(await TechnologyTitleTwentyFour.getText()).toEqual('File versioning software'); - expect(await TechnologyDataTwentyFour.getText()).toEqual('Git '); - expect(await TechnologyTitleTwentyFive.getText()).toEqual('Office suite software'); - expect(await TechnologyDataTwentyFive.getText()).toEqual('Microsoft Office '); - expect(await TechnologyTitleTwentySix.getText()).toEqual('Graphical user interface development software'); - expect(await TechnologyDataTwentySix.getText()).toEqual('Waikato Environment for Knowledge Analysis Weka'); - expect(await TechnologyTitleTwentySeven.getText()).toEqual('Sales and marketing software'); - expect(await TechnologyDataTwentySeven.getText()).toEqual('Google AdWords '); - expect(await TechnologyTitleTwentyEight.getText()).toEqual('Presentation software'); - expect(await TechnologyDataTwentyEight.getText()).toEqual('Microsoft PowerPoint '); - expect(await TechnologyTitleTwentyNine.getText()).toEqual('Map creation software'); - expect(await TechnologyDataTwentyNine.getText()).toEqual('ESRI ArcGIS software '); - expect(await TechnologyTitleThirty.getText()).toEqual('Web page creation and editing software'); - expect(await TechnologyDataThirty.getText()).toEqual('Plug-in file software'); - expect(await TechnologyTitleThirtyOne.getText()).toEqual('Data mining software'); - expect(await TechnologyDataThirtyOne.getText()).toEqual('Google Analytics '); - expect(await TechnologyTitleThirtyTwo.getText()).toEqual('Requirements analysis and system architecture software'); - expect(await TechnologyDataThirtyTwo.getText()).toEqual('Unified modeling language UML '); - expect(await TechnologyTitleThirtyThree.getText()).toEqual('Project management software'); - expect(await TechnologyDataThirtyThree.getText()).toEqual('Microsoft Project '); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Knowledge() { - it(': Knowledge, should click Knowledge link and validate data', async function () { - var KnowledgeLink = element(by.css('tr:nth-child(3) > td:nth-child(5) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var KnowledgeTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var KnowledgeDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var KnowledgeTitleTwo = element(by.css('tbody > .ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var KnowledgeDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var KnowledgeTitleThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var KnowledgeDataThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a')); - var KnowledgeTitleFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var KnowledgeDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var KnowledgeTitleFive = element(by.css('tbody > .ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var KnowledgeDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a')); - var KnowledgeTitleSix = element(by.css('tbody > .ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var KnowledgeDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a')); - var KnowledgeTitleSeven = element(by.css('tbody > .ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var KnowledgeDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a')); - var KnowledgeTitleEight = element(by.css('tbody > .ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var KnowledgeDataEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a')); - var KnowledgeTitleNine = element(by.css('tbody > .ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var KnowledgeDataNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a')); - var KnowledgeTitleTen = element(by.css('tbody > .ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var KnowledgeDataTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a')); - var KnowledgeTitleEleven = element(by.css('tbody > .ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var KnowledgeDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a')); - var XCloseLink = element(by.css('.close')); - - await KnowledgeLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Knowledge'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await KnowledgeTitleOne.getText()).toEqual('Computers and Electronics'); - expect(await KnowledgeDataOne.getText()).toEqual('90%'); - expect(await KnowledgeTitleTwo.getText()).toEqual('Mathematics'); - expect(await KnowledgeDataTwo.getText()).toEqual('82%'); - expect(await KnowledgeTitleThree.getText()).toEqual('English Language'); - expect(await KnowledgeDataThree.getText()).toEqual('79%'); - expect(await KnowledgeTitleFour.getText()).toEqual('Education and Training'); - expect(await KnowledgeDataFour.getText()).toEqual('73%'); - expect(await KnowledgeTitleFive.getText()).toEqual('Telecommunications'); - expect(await KnowledgeDataFive.getText()).toEqual('62%'); - expect(await KnowledgeTitleSix.getText()).toEqual('Design'); - expect(await KnowledgeDataSix.getText()).toEqual('59%'); - expect(await KnowledgeTitleSeven.getText()).toEqual('Administration and Management'); - expect(await KnowledgeDataSeven.getText()).toEqual('58%'); - expect(await KnowledgeTitleEight.getText()).toEqual('Engineering and Technology'); - expect(await KnowledgeDataEight.getText()).toEqual('58%'); - expect(await KnowledgeTitleNine.getText()).toEqual('Customer and Personal Service'); - expect(await KnowledgeDataNine.getText()).toEqual('55%'); - expect(await KnowledgeTitleTen.getText()).toEqual('Communications and Media'); - expect(await KnowledgeDataTen.getText()).toEqual('52%'); - expect(await KnowledgeTitleEleven.getText()).toEqual('Clerical'); - expect(await KnowledgeDataEleven.getText()).toEqual('50%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Skills() { - it(': Skills, should click Skills link and validate data', async function () { - var SkillsLink = element(by.css('tr:nth-child(4) > td:nth-child(5) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var SkillsTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var SkillsDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var SkillsTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var SkillsDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var SkillsTitleThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var SkillsDataThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a')); - var SkillsTitleFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var SkillsDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var SkillsTitleFive = element(by.css('tbody > .ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var SkillsDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a')); - var SkillsTitleSix = element(by.css('tbody > .ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var SkillsDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a')); - var SkillsTitleSeven = element(by.css('tbody > .ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var SkillsDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a')); - var SkillsTitleEight = element(by.css('tbody > .ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var SkillsDataEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a')); - var SkillsTitleNine = element(by.css('tbody > .ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var SkillsDataNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a')); - var SkillsTitleTen = element(by.css('tbody > .ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var SkillsDataTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a')); - var SkillsTitleEleven = element(by.css('tbody > .ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var SkillsDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a')); - var SkillsTitleTwelve = element(by.css('tbody > .ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var SkillsDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-color-7a')); - var SkillsTitleThirteen = element(by.css('tbody > .ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var SkillsDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-color-7a')); - var SkillsTitleFourteen = element(by.css('tbody > .ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var SkillsDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-color-7a')); - var SkillsTitleFifteen = element(by.css('tbody > .ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var SkillsDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-color-7a')); - var SkillsTitleSixteen = element(by.css('tbody > .ng-scope:nth-child(16) > .ng-binding:nth-child(1)')); - var SkillsDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-color-7a')); - var SkillsTitleSeventeen = element(by.css('tbody > .ng-scope:nth-child(17) > .ng-binding:nth-child(1)')); - var SkillsDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-color-7a')); - var SkillsTitleEighteen = element(by.css('tbody > .ng-scope:nth-child(18) > .ng-binding:nth-child(1)')); - var SkillsDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-color-7a')); - var SkillsTitleNineteen = element(by.css('tbody > .ng-scope:nth-child(19) > .ng-binding:nth-child(1)')); - var SkillsDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-color-7a')); - var XCloseLink = element(by.css('.close')); - - await SkillsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Skills'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await SkillsTitleOne.getText()).toEqual('Complex Problem Solving'); - expect(await SkillsDataOne.getText()).toEqual('72%'); - expect(await SkillsTitleTwo.getText()).toEqual('Critical Thinking'); - expect(await SkillsDataTwo.getText()).toEqual('69%'); - expect(await SkillsTitleThree.getText()).toEqual('Systems Analysis'); - expect(await SkillsDataThree.getText()).toEqual('69%'); - expect(await SkillsTitleFour.getText()).toEqual('Systems Evaluation'); - expect(await SkillsDataFour.getText()).toEqual('69%'); - expect(await SkillsTitleFive.getText()).toEqual('Judgment and Decision Making'); - expect(await SkillsDataFive.getText()).toEqual('66%'); - expect(await SkillsTitleSix.getText()).toEqual('Active Listening'); - expect(await SkillsDataSix.getText()).toEqual('63%'); - expect(await SkillsTitleSeven.getText()).toEqual('Programming'); - expect(await SkillsDataSeven.getText()).toEqual('63%'); - expect(await SkillsTitleEight.getText()).toEqual('Reading Comprehension'); - expect(await SkillsDataEight.getText()).toEqual('63%'); - expect(await SkillsTitleNine.getText()).toEqual('Time Management'); - expect(await SkillsDataNine.getText()).toEqual('63%'); - expect(await SkillsTitleTen.getText()).toEqual('Active Learning'); - expect(await SkillsDataTen.getText()).toEqual('60%'); - expect(await SkillsTitleEleven.getText()).toEqual('Speaking'); - expect(await SkillsDataEleven.getText()).toEqual('60%'); - expect(await SkillsTitleTwelve.getText()).toEqual('Writing'); - expect(await SkillsDataTwelve.getText()).toEqual('60%'); - expect(await SkillsTitleThirteen.getText()).toEqual('Operations Analysis'); - expect(await SkillsDataThirteen.getText()).toEqual('56%'); - expect(await SkillsTitleFourteen.getText()).toEqual('Mathematics'); - expect(await SkillsDataFourteen.getText()).toEqual('53%'); - expect(await SkillsTitleFifteen.getText()).toEqual('Monitoring'); - expect(await SkillsDataFifteen.getText()).toEqual('53%'); - expect(await SkillsTitleSixteen.getText()).toEqual('Science'); - expect(await SkillsDataSixteen.getText()).toEqual('53%'); - expect(await SkillsTitleSeventeen.getText()).toEqual('Coordination'); - expect(await SkillsDataSeventeen.getText()).toEqual('50%'); - expect(await SkillsTitleEighteen.getText()).toEqual('Management of Personnel Resources'); - expect(await SkillsDataEighteen.getText()).toEqual('50%'); - expect(await SkillsTitleNineteen.getText()).toEqual('Social Perceptiveness'); - expect(await SkillsDataNineteen.getText()).toEqual('50%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function WorkActivities() { - it(': WorkActivities, should click Work Activities link and validate data', async function () { - var WorkActivitiesLink = element(by.css('tr:nth-child(5) > td:nth-child(5) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var WorkActivitiesTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var WorkActivitiesTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var WorkActivitiesTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center')); - var WorkActivitiesTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var WorkActivitiesTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center')); - var WorkActivitiesTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center')); - var WorkActivitiesTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-center')); - var WorkActivitiesTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataEight = element(by.css('.ng-scope:nth-child(8) > .text-center')); - var WorkActivitiesTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataNine = element(by.css('.ng-scope:nth-child(9) > .text-center')); - var WorkActivitiesTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTen = element(by.css('.ng-scope:nth-child(10) > .text-center')); - var WorkActivitiesTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-center')); - var WorkActivitiesTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center')); - var WorkActivitiesTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center')); - var WorkActivitiesTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center')); - var WorkActivitiesTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center')); - var WorkActivitiesTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-center')); - var WorkActivitiesTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-center')); - var WorkActivitiesTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-center')); - var WorkActivitiesTitleNineteen = element(by.css('.ng-scope:nth-child(19) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-center')); - var WorkActivitiesTitleTwenty = element(by.css('.ng-scope:nth-child(20) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwenty = element(by.css('.ng-scope:nth-child(20) > .text-center')); - var WorkActivitiesTitleTwentyOne = element(by.css('.ng-scope:nth-child(21) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwentyOne = element(by.css('.ng-scope:nth-child(21) > .text-center')); - var WorkActivitiesTitleTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .text-center')); - var WorkActivitiesTitleTwentyThree = element(by.css('.ng-scope:nth-child(23) > .ng-binding:nth-child(1)')); - var WorkActivitiesDataTwentyThree = element(by.css('.ng-scope:nth-child(23) > .text-center')); - var XCloseLink = element(by.css('.close')); - - await WorkActivitiesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Work Activities'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await WorkActivitiesTitleOne.getText()).toEqual('Interacting With Computers'); - expect(await WorkActivitiesDataOne.getText()).toEqual('92%'); - expect(await WorkActivitiesTitleTwo.getText()).toEqual('Getting Information'); - expect(await WorkActivitiesDataTwo.getText()).toEqual('90%'); - expect(await WorkActivitiesTitleThree.getText()).toEqual('Processing Information'); - expect(await WorkActivitiesDataThree.getText()).toEqual('87%'); - expect(await WorkActivitiesTitleFour.getText()).toEqual('Thinking Creatively'); - expect(await WorkActivitiesDataFour.getText()).toEqual('86%'); - expect(await WorkActivitiesTitleFive.getText()).toEqual('Making Decisions and Solving Problems'); - expect(await WorkActivitiesDataFive.getText()).toEqual('84%'); - expect(await WorkActivitiesTitleSix.getText()).toEqual('Updating and Using Relevant Knowledge'); - expect(await WorkActivitiesDataSix.getText()).toEqual('84%'); - expect(await WorkActivitiesTitleSeven.getText()).toEqual('Identifying Objects, Actions, and Events'); - expect(await WorkActivitiesDataSeven.getText()).toEqual('82%'); - expect(await WorkActivitiesTitleEight.getText()).toEqual('Documenting/Recording Information'); - expect(await WorkActivitiesDataEight.getText()).toEqual('80%'); - expect(await WorkActivitiesTitleNine.getText()).toEqual('Communicating with Supervisors, Peers, or Subordinates'); - expect(await WorkActivitiesDataNine.getText()).toEqual('79%'); - expect(await WorkActivitiesTitleTen.getText()).toEqual('Interpreting the Meaning of Information for Others'); - expect(await WorkActivitiesDataTen.getText()).toEqual('77%'); - expect(await WorkActivitiesTitleEleven.getText()).toEqual('Organizing, Planning, and Prioritizing Work'); - expect(await WorkActivitiesDataEleven.getText()).toEqual('76%'); - expect(await WorkActivitiesTitleTwelve.getText()).toEqual('Establishing and Maintaining Interpersonal Relationships'); - expect(await WorkActivitiesDataTwelve.getText()).toEqual('72%'); - expect(await WorkActivitiesTitleThirteen.getText()).toEqual('Analyzing Data or Information'); - expect(await WorkActivitiesDataThirteen.getText()).toEqual('71%'); - expect(await WorkActivitiesTitleFourteen.getText()).toEqual('Communicating with Persons Outside Organization'); - expect(await WorkActivitiesDataFourteen.getText()).toEqual('69%'); - expect(await WorkActivitiesTitleFifteen.getText()).toEqual('Developing Objectives and Strategies'); - expect(await WorkActivitiesDataFifteen.getText()).toEqual('69%'); - expect(await WorkActivitiesTitleSixteen.getText()).toEqual('Judging the Qualities of Things, Services, or People'); - expect(await WorkActivitiesDataSixteen.getText()).toEqual('66%'); - expect(await WorkActivitiesTitleSeventeen.getText()).toEqual('Scheduling Work and Activities'); - expect(await WorkActivitiesDataSeventeen.getText()).toEqual('65%'); - expect(await WorkActivitiesTitleEighteen.getText()).toEqual('Provide Consultation and Advice to Others'); - expect(await WorkActivitiesDataEighteen.getText()).toEqual('64%'); - expect(await WorkActivitiesTitleNineteen.getText()).toEqual('Evaluating Information to Determine Compliance with Standards'); - expect(await WorkActivitiesDataNineteen.getText()).toEqual('62%'); - expect(await WorkActivitiesTitleTwenty.getText()).toEqual('Coordinating the Work and Activities of Others'); - expect(await WorkActivitiesDataTwenty.getText()).toEqual('61%'); - expect(await WorkActivitiesTitleTwentyOne.getText()).toEqual('Estimating the Quantifiable Characteristics of Products, Events, or Information'); - expect(await WorkActivitiesDataTwentyOne.getText()).toEqual('61%'); - expect(await WorkActivitiesTitleTwentyTwo.getText()).toEqual('Developing and Building Teams'); - expect(await WorkActivitiesDataTwentyTwo.getText()).toEqual('52%'); - expect(await WorkActivitiesTitleTwentyThree.getText()).toEqual('Training and Teaching Others'); - expect(await WorkActivitiesDataTwentyThree.getText()).toEqual('52%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Ability() { - it(': Ability, should click Ability link and validate data', async function () { - var AbilityLink = element(by.css('td:nth-child(6) > .text-color-7a')); - var WidgetTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); - var AbilityTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var AbilityDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var AbilityTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var AbilityDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)')); - var AbilityTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var AbilityDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center')); - var AbilityTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var AbilityDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var AbilityTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var AbilityDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center')); - var AbilityTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var AbilityDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center')); - var AbilityTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var AbilityDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-center')); - var AbilityTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var AbilityDataEight = element(by.css('.ng-scope:nth-child(8) > .text-center')); - var AbilityTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var AbilityDataNine = element(by.css('.ng-scope:nth-child(9) > .text-center')); - var AbilityTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)')); - var AbilityDataTen = element(by.css('.ng-scope:nth-child(10) > .text-center')); - var AbilityTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)')); - var AbilityDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-center')); - var AbilityTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)')); - var AbilityDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center')); - var AbilityTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)')); - var AbilityDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center')); - var AbilityTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)')); - var AbilityDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center')); - var AbilityTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)')); - var AbilityDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center')); - var AbilityTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding:nth-child(1)')); - var AbilityDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-center')); - var AbilityTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding:nth-child(1)')); - var AbilityDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-center')); - var AbilityTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding:nth-child(1)')); - var AbilityDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-center')); - var XCloseLink = element(by.css('.close')); - - await AbilityLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Ability'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await AbilityTitleOne.getText()).toEqual('Deductive Reasoning'); - expect(await AbilityDataOne.getText()).toEqual('72%'); - expect(await AbilityTitleTwo.getText()).toEqual('Inductive Reasoning'); - expect(await AbilityDataTwo.getText()).toEqual('72%'); - expect(await AbilityTitleThree.getText()).toEqual('Problem Sensitivity'); - expect(await AbilityDataThree.getText()).toEqual('69%'); - expect(await AbilityTitleFour.getText()).toEqual('Fluency of Ideas'); - expect(await AbilityDataFour.getText()).toEqual('66%'); - expect(await AbilityTitleFive.getText()).toEqual('Information Ordering'); - expect(await AbilityDataFive.getText()).toEqual('66%'); - expect(await AbilityTitleSix.getText()).toEqual('Near Vision'); - expect(await AbilityDataSix.getText()).toEqual('66%'); - expect(await AbilityTitleSeven.getText()).toEqual('Oral Comprehension'); - expect(await AbilityDataSeven.getText()).toEqual('66%'); - expect(await AbilityTitleEight.getText()).toEqual('Oral Expression'); - expect(await AbilityDataEight.getText()).toEqual('66%'); - expect(await AbilityTitleNine.getText()).toEqual('Written Comprehension'); - expect(await AbilityDataNine.getText()).toEqual('66%'); - expect(await AbilityTitleTen.getText()).toEqual('Category Flexibility'); - expect(await AbilityDataTen.getText()).toEqual('63%'); - expect(await AbilityTitleEleven.getText()).toEqual('Speech Clarity'); - expect(await AbilityDataEleven.getText()).toEqual('60%'); - expect(await AbilityTitleTwelve.getText()).toEqual('Speech Recognition'); - expect(await AbilityDataTwelve.getText()).toEqual('60%'); - expect(await AbilityTitleThirteen.getText()).toEqual('Written Expression'); - expect(await AbilityDataThirteen.getText()).toEqual('60%'); - expect(await AbilityTitleFourteen.getText()).toEqual('Originality'); - expect(await AbilityDataFourteen.getText()).toEqual('56%'); - expect(await AbilityTitleFifteen.getText()).toEqual('Selective Attention'); - expect(await AbilityDataFifteen.getText()).toEqual('56%'); - expect(await AbilityTitleSixteen.getText()).toEqual('Mathematical Reasoning'); - expect(await AbilityDataSixteen.getText()).toEqual('53%'); - expect(await AbilityTitleSeventeen.getText()).toEqual('Number Facility'); - expect(await AbilityDataSeventeen.getText()).toEqual('50%'); - expect(await AbilityTitleEighteen.getText()).toEqual('Perceptual Speed'); - expect(await AbilityDataEighteen.getText()).toEqual('50%'); - browser.waitForAngular(); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyResourcesCarousel() { - it(': MyResourcesCarousel, should click My Resources carousel View All link, expand and collapse resources and remove latest resource', async function () { - var WidgetTitle = element(by.css('#id > .ng-scope > .jrnys_lead-body-copy')); - var TopResources1stCardHeader = element(by.css('.col-xs-4:nth-child(1) tr:nth-child(2) > .hotTitles')); - var TopResources1stCardSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)')); - var ViewAllLink = element(by.css('#id > .ng-scope .text-color-7a')); - var WidgetDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.col-xs-9 > .ng-binding')); - var EllipsisMyResources = element(by.css('.glyphicon-option-vertical')); - var XCloseLink = element(by.css('.close')); - - /*browser.actions().mouseMove(element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1990);').then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Resources View All'); - expect(await TopResources1stCardHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResources1stCardSaveIcon.click().then(function() { - browser.sleep(5000); - }); - await ViewAllLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - expect(await WidgetDivTitle.getText()).toEqual('My Resources'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - await MyResourceTitle.click(); - browser.sleep(1000); - await EllipsisMyResources.click(); - browser.sleep(1000); - await XCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InstitutionsCarousel() { - it(': InstitutionsCarousel, should click Institution carousel View All link', async function () { - var WidgetTitle = element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy')); - var ViewAllLink = element(by.css('#myInstitutionsCollapsed .text-color-7a')); - var EditSearchWidgetTitle = element(by.css('.panel-with-page > .row > b')); - var BackLink = element(by.css('.btn-primary-back-mod')); - - /*browser.actions().mouseMove(element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 2465);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Institutions View All'); - await ViewAllLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - expect(await EditSearchWidgetTitle.getText()).toEqual('Edit Search'); - browser.sleep(2500); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await BackLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyJourneys() { - it(': MyJourneys, should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () { - var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)')); - var JourneySteps = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div')); - var LearnMoreLink = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) #appendHere > .jrnys_support-text')); - var JourneyLearnMoreTitle = element(by.css('.col-md-12 > .ng-binding')); - var JourneyWayPoint = element(by.css('.select-waypointTitle')); - var JourneyResource = element(by.css('.relatedResourceTitleRow')); - var JourneyNoResource = element(by.css('.col-md-12 > .col-md-12')); - var RightScroll = element(by.css('.glyphicon-menu-right')); - var BackLink = element(by.css('.btn-primary-back-mod')); - - /*browser.actions().mouseMove(element(by.id('journeyListWidget'))).perform(); - browser.sleep(5000);*/ - browser.executeScript('window.scrollTo(0, 3315);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('My Journeys'); - expect(await JourneySteps.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await JourneySteps.getText()).toContain('Learn More'); - expect(await JourneySteps.getText()).toContain('5 steps (0 Complete)'); - await LearnMoreLink.click(); - browser.sleep(5000); - expect(await JourneyLearnMoreTitle.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await JourneyWayPoint.getText()).toEqual('10'); - expect(await JourneyResource.getText()).toEqual('cnn'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('11'); - expect(await JourneyResource.getText()).toEqual('This is CNN'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('12'); - expect(await JourneyResource.getText()).toEqual('cnn'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('Computer Security Graduate Certificate'); - expect(await JourneyNoResource.getText()).toEqual('Sorry, no related resources!'); - await RightScroll.click(); - browser.sleep(5000); - expect(await JourneyWayPoint.getText()).toEqual('Computer and Information Systems Managers'); - expect(await JourneyResource.getText()).toEqual('Computer and Information Systems Managers (Business, Management and Administration)'); - //await BackLink.click(); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyJourneysPage() { - it(': MyJourneysPage, should navigate to My Journeys page view and delete 1st journey', async function () { - var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover')); - var PageTitle = element(by.css('.jrnys_lead-body-copy')); - var PageSubTitle = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); - var Select1stJourneyTitle = element(by.xpath('//span[contains(.,"6 to Administrative Services Managers through Business Administration B.A./B.S.")]')); - var SelectedJourneyBubbleOne = element(by.css('#mCSB_1_container > .firstWaypoint .lblClass')); - var SelectedJourneyBubbleTwo = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(2) .lblClass')); - var SelectedJourneyBubbleThree = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(3) .lblClass')); - var SelectedJourneyBubbleFour = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(4) .lblClass')); - var SelectedJourneyBubbleFive = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(5) .lblClass')); - var SelectedJourneyBubbleSix = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(6) .lblClass')); - var SelectedJourneyBubbleSeven = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(7) .lblClass')); - var SelectedJourneyBubbleEightOne = element(by.css('.fullSize-Journey:nth-child(8) .triple-line > .lblClass:nth-child(1)')); - var SelectedJourneyBubbleEightTwo = element(by.css('.fullSize-Journey:nth-child(8) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleEightThree = element(by.css('.fullSize-Journey:nth-child(8) .lblClass:nth-child(3)')); - var SelectedJourneyBubbleNineOne = element(by.css('.fullSize-Journey:nth-child(9) .triple-line > .lblClass:nth-child(1)')); - var SelectedJourneyBubbleNineTwo = element(by.css('.fullSize-Journey:nth-child(9) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleNineThree = element(by.css('.fullSize-Journey:nth-child(9) .lblClass:nth-child(3)')); - var SelectedJourneyBubbleTenOne = element(by.css('.fullSize-Journey:nth-child(10) .triple-line > .lblClass:nth-child(1)')); - var SelectedJourneyBubbleTenTwo = element(by.css('.fullSize-Journey:nth-child(10) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleTenThree = element(by.css('.fullSize-Journey:nth-child(10) .lblClass:nth-child(3)')); - var SelectedJourneyTitle = element(by.css('.col-md-12 > .ng-binding')); - var SelectedJourneySubTitle = element(by.css('.select-waypointTitle')); - var SelectedJourneyRightArrow = element(by.css('.glyphicon-menu-right')); - var JourneyLearnMoreSubTitle = element(by.css('.details-resourceRowTitle')); - var ViewOnMapButton = element(by.css('.col-md-4 > .btn-info')); - var JourneyViewOnMapTitle = element(by.css('.ng-binding:nth-child(2)')); - var JourneyTitleOnMap = element(by.css('#journey-view-single > .side-bar-child-text')); - var HowAmIDoingButton = element(by.css('.btn-success')); - var DivTitle = element(by.css('h2')); - var DivSubTitle = element(by.css('p:nth-child(7)')); - var DivOkButton = element(by.css('.confirm')); - var RemoveJourneyButton = element(by.css('#saveJourneyButton')); - var EC = protractor.ExpectedConditions; - var BackLink = element(by.css('.btn-primary-back-mod')); - var PersistOnMapRadioButton = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b input')); - - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await expect(PageTitle.getText()).toEqual('My Saved Journeys'); - expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map'); - expect(await Select1stJourneyTitle.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await SelectedJourneyBubbleOne.getText()).toEqual('6'); - expect(await SelectedJourneyBubbleTwo.getText()).toEqual('7'); - expect(await SelectedJourneyBubbleThree.getText()).toEqual('8'); - expect(await SelectedJourneyBubbleFour.getText()).toEqual('9'); - expect(await SelectedJourneyBubbleFive.getText()).toEqual('10'); - expect(await SelectedJourneyBubbleSix.getText()).toEqual('11'); - expect(await SelectedJourneyBubbleSeven.getText()).toEqual('12'); - expect(await SelectedJourneyBubbleEightOne.getText()).toEqual('Business'); - expect(await SelectedJourneyBubbleEightTwo.getText()).toEqual('Administratio'); - expect(await SelectedJourneyBubbleEightThree.getText()).toEqual('n B.A./B.S.'); - expect(await SelectedJourneyBubbleNineOne.getText()).toEqual('Certified'); - expect(await SelectedJourneyBubbleNineTwo.getText()).toEqual('Audio'); - expect(await SelectedJourneyBubbleNineThree.getText()).toEqual('Engineer'); - expect(await SelectedJourneyBubbleTenOne.getText()).toEqual('Administrativ'); - expect(await SelectedJourneyBubbleTenTwo.getText()).toEqual('e Services'); - expect(await SelectedJourneyBubbleTenThree.getText()).toEqual('Managers'); - await Select1stJourneyTitle.click().then(function() { - browser.sleep(5000); - }); - - expect(await SelectedJourneyTitle.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - expect(await SelectedJourneySubTitle.getText()).toEqual('6'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('7'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('8'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('9'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('10'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('11'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('12'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Business Administration B.A./B.S.'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Certified Audio Engineer'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Administrative Services Managers'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources'); - await ViewOnMapButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyViewOnMapTitle.getText()).toEqual('Journey View'); - expect(await JourneyTitleOnMap.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await Select1stJourneyTitle.click().then(function() { - browser.sleep(5000); - }); - await HowAmIDoingButton.click().then(function() { - browser.sleep(5000); - }); - expect(await DivTitle.getText()).toEqual('Oops!'); - expect(await DivSubTitle.getText()).toEqual("Sorry, we can't give you a quiz for this."); - await DivOkButton.click().then(function() { - browser.sleep(2500); - }); - await RemoveJourneyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DivTitle.getText()).toEqual('Are you sure?'); - expect(await DivSubTitle.getText()).toEqual('You will not be able to recover this journey!'); - await DivOkButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DivTitle.getText()).toEqual('Deleted!'); - expect(await DivSubTitle.getText()).toEqual('Your journey has been deleted.'); - await DivOkButton.click(); - browser.wait(EC.invisibilityOf(ViewOnMapButton)); - browser.waitForAngular(); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - await PersistOnMapRadioButton.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.wait(EC.invisibilityOf(Select1stJourneyTitle)); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MapInteraction() { - it(': MapInteraction, should navigate to map and interact with it', async function () { - var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover')); - var MapSearchTextBox = element(by.css('#searchBox')); - var MapSearchIcon = element(by.css('.glyphicon-search')); - var CollegeTabLink = element(by.xpath('//md-tab-item[2]/span'));//css('#tab-item-1 > .ng-binding')); - var CollegePath = element(by.css('#tab-content-1 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt')); - var CollegeTitle = element(by.css('#tab-content-1 #searchitem0 .side-bar-child-text:nth-child(2)')); - var CollegeDescription = element(by.css('#tab-content-1 #searchitem0 .sidebarDescription')); - var CertificationTabLink = element(by.css('#tab-item-2 > .ng-binding')); - var CertificationPath = element(by.css('#tab-content-2 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var CertificationTitle = element(by.css('#tab-content-2 #searchitem0 .side-bar-child-text:nth-child(2)')); - var CertificationDescription = element(by.css('#tab-content-2 #searchitem0 .sidebarDescription')); - var K12TabLink = element(by.css('#tab-item-3 > .ng-binding')); - var K12Path = element(by.css('#tab-content-3 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var K12Title = element(by.css('#tab-content-3 #searchitem0 .side-bar-child-text:nth-child(2)')); - var K12Description = element(by.css('#tab-content-3 #searchitem0 .sidebarDescription')); - var MilitaryTabLink = element(by.css('#tab-item-4 > .ng-binding')); - var MilitaryPath = element(by.css('#tab-content-4 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var MilitaryTitle = element(by.css('#tab-content-4 #searchitem0 .side-bar-child-text:nth-child(2)')); - var MilitaryDescription = element(by.css('#tab-content-4 #searchitem0 > div > div.panel-collapse.in > div > div > military-map-details > div > div:nth-child(3) > div')); - var CTETabLlink = element(by.css('#tab-item-5 > .ng-binding')); - var CTEPath = element(by.css('#tab-content-5 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); - var CTETitle = element(by.css('#tab-content-5 #searchitem0 .side-bar-child-text:nth-child(2)')); - var CTEDescription = element(by.css('#tab-content-5 #searchitem0 .sidebarDescription')); - var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon')); - var CareerTabLink = element(by.css('#tab-item-0 > .ng-binding')); - var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text')); - var ItemFourPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)')); - var ItemFourTitle = element(by.css('.side-bar-child-text:nth-child(2)')); - var ItemFourCareerChoicesHeader = element(by.css('.ng-scope:nth-child(1) > .panel > .sidebarPanelHeading')); - var ItemFourCareerChoicesStat = element(by.css('.ng-scope:nth-child(1) > .panel > .panel-body > .ng-binding')); - var ItemFourSkillsHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading')); - var ItemFourSkillsStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding')); - var ItemFourAbilitiesHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading')); - var ItemFourAbilitiesStat = element(by.css('.ng-scope:nth-child(3) > .panel > .panel-body > .ng-binding')); - var ItemFourKnowledgeChoicesHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading')); - var ItemFourKnowledgeChoicesStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding')); - var ItemFourViewOnMapIcon = element(by.css('#searchitem3 .fas')); - var CollapseIconDetailPanel = element(by.css('.btn-info .fa-angle-left')); - var MapZoomOutIcon = element(by.css('.glyphicon-minus')); - var HideJourneyButton = element(by.css('#persistJourneyButton > .ng-binding')); - var MapZoomInIcon = element(by.css('.glyphicon-plus')); - var ExpandIconDetailPanel = element(by.css('div:nth-child(2) > .back-btn-mod')); - var BackLink = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > div:nth-child(1) > div')); - var ItemOnePath = element(by.css('#searchitem0 .ng-scope > div > .side-bar-ancestory-txt')); - var ItemOneTitle = element(by.css('#searchitem0 .side-bar-child-text')); - var ItemDescription = element(by.css('.sidebarDescription')); - var ItemOneDegreeHeader = element(by.css('.ng-scope > .panel-heading')); - var ItemOneDegree = element(by.css('.panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var ItemOneDegreeOneStat = element(by.css('.ng-scope > .panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(2)')); - var ItemOneDegreeTwo = element(by.css('.panel-body > .ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var ItemOneDegreeTwoStat = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)')); - var ItemOneDegreeThree = element(by.css('.panel-body > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var ItemOneDegreeThreeStat = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); - var ItemOneSalaryHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading')); - var ItemOneSalaryStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding')); - var ItemOneGrowthHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading')); - var ItemOneGrowthStat = element(by.css('.panel-body > .ng-binding:nth-child(2)')); - var ItemOneGrowthStatTwo = element(by.css('.ng-scope > .panel > .panel-body > .ng-scope:nth-child(3)')); - var ItemOneJobOpeningsHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading')); - var ItemOneJobOpeningsStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding')); - var ItemOneEmployedHeader = element(by.css('.ng-scope:nth-child(5) .sidebarPanelHeading')); - var ItemOneEmployedStat = element(by.css('.ng-scope:nth-child(5) .panel-body > .ng-binding')); - var ItemOneViewOnMapIcon = element(by.css('#searchitem0 .fas')); - var MapSearchClearIcon = element(by.css('.glyphicon-remove')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); - - MapHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst'); - await MapSearchIcon.click().then(function() { - browser.sleep(10000); - }); - await CollegeTabLink.click().then(function() { - browser.sleep(2500); - }); - await CollegePath.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >'); - expect(await CollegeTitle.getText()).toEqual('Publishing Software'); - expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)'); - browser.sleep(2500); - await CertificationTabLink.click().then(function() { - browser.sleep(2500); - }); - await CertificationPath.click().then(function() { - browser.sleep(2500); - }); - expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >'); - expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst'); - expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.'); - await K12TabLink.click().then(function() { - browser.sleep(2500); - }); - await K12Path.click().then(function() { - browser.sleep(2500); - }); - expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >'); - expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); - expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); - await MilitaryTabLink.click().then(function() { - browser.sleep(2500); - }); - await MilitaryPath.click().then(function() { - browser.sleep(2500); - }); - expect(await MilitaryPath.getText()).toEqual('Calibration Technician > STEM >'); - expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts'); - expect(await MilitaryDescription.getText()).toEqual('No details for this location.'); - await CTETabLlink.click().then(function() { - browser.sleep(2500); - }); - await CTEPath.click().then(function() { - browser.sleep(5000); - }); - expect(await CTEPath.getText()).toEqual('Information Technology > Programming & Software Development >'); - expect(await CTETitle.getText()).toEqual('Quality Assurance'); - expect(await CTEDescription.getText()).toEqual('Perform quality assurance tasks as part of the software development cycle.'); - await ArrowTabLink.click().then(function() { - browser.sleep(2500); - }); - await CareerTabLink.click().then(function() { - browser.sleep(2500); - }); - await SearchCareerFour.click().then(function() { - browser.sleep(2500); - }); - expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); - expect(await ItemFourCareerChoicesHeader.getText()).toEqual('CAREER CHOICES'); - expect(await ItemFourCareerChoicesStat.getText()).toEqual('2'); - expect(await ItemFourSkillsHeader.getText()).toEqual('SKILLS'); - expect(await ItemFourSkillsStat.getText()).toEqual('35'); - expect(await ItemFourAbilitiesHeader.getText()).toEqual('ABILITIES'); - expect(await ItemFourAbilitiesStat.getText()).toEqual('52'); - expect(await ItemFourKnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); - expect(await ItemFourKnowledgeChoicesStat.getText()).toEqual('33'); - browser.actions().mouseMove(ItemFourViewOnMapIcon).perform().then(function() { - browser.sleep(2500); - }); - await ItemFourViewOnMapIcon.click(); - browser.sleep(2500); - expect(await ItemFourPath.getText()).toEqual('Career > Cyber Security >'); - expect(await ItemFourTitle.getText()).toEqual('Software Development (DEV)'); - expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); - expect(await ItemFourCareerChoicesHeader.getText()).toEqual('CAREER CHOICES'); - expect(await ItemFourCareerChoicesStat.getText()).toEqual('2'); - expect(await ItemFourSkillsHeader.getText()).toEqual('SKILLS'); - expect(await ItemFourSkillsStat.getText()).toEqual('35'); - expect(await ItemFourAbilitiesHeader.getText()).toEqual('ABILITIES'); - expect(await ItemFourAbilitiesStat.getText()).toEqual('52'); - expect(await ItemFourKnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); - expect(await ItemFourKnowledgeChoicesStat.getText()).toEqual('33'); - await CollapseIconDetailPanel.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await HideJourneyButton.click().then(function() { - browser.sleep(2500); - }); - await MapZoomOutIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(1000); - }); - await MapZoomInIcon.click().then(function() { - browser.sleep(1000); - }); - await HideJourneyButton.click().then(function() { - browser.sleep(2500); - }); - await ExpandIconDetailPanel.click().then(function() { - browser.sleep(2500); - }); - await BackLink.click().then(function() { - browser.sleep(2500); - }); - await ItemOneTitle.click().then(function() { - browser.sleep(2500); - }); - expect(await ItemOnePath.getText()).toEqual('IT > Programming & Software Development >'); - expect(await ItemOneTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers'); - expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.'); - expect(await ItemOneDegreeHeader.getText()).toEqual('TYPICAL DEGREE'); - expect(await ItemOneDegree.getText()).toEqual('College (4 Year)'); - expect(await ItemOneDegreeOneStat.getText()).toEqual('70%'); - expect(await ItemOneDegreeTwo.getText()).toEqual("Associate's degree"); - expect(await ItemOneDegreeTwoStat.getText()).toEqual('15%'); - expect(await ItemOneDegreeThree.getText()).toEqual('Professional degree certificate'); - expect(await ItemOneDegreeThreeStat.getText()).toEqual('7%'); - expect(await ItemOneSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY'); - expect(await ItemOneSalaryStat.getText()).toEqual('$88,510'); - expect(await ItemOneGrowthHeader.getText()).toEqual('PROJECTED GROWTH'); - expect(await ItemOneGrowthStat.getText()).toEqual('9.3'); - expect(await ItemOneGrowthStatTwo.getText()).toEqual('%'); - expect(await ItemOneJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS'); - expect(await ItemOneJobOpeningsStat.getText()).toEqual('22,400'); - browser.actions().mouseMove(ItemOneViewOnMapIcon).perform().then(function() { - browser.sleep(2500); - }); - expect(await ItemOneEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED'); - expect(await ItemOneEmployedStat.getText()).toEqual('287,200'); - await MapSearchClearIcon.click(); - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyActivityJourneys() { - it(': MyActivityJourneys, should validate My Journeys widget under the My Activity Dashboard', async function () { - var MyDashboardLink = element(by.linkText('My Dashboards')); - var MyActivityLink = element(by.linkText('My Activity')); - var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)')); - var ViewAllLink = element(by.css('.hover-color:nth-child(3)')); - var MySavedJourneysTitle = element(by.css('.jrnys_lead-body-copy')); - var ViewOnMapText = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); - var MySavedJourneyOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer')); - var MySavedJourneyTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer')); - var MySavedJourneyThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer')); - var MySavedJournyeFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer')); - var JourneyTitleOne = element(by.css('.borderTop .jrnys_body-copy')); - var JourneyLearnMoreLinkOne = element(by.css('.borderTop > #appendHere > .jrnys_support-text')); - var JourneyLearnMoreTitle = element(by.css('.col-md-12 > .ng-binding')); - var BackLink = element(by.css('.btn-primary-back-mod')); - var JourneyProgressStepsOne = element(by.css('.borderTop')); - var JourneyTitleTwo = element(by.css('#appendHere > div.journeyListWidgetDisabled.ng-hide')); - var JourneyLearnMoreLinkTwo = element(by.css('.hideSmallRange #appendHere > .jrnys_support-text')); - var JourneyProgressStepsTwo = element(by.css('.hideSmallRange > div')); - var JourneyTitleThree = element(by.css('#appendHere > div.jrnys_body-copy.ellipsis-on-desktop-sm-view.ng-binding')); - var JourneyLearnMoreLinkThree = element(by.css('.hideMidRange #appendHere > .jrnys_support-text')); - var JourneyProgressStepsThree = element(by.css('.hideMidRange > div')); - var JourneyTitleFour = element(by.css('#appendHere > div.jrnys_body-copy.ellipsis-on-desktop-sm-view.ng-binding')); - var JourneyLearnMoreLinkFour = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) #appendHere > .jrnys_support-text')); - var JourneyProgressStepsFour = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div')); - var CreateAJourneyButton = element(by.css('.text-right > .btn')); - - browser.actions().mouseMove(element(by.css('.dashTitleBlock > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1500); - }); - await MyDashboardLink.click().then(function() { - browser.sleep(1500); - }); - browser.actions().mouseMove(element(by.css('.dashboard-menu > .dropDownFAEdits:nth-child(3) > a'))).perform().then(function() { - browser.sleep(1000); - }); - await MyActivityLink.click().then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Journeys'); - await ViewAllLink.click().then(function() { - browser.sleep(5000); - }); - expect(await MySavedJourneysTitle.getText()).toEqual('My Saved Journeys'); - expect(await ViewOnMapText.getText()).toEqual('Select a Journey to show it on the map'); - expect(await MySavedJourneyOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await MySavedJourneyTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); - expect(await MySavedJourneyThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await MySavedJournyeFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - await JourneyLearnMoreLinkOne.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyLearnMoreTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyProgressStepsOne.getText()).toContain('7 steps (0 Complete)'); - //expect(await JourneyTitleTwo.getText()).toEqual(''); - expect(await JourneyLearnMoreLinkTwo.getText()).toEqual('Learn More'); - expect(await JourneyProgressStepsTwo.getText()).toContain('4 steps (0 Complete)'); - //expect(await JourneyTitleThree.getText()).toEqual(''); - expect(await JourneyLearnMoreLinkThree.getText()).toEqual('Learn More'); - expect(await JourneyProgressStepsThree.getText()).toContain('5 steps (0 Complete)'); - //expect(await JourneyTitleFour.getText()).toEqual(''); - expect(await JourneyLearnMoreLinkFour.getText()).toEqual('Learn More'); - expect(await JourneyProgressStepsFour.getText()).toContain('13 steps (0 Complete)'); - browser.executeScript('window.scrollTo(0, 235);').then(function() { - browser.sleep(1000); - }); - expect(await CreateAJourneyButton.getText()).toContain('Create a Journey'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function SurveyMetrics() { - it(': SurveyMetrics, should navigate to My Activity Dashboard and interact with Survey Metrics widget and validate data of 07/30/2019', async function () { - var SurveyMetricsTitle = element(by.css('.widget-round-corners:nth-child(2) .fullHeight > .jrnys_lead-body-copy')); - var MostRecentResultsTitle = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-4')); - var MostRecentResultsStat = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-9')); - var SurveyHistoryTitle = element(by.css('.inner-content-padding:nth-child(2) > .col-sm-4')); - var SurveyHistoryStat = element(by.css('.jrnys_support-text:nth-child(2) > .ng-binding')); - var TimesTakenTitle = element(by.css('.inner-content-padding:nth-child(3) > .col-sm-4')); - var TimesTakenStat = element(by.css('.inner-content-padding:nth-child(3) > .col-sm-9')); - var NumberOfManualChangesTitle = element(by.css('.inner-content-padding:nth-child(4) > .col-sm-4')); - var NumberOfManualChangesStat = element(by.css('.inner-content-padding:nth-child(4) > .col-sm-9')); - var SurveyResultsViewAll = element(by.linkText('View All')); - var SurveyResultsDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var SurveyResultsDivTop3 = element(by.css('.jrnys_main-headline')); - var SurveyResultsDivSubTitle = element(by.css('.jrnys_lead-body-copy:nth-child(4)')); - var SurveyResultsDivSubTitleTwo = element(by.css('.jrnys_lead-body-copy:nth-child(6)')); - var SurveyResultsDivSubText = element(by.css('.col-sm-8:nth-child(1)')); - var SurveyResultsDivRealistic = element(by.css('.col-sm-6:nth-child(1) > .jrnys_lead-body-copy')); - var SurveyResultsDivRealisticReadMore = element(by.css('.text-center:nth-child(1) > .text-color-7a')); - var SurveyResultsReadMoreTitle = element(by.css('.col-lg-12 > .ng-binding')); - var SurveyResultsReadMoreDivDescription = element(by.css('.col-lg-12:nth-child(3)')); - var SurveyResultsDivXCloseLink = element(by.css('.default-color4a')); - var SurveyResultsDivInvestigative = element(by.css('.col-sm-6:nth-child(2) > .jrnys_lead-body-copy')); - var SurveyResultsDivInvestigativeReadMore = element(by.css('.text-center:nth-child(2) > .text-color-7a')); - var SurveyResultsDivArtistic = element(by.css('.text-center:nth-child(3) > .jrnys_lead-body-copy')); - var SurveyResultsDivArtisticReadMore = element(by.css('.text-center:nth-child(3) > .text-color-7a')); - var SurveyResultsDivSocial = element(by.css('.text-center:nth-child(4) > .jrnys_lead-body-copy')); - var SurveyResultsDivSocialReadMore = element(by.css('.text-center:nth-child(4) > .text-color-7a')); - var SurveyResultsDivEnterprising = element(by.css('.text-center:nth-child(5) > .jrnys_lead-body-copy')); - var SurveyResultsDivEnterprisingReadMore = element(by.css('.text-center:nth-child(5) > .text-color-7a')); - var SurveyResultsDivConventional = element(by.css('.text-center:nth-child(6) > .jrnys_lead-body-copy')); - var SurveyResultsDivConventionalReadMore = element(by.css('.text-center:nth-child(6) > .text-color-7a')); - var SurveyResultsReadMoreXCloseLink = element(by.css('.close > .fa')); - - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - expect(await SurveyMetricsTitle.getText()).toEqual('Survey Metrics View All'); - expect(await MostRecentResultsTitle.getText()).toEqual('Most Recent Result'); - expect(await MostRecentResultsStat.getText()).toEqual('Enterprising, Investigative, and Conventional'); - expect(await SurveyHistoryTitle.getText()).toEqual('Survey History'); - expect(await SurveyHistoryStat.getText()).toContain('Last Taken 2020-'); - expect(await TimesTakenTitle.getText()).toEqual('Times Taken'); - expect(await NumberOfManualChangesTitle.getText()).toEqual('Number of Manual Changes'); - await SurveyResultsViewAll.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivTitle.getText()).toContain('Survey Results for Automated Regression'); - element(by.cssContainingText('option', '2019-07-30 | 15:48:30')).click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivSubTitle.getText()).toContain("Automated's top strengths are:"); - expect(await SurveyResultsDivTop3.getText()).toContain('Artistic, Realistic, and Investigative'); - expect(await SurveyResultsDivSubTitleTwo.getText()).toContain('What does this mean?'); - expect(await SurveyResultsDivSubText.getText()).toContain('Artistic personality types are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative. Realistic personality types are independent, stable, persistent, genuine, practical, and thrifty.'); - expect(await SurveyResultsDivRealistic.getText()).toContain('Realistic'); - await SurveyResultsDivRealisticReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Realistic'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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.'); - await SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivInvestigative.getText()).toContain('Investigative'); - await SurveyResultsDivInvestigativeReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Investigative'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivArtistic.getText()).toContain('Artistic'); - await SurveyResultsDivArtisticReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Artistic'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivSocial.getText()).toContain('Social'); - await SurveyResultsDivSocialReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Social'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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.'); - await SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivEnterprising.getText()).toContain('Enterprising'); - await SurveyResultsDivEnterprisingReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Enterprising'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SurveyResultsDivConventional.getText()).toContain('Conventional'); - await SurveyResultsDivConventionalReadMore.click(); - browser.sleep(1000); - expect(await SurveyResultsReadMoreTitle.getText()).toContain('Conventional'); - expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await SurveyResultsDivXCloseLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function Logins() { - it(': Logins, should validate Logins widget under the My Activity Dashboard', async function () { - var LoginsWidgetTitle = element(by.css('.jrnys_lead-body-copy .col-lg-4')); - var LastLoggedInHeader = element(by.css('.login-display-row:nth-child(1) > .col-lg-4')); - var MonthOfHeader = element(by.css('.month-picker-lbl')); - var TotalLoginsHeader = element(by.css('.row:nth-child(3) > .col-lg-4')); - var TotalLoginsData = element(by.css('.row:nth-child(3) > .col-lg-8')); - var WeeklyCeilingLogin = element(by.css('text:nth-child(19)')); - var SundayHeader = element(by.css('text:nth-child(8)')); - var MondayHeader = element(by.css('text:nth-child(9)')); - var MondayData = element(by.css('rect:nth-child(2)')); - var TuesdayHeader = element(by.css('text:nth-child(10)')); - var TuesdayData = element(by.css('rect:nth-child(3)')); - var WednesdayHeader = element(by.css('text:nth-child(11)')); - var WednesdayData = element(by.css('rect:nth-child(4)')); - var ThursdayHeader = element(by.css('text:nth-child(12)')); - var ThursdayData = element(by.css('rect:nth-child(5)')); - var FridayHeader = element(by.css('text:nth-child(13)')); - var SaturdayHeader = element(by.css('text:nth-child(14)')); - var CalendarIcon = element(by.css('.fa-calendar')); - var CalendarLeftIcon = element(by.css('.glyphicon-chevron-left')); - var MonthOfNovember = element(by.xpath('//span[contains(.,"November")]')); - var ViewAllLink = element(by.css('.col-lg-4 > .text-color-7a')); - var LoginsDivTitle = element(by.css('.modalTitle')); - var November2019 = element(by.css('#loginMonthPicker > .month-picker-lbl')); - var LastLoggedInDivHeader = element(by.css('.row:nth-child(2) > .col-lg-3')); - var TotalLoginsDivHeader = element(by.css('.row:nth-child(3) > .col-lg-3')); - var TotalLoginsDivData = element(by.css('.row:nth-child(3) > .col-lg-9')); - var FrequencyOfLoginsDivHeader = element(by.css('.login-display-row:nth-child(4) > .col-xs-12')); - var FavoriteDaysToLoginDivHeader = element(by.css('.col-md-8 > div:nth-child(1)')); - var FavoriteDayDivHeaderOne = element(by.css('.col-md-8 > .ng-scope:nth-child(2) > .ng-binding')); - var FavoriteDayDivHeaderTwo = element(by.css('.ng-scope:nth-child(3) > .ng-binding')); - var FavoriteDayDivHeaderThree = element(by.css('.ng-scope:nth-child(4) > .ng-binding')); - var MonthLoginCeiling = element(by.css('text:nth-child(65)')); - var November1Header = element(by.css('#monthChart > text:nth-child(31)')); - var November2Header = element(by.css('#monthChart > text:nth-child(32)')); - var November3Header = element(by.css('#monthChart > text:nth-child(33)')); - var November4Header = element(by.css('#monthChart > text:nth-child(34)')); - var November5Header = element(by.css('#monthChart > text:nth-child(35)')); - var November6Header = element(by.css('#monthChart > text:nth-child(36)')); - var November7Header = element(by.css('#monthChart > text:nth-child(37)')); - var November8Header = element(by.css('#monthChart > text:nth-child(38)')); - var November9Header = element(by.css('#monthChart > text:nth-child(39)')); - var November10Header = element(by.css('#monthChart > text:nth-child(40)')); - var November11Header = element(by.css('#monthChart > text:nth-child(41)')); - var November12Header = element(by.css('#monthChart > text:nth-child(42)')); - var November13Header = element(by.css('#monthChart > text:nth-child(43)')); - var November14Header = element(by.css('#monthChart > text:nth-child(44)')); - var November15Header = element(by.css('#monthChart > text:nth-child(45)')); - var November16Header = element(by.css('#monthChart > text:nth-child(46)')); - var November17Header = element(by.css('#monthChart > text:nth-child(47)')); - var November18Header = element(by.css('#monthChart > text:nth-child(48)')); - var November18Data = element(by.css('#monthChart > rect:nth-child(18)')); - var November19Header = element(by.css('text:nth-child(49)')); - var November19Data = element(by.css('#monthChart > rect:nth-child(19)')); - var November20Header = element(by.css('text:nth-child(50)')); - var November21Header = element(by.css('text:nth-child(51)')); - var November22Header = element(by.css('text:nth-child(52)')); - var November23Header = element(by.css('#monthChart > text:nth-child(53)')); - var November24Header = element(by.css('text:nth-child(54)')); - var November25Header = element(by.css('text:nth-child(55)')); - var November26Header = element(by.css('text:nth-child(56)')); - var November27Header = element(by.css('text:nth-child(57)')); - var November28Header = element(by.css('text:nth-child(58)')); - var November29Header = element(by.css('text:nth-child(59)')); - var November30Header = element(by.css('text:nth-child(60)')); - var MonthlyTuesdayCeiling = element(by.css('#hourChart > text:nth-child(53)')); - var MonthlyTuesday12amHeader = element(by.css('text:nth-child(25)')); - var MonthlyTuesday3amHeader = element(by.css('text:nth-child(28)')); - var MonthlyTuesday6amHeader = element(by.css('#hourChart > text:nth-child(31)')); - var MonthlyTuesday9amHeader = element(by.css('#hourChart > text:nth-child(34)')); - var MonthlyTuesday12pmHeader = element(by.css('#hourChart > text:nth-child(37)')); - var MonthlyTuesday3pmHeader = element(by.css('#hourChart > text:nth-child(40)')); - var MonthlyTuesday3pmData = element(by.css('#hourChart > rect:nth-child(16)')); - var MonthlyTuesday6pmHeader = element(by.css('#hourChart > text:nth-child(43)')); - var MonthlyTuesday9pmHeader = element(by.css('#hourChart > text:nth-child(46)')); - var LoginsDivXCloseLink = element(by.css('.close')); - - browser.executeScript('window.scrollTo(0, 235);').then(function() { - browser.sleep(2500); - }); - expect(await LoginsWidgetTitle.getText()).toEqual('Logins View All'); - expect(await LastLoggedInHeader.getText()).toEqual('Last Logged In:'); - expect(await MonthOfHeader.getText()).not.toEqual('Month of November, 2019'); - expect(await TotalLoginsHeader.getText()).toEqual('Total Logins:'); - expect(await SundayHeader.getText()).toEqual('S'); - expect(await MondayHeader.getText()).toEqual('M'); - browser.actions().mouseMove(MondayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await TuesdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(TuesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await WednesdayHeader.getText()).toEqual('W'); - browser.actions().mouseMove(WednesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await ThursdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(ThursdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await FridayHeader.getText()).toEqual('F'); - expect(await SaturdayHeader.getText()).toEqual('S'); - await CalendarIcon.click().then(function() { - browser.sleep(2500); - }); - await CalendarLeftIcon.click().then(function() { - browser.sleep(2500); - }); - await MonthOfNovember.click().then(function() { - browser.sleep(2500); - }); - expect(await LoginsWidgetTitle.getText()).toEqual('Logins View All'); - expect(await LastLoggedInHeader.getText()).toEqual('Last Logged In:'); - expect(await MonthOfHeader.getText()).not.toEqual('Month of November, 2019'); - expect(await TotalLoginsHeader.getText()).toEqual('Total Logins:'); - expect(await WeeklyCeilingLogin.getText()).toEqual('132'); - expect(await TotalLoginsData.getText()).toEqual('404'); - expect(await MondayHeader.getText()).toEqual('M'); - browser.actions().mouseMove(MondayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await TuesdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(TuesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await WednesdayHeader.getText()).toEqual('W'); - browser.actions().mouseMove(WednesdayData).perform().then(function() { - browser.sleep(2500); - }); - expect(await ThursdayHeader.getText()).toEqual('T'); - browser.actions().mouseMove(ThursdayData).perform().then(function() { - browser.sleep(2500); - }); - await ViewAllLink.click().then(function() { - browser.sleep(5000); - }); - expect(await LoginsDivTitle.getText()).toEqual('Login Results for Automated Regression'); - expect(await November2019.getText()).toEqual('11/2019'); - expect(await LastLoggedInDivHeader.getText()).toEqual('Last Logged In:'); - expect(await TotalLoginsDivHeader.getText()).toEqual('Total Logins:'); - expect(await TotalLoginsDivData.getText()).toEqual('404'); - expect(await FrequencyOfLoginsDivHeader.getText()).toEqual('Frequency of logins for the month of November 2019:'); - expect(await FavoriteDaysToLoginDivHeader.getText()).toEqual('Favorite days to login'); - expect(await FavoriteDayDivHeaderOne.getText()).toEqual('Tuesday - 132'); - expect(await FavoriteDayDivHeaderTwo.getText()).toEqual('Monday - 110'); - expect(await FavoriteDayDivHeaderThree.getText()).toEqual('Thursday - 101'); - expect(await MonthLoginCeiling.getText()).toEqual('60'); - expect(await November1Header.getText()).toEqual('1'); - expect(await November2Header.getText()).toEqual('2'); - expect(await November3Header.getText()).toEqual('3'); - expect(await November4Header.getText()).toEqual('4'); - expect(await November5Header.getText()).toEqual('5'); - expect(await November6Header.getText()).toEqual('6'); - expect(await November7Header.getText()).toEqual('7'); - expect(await November8Header.getText()).toEqual('8'); - expect(await November9Header.getText()).toEqual('9'); - expect(await November10Header.getText()).toEqual('10'); - expect(await November11Header.getText()).toEqual('11'); - expect(await November12Header.getText()).toEqual('12'); - expect(await November13Header.getText()).toEqual('13'); - expect(await November14Header.getText()).toEqual('14'); - expect(await November15Header.getText()).toEqual('15'); - expect(await November16Header.getText()).toEqual('16'); - expect(await November17Header.getText()).toEqual('17'); - expect(await November18Header.getText()).toEqual('18'); - browser.actions().mouseMove(November18Data).perform().then(function() { - browser.sleep(2500); - }); - expect(await November19Header.getText()).toEqual('19'); - browser.actions().mouseMove(November19Data).perform().then(function() { - browser.sleep(2500); - }); - expect(await November20Header.getText()).toEqual('20'); - expect(await November21Header.getText()).toEqual('21'); - expect(await November22Header.getText()).toEqual('22'); - expect(await November23Header.getText()).toEqual('23'); - expect(await November24Header.getText()).toEqual('24'); - expect(await November25Header.getText()).toEqual('25'); - expect(await November26Header.getText()).toEqual('26'); - expect(await November27Header.getText()).toEqual('27'); - expect(await November28Header.getText()).toEqual('28'); - expect(await November29Header.getText()).toEqual('29'); - expect(await November30Header.getText()).toEqual('30'); - expect(await MonthlyTuesdayCeiling.getText()).toEqual('24'); - expect(await MonthlyTuesday12amHeader.getText()).toEqual('12a'); - expect(await MonthlyTuesday3amHeader.getText()).toEqual('3a'); - expect(await MonthlyTuesday6amHeader.getText()).toEqual('6a'); - expect(await MonthlyTuesday9amHeader.getText()).toEqual('9a'); - expect(await MonthlyTuesday12pmHeader.getText()).toEqual('12p'); - expect(await MonthlyTuesday3pmHeader.getText()).toEqual('3p'); - browser.actions().mouseMove(MonthlyTuesday3pmData).perform().then(function() { - browser.sleep(2500); - }); - expect(await MonthlyTuesday6pmHeader.getText()).toEqual('6p'); - expect(await MonthlyTuesday9pmHeader.getText()).toEqual('9p'); - await LoginsDivXCloseLink.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InstitutionMetrics() { - it(': InstitutionMetrics, should validate Institution Metrics widget data', async function () { - var InstitutionMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .widget-padding > .jrnys_lead-body-copy')); - var InstitutionsOfInterestTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy')); - var InstitutionsOfInterestStat = element(by.css('.fullHeight:nth-child(1) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text')); - var AverageCostTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy')); - var AverageCostStat = element(by.css('.fullHeight:nth-child(1) > .widget-padding .td-metrics-data-width:nth-child(4) .jrnys_stand-out-text')); - var AverageSATACTScoresTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy')); - var AverageSATSubTitle = element(by.css('.text-left > .col-sm-3:nth-child(2)')); - var AverageSATReadingWritingStat = element(by.css('.col-md-9:nth-child(3) > div:nth-child(1)')); - var AverageSATMathStat = element(by.css('.col-md-9:nth-child(3) > div:nth-child(2)')); - var AverageACTSubTitle = element(by.css('.jrnys_stand-out-text:nth-child(4)')); - var AverageACTEnglishStat = element(by.css('.col-md-9 > .ng-binding:nth-child(1)')); - var AverageACTMathStat = element(by.css('.col-md-9 > .ng-binding:nth-child(2)')); - var AverageACTCumulativeStat = element(by.css('.col-md-9 > .ng-binding:nth-child(3)')); - var TopThreeLocationsTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)')); - var TopThreeLocationsStat = element(by.css('.td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(2)')); - var TypeOfInstitutionTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)')); - var TypeOfInstitutionStatOne = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(2)')); - var TypeOfInstitutionStatTwo = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(3)')); - var AverageGraduationRateTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)')); - var AverageGraduationRateStat = element(by.css('.col-sm-4:nth-child(2)')); - - /*browser.actions().mouseMove(element(by.css('#id > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 720);').then(function() { - browser.sleep(2500); - }); - expect(await InstitutionMetricsWidgetTitle.getText()).toEqual('Institution Metrics'); - expect(await InstitutionsOfInterestTitle.getText()).toEqual('Institutions Of Interest'); - expect(await InstitutionsOfInterestStat.getText()).toContain('3'); - expect(await AverageCostTitle.getText()).toContain('Average Cost'); - expect(await AverageCostStat.getText()).toContain('24,391/year'); - expect(await AverageSATACTScoresTitle.getText()).toContain('Average SAT/ACT Scores'); - expect(await AverageSATSubTitle.getText()).toContain('SAT'); - expect(await AverageSATReadingWritingStat.getText()).toContain('Reading & Writing - 612'); - expect(await AverageSATMathStat.getText()).toContain('Math - 615'); - expect(await AverageACTSubTitle.getText()).toContain('ACT'); - expect(await AverageACTEnglishStat.getText()).toContain('English - 27'); - expect(await AverageACTMathStat.getText()).toContain('Math - 26'); - expect(await AverageACTCumulativeStat.getText()).toContain('Cumulative - 27'); - expect(await TopThreeLocationsTitle.getText()).toContain('Top 3 Locations'); - expect(await TopThreeLocationsStat.getText()).toContain('CA'); - expect(await TypeOfInstitutionTitle.getText()).toContain('Type of Institution'); - expect(await TypeOfInstitutionStatOne.getText()).toContain('Public - 33%'); - expect(await TypeOfInstitutionStatTwo.getText()).toContain('Private nonprofit - 67%'); - expect(await AverageGraduationRateTitle.getText()).toContain('Average Graduation Rate'); - expect(await AverageGraduationRateStat.getText()).toContain('77%'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InstitutionsOfInterest() { - it(': InstitutionsOfInterest, should validate Institutions Of Interest widget data', async function () { - var InstitutionsOfInterestWidgetTitle = element(by.css('#id > .jrnys_lead-body-copy')); - var InstitutionsCardTitleOne = element(by.css('.col-xs-4:nth-child(1) .jrnys_body-copy')); - var InstitutionsUnfollowIconOne = element(by.css('.iconSpacing .journey-follow-selected')); - var InstitutionCardTitleTwo = element(by.css('.col-xs-4:nth-child(2) .jrnys_body-copy')); - var InstitutionCardTitleThree = element(by.css('.col-xs-4:nth-child(3) .jrnys_body-copy')); - var InstitutionOfInterestViewAllLink = element(by.css('.jrnys_lead-body-copy:nth-child(1) > .ng-binding')); - var InstitutionOfInterestDivTitle = element(by.css('.col-sm-12 > .ng-binding')); - var EllipsisInstitutions = element(by.css('.glyphicon-option-vertical:nth-child(1)')); - var InstitutionLearnMoreLink = element(by.css('.row:nth-child(1) > .col-xs-9 > span')); - var InstitutionDetailsLink = element(by.css('.row:nth-child(2) > .col-xs-9 > span')); - var UndergraduateStudentsTitle = element(by.css('.ng-scope:nth-child(1) > td > .item-title')); - var UndergraduateStudentsStat = element(by.css('.ng-scope:nth-child(1) > td > .item-body')); - var TuitionTitle = element(by.css('.ng-scope:nth-child(2) > td > .item-title')); - var TuitionStat = element(by.css('.ng-scope:nth-child(2) > td > .item-body')); - var GraduationRateTitle = element(by.css('.ng-scope:nth-child(3) > td > .item-title')); - var GraduationRateStat = element(by.css('.ng-scope:nth-child(3) > td > .item-body')); - var EarningsAfterSchoolTitle = element(by.css('.ng-scope:nth-child(4) > td > .item-title')); - var EarningsAfterSchoolStat = element(by.css('.ng-scope:nth-child(4) > td > .item-body')); - var InstitutionOfInterestDivXCloseLink = element(by.css('.default-color4a')); - var InstitutionCardLearnMoreButton = element(by.css('.in > .panel-body .row:nth-child(1) span')); - - /*browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 1200);').then(function() { - browser.sleep(2500); - }); - expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All'); - expect(await InstitutionsCardTitleOne.getText()).toEqual('Golden Gate University-San Francisco'); - await InstitutionsUnfollowIconOne.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionCardTitleTwo.getText()).toEqual('San Diego State University'); - expect(await InstitutionCardTitleThree.getText()).toEqual('University of San Diego'); - await InstitutionOfInterestViewAllLink.click(); - expect(await InstitutionOfInterestDivTitle.getText()).toEqual('Institutions visited by Automated Regression'); - await EllipsisInstitutions.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionLearnMoreLink.getText()).toContain('Learn More'); - expect(await InstitutionDetailsLink.getText()).toContain('Details'); - expect(await UndergraduateStudentsTitle.getText()).toContain('Undergraduate Students'); - expect(await UndergraduateStudentsStat.getText()).toContain('29,781'); - expect(await TuitionTitle.getText()).toContain('Tuition'); - expect(await TuitionStat.getText()).toContain('$14,030'); - expect(await GraduationRateTitle.getText()).toContain('Graduation Rate'); - expect(await GraduationRateStat.getText()).toContain('0.7381'); - expect(await EarningsAfterSchoolTitle.getText()).toContain('Earnings After School'); - expect(await EarningsAfterSchoolStat.getText()).toContain('$51,000'); - browser.sleep(1000); - await InstitutionCardLearnMoreButton.click().then(function() { - browser.sleep(2500); - }) - browser.getAllWindowHandles().then(function (handles) { - var AtAGlanceWidgetTitle = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy')); - var FourYearTitle = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var FourYearStat = element(by.css('.row-height:nth-child(1) .ellipsis')); - var UndergraduateStudentsTitle = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var UndergraduateStudentsStat = element(by.css('.row-height:nth-child(2) .col-sm-offset-4 > div')); - var LocationTitle = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var LocationStat = element(by.css('.row-height:nth-child(3) .col-sm-offset-4 > div')); - var ClassroomsTitle = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var ClassroomsStat = element(by.css('.row-height:nth-child(4) .col-sm-offset-4 > div')); - var CostTitle = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var CostStat = element(by.css('.row-height:nth-child(5) .ellipsis')); - var GraduationRateTitle = element(by.css('.row-height:nth-child(6) .jrnys_support-text')); - var GraduationRateStat = element(by.css('.row-height:nth-child(6) .ellipsis')); - var ReturningStudentsTitle = element(by.css('.row-height:nth-child(7) .jrnys_support-text')); - var ReturningStudentsStat = element(by.css('.row-height:nth-child(7) .ellipsis')); - var AfterSchoolEarningsTitle = element(by.css('.row-height:nth-child(8) .jrnys_support-text')); - var AfterSchoolEarningsStat = element(by.css('.row-height:nth-child(8) .ellipsis')); - var PayingDownDebtTitle = element(by.css('.row-height:nth-child(9) .jrnys_support-text')); - var PayingDownDebtStat = element(by.css('.row-height:nth-child(9) .ellipsis')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - var LearnMoreInfoIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); - var DivTitle = element(by.css('.col-lg-12 > .ng-binding')); - var LearnMoreInfoDescription = element(by.linkText('http://www.sdsu.edu')); - var DivXCloseLink = element(by.css('.close > .fa')); - var LocationAndContactWidgetTitle = element(by.css('.widget-round-corners > .fullHeight > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var SchoolMapName = element(by.css('.col-xs-4:nth-child(1) > .ng-binding:nth-child(1)')); - var MapAddress = element(by.css('.col-xs-4 > .ng-binding:nth-child(2)')); - var AcademicProgramsWidgetTitle = element(by.css('#acadProgramsid > .jrnys_lead-body-copy')); - var AcademicProgramsInfoIcon = element(by.css('.header-carousel-icon')); - var DivDescription = element(by.css('.col-lg-12:nth-child(3)')); - var AcademicProgramsCardOne = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .jrnys_body-copy')); - var AcademicProgramsCardTwo = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .jrnys_body-copy')); - var AcademicProgramsCardThree = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .jrnys_body-copy')); - var TestScoresWidgetTitle = element(by.css('#TestScoresID .jrnys_lead-body-copy')); - var TestScoresWidgetInfoIcon = element(by.css('.header-icon:nth-child(2)')); - var TestScoresWidgetDescription = element(by.css('#TestScoresID > div:nth-child(2)')); - var TestScoresStatTitle = element(by.css('div:nth-child(3) > .ng-scope:nth-child(1) > .ng-binding')); - var TestScoresCriticalReading = element(by.css('.ng-scope:nth-child(1) > figure > .ng-binding')); - var CriticalReadingRangeStart = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-min > .ng-binding')); - var CriticalReadingRangeOne = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-lower > .ng-binding')); - var CriticalReadingRangeTwo = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-middle > .ng-binding')); - var CriticalReadingRangeThree = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-upper > .ng-binding')); - var CriticalReadingRangeEnd = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-max > .ng-binding')); - var TestScoresMath = element(by.css('.ng-scope:nth-child(2) > figure > .ng-binding')); - var MathRangeStart = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-min > .ng-binding')); - var MathRangeOne = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-lower > .ng-binding')); - var MathRangeTwo = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-middle > .ng-binding')); - var MathRangeThree = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-upper > .ng-binding')); - var MathRangeEnd = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-max > .ng-binding')); - var TestScoresWriting = element(by.css('.ng-scope:nth-child(3) > figure > .ng-binding')); - var WritingRangeStart = element(by.css('.ng-scope:nth-child(3) > figure .picc-range-label-min > .ng-binding')); - var WritingRangeEnd = element(by.css('.ng-scope:nth-child(3) > figure .picc-range-label-max > .ng-binding')); - var TestScoresACT = element(by.css('.ng-scope:nth-child(4) > .ng-binding')); - var ACTRangeStart = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-min > .ng-binding')); - var ACTRangeOne = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-lower > .ng-binding')); - var ACTRangeTwo = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-middle > .ng-binding')); - var ACTRangeThree = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-upper > .ng-binding')); - var ACTRangeEnd = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-max > .ng-binding')); - var GraduationAndRetentionWidgetTitle = element(by.css('#GraduationRetentionID .jrnys_lead-body-copy')); - var GraduationRateTitleTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) > .section-heading-wrapper > span')); - var GraduationRateInfoIcon = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) .fa')); - var GraduationRateStatOne = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) .label')); - var GraduationRateStatTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) figcaption > .ng-binding')); - var StudentsWhoReturnTitle = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) > .section-heading-wrapper > span')); - var StudentsWhoReturnInfoIcon = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) .fa')); - var StudentsWhoReturnStatOne = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) .label')); - var StudentsWhoReturnStatTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) figcaption > .ng-binding')); - var GraduationRetentionNationalAvg = element(by.css('#GraduationRetentionID > .row div:nth-child(3)')); - var CostWidgetTitle = element(by.css('#CostID .jrnys_lead-body-copy')); - var AverageAnnualCostTitle = element(by.css('#CostID .col-xs-6 > div > span')); - var AverageAnnualCostInfoIcon = element(by.css('#CostID > .row .fa')); - var AverageAnnualCostStatOne = element(by.css('.picc-meter-line > .font-size')); - var AverageAnnualCostStatTwo = element(by.css('figcaption > .font-size')); - var CostNationalAvg = element(by.css('.font-size:nth-child(3)')); - var CostWidgetHeader = element(by.css('.spacer-bottom-small')); - var CostWidgetDescription = element(by.css('.family-income-align')); - var CostByFamilyIncome = element(by.css('#CostID .col-xs-6:nth-child(2) > div:nth-child(3)')); - var FamilyIncomeHeader = element(by.css('.family-income-header > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatOne = element(by.css('.family-income-row:nth-child(5) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatTwo = element(by.css('.family-income-row:nth-child(6) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatThree = element(by.css('.family-income-row:nth-child(7) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatFour = element(by.css('.family-income-row:nth-child(8) > .col-xs-6:nth-child(1)')); - var FamilyIncomeStatFive = element(by.css('.family-income-row:nth-child(9) > .col-xs-6:nth-child(1)')); - var AverageCostHeader = element(by.css('.font-size:nth-child(2)')); - var AverageCostStatOne = element(by.css('.family-income-row:nth-child(5) > .text-center')); - var AverageCostStatTwo = element(by.css('.family-income-row:nth-child(6) > .text-center')); - var AverageCostStatThree = element(by.css('.family-income-row:nth-child(7) > .text-center')); - var AverageCostStatFour = element(by.css('.family-income-row:nth-child(8) > .text-center')); - var AverageCostStatFive = element(by.css('.family-income-row:nth-child(9) > .text-center')); - var FinancialAidAndDebtWidgetTitle = element(by.css('#FinancialAidDebtID .jrnys_lead-body-copy')); - var FinancialAidAndDebtInfoIcon = element(by.css('.header-icon:nth-child(1)')); - var TypicalTotalDebtTitle = element(by.css('.col-xs-5:nth-child(1) > div:nth-child(1)')); - var TypicalTotalDebtInfoIcon = element(by.css('.col-xs-5:nth-child(1) .fa')); - var TypicalTotalDebtStat = element(by.css('.col-xs-5:nth-child(1) > .ng-binding')); - var StudentLoansStat = element(by.css('.col-xs-6 tr:nth-child(1) > .ng-binding')); - var StudentLoansTitle = element(by.css('tr:nth-child(1) > .pie-label')); - var NoStudentLoansStat = element(by.css('tr:nth-child(2) > .ng-binding')); - var NoStudentLoansTitle = element(by.css('tr:nth-child(2) > .pie-label')); - var StudentsPayingDownDebtTitle = element(by.css('.spacer-bottom > .section-heading')); - var StudentsPayingDownDebtInfoIcon = element(by.css('.spacer-bottom > .fa')); - var PayingDownDebtStatOne = element(by.css('.debt-meter .label')); - var PayingDownDebtStatTwo = element(by.css('.debt-meter > figcaption > .ng-binding')); - var PayingDownDebtNationalAvg = element(by.css('.row:nth-child(3) > .col-xs-6 > div:nth-child(3)')); - var TypicalMonthlyLoanPaymentTitle = element(by.css('.col-xs-offset-1:nth-child(2) > div:nth-child(1)')); - var TypicalMonthlyLoanPaymentInfoIcon = element(by.css('.col-xs-5:nth-child(2) .fa')); - var TypicalMonthlyLoanPaymentStat = element(by.css('.col-xs-5:nth-child(2) > .ng-binding')); - var EarningsAfterSchoolWidgetTitle = element(by.css('#EarningsAfterSchoolID .jrnys_lead-body-copy')); - var PercentageEarningTitle = element(by.css('.col-xs-6:nth-child(1) > .earn-section-wrapper > span')); - var PercentageEarningInfoIcon = element(by.css('.col-xs-6:nth-child(1) > .earn-section-wrapper > .fa')); - var PercentageEarningStat = element(by.css('.col-xs-6 > .ng-binding:nth-child(2)')); - var PercentageEarningDescription = element(by.css('#EarningsAfterSchoolID .col-xs-6:nth-child(1) > div:nth-child(3)')); - var SalaryAfterAttendingTitle = element(by.css('.section-heading-wrapper > .section-heading')); - var SalaryAfterAttendingInfoIcon = element(by.css('.col-xs-6:nth-child(2) > .earn-section-wrapper > .fa')); - var SalaryAfterAttendingStatOne = element(by.css('#EarningsAfterSchoolID .label')); - var SalaryAfterAttendingStatTwo = element(by.css('#EarningsAfterSchoolID figcaption > .ng-binding')); - var SalaryAfterAttendingNationalAvg = element(by.css('#EarningsAfterSchoolID .col-xs-6:nth-child(2) > div:nth-child(3)')); - - browser.switchTo().window(handles[1]).then(async function () { - browser.sleep(5000); - expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122409"); - expect(await AtAGlanceWidgetTitle.getText()).toEqual('At A Glance'); - expect(await FourYearTitle.getText()).toEqual('4 year'); - expect(await FourYearStat.getText()).toEqual('Public'); - expect(await UndergraduateStudentsTitle.getText()).toEqual('Undergraduate Students'); - expect(await UndergraduateStudentsStat.getText()).toEqual('29,781'); - expect(await LocationTitle.getText()).toEqual('Location'); - expect(await LocationStat.getText()).toEqual('City'); - expect(await ClassroomsTitle.getText()).toEqual('Classrooms'); - expect(await ClassroomsStat.getText()).toEqual('Large'); - expect(await CostTitle.getText()).toEqual('Cost'); - expect(await CostStat.getText()).toEqual('Lower Than Average'); - expect(await GraduationRateTitle.getText()).toEqual('Graduation Rate'); - expect(await GraduationRateStat.getText()).toEqual('Above Average'); - expect(await ReturningStudentsTitle.getText()).toEqual('Returning students'); - expect(await ReturningStudentsStat.getText()).toEqual('Above Average'); - expect(await AfterSchoolEarningsTitle.getText()).toEqual('After School Earnings'); - expect(await AfterSchoolEarningsStat.getText()).toEqual('Above Average'); - expect(await PayingDownDebtTitle.getText()).toEqual('Paying Down Debt'); - expect(await PayingDownDebtStat.getText()).toEqual('Above Average'); - expect(await LearnMoreTitle.getText()).toEqual('San Diego State University'); - await LearnMoreInfoIcon.click(); - browser.sleep(2500); - expect(await DivTitle.getText()).toEqual('San Diego State University'); - expect(await LearnMoreInfoDescription.getText()).toEqual('http://www.sdsu.edu'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 165);').then(function() { - browser.sleep(1000); - }); - expect(await LocationAndContactWidgetTitle.getText()).toEqual('Location & Contact'); - expect(await SchoolMapName.getText()).toEqual('San Diego State University'); - expect(await MapAddress.getText()).toEqual('San Diego, CA 92182-0001'); - browser.sleep(2500); - browser.executeScript('window.scrollTo(0, 480);').then(function() { - browser.sleep(1000); - }); - expect(await AcademicProgramsWidgetTitle.getText()).toEqual('Academic Programs'); - await AcademicProgramsInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Academic Programs'); - expect(await DivDescription.getText()).toEqual('The five largest programs of study, as measured as the share of degrees awarded.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await AcademicProgramsCardOne.getText()).toEqual('Business, Management, Marketing, and Related Support Services'); - expect(await AcademicProgramsCardTwo.getText()).toEqual('Social Sciences'); - expect(await AcademicProgramsCardThree.getText()).toEqual('Health Professions and Related Programs'); - browser.executeScript('window.scrollTo(0, 1330);').then(function() { - browser.sleep(1000); - }); - expect(await TestScoresWidgetTitle.getText()).toEqual('Test Scores'); - await TestScoresWidgetInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Test Scores'); - expect(await DivDescription.getText()).toEqual('At schools that report their test scores, 50 percent had scores within this range. Of the remaining 50 percent, half were above the range and half were below. Not all schools require test scores.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TestScoresWidgetDescription.getText()).toEqual('Students who were admitted and enrolled typically has standardized test scores in these ranges.'); - expect(await TestScoresStatTitle.getText()).toEqual('SAT'); - expect(await TestScoresCriticalReading.getText()).toEqual('Critical Reading'); - expect(await CriticalReadingRangeStart.getText()).toEqual('0'); - expect(await CriticalReadingRangeOne.getText()).toEqual('550'); - expect(await CriticalReadingRangeTwo.getText()).toEqual('595'); - expect(await CriticalReadingRangeThree.getText()).toEqual('640'); - expect(await CriticalReadingRangeEnd.getText()).toEqual('800'); - expect(await TestScoresMath.getText()).toEqual('Math'); - expect(await MathRangeStart.getText()).toEqual('0'); - expect(await MathRangeOne.getText()).toEqual('540'); - expect(await MathRangeTwo.getText()).toEqual('595'); - expect(await MathRangeThree.getText()).toEqual('650'); - expect(await MathRangeEnd.getText()).toEqual('800'); - expect(await TestScoresWriting.getText()).toEqual('Writing(Data not available)'); - expect(await WritingRangeStart.getText()).toEqual('0'); - expect(await WritingRangeEnd.getText()).toEqual('800'); - expect(await TestScoresACT.getText()).toEqual('ACT'); - expect(await ACTRangeStart.getText()).toEqual('0'); - expect(await ACTRangeOne.getText()).toEqual('23'); - expect(await ACTRangeTwo.getText()).toEqual('26'); - expect(await ACTRangeThree.getText()).toEqual('28'); - expect(await ACTRangeEnd.getText()).toEqual('36'); - expect(await GraduationAndRetentionWidgetTitle.getText()).toEqual('Graduation & Retention'); - expect(await GraduationRateTitleTwo.getText()).toEqual('Graduation Rate'); - await GraduationRateInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Graduation Rate'); - expect(await DivDescription.getText()).toEqual('The graduation rate within 150 percent of the expected time to completion (typically six years for schools that award predominantly four-year degrees and three years for schools that award predominantly two-year degrees). These rates are only for full-time students enrolled for the first time.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await GraduationRateStatOne.getText()).toEqual('42%'); - expect(await GraduationRateStatTwo.getText()).toEqual('74%'); - expect(await StudentsWhoReturnTitle.getText()).toEqual('Students Who Return After Their First Year'); - await StudentsWhoReturnInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Students Who Return After Their First Year'); - expect(await DivDescription.getText()).toEqual('The share of first-time, full-time undergraduates who returned to the institution after their freshman year.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentsWhoReturnStatOne.getText()).toEqual('68%'); - expect(await StudentsWhoReturnStatTwo.getText()).toEqual('89%'); - expect(await GraduationRetentionNationalAvg.getText()).toEqual('---- National Average'); - expect(await CostWidgetTitle.getText()).toEqual('Cost'); - expect(await AverageAnnualCostTitle.getText()).toEqual('Average Annual Cost'); - await AverageAnnualCostInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Average Annual Cost'); - expect(await DivDescription.getText()).toEqual('The average annual net price for federal financial aid recipients, after aid from the school, state, or federal government. For public schools, this is only the average cost for in-state students.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await AverageAnnualCostStatOne.getText()).toEqual('$16,127'); - expect(await AverageAnnualCostStatTwo.getText()).toEqual('$14,030'); - expect(await CostNationalAvg.getText()).toEqual('---- National Average'); - expect(await CostWidgetHeader.getText()).toEqual('By Family Income'); - expect(await CostWidgetDescription.getText()).toEqual('Depending on the federal, state, or institutional grant aid available, students in your income bracket may pay more or less than the overall average costs.'); - expect(await CostByFamilyIncome.getText()).toEqual('Average cost by family income'); - expect(await FamilyIncomeHeader.getText()).toEqual('Family Income'); - expect(await FamilyIncomeStatOne.getText()).toEqual('$0-$30,000'); - expect(await FamilyIncomeStatTwo.getText()).toEqual('$30,001-$48,000'); - expect(await FamilyIncomeStatThree.getText()).toEqual('$48,001-$75,000'); - expect(await FamilyIncomeStatFour.getText()).toEqual('$75,001-$110,000'); - expect(await FamilyIncomeStatFive.getText()).toEqual('$110,001+'); - expect(await AverageCostHeader.getText()).toEqual('Average Cost'); - expect(await AverageCostStatOne.getText()).toEqual('$8,182'); - expect(await AverageCostStatTwo.getText()).toEqual('$10,145'); - expect(await AverageCostStatThree.getText()).toEqual('$14,311'); - expect(await AverageCostStatFour.getText()).toEqual('$18,262'); - expect(await AverageCostStatFive.getText()).toEqual('$20,547'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await FinancialAidAndDebtWidgetTitle.getText()).toEqual('Financial Aid & Debt'); - await FinancialAidAndDebtInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Students Receiving Federal Loans'); - expect(await DivDescription.getText()).toEqual('The share of undergraduate students who borrowed federal loans to help pay for college. Excludes Parent PLUS loans.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TypicalTotalDebtTitle.getText()).toEqual('Typical Total Debt'); - await TypicalTotalDebtInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Typical Total Debt'); - expect(await DivDescription.getText()).toEqual('The median federal debt of undergraduate borrowers who completed. This figure includes only federal loans; it excludes private student loans and Parent PLUS loans.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TypicalTotalDebtStat.getText()).toEqual('$15,340'); - expect(await StudentLoansStat.getText()).toEqual('31%'); - expect(await StudentLoansTitle.getText()).toEqual('Students Receiving Federal Loans'); - expect(await NoStudentLoansStat.getText()).toEqual('69%'); - expect(await NoStudentLoansTitle.getText()).toEqual('Not Receiving Student Loans'); - expect(await StudentsPayingDownDebtTitle.getText()).toEqual('Students Paying Down Debt'); - await StudentsPayingDownDebtInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Students Paying Down Debt'); - expect(await DivDescription.getText()).toEqual('The share of students who have repaid at least $1 of the principal balance on their federal loans within 3 years of leaving school.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await PayingDownDebtStatOne.getText()).toEqual('46%'); - expect(await PayingDownDebtStatTwo.getText()).toEqual('66%'); - expect(await PayingDownDebtNationalAvg.getText()).toEqual('---- National Average'); - expect(await TypicalMonthlyLoanPaymentTitle.getText()).toEqual('Typical Monthly Loan Payment'); - await TypicalMonthlyLoanPaymentInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Typical Monthly Loan Payment'); - expect(await DivDescription.getText()).toEqual('The median monthly load payment for students who completed, if it were repaid over 10 years at a 4.29 percent interest rate.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await TypicalMonthlyLoanPaymentStat.getText()).toEqual('$159/mo'); - expect(await PercentageEarningTitle.getText()).toEqual('Percentage Earning Above High School Grad'); - expect(await EarningsAfterSchoolWidgetTitle.getText()).toEqual('Earnings After School'); - await PercentageEarningInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Percentage Earning Above High School Grad'); - expect(await DivDescription.getText()).toEqual('The share of former students earning more than $25,000, or about the average earnings of a high school graduate aged 25-34, 6 years after they first enroll.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await PercentageEarningStat.getText()).toEqual('70%'); - expect(await PercentageEarningDescription.getText()).toEqual('of students who attend this school earned, on average, more than those with only a high school diploma.'); - expect(await SalaryAfterAttendingTitle.getText()).toEqual('Salary After Attending'); - await SalaryAfterAttendingInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await DivTitle.getText()).toEqual('Salary After Attending'); - expect(await DivDescription.getText()).toEqual('The median earnings of former students who received federal financial aid, at 10 years after entering the school.'); - await DivXCloseLink.click().then(function() { - browser.sleep(1000); - }); - expect(await SalaryAfterAttendingStatOne.getText()).toEqual('$33,500'); - expect(await SalaryAfterAttendingStatTwo.getText()).toEqual('$51,000'); - expect(await SalaryAfterAttendingNationalAvg.getText()).toEqual('---- National Average'); - browser.driver.close(); - browser.switchTo().window(handles[0]); - browser.sleep(5000); - expect(browser.driver.getCurrentUrl()).toContain("/activityDashboard"); - expect(InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All'); - await InstitutionOfInterestDivXCloseLink.click().then(function() { - browser.sleep(2500); - }) - }); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function OccupationMetrics() { - it(': OccupationMetrics, should validate Occupation Metrics widget data', async function () { - var OccupationMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy')); - var OccupationsOfInterestTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy')); - var OccupationsOfInterestStat = element(by.css('.fullHeight:nth-child(2) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text')); - var AverageAnnualSalaryTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy')); - var AverageAnnualSalaryStat = element(by.css('.fullHeight:nth-child(2) > .widget-padding .td-metrics-data-width:nth-child(4) .jrnys_stand-out-text')); - var AverageProjectedJobOpeningsTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy')); - var AverageProjectedJobOpeningsStat = element(by.css('.text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) > .text-left > .ng-binding')); - var TopClustersTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)')); - var TopClustersStatOne = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(2)')); - var TopClustersStatTwo = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(3)')); - var TopClustersStatThree = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(4)')); - var AverageProjectedGrowthTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)')); - var AverageProjectedGrowthStat = element(by.css('.jrnys_body-copy:nth-child(2) > .ng-binding')); - var TypicalDegreesTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)')); - var TypicalDegreesStatOne = element(by.css('.td-metrics-data-width:nth-child(6) .ng-scope:nth-child(2)')); - var TypicalDegreesStatTwo = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(3)')); - var TypicalDegreesStatThree = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(4)')); - - /*browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - });*/ - browser.executeScript('window.scrollTo(0, 2050);').then(function() { - browser.sleep(10000); - }); - expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics'); - expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest'); - expect(await OccupationsOfInterestStat.getText()).toContain('81'); - expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary'); - expect(await AverageAnnualSalaryStat.getText()).toContain('$70,63'); - expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings'); - expect(await AverageProjectedJobOpeningsStat.getText()).toContain('23,523'); - expect(await TopClustersTitle.getText()).toContain('Top Clusters'); - expect(await TopClustersStatOne.getText()).toContain('Health Science'); - expect(await TopClustersStatTwo.getText()).toContain('Information Technology'); - expect(await TopClustersStatThree.getText()).toContain('Education & Training'); - expect(await AverageProjectedGrowthTitle.getText()).toContain('Average Projected Growth'); - expect(await AverageProjectedGrowthStat.getText()).toContain('LOWER THAN AVERAGE'); - expect(await TypicalDegreesTitle.getText()).toContain('Typical Degrees'); - expect(await TypicalDegreesStatOne.getText()).toContain('27% College (4 Year)'); - expect(await TypicalDegreesStatTwo.getText()).toContain("17% Master's degree"); - expect(await TypicalDegreesStatThree.getText()).toContain('11% High school'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function OccupationsOfInterest() { - it(': OccupationsOfInterest, should verify Occupations Of Interest widget data', async function () { - var OccupationsOfInterestWidgetTitle = element(by.css('#occupationVisitedId .jrnys_lead-body-copy')); - var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); - var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//territory-card/div/div[2]/div/div[2]/span')); - var OccupationsOfInterestViewAllLink = element(by.css('#occupationVisitedId .text-color-7a')); - var OccupationsOfInterestTitle = element(by.css('.col-sm-12 > .ng-binding')); - var OccupationsOfInterestFirstCard = element(by.id('territoryCardMobileTitle')); - var FirstOccupationCardDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.territoryCardDescriptionText.ng-binding')); - var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a')); - - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - browser.waitForAngular(); - /*browser.executeScript('window.scrollTo(0, 2350);').then(function() { - browser.sleep(2500); - });*/ - expect(await OccupationsOfInterestWidgetTitle.getText()).toEqual('Occupations Of Interest View All'); - await AtAGlanceHeaderRowIcon.click().then(function() { - browser.sleep(1000); - }); - await AtAGlanceBackOfCardXCloseLink.click().then(function() { - browser.sleep(1000); - }); - await OccupationsOfInterestViewAllLink.click().then(function() { - browser.sleep(5000); - }); - expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations visited by Automated Regression'); - expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Computer and Information Systems Managers'); - await OccupationsOfInterestFirstCard.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - await OccupationsOfInterestXCloseLink.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function AccountProfile() { - it(': AccountProfile, should navigate to Account Profile and validate data', async function () { - var ProfileImage = element(by.css('.roundCenterBackgroundImage')); - var ProfileLink = element(by.linkText('Profile')); - var PageTitle = element(by.css('.view-title')); - var UserName = element(by.css('.only-bottom-margin')); - var EmailHandle = element(by.css('.col-md-8 > .text-muted:nth-child(1)')); - var BirthdayHandle = element(by.css('.text-muted:nth-child(3)')); - var ActiveRoleHandle = element(by.css('.text-muted:nth-child(5)')); - var ZipCodeHandle = element(by.css('.text-muted:nth-child(7)')); - var UserInfo = element(by.css('.col-md-8')); - var EditAccount = element(by.css('.btn:nth-child(12)')); - var EditPageTitle = element(by.css('.view-title')); - var FirstNameTextBox = element(by.xpath('//input[@name="first"]')); - var LastNameTextBox = element(by.xpath('//input[@name="lastname"]')); - var EmailAddressTextBox = element(by.xpath('//input[@name="email"]')); - var ZipCodeTextBox = element(by.xpath('//input[@name="zip"]')); - var BirthdayTextBox = element(by.css('#datepicker')); - var ChangePasswordButton = element(by.css('.btn-lg:nth-child(1)')); - var ChangePageTitle = element(by.css('h3')); - var ChangePasswordValidation = element(by.css('.requiredMark')); - var OldPasswordTextBox = element(by.xpath('//input[@name="password"]')); - var NewPasswordTextBox = element(by.css('.form-control:nth-child(6)')); - var ConfirmPasswordTextBox = element(by.css('.form-control:nth-child(9)')); - var ChangePasswordSaveButton = element(by.css('.modal-footer > .btn')); - var SaveButton = element(by.name('submit')); - var ManageSecurityQuestions = element(by.css('.btn:nth-child(15)')); - var ManageSecurityTitle = element(by.css('.security-question-header')); - var ManageSecuritySubTitle = element(by.css('.col-md-9:nth-child(2)')); - var SecurityValidationOne = element(by.css('.ng-scope:nth-child(1) > .row:nth-child(2) > .col-md-12')); - var SecurityValidationTwo = element(by.css('.ng-scope:nth-child(1) > .row:nth-child(5) > .col-md-12')); - var SecurityQuestionOne = element(by.css('#secQuestion0')); - var SecuritySelectionOne = element(by.css('#secQuestion0 > option:nth-child(2)')); - var SecurityAnswerOne = element(by.css('.ng-scope:nth-child(1) > .row .ng-pristine')); - var SecurityQuestionTwo = element(by.css('#secQuestion1')); - var SecuritySelectionTwo = element(by.css('#secQuestion1 > option:nth-child(3)')); - var SecurityAnswerTwo = element(by.css('.ng-scope:nth-child(2) .ng-pristine')); - var SecurityQuestionThree = element(by.css('#secQuestion2')); - var SecuritySelectionThree = element(by.css('#secQuestion2 > option:nth-child(5)')); - var SecurityAnswerThree = element(by.css('.ng-pristine')); - var SecurityQuestionSave = element(by.css('.col-lg-4 > #photoBtn')); - var ManageSecurityValidation = element(by.css('.row:nth-child(11) > .col-lg-9')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - browser.actions().mouseMove(ProfileLink).perform().then(function() { - browser.sleep(1500); - }); - await ProfileLink.click().then(function() { - browser.sleep(1000); - }); - expect(await PageTitle.getText()).toEqual('Account Information'); - expect(await UserName.getText()).toEqual('Automated Regression'); - expect(await EmailHandle.getText()).toEqual('Email:'); - //expect(await UserInfo.getText()).toContain('jhuerta@edmin.com'); - expect(await BirthdayHandle.getText()).toEqual('Birthday:'); - expect(await UserInfo.getText()).toContain('2000-02-15'); - expect(await ActiveRoleHandle.getText()).toEqual('Active Role:'); - expect(await ZipCodeHandle.getText()).toEqual('ZIP Code:'); - expect(await UserInfo.getText()).toContain('92123'); - await EditAccount.click(); - browser.sleep(1000); - expect(await EditPageTitle.getText()).toEqual('Edit Account Information'); - expect(await FirstNameTextBox.getAttribute('value')).toEqual('Automated'); - expect(await LastNameTextBox.getAttribute('value')).toEqual('Regression'); - expect(await EmailAddressTextBox.getAttribute('value')).toEqual(''); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('92123'); - expect(await BirthdayTextBox.getAttribute('value')).toEqual('2000-02-15'); - await ChangePasswordButton.click(); - browser.sleep(1000); - expect(await ChangePageTitle.getText()).toEqual('Change your password...'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - expect(await ChangePasswordValidation.getText()).toEqual('Please provide Old Password and ensure two New Passwords are matched.'); - await OldPasswordTextBox.sendKeys('123Auto123'); - await NewPasswordTextBox.sendKeys('3Dm1nAuto'); - await ConfirmPasswordTextBox.sendKeys('3Dm1nAuto'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - expect(await ChangePasswordValidation.getText()).toEqual('Your old password was incorrect. Try again.'); - await OldPasswordTextBox.sendKeys('3Dm1nAuto'); - await NewPasswordTextBox.sendKeys('EDminAuto'); - await ConfirmPasswordTextBox.sendKeys('3Dm1nAuto'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - expect(await ChangePasswordValidation.getText()).toEqual('Please provide Old Password and ensure two New Passwords are matched.'); - await NewPasswordTextBox.sendKeys('3Dm1nAuto'); - await ConfirmPasswordTextBox.sendKeys('3Dm1nAuto'); - await ChangePasswordSaveButton.click(); - browser.sleep(1000); - await SaveButton.click(); - browser.sleep(1000); - await ManageSecurityQuestions.click(); - browser.sleep(1000); - expect(await ManageSecurityTitle.getText()).toEqual('We care about your security'); - expect(await ManageSecuritySubTitle.getText()).toEqual('To help you recover your account in the future please provide additional recovery information.'); - await SecurityQuestionSave.click(); - browser.sleep(1000); - expect(await SecurityValidationOne.getText()).toContain('Please select security question'); - await SecurityQuestionOne.click(); - await SecuritySelectionOne.click(); - await SecurityQuestionSave.click(); - browser.sleep(1000); - expect(await SecurityValidationTwo.getText()).toContain('Missing security answer'); - await SecurityAnswerOne.click(); - await SecurityAnswerOne.sendKeys('6194222927'); - await SecurityQuestionTwo.click(); - await SecuritySelectionTwo.click(); - await SecurityAnswerTwo.click(); - await SecurityAnswerTwo.sendKeys('Rosario'); - await SecurityQuestionThree.click(); - await SecuritySelectionThree.click(); - await SecurityAnswerThree.click(); - await SecurityAnswerThree.sendKeys('Seamus'); - await SecurityQuestionSave.click(); - browser.sleep(1000); - expect(await ManageSecurityValidation.getText()).toEqual('Security questions are updated'); - browser.sleep(1000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function AccountPortfolio() { - it(': AccountPortfolio, should navigate to portfolio and validate resource', async function () { - var ProfileImage = element(by.css('.roundCenterBackgroundImage')); - var PortfolioLink = element(by.linkText('Portfolio')); - var SubmittedResourcesTitle = element(by.css('.ng-scope > .jrnys_lead-body-copy')); - var MyResourceTitle = element(by.css('.hotTitles')); - var GoogleDriveTitle = element(by.css('.default-color:nth-child(2)')); - var GoogleDriveSubTitle = element(by.css('.default-color:nth-child(3)')); - var SignInToGoogleDriveButton = element(by.id('authorize-button')); - - browser.waitForAngular(); - browser.sleep(1000); - await ProfileImage.click(); - browser.sleep(1000); - browser.actions().mouseMove(PortfolioLink).perform().then(function() { - browser.sleep(1500); - }); - await PortfolioLink.click(); - browser.sleep(5000); - expect(await SubmittedResourcesTitle.getText()).toEqual('My Submitted Resources View All'); - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await GoogleDriveTitle.getText()).toEqual('Google Drive'); - expect(await GoogleDriveSubTitle.getText()).toContain('Sign in to your Google Drive account to access all your files!'); - expect(await SignInToGoogleDriveButton.getText()).toEqual('Sign in to Google Drive'); - 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); - }); - }); -} \ No newline at end of file diff --git a/learnMorePage_config.js b/learnMorePage_config.js deleted file mode 100644 index 2ca5f7d..0000000 --- a/learnMorePage_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//learnMorePage_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['learnMorePage_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/learnMorePage_spec.js b/learnMorePage_spec.js deleted file mode 100644 index a72ef50..0000000 --- a/learnMorePage_spec.js +++ /dev/null @@ -1,810 +0,0 @@ -//learnMorePage_spec.js - -describe('Learn More Page script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - function SignIn(UserNameTextBox, PasswordTextBox) { - it('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.'); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(2500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1000); - }); - await NextButton.click().then(function() { - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - LearnMorePage(); - - //Sign Out*/ - SignOut(); -}); - -function LearnMorePage() { - it(': LearnMorePage, should click the Top Career link and interact with Learn More page', async function () { - var TopCareerLink = element(by.css('td>.jrnys_support-text')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); - var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding')); - var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)')); - var XCloseLink = element(by.css('.close')); - var VideoIcon = element(by.css('.text-right .far')); - var FollowIcon = element(by.css('.text-right > span .journey-follow')); - var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); - var Progress = element(by.css('.ng-scope:nth-child(3) > a > .jrnys_support-text')); - var Followers = element(by.css('.text-color-7a > .jrnys_support-text')); - var Confidence = element(by.css('.ng-scope:nth-child(1) > a > .jrnys_support-text')); - var AtAGlanceHeader = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy')); - var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4')); - var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text')); - var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize')); - var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span')); - var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4')); - var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize')); - var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize')); - var PersonalityWidgetTitle = element(by.css('.widget-round-corners:nth-child(3) .fullHeight .jrnys_lead-body-copy')); - var PersonalityDescriptionOne = element(by.css('.carouselHeight > .ng-scope > tbody > tr > td > .ng-binding')); - var PersonalityDescriptionTwo = element(by.css('.ng-scope > tbody > tr:nth-child(2) div')); - var PersonalityBulletOne = element(by.css('table:nth-child(1) .ng-scope:nth-child(1) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(1) > td:nth-child(2) > .ng-binding')); - var PersonalityBulletThree = element(by.css('table:nth-child(1) .ng-scope:nth-child(2) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(2) > td:nth-child(2) > .ng-binding')); - var PersonalityBulletFive = element(by.css('table:nth-child(1) .ng-scope:nth-child(3) > td:nth-child(1) > .ng-binding:nth-child(2)')); - var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(3) > td:nth-child(2) > .ng-binding')); - var WagesWidgetTitle = element(by.xpath('//occupation-wages/div/div[2]/div/div')); - var WagesInfoIcon = element(by.css('.jrnys_lead-body-copy > .journey-info-circle')); - var WagesWidgetBackOfCardTitle = element(by.css('tr > .jrnys_lead-body-copy')); - var WagesSubTextOne = element(by.css('table:nth-child(2) > tbody > tr:nth-child(2) div:nth-child(1)')); - var WagesSubTextTwo = element(by.css('td > .ng-scope:nth-child(2)')); - var WagesSubTextThree = element(by.css('.fullHeight:nth-child(2) > table div:nth-child(3)')); - var WagesSubTextFour = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0')); - var WagesSubTextFive = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm19all.zip')); - var WagesSubTextSix = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm18all.zip')); - var WagesSubTextSeven = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm17all.zip')); - var WagesWidgetCloseBackOfCardIcon = element(by.css('.fa-times-rectangle')); - var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text')); - var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text')); - //var WagesTypeText = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[4]/occupation-wages/div/div[2]/div/table/tbody/tr/td/div/div/div[1]/div/svg/g[3]/g/text'));//Can't ID - var WagesHighText = element(by.css('g:nth-child(6) > text')); - var WagesMedianText = element(by.css('g:nth-child(7) > text')); - var WagesLowText = element(by.css('g:nth-child(8) > text')); - var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text')); - var WagesXAxisOneText = element(by.css('g:nth-child(4) > g:nth-child(2) > text')); - var WagesXAxisTwoText = element(by.css('g:nth-child(3) > text')); - var WagesXAxisThreeText = element(by.css('g:nth-child(4) > text')); - var WagesXAxisFourText = element(by.css('g:nth-child(5) > text')); - var WagesFilterIcon = element(by.css('.fa-sliders-h')); - var ZipCodeTextBoxText = element(by.css('.dropdown-menu tr:nth-child(1) > td:nth-child(1)')); - var ZipCodeTextBox = element(by.css('.ng-valid-maxlength')); - var ZipCodeApplyButton = element(by.css('tr:nth-child(1) .btn')); - var StateDropDownText = element(by.css('.dropdown-menu tr:nth-child(2) > td:nth-child(1)')); - var StateDropDownApplyButton = element(by.css('tr:nth-child(2) .btn')); - var WagesHighTextTwo = element(by.css('g:nth-child(7) > text')); - var WagesMedianTextTwo = element(by.css('g:nth-child(8) > text')); - var WagesLowTextTwo = element(by.css('g:nth-child(9) > text')); - var WagesXAxisFiveText = element(by.css('g:nth-child(6) > text')); - var RateTypeText = element(by.css('.dropdown-menu tr:nth-child(3) > td:nth-child(1)')); - var HourlyButton = element(by.xpath("//button[contains(.,'Hourly')]")); - var AnnualButton = element(by.css('.btn:nth-child(2)')) - var CollegePathwaysWidgetTitle = element(by.css('#liDegree .jrnys_lead-body-copy')); - var ComputerApplicationsMinorCollegeWide = element(by.css('#\\36 3f93734-c4e9-48cd-8ff4-041e10760da5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerScienceBS = element(by.css('#a6e09aef-a938-4c2b-aa90-c6d6b2499de7 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerScienceMinor = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CollegePathwaysRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var ComputerScienceMS = element(by.css('#a8803504-ea19-4643-8569-b5fae3db34d9 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CertificatesWidgetTitle = element(by.css('#liCertificate .jrnys_lead-body-copy')); - var CertifiedLabVIEWArchitect = element(by.css('#\\35 179bed9-a8e1-44af-b525-3e8ad0dcb31e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CertificatesCardOneSubHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/span')); - var CertifiedAssociateLabVIEWDeveloper = element(by.css('#\\38 8e24eb9-a695-4048-917d-f45bd0015675 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CertificatesCardTwoSubHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/span')); - var AvayaCertifiedExpert = element(by.css('#\\31 82f070b-18f9-4276-bb91-3128c4d0cf2c > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CertificatesCardThreeSubHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/span')); - var CertificatesRightScroll = element(by.css('.widget-round-corners:nth-child(6) .right:nth-child(4) > .glyphicon:nth-child(1)')); - var CertifiedBiometricsProfessional = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CertifiedSoftwareDevelopmentProfessional = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div')); - var UniversityOfSanDiego = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var UniversityOfSanDiegoAtAGlanceIcon = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardItemText:nth-child(2)')); - var UniversityOfSanDiegoBackOfCardTitle = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[1]/div[1]'));//css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding')); - var UniversityOfSanDiegoBackOfCard4YearHeader = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[1]/td[2]/div[1]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)')); - var UniversityOfSanDiegoBackOfCard4YearData = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[1]/td[2]/div[2]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)')); - var UniversityOfSanDiegoBackOfCardUndergradHeader = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[3]/td[2]/div[1]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)')); - var UniversityOfSanDiegoBackOfCardUndergradData = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[3]/td[2]/div[2]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding')); - var UniversityOfSanDiegoBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText')); - var UniversityOfSanDiegoBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div')); - var UniversityOfSanDiegoBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText')); - var UniversityOfSanDiegoBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div')); - var UniversityOfSanDiegoBackOfCardXCloseIcon = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[1]/div[2]/span'));//css('#territoryCardTitleHeader > div:nth-child(2) > span')); - var UniversityOfSanDiegoEllipsisIcon = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(2) .fas:nth-child(1)')); - var UniversityOfSanDiegoBackOfCardTitleTwo = element(by.css('.territoryCardTitleText:nth-child(1)'));//xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[3]/div[1]/div[1]')); - var UniversityOfSanDiegoBackOfCardFollowIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(1) > div.territoryCardItemText')); - var UniversityOfSanDiegoBackOfCardLearnMoreIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(2) > div.territoryCardBackOfCardItemText')); - var UniversityOfSanDiegoBackOfCardAtAGlanceIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText')); - var NationalUniversity = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var PointLomaNazareneUniversity = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); - var UniversityOfCaliforniaSanDiego = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var SanDiegoStateUniversity = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var CaliforniaStateUniversitySanMarcos = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)')); - var TopResourcesWidgetTitle = element(by.css('#id .jrnys_lead-body-copy')); - var JourneysGreeting = element(by.css('.dropdown')); - var TopResourcesCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .hotTitles')); - var TopResourcesCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .hotTitles')); - var TopResourcesCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .hotTitles')); - var TopResourcesRightScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var TopResourcesCardFourHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(1) .hotTitles')); - var TopResourcesCardFiveHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(2) .hotTitles')); - var TopResourcesCardSixHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(3) .hotTitles')); - var TopResourcesLeftScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a/span')); - var TopResourcesCardThreeSaveIcon = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .journey-save:nth-child(1)')); - var FindOpportunitiesWidgetTitle = element(by.css('.noPaddingCol > .jrnys_lead-body-copy')); - var FindOpportunitiesSubText = element(by.css('.no-padding > .jrnys_body-copy')); - var JobsTotalsLink = element(by.css('.col-sm-4:nth-child(1) .col-sm-9 .jrnys_stand-out-text')); - var JobListingsDIVHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); - var InternshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));//Null link - var InternshipsListingsDIVHeader = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)')); - var ApprenticeshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));//Null link - var FindOpportunitiesChangeLocationLink = element(by.css('.jrnys_body-copy:nth-child(2)')); - var ChangeLocationDIVTitle = element(by.css('b')); - var ChangeLocationDIVSubTitle = element(by.css('.col-xs-11:nth-child(2)')); - var ChnageLocationEnterZipCodeTextBox = element(by.css('#inputZip')); - var ChangeLocationApplyButton = element(by.css('#indeedQuery')); - var SubmitResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12')); - var SubmitResourceWidgetSubTextOne = element(by.css('.row:nth-child(1) > .jrnys_body-copy')); - var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1')); - var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy')); - var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourceTitle = element(by.css('.row > .row > .col-xs-9 > .ng-binding')); - var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)')); - var MyResourceFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span')); - var MyResourceLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)')); - var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1')); - var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(3) > .col-sm-12')); - var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text')); - var SubmitAResourceDIVTitle = element(by.css('h3')); - var SubmitAResourceDIVCancelButton = element(by.css('.btn-blue-RoundTabsinfo')); - var KnowledgeWidgetTitle = element(by.css('#knowledgeid .jrnys_lead-body-copy')); - var KnowledgeImportanceHeader = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a')); - var KnowledgeDescriptionOne = element(by.css('#knowledgeid .table:nth-child(1) .ng-scope:nth-child(1) .ng-binding:nth-child(1)')); - var KnowledgeImportanceStatOne = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding')); - var KnowledgeDescriptionTwo = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span')); - var KnowledgeImportanceStatTwo = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding')); - var KnowledgeDescriptionThree = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span')); - var KnowledgeImportanceStatThree = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding')); - var SkillsWidgetTitle = element(by.css('#skillsid > div > div')); - var SkillsImportanceHeader = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a')); - var SkillsDescriptionOne = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span')); - var SkillsImportanceStatOne = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding')); - var SkillsDescriptionTwo = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span')); - var SkillsImportanceStatTwo = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding')); - var SkillsDescriptionThree = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span')); - var SkillsImportanceStatThree = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding')); - var AbilityWidgetTitle = element(by.css('#abilitiesid > div > div')); - var AbilityImportanceHeader = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a')); - var AbilityDescriptionOne = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span')); - var AbilityImportanceStatOne = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding')); - var AbilityDescriptionTwo = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span')); - var AbilityImportanceStatTwo = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding')); - var AbilityDescriptionThree = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span')); - var AbilityImportanceStatThree = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding')); - var TasksWidgetTitle = element(by.css('#tasksid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var TasksCategoryHeader = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > thead > tr > th:nth-child(2)')); - var TasksImportanceHeader = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > thead > tr > th:nth-child(3)')); - var TasksDescriptionOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(1) > span > span')); - var TasksCategoryStatOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(2)')); - var TasksImportanceStatOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(3)')); - var TasksDescriptionTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(1) > span > span')); - var TasksCategoryStatTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(2)')); - var TasksImportanceStatTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(3)')); - var TasksDescriptionThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(1) > span > span')); - var TasksCategoryStatThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(2)')); - var TasksImportanceStatThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(3)')); - var WorkActivitiesWidgetTitle = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var WorkActivitiesImportanceHeader = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a')); - var WorkActivitiesDescriptionOne = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span')); - var WorkActivitiesImportanceStatOne = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding')); - var WorkActivitiesDescriptionTwo = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span')); - var WorkActivitiesImportanceStatTwo = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding')); - var WorkActivitiesDescriptionThree = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span')); - var WorkActivitiesImportanceStatThree = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding')); - var TechnologyWidgetTitle = element(by.css('#technologyid > .widgetHeaderContainer > .jrnys_lead-body-copy')); - var TechnologyDescriptionOne = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(1) > span > span')); - var TechnologyStatOne = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-left.text-color-7a > span > span > span')); - var TechnologyDescriptionTwo = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(1) > span > span')); - var TechnologyStatTwo = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-left.text-color-7a > span > span > span')); - var TechnologyDescriptionThree = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(1) > span > span')); - var TechnologyStatThree = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-left.text-color-7a > span > span > span')); - var TechnologyDescriptionFour = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(4) > td:nth-child(1) > span > span')); - var TechnologyStatFour = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(4) > td.text-left.text-color-7a > span > span > span')); - var NearbyPlacesWidgetTitle = element(by.css('#liNearby .jrnys_lead-body-copy')); - var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerAndInformationSystemsManagersEllipsisIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas')); - var ComputerAndInformationSystemsManagersBackOfCardTitle = element(by.css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding')); - var ComputerAndInformationSystemsManagersBackOfCardXIcon = element(by.css('#territoryCardTitleHeader > div:nth-child(2) > span')); - var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerNetworkArchitects = element(by.css('#fb2fabe5-621b-477e-948c-64d1fef31b95 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerNetworkSupportSpecialists = element(by.css('#b645081d-8b86-44b2-8d68-155c064edced > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var ComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerProgrammers = element(by.css('#\\33 ce39f29-0e17-4472-8dba-682356e8df07 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerScienceTeachersPostsecondary = element(by.css('#e867c7f0-c5e9-43ac-9dd3-82dd4dd62660 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DataWarehousingSpecialist = element(by.css('#\\34 9618b26-751c-4c6c-bb52-1773b0c84e68 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DatabaseAdministrator = element(by.css('#\\31 25099b5-7514-4a28-8c5f-776a0edd13c2 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DatabaseArchitects = element(by.css('#\\32 f5c1341-aaec-41f7-8d76-7fbe9c0497fa > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var GraphicDesigners = element(by.css('#cc7cc408-71ef-4390-b425-d03e24f8253a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var InformationSecurityAnalysts = element(by.css('#\\31 fe39d9e-c19d-45eb-bfef-f44e759a56d6 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var MultimediaArtistsAndAnimators = element(by.css('#\\32 a294540-b4cc-4886-a4de-edb17e7a748e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var NetworkAndComputerSystemsAdministrators = element(by.css('#ce3ef31a-9e4e-4ab8-a950-61b07731ad66 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SoftwareDevelopersApplications = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SoftwareDevelopersSystemsSoftware = element(by.css('#d1ab3735-cd9e-46aa-9046-76cd7122f4a8 > #territoryCardContainer .ng-binding')); - var TelecommunicationsEngineeringSpecialists = element(by.css('#\\35 3a78dab-253e-4962-a9a7-282e9b23493c > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > span')); - var MyResourcesOneHeader = element(by.css('.col-xs-4:nth-child(1) .hotTitles')); - var MyResourcesOneSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)')); - var MyResourcesTwoHeader = element(by.css('.col-xs-4:nth-child(2) .hotTitles')); - - browser.executeScript('window.scrollTo(0, 1885);').then(function() { - browser.sleep(2500); - }); - await TopCareerLink.click().then(function() { - browser.sleep(5000); - }); - //At A Glance - expect(await AtAGlanceHeader.getText()).toEqual('At A Glance'); - expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree'); - expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 1%'); - expect(await AtAGlanceStatOne.getText()).toContain('Doctoral degree - 1%'); - expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 1%"); - expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary'); - expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520'); - expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth'); - expect(await AtAGlanceSubHeaderThree.getText()).toEqual(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE'); - expect(await AtAGlanceStatThree.getText()).toContain('19.2%'); - expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings'); - expect(await AtAGlanceStatFour.getText()).toEqual('2,500'); - expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed'); - expect(await AtAGlanceStatFive.getText()).toEqual('27,900'); - //Description - expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists'); - await DescriptionDetail.click().then(function() { - browser.sleep(2500); - }); - expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - expect(await DescriptionSubText.getText()).toContain('Other Jobs:'); - expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Computer Specialist; Control System Computer Scientist; HPC Applications Manager (High Performance Computing Applications Manager); Research Scientist; Scientific Programmer Analyst'); - expect(await DescriptionSubText.getText()).toContain('O*NET SOC: 15-1111.00'); - await XCloseLink.click().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(VideoIcon).perform().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(FollowIcon).perform().then(function() { - browser.sleep(2500); - }); - browser.actions().mouseMove(JourneymanIcon).perform().then(function() { - browser.sleep(2500); - }); - expect(await Progress.getText()).toContain('PROGRESS'); - expect(await Progress.getText()).toContain('COMPLETE'); - expect(await Followers.getText()).toEqual('FOLLOWERS'); - expect(await Confidence.getText()).toContain('YOUR CONFIDENCE'); - expect(await Confidence.getText()).toContain('IS VERY CONFIDENT'); - browser.executeScript('window.scrollTo(0, 780);').then(function() { - browser.sleep(2500); - }); - //Personality - expect(await PersonalityWidgetTitle.getText()).toEqual('Personality'); - expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.'); - expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:'); - expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking'); - expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation'); - expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail'); - expect(await PersonalityBulletFour.getText()).toEqual('Independence'); - expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort'); - expect(await PersonalityBulletSix.getText()).toEqual('Initiative'); - //Wages - expect(await WagesWidgetTitle.getText()).toEqual('Wages'); - await WagesInfoIcon.click().then(function() { - browser.sleep(1000); - }); - expect(await WagesWidgetBackOfCardTitle.getText()).toEqual('Wages'); - expect(await WagesSubTextOne.getText()).toEqual('Data provided by the Bureau of Labor Statistics for SOC 15-1111.00.'); - expect(await WagesSubTextTwo.getText()).toEqual('The graph is reflecting data based on BLS statistics of year 2019.'); - expect(await WagesSubTextThree.getText()).toEqual('For more information please visit:'); - expect(await WagesSubTextFour.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'); - expect(await WagesSubTextFive.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm19all.zip'); - expect(await WagesSubTextSix.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm18all.zip'); - expect(await WagesSubTextSeven.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm17all.zip'); - await WagesWidgetCloseBackOfCardIcon.click().then(function() { - browser.sleep(1000); - browser.executeScript('window.scrollTo(0, 780);'); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toEqual('San Diego-Carlsbad, CA Metro Area'); - //expect(await WagesTypeText.getText()).toEqual('4');//Can't ID - expect(await WagesHighText.getText()).toEqual('High'); - expect(await WagesMedianText.getText()).toEqual('Median'); - expect(await WagesLowText.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ZipCodeTextBoxText.getText()).toEqual('Zip Code'); - await ZipCodeTextBox.click(); - await ZipCodeTextBox.clear(); - await ZipCodeTextBox.sendKeys('85013').then(function() { - browser.sleep(1000); - }); - await ZipCodeApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ'); - expect(await WagesHighText.getText()).toEqual('High'); - expect(await WagesMedianText.getText()).toEqual('Median'); - expect(await WagesLowText.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await StateDropDownText.getText()).toEqual('Or State'); - element(by.cssContainingText('option', 'Oregon')).click().then(function() { - browser.sleep(1000); - }); - await StateDropDownApplyButton.click().then(function() { - browser.sleep(1000); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Oregon'); - expect(await WagesHighTextTwo.getText()).toEqual('High'); - expect(await WagesMedianTextTwo.getText()).toEqual('Median'); - expect(await WagesLowTextTwo.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - expect(await WagesXAxisFiveText.getText()).toEqual('$250,000'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await RateTypeText.getText()).toEqual('Rate Type'); - expect(await HourlyButton.getText()).toEqual('Hourly'); - expect(HourlyButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - expect(await AnnualButton.getText()).toEqual('Annual'); - expect(AnnualButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - await HourlyButton.click().then(function() { - browser.sleep(2500); - browser.executeScript('window.scrollTo(0, 780);'); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Oregon'); - expect(await WagesHighTextTwo.getText()).toEqual('High'); - expect(await WagesMedianTextTwo.getText()).toEqual('Median'); - expect(await WagesLowTextTwo.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$20'); - expect(await WagesXAxisTwoText.getText()).toEqual('$40'); - expect(await WagesXAxisThreeText.getText()).toEqual('$60'); - expect(await WagesXAxisFourText.getText()).toEqual('$80'); - expect(await WagesXAxisFiveText.getText()).toEqual('$100'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(HourlyButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(AnnualButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - await AnnualButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Oregon'); - expect(await WagesHighTextTwo.getText()).toEqual('High'); - expect(await WagesMedianTextTwo.getText()).toEqual('Median'); - expect(await WagesLowTextTwo.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - expect(await WagesXAxisFiveText.getText()).toEqual('$250,000'); - //College Pathways - browser.executeScript('window.scrollTo(0, 1255);'); - expect(await CollegePathwaysWidgetTitle.getText()).toEqual('College Pathways'); - expect(await ComputerApplicationsMinorCollegeWide.getText()).toEqual('Computer Applications Minor—College-Wide'); - expect(await ComputerScienceBS.getText()).toEqual('Computer Science B.S.'); - expect(await ComputerScienceMinor.getText()).toEqual('Computer Science Minor'); - await CollegePathwaysRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerScienceMS.getText()).toEqual('Computer Science M.S.'); - browser.executeScript('window.scrollTo(0, 1890);').then(function() { - browser.sleep(2495); - }); - //Certificates - expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); - expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect'); - //expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); Bug? - expect(await CertifiedAssociateLabVIEWDeveloper.getText()).toEqual('Certified Associate LabVIEW Developer'); - //expect(await CertificatesCardTwoSubHeader.getText()).toEqual('Business Analysis'); Bug? - expect(await AvayaCertifiedExpert.getText()).toEqual('Avaya Certified Expert'); - //expect(await CertificatesCardThreeSubHeader.getText()).toEqual('Business Financial Mgmt & Acctg'); Bug? - await CertificatesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await CertifiedBiometricsProfessional.getText()).toEqual('Certified Biometrics Professional'); - expect(await CertifiedSoftwareDevelopmentProfessional.getText()).toEqual('Certified Software Development Professional'); - expect(await MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter.getText()).toEqual('Microsoft Server Virtualization with Windows Server Hyper-V and System Center'); - browser.executeScript('window.scrollTo(0, 2525);').then(function() { - browser.sleep(2500); - }); - //Institutions - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); - expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego'); - await UniversityOfSanDiegoAtAGlanceIcon.click().then(function() { - browser.sleep(2500) - }); - expect(await UniversityOfSanDiegoBackOfCardTitle.getText()).toEqual('University of San Diego'); - expect(await UniversityOfSanDiegoBackOfCard4YearHeader.getText()).toEqual('4 Year'); - expect(await UniversityOfSanDiegoBackOfCard4YearData.getText()).toEqual('Private nonprofit'); - expect(await UniversityOfSanDiegoBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students'); - expect(await UniversityOfSanDiegoBackOfCardUndergradData.getText()).toEqual('5,760'); - expect(await UniversityOfSanDiegoBackOfCardLocationHeader.getText()).toContain('Location'); - expect(await UniversityOfSanDiegoBackOfCardLocationData.getText()).toEqual('City'); - expect(await UniversityOfSanDiegoBackOfCardClassroomHeader.getText()).toContain('Classrooms'); - expect(await UniversityOfSanDiegoBackOfCardClassroomData.getText()).toEqual('Medium'); - await UniversityOfSanDiegoBackOfCardXCloseIcon.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 2525);').then(function() { - browser.sleep(2500); - }); - await UniversityOfSanDiegoEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfSanDiegoBackOfCardTitleTwo.getText()).toEqual('University of San Diego'); - expect(await UniversityOfSanDiegoBackOfCardFollowIcon.getText()).toEqual('Follow'); - expect(await UniversityOfSanDiegoBackOfCardLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await UniversityOfSanDiegoBackOfCardAtAGlanceIcon.getText()).toEqual('At A Glance'); - expect(await NationalUniversity.getText()).toEqual('National University'); - expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University'); - await InstitutionsRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego'); - expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University'); - expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos'); - browser.executeScript('window.scrollTo(0, 3160);').then(function() { - browser.sleep(2500); - }); - //Top Resources - expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResourcesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesCardFourHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesCardFiveHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesCardSixHeader.getText()).toEqual('Arduino download link for Thinkabitlab'); - await TopResourcesLeftScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - } else { - expect(await TopResourcesCardOneHeader.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesCardTwoHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResourcesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesCardFourHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesCardFiveHeader.getText()).toEqual('Computer and Information Research Scientists'); - await TopResourcesLeftScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesCardOneHeader.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesCardTwoHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists'); - } - }); - await TopResourcesCardThreeSaveIcon.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 3640);').then(function() { - browser.sleep(2500); - }); - //Find Opportunities - expect(await FindOpportunitiesWidgetTitle.getText()).toEqual('Find Opportunities'); - expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 50 mile radius of 92123.'); - //expect(await JobsTotalsLink.getText()).toEqual('85');//stored value needed - await JobsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - //expect(await JobListingsDIVHeader.getText()).toEqual('Job Listings: 85'); - await XCloseLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InternshipsTotalsLink.getText()).toContain('Internships'); - //expect(await InternshipsTotalsLink.getText()).toEqual('0');//stored value needed - expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');//value sometimes is disabled - //expect(await ApprenticeshipsTotalsLink.getText()).toEqual('0');//stored value needed - await FindOpportunitiesChangeLocationLink.click().then(function() { - browser.sleep(2500); - }); - expect(await ChangeLocationDIVTitle.getText()).toEqual('Change Location'); - expect(await ChangeLocationDIVSubTitle.getText()).toEqual("Let's search the location you're most interested in."); - await ChnageLocationEnterZipCodeTextBox.sendKeys('85013').then(function() { - browser.sleep(1000); - }); - element(by.cssContainingText('option', '1000')).click().then(function() { - browser.sleep(2500); - }); - await ChangeLocationApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 1000 mile radius of you.'); - await JobsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - //expect(await JobListingsDIVHeader.getText()).toEqual('Job Listings: 85');//stored value needed - await XCloseLink.click().then(function() { - browser.sleep(2500); - }); - /*await InternshipsTotalsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InternshipsListingsDIVHeader.getText()).toEqual('Internships: ');//stored value needed - await XCloseLink.click().then(function() { - browser.sleep(1000); - });*/ - //expect(await JobsTotalsLink.getText()).toEqual('85');//stored value needed - //expect(await JobsTotalsLink.getText()).toEqual('68');//stored value needed - expect(await InternshipsTotalsLink.getText()).toContain('Internships'); - //expect(await InternshipsTotalsLink.getText()).toEqual('0');//stored value needed - expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships'); - //expect(await Totals.getText()).toEqual('3');//stored value needed - //Submit A Resource - expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource'); - expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources"); - expect(await TotalInJourneys.getText()).toContain('Total in Journeys'); - expect(await TotalInJourneys.getText()).toContain('1'); - await MySubmittedResourcesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await MySubmittedResourcesWidgetTitle.getText()).toEqual('My Submitted Resources'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await MyResourceTitle.getText()).toEqual('Test Doc'); - } else { - expect(await MyResourceTitle.getText()).toEqual('Recommended Careers Doc'); - } - }); - await EllipsisResource.click().then(function() { - browser.sleep(2500); - }); - expect(await MyResourceFollowIcon.getText()).toEqual('Follow'); - expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More'); - await XCloseLink.click().then(function() { - browser.sleep(2500); - }); - expect(await ForThisMapPoint.getText()).toContain('For this map point'); - expect(await ForThisMapPoint.getText()).toContain('0'); - expect(await SubmitResourceWidgetSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); - await SubmitAResourceWidgetButton.click().then(function() { - browser.sleep(2500); - }); - expect(await SubmitAResourceDIVTitle.getText()).toEqual('Submit a Resource'); - await SubmitAResourceDIVCancelButton.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 4118);').then(function() { - browser.sleep(2500); - }); - //Knowledge - expect(await KnowledgeWidgetTitle.getText()).toEqual('Knowledge View All'); - expect(await KnowledgeImportanceHeader.getText()).toEqual('Importance'); - expect(await KnowledgeDescriptionOne.getText()).toEqual('Computers and Electronics'); - expect(await KnowledgeImportanceStatOne.getText()).toEqual('89%'); - expect(await KnowledgeDescriptionTwo.getText()).toEqual('Mathematics'); - expect(await KnowledgeImportanceStatTwo.getText()).toEqual('77%'); - expect(await KnowledgeDescriptionThree.getText()).toEqual('Engineering and Technology'); - expect(await KnowledgeImportanceStatThree.getText()).toEqual('74%'); - //Skills - expect(await SkillsWidgetTitle.getText()).toEqual('Skills View All'); - expect(await SkillsImportanceHeader.getText()).toEqual('Importance'); - expect(await SkillsDescriptionOne.getText()).toEqual('Complex Problem Solving'); - expect(await SkillsImportanceStatOne.getText()).toEqual('75%'); - expect(await SkillsDescriptionTwo.getText()).toEqual('Critical Thinking'); - expect(await SkillsImportanceStatTwo.getText()).toEqual('75%'); - expect(await SkillsDescriptionThree.getText()).toEqual('Judgment and Decision Making'); - expect(await SkillsImportanceStatThree.getText()).toEqual('75%'); - //Ability - expect(await AbilityWidgetTitle.getText()).toEqual('Ability View All'); - expect(await AbilityImportanceHeader.getText()).toEqual('Importance'); - expect(await AbilityDescriptionOne.getText()).toEqual('Deductive Reasoning'); - expect(await AbilityImportanceStatOne.getText()).toEqual('78%'); - expect(await AbilityDescriptionTwo.getText()).toEqual('Inductive Reasoning'); - expect(await AbilityImportanceStatTwo.getText()).toEqual('78%'); - expect(await AbilityDescriptionThree.getText()).toEqual('Oral Comprehension'); - expect(await AbilityImportanceStatThree.getText()).toEqual('75%'); - //Tasks - expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All'); - expect(await TasksCategoryHeader.getText()).toEqual('Category'); - expect(await TasksImportanceHeader.getText()).toEqual('Importance'); - browser.executeScript('window.scrollTo(0, 4220);').then(function() { - browser.sleep(2500); - }); - expect(await TasksDescriptionOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.'); - expect(await TasksCategoryStatOne.getText()).toEqual('Core'); - expect(await TasksImportanceStatOne.getText()).toEqual('81%'); - expect(await TasksDescriptionTwo.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.'); - expect(await TasksCategoryStatTwo.getText()).toEqual('Core'); - expect(await TasksImportanceStatTwo.getText()).toEqual('72%'); - expect(await TasksDescriptionThree.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.'); - expect(await TasksCategoryStatThree.getText()).toEqual('Core'); - expect(await TasksImportanceStatThree.getText()).toEqual('69%'); - //Work Activities - expect(await WorkActivitiesWidgetTitle.getText()).toEqual('Work Activities View All'); - expect(await WorkActivitiesImportanceHeader.getText()).toEqual('Importance'); - expect(await WorkActivitiesDescriptionOne.getText()).toEqual('Interacting With Computers'); - expect(await WorkActivitiesImportanceStatOne.getText()).toEqual('99%'); - expect(await WorkActivitiesDescriptionTwo.getText()).toEqual('Getting Information'); - expect(await WorkActivitiesImportanceStatTwo.getText()).toEqual('91%'); - expect(await WorkActivitiesDescriptionThree.getText()).toEqual('Making Decisions and Solving Problems'); - expect(await WorkActivitiesImportanceStatThree.getText()).toEqual('91%'); - //Technology - expect(await TechnologyWidgetTitle.getText()).toEqual('Technology View All'); - expect(await TechnologyDescriptionOne.getText()).toEqual('Development environment software'); - expect(await TechnologyStatOne.getText()).toEqual('Ada'); - expect(await TechnologyDescriptionTwo.getText()).toEqual('Analytical or scientific software'); - expect(await TechnologyStatTwo.getText()).toEqual('Advanced numerical software'); - expect(await TechnologyDescriptionThree.getText()).toEqual('Data base management system software'); - expect(await TechnologyStatThree.getText()).toEqual('Apache Cassandra '); - expect(await TechnologyDescriptionFour.getText()).toEqual('Operating system software'); - expect(await TechnologyStatFour.getText()).toEqual('Bash '); - //Nearby Places - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places'); - expect(await ComputerAndInformationSystemsManagers.getText()).toEqual('Computer and Information Systems Managers'); - await ComputerAndInformationSystemsManagersEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - /* CAN'T CAPTURE - expect(await ComputerAndInformationSystemsManagersBackOfCardTitle.getText()).toEqual('2Computer and Information Systems Managers'); - await ComputerAndInformationSystemsManagersBackOfCardXIcon.click().then(function() { - browser.sleep(2500); - });*/ - expect(await ComputerNetworkArchitects.getText()).toEqual('Computer Network Architects'); - expect(await ComputerNetworkSupportSpecialists.getText()).toEqual('Computer Network Support Specialists'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await ComputerProgrammers.getText()).toEqual('Computer Programmers'); - expect(await ComputerScienceTeachersPostsecondary.getText()).toEqual('Computer Science Teachers, Postsecondary'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await DataWarehousingSpecialist.getText()).toEqual('Data Warehousing Specialists'); - expect(await DatabaseAdministrator.getText()).toEqual('Database Administrators'); - expect(await DatabaseArchitects.getText()).toEqual('Database Architects'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - //EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await GraphicDesigners.getText()).toEqual('Graphic Designers'); - expect(await InformationSecurityAnalysts.getText()).toEqual('Information Security Analysts'); - expect(await MultimediaArtistsAndAnimators.getText()).toEqual('Multimedia Artists and Animators'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - //EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await NetworkAndComputerSystemsAdministrators.getText()).toEqual('Network and Computer Systems Administrators'); - expect(await SoftwareDevelopersApplications.getText()).toEqual('Software Developers, Applications'); - expect(await SoftwareDevelopersSystemsSoftware.getText()).toEqual('Software Developers, Systems Software'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TelecommunicationsEngineeringSpecialists.getText()).toEqual('Telecommunications Engineering Specialists'); - //Remove Saved Resource from My Resources widget on dashboard - await DashboardHeaderLink.click().then(function() { - browser.sleep(5000); - }); - browser.executeScript('window.scrollTo(0, 2362);').then(function() { - browser.sleep(2500); - }); - expect(await MyResourcesOneHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await MyResourcesTwoHeader.getText()).toEqual('Test Doc'); - await MyResourcesOneSaveIcon.click().then(function() { - browser.sleep(2500); - }); - browser.refresh().then(function() { - browser.sleep(5000); - }); - browser.executeScript('window.scrollTo(0, 2362);').then(function() { - browser.sleep(2500); - }); - expect(await MyResourcesOneHeader.getText()).toEqual('Test Doc'); - 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().then(function() { - browser.sleep(1000); - }); - await ProfileImage.click().then(function() { - browser.sleep(1000); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/loginWithInstitution_config.js b/loginWithInstitution_config.js deleted file mode 100644 index 98890b7..0000000 --- a/loginWithInstitution_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//loginWithInstitution_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['loginWithInstitution_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(5000); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - loginWithInstitutionUsername: 'GNight147' //QA GNight147 //PROD ProdUser147 - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/loginWithInstitution_spec.js b/loginWithInstitution_spec.js deleted file mode 100644 index b97fbd4..0000000 --- a/loginWithInstitution_spec.js +++ /dev/null @@ -1,175 +0,0 @@ -//loginWithInstitution_spec.js - -describe('Login With Institution Script', function () { - - //Open browser - browser.get(browser.params.login); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('Login'); - }); - - var CloseIcon = element(by.css('.fas')); - var UsernameTextBox = element(by.css('#txtU')); - var PasswordTextBox = element(by.css('#txtP')); - var NextButton = element(by.css('.btn')); - - //Sign Up - LoginWithDuplicateAccount(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton); - - function LoginWithDuplicateAccount(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton) { - it(': Login; should attempt to log in with duplicate accont then reset new account password and complete Explore Careers task.', async function () { - var LoginPageGreetingText = element(by.css('.jmLoginTitle > .ng-scope')); - var InstitutionTextBox = element(by.css('#txtZ')); - var SubTextOne = element(by.css('.jmLoginMsg:nth-child(7) > div:nth-child(1)')); - var SubTextTwo = element(by.css('.jmLoginMsg:nth-child(7) > .ng-scope')); - var InstitutionDropDownList = element(by.css('.ng-scope > .ng-binding')); - var ValidationMessage = element(by.css('.ng-binding:nth-child(1)')); - var FogotPasswordLink = element(by.css('.ng-scope > a')); - //Reset Password - var ResetPasswordInstitutionTextBox = element(by.css('#txtZone')); - var ResetPasswordInstitutionDropDownList = element(by.css('.ng-binding:nth-child(1)')); - var ResetPasswordGreetingText = element(by.css('.jmLoginTitle')); - var ResetPasswordUsernameTextBox = element(by.css('#txtUsername')); - var ResetPasswordValidationMessage = element(by.css('.jmLoginMsg')); - //Journeys Dashboard - var JourneysDashboardGreeting = element(by.css('.dropdown')); - - expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.'); - expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); - expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.'); - expect(InstitutionTextBox.isDisplayed()).toBe(false); - browser.sleep(1000); - await UsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() { - browser.sleep(1000); - UsernameTextBox.sendKeys(protractor.Key.TAB); - browser.sleep(1000); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - }); - await PasswordTextBox.sendKeys('EDmin').then(function() { - browser.sleep(1000); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false); - }); - await InstitutionTextBox.sendKeys('j').then(function() { - browser.sleep(1000); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false); - }); - await InstitutionTextBox.sendKeys('o').then(function() { - browser.sleep(1000); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - expect(InstitutionDropDownList.isDisplayed()).toBe(true); - }); - expect(InstitutionDropDownList.isDisplayed()).toBe(true); - await InstitutionTextBox.sendKeys('rn').then(function() { - browser.sleep(1000); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false); - }); - await InstitutionTextBox.clear(); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - await InstitutionTextBox.sendKeys('journeys').then(function() { - browser.sleep(1000); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - expect(InstitutionDropDownList.isDisplayed()).toBe(true); - }); - await InstitutionDropDownList.click().then(function() { - browser.sleep(1000); - expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false); - }); - await NextButton.click().then(function() { - browser.sleep(2500); - }); - expect(await ValidationMessage.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); - expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); - expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.'); - await FogotPasswordLink.click().then(function() { - browser.sleep(2500); - }); - //Reset Password Page - expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?"); - await ResetPasswordUsernameTextBox.sendKeys('jhuerta').then(function() { - browser.sleep(2500); - }); - await NextButton.click().then(function() { - browser.sleep(2500); - }); - expect(ResetPasswordInstitutionTextBox.isDisplayed()).toBe(false); - expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com."); - await ResetPasswordUsernameTextBox.clear(); - browser.sleep(1000); - await ResetPasswordUsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() { - browser.sleep(1000); - }); - await NextButton.click().then(function() { - browser.sleep(2500); - expect(ResetPasswordInstitutionTextBox.isDisplayed()).toBe(true); - expect(browser.isElementPresent(ResetPasswordValidationMessage)).toBe(false); - }); - expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?"); - await ResetPasswordInstitutionTextBox.sendKeys('journeys').then(function() { - browser.sleep(2500); - expect(ResetPasswordInstitutionDropDownList.isDisplayed()).toBe(true); - }); - await ResetPasswordInstitutionDropDownList.click().then(function() { - browser.sleep(1000); - expect(browser.isElementPresent(ResetPasswordInstitutionDropDownList)).toBe(false); - }); - await NextButton.click().then(function() { - browser.sleep(2500); - }); - expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?"); - expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com."); - await CloseIcon.click().then(function() { - browser.sleep(1000); - }); - //Back to Login Page - expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.'); - expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); - expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.'); - expect(InstitutionTextBox.isDisplayed()).toBe(false); - await UsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() { - browser.sleep(1000); - }); - await PasswordTextBox.sendKeys('EDmin123').then(function() { - browser.sleep(1000); - }); - expect(InstitutionTextBox.isDisplayed()).toBe(true); - await InstitutionTextBox.sendKeys('journeys').then(function() { - browser.sleep(1000); - expect(InstitutionDropDownList.isDisplayed()).toBe(true); - }); - await InstitutionDropDownList.click().then(function() { - browser.sleep(1000); - expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - //Journeys Dashboard - browser.waitForAngular(); - browser.getCurrentUrl(); - expect(await JourneysDashboardGreeting.getText()).toContain('Hi, '); - }); - } - - //Sign Out*/ - SignOut(); -}); - -function SignOut() { - it(': SignOut; should log out of journeysmap.', async function () { - var ProfileImage = element(by.css('.roundCenterBackground:nth-child(4)')); - var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/myCareersWidget_config.js b/myCareersWidget_config.js deleted file mode 100644 index 3941ca8..0000000 --- a/myCareersWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//myCareersWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['myCareersWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/myCareersWidget_spec.js b/myCareersWidget_spec.js deleted file mode 100644 index e936b61..0000000 --- a/myCareersWidget_spec.js +++ /dev/null @@ -1,559 +0,0 @@ -//myCareersWidget_spec.js - -describe('My Careers Widget Script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - //<<<>>> - MyCareersWidget(); - - //Sign Out*/ - SignOut(); -}); - -function MyCareersWidget() { - it(': MyCareersWidget, should cycle through Recommended Careers carousel and click the View More link', async function () { - var WidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .ng-binding')); - var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #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 > .territoryCardItemText')); - var AdministrativeServicesManagersTitle = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer #territoryCardTitleHeader > .territoryCardTitleText')); - var AdministrativeServicesManagersDescription = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardDescriptionText')); - var AdministrativeServicesManagersDegreeHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersDegreeDataOne = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersDegreeDataTwo = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersDegreeDataThree = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(4) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersSalaryHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(16) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersSalaryData = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(17) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersGrowthHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(19) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersGrowthDataOne = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(20) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersGrowthDataTwo = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(20) > td:nth-child(2) > div:nth-child(3)')); - var AdministrativeServicesManagersJobOpeningsHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(22) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersJobOpeningsData = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(23) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersEmployedHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(25) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersEmployedData = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(26) > td:nth-child(2) > div:nth-child(1)')); - var AdministrativeServicesManagersCloseIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .glyphicon')); - var AdministrativeServicesManagersEllipsisIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas')); - var AdministrativeServicesManagersEllipsisTitle = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText')) - var AdministrativeServicesManagersLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(1) > .territoryCardBackOfCardItemText')); - var AdministrativeServicesManagersMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText')); - var AdministrativeServicesManagersJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText')); - var AdministrativeServicesManagersVideoIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText')); - var AdministrativeServicesManagersVideoTitle = element(by.css('.modal-content .ng-binding')); - var AdministrativeServicesManagersVideoFooter = element(by.css('.modal-content div:nth-child(3)')); - var AdministrativeServicesManagersVideoCloseIcon = element(by.css('.close')); - var AdministrativeServicesManagersEllipsisCloseIcon = element(by.css('.ng-scope > #territoryCardTitleHeader .glyphicon')); - var AdministrativeServicesManagersBackOfCardLearnMoreIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText')); - var AdministrativeServicesManagersBackOfCardMapIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText')); - var AdministrativeServicesManagersBackOfCardJourneyIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(3) > .territoryCardActionBarText')); - var AdministrativeServicesManagersBackOfCardVideoIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText')); - var MyCareersWidgetClusterDIVTitle = element(by.css('.ng-scope > .territoryCardTitleText')); - var BusinessManagementAndAdministration = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - var GovernmentAndPublicAdministration = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - var HealthScience = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - var MyCareersWidgetDIVRightArrowIcon = element(by.css('td > .carousel > .right > .glyphicon')); - var TransportationDistributionAndLogistics = element(by.css('.item:nth-child(2) .ng-scope > div > .territoryCardTitleText > .ng-binding')); - var MyCareersWidgetDIVLeftArrowIcon = element(by.css('td > .carousel > .left > .glyphicon')); - var MyCareersWidgetDIVCardTwoSelectButton = element(by.css('.col-xs-4:nth-child(2) .btn')); - var MyCareersWidgetDIVLearnMoreTitle = element(by.css('td .jrnys_lead-body-copy')); - var BackLink = element(by.css('.btn-primary-back-mod')); - var AirTrafficControllers = element(by.css('#\\30 2c1f459-be14-4ea7-8229-404af8ccb881 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CarrouselRightScroll = element(by.css('.glyphicon-chevron-right')); - var AircraftCargoHandlingSupervisors = element(by.css('#\\36 62659b9-7faa-4b77-bce1-b8f92bfe8573 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AirfieldOperationsSpecialists = element(by.css('#\\33 b760692-c82e-4868-98e1-f7a5fa410ab4 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AppraisersAndAsessorsOfRealEstate = element(by.css('#\\33 05627a3-f43a-4946-b5d7-11e379ab613e > #territoryCardContainer .ng-binding')); - var ArchitectsExceptLandscapeAndNaval = element(by.css('#\\34 729871a-cff9-4010-8f1c-2688fe8c4def > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitecturalAndEngineeringManagers = element(by.css('#\\32 dbe648d-2f34-41d0-8ada-5042e198dbdc > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitecturalDrafters = element(by.css('#\\31 bb7457e-a632-4e39-90c4-b8cf6b3ddc9e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AuthorizingOfficialDesignatingRepresentative = element(by.css('#ceff912f-2195-4cb7-b77a-87c3bd0792fe > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BiofuelsProductionManagers = element(by.css('#f76ab5f4-ba1c-4412-bacf-3fcd9a85b8cd > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ViewMoreLink = element(by.linkText('View More')); - var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer > div > div > div .journey-follow')); - var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollowingCard = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText')) - var TransportationEngineers = element(by.css('#\\35 d25e23b-3acb-474c-807d-57e20f77cc18 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BiofuelsBiodieselTechnologyAndProductDevelopmentManagers = element(by.css('#\\36 c9e104c-d249-489b-a213-28bf2d8ba022 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BiomassPowerPlantManagers = element(by.css('#\\35 912ac34-0f3e-4f04-a3b3-d461906cdfd4 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BrownfieldRedevelopmentSpecialistsAndSiteManagers = element(by.css('#d5efbdc8-6101-42d8-9c14-554b2fa2b149 > #territoryCardContainer .ng-binding')); - var BudgetAnalysts = element(by.css('#\\38 b96e4a3-bd76-4397-9b86-d8fcd0c6ed11 > #territoryCardContainer .ng-binding')); - var NavigationFooterBackArrowLink = element(by.linkText('«')); - var NavigationFooterOneLink = element(by.linkText('1')); - var NavigationFooterTwoLink = element(by.linkText('2')); - var NavigationFooterThreeLink = element(by.linkText('3')); - var NavigationFooterFourLink = element(by.linkText('4')); - var NavigationFooterFiveLink = element(by.linkText('5')); - var NavigationFooterNextLink = element(by.linkText('...')); - var NavigationFooterForwardArrowLink = element(by.linkText('»')); - var FilterIcon = element(by.css('.widgetControlContainer')); - var FilterTitle = element(by.css('.modal-content > .ng-scope > .ng-binding')); - var MyResultsHeader = element(by.css('#recommendedCareerFilter tr:nth-child(1) > td')); - var InterestSurveyResults = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)')); - var InterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(2) > td > input')); - var SkillsAssessmentResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); - var SkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > td > input')); - var MyFollowing = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(2)')); - var MyFollowingCheckBox = element(by.css('.ng-scope:nth-child(4) input')); - var JobPrepHeader = element(by.css('#recommendedCareerFilter tr:nth-child(5) > td')); - var MayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(2)')); - var MayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(6) input')); - var HighSchoolDiploma = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(2)')); - var HighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(7) input')); - var VocationalTrainingOrAssociatesDegrees = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(2)')); - var VocationalTrainingOrAssociatesDegreesCheckBox = element(by.css('.ng-scope:nth-child(8) input')); - var FourYearBachelorDegrees = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); - var FourYearBachelorDegreesCheckBox = element(by.css('.ng-scope:nth-child(9) input')); - var GraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); - var GraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(10) input')); - var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(11) > td')); - var Best = element(by.css('.ng-scope:nth-child(12) > .ng-binding')); - var BestCheckBox = element(by.css('.ng-scope:nth-child(12) input')); - var Great = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); - var GreatCheckBOx = element(by.css('.ng-scope:nth-child(13) input')); - var Good = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); - var GoodCheckBox = element(by.css('.ng-scope:nth-child(14) input')); - var CategoryHeader = element(by.css('#recommendedCareerFilter tr:nth-child(15) > td')); - var BrightOutlook = element(by.css('.ng-scope:nth-child(16) > .ng-binding')); - var BrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(16) input')); - var Green = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); - var GreenCheckBox = element(by.css('.ng-scope:nth-child(17) input')); - var Apprenticeships = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); - var ApprenticeshipsCheckBox = element(by.css('.ng-scope:nth-child(18) input')); - var Following = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); - var FollowingCheckBox = element(by.css('.ng-scope:nth-child(19) input')); - var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(20) > td')); - var AtoZ = element(by.css('tr:nth-child(21) > td:nth-child(2)')); - var AtoZRadioButton = element(by.css('td > .ng-pristine')); - var ZtoA = element(by.css('#recommendedCareerFilter tr:nth-child(22) > td:nth-child(2)')); - var ZtoARadioButton = element(by.css('tr:nth-child(22) .ng-pristine')); - var FilterButton = element(by.css('td > .btn-info')); - var WindEngergyProjectManagers = element(by.css('#\\38 bcbe02a-c522-4035-b0e1-48534bdfc37a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var WholesaleAndRetailBuyersExceptFarmProducts = element(by.css('#a60d3e71-96fd-403f-a106-ed87f5982ada > #territoryCardContainer .territoryCardTitleText > .ng-binding'));//#\\39 a1cba50-6587-49a1-add0-dcc66a9bea71 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));//xpath('/html/body/div[1]/div/div[2]/div[2]/div/my-careers-view-all/div/div[2]/div/div/div/div/div[2]/div/div/career-territory-card/territory-card/div/div[1]/div[3]/div/div[2]/span')); - var TreasurersAndControllers = element(by.css('#\\33 1a506f8-ad4e-4af9-ba38-6e606ca7a7ed > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SupplyChainManagers = element(by.css('#dceb040f-09f8-494a-b9c8-83d8505a42ce > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var StorageAndDistributionManagers = element(by.css('#\\39 ea294f9-9db3-4ab6-a7dd-067b80405a33 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SolarSalesRepresentativesAndAssessors = element(by.css('#\\33 adce6b6-b036-4d4a-aa65-46cb7e1c4ac6 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SecurityManagers = element(by.css('#\\36 3acea9a-c270-448b-9dfd-7658b3f450db > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SecurityManagementSpecialists = element(by.css('#\\36 a0c385c-d021-482b-9060-da1e24db30e6 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SecurityControlAssessor = element(by.css('#\\33 395a07f-903a-45f1-bff2-c95731d20d52 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var SalesRepresentativesWholesaleAndManufacturingTechnicalAndScientificProducts = element(by.css('#\\36 eda517d-e387-431d-b054-ac1d3a0509b4 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var Roofers = element(by.css('#\\30 44ac138-048b-4c50-a6c3-43c0b45f3da9 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var RiskManagementSpecialists = element(by.css('#e195b9d2-6fc2-4545-b11b-be6b2c8f32ef > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ReinforcingIronAndRebarWorkers = element(by.css('#caedeec5-41a8-463d-ae37-466f78761764 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var QualityControlSystemsManagers = element(by.css('#\\35 893b6a5-7a8c-4649-8547-f8670e1567a5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var PropertyRealEstateAndCommunityAssociationManagers = element(by.css('#\\34 fdf35b5-6d72-4d30-8f42-4810ebaa159f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var FilterBubbleOne = element(by.css('.statusBtn:nth-child(1)')); - var FilterBubbleTwo = element(by.css('.statusBtn:nth-child(2)')); - var FilterBubbleThree = element(by.css('.statusBtn:nth-child(3)')); - var FilterBubbleFour = element(by.css('.statusBtn:nth-child(4)')); - var FilterBubbleFive = element(by.css('.statusBtn:nth-child(5)')); - var JobPrepFilterButton = element(by.css('.statusBtn:nth-child(1) > .xIcon')); - var ProgramManager = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var WidgetFilterIcon = element(by.css('.fa-sliders-h')); - var FilterButtonTwo = element(by.css('tr:nth-child(23) .btn-info')); - var RemoveZtoAFilterButton = element(by.css('.statusBtn:nth-child(2) > .xIcon')); - var RemoveShowMyResultsFilterButton = element(by.css('.xIcon')); - var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersCard = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer > div')); - - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await WidgetTitle.getText()).toEqual('My Careers View All'); - expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); - expect(await AdministrativeServicesManagersAtAGlanceIcon.getText()).toContain('At a'); - expect(await AdministrativeServicesManagersAtAGlanceIcon.getText()).toContain('Glance'); - await AdministrativeServicesManagersAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AdministrativeServicesManagersTitle.getText()).toEqual('Administrative Services Managers'); - expect(await AdministrativeServicesManagersDescription.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.'); - expect(await AdministrativeServicesManagersDegreeHeader.getText()).toEqual('Typical Degree'); - expect(await AdministrativeServicesManagersDegreeDataOne.getText()).toEqual('High school - 34%'); - expect(await AdministrativeServicesManagersDegreeDataTwo.getText()).toEqual('College (4 Year) - 24%'); - expect(await AdministrativeServicesManagersDegreeDataThree.getText()).toEqual('Professional degree certificate - 13%'); - expect(await AdministrativeServicesManagersSalaryHeader.getText()).toEqual('Average Annual Salary'); - expect(await AdministrativeServicesManagersSalaryData.getText()).toEqual('$94,020'); - expect(await AdministrativeServicesManagersGrowthHeader.getText()).toEqual('Projected Growth'); - expect(await AdministrativeServicesManagersGrowthDataOne.getText()).toEqual('10.1%'); - expect(await AdministrativeServicesManagersGrowthDataTwo.getText()).toEqual('ABOVE AVERAGE'); - expect(await AdministrativeServicesManagersJobOpeningsHeader.getText()).toEqual('Projected Job Openings'); - expect(await AdministrativeServicesManagersJobOpeningsData.getText()).toEqual('26,200'); - expect(await AdministrativeServicesManagersEmployedHeader.getText()).toEqual('Currently Employed'); - expect(await AdministrativeServicesManagersEmployedData.getText()).toEqual('281,700'); - await AdministrativeServicesManagersCloseIcon.click(); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(2500); - }); - await AdministrativeServicesManagersEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AdministrativeServicesManagersEllipsisTitle.getText()).toEqual('Administrative Services Managers'); - expect(await AdministrativeServicesManagersLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await AdministrativeServicesManagersMapIcon.getText()).toEqual('Map'); - expect(await AdministrativeServicesManagersJourneyIcon.getText()).toEqual('Journey'); - expect(await AdministrativeServicesManagersVideoIcon.getText()).toEqual('Video'); - await AdministrativeServicesManagersVideoIcon.click().then(function() { - browser.sleep(20000); - }); - expect(await AdministrativeServicesManagersVideoTitle.getText()).toEqual('Administrative Services Managers'); - expect(await AdministrativeServicesManagersVideoFooter.getText()).toEqual('Produced by CareerOneStop'); - await AdministrativeServicesManagersVideoCloseIcon.click().then(function() { - browser.sleep(2500); - }); - //expect(await AdministrativeServicesManagersAtAGlanceIcon.getText()).toEqual('At A Glance'); - await AdministrativeServicesManagersEllipsisCloseIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await AdministrativeServicesManagersBackOfCardLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await AdministrativeServicesManagersBackOfCardMapIcon.getText()).toEqual('Map'); - expect(await AdministrativeServicesManagersBackOfCardJourneyIcon.getText()).toEqual('Journey'); - expect(await AdministrativeServicesManagersBackOfCardVideoIcon.getText()).toEqual('Video'); - await AdministrativeServicesManagersBackOfCardLearnMoreIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await MyCareersWidgetClusterDIVTitle.getText()).toEqual('Administrative Services Managers is found in a few different clusters. Select the cluster below that you would like to Learn More about:'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration'); - expect(await HealthScience.getText()).toEqual('Health Science'); - await MyCareersWidgetDIVRightArrowIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); - await MyCareersWidgetDIVLeftArrowIcon.click().then(function() { - browser.sleep(2500); - }); - await MyCareersWidgetDIVCardTwoSelectButton.click().then(function() { - browser.sleep(5000); - }); - expect(await MyCareersWidgetDIVLearnMoreTitle.getText()).toEqual('Administrative Services Managers'); - await BackLink.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); EDM-1726 - //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 - expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); - await CarrouselRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers'); - expect(await AircraftCargoHandlingSupervisors.getText()).toEqual('Aircraft Cargo Handling Supervisors'); - expect(await AirfieldOperationsSpecialists.getText()).toEqual('Airfield Operations Specialists'); - - await CarrouselRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await AppraisersAndAsessorsOfRealEstate.getText()).toEqual('Appraisers and Assessors of Real Estate'); - expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval'); - expect(await ArchitecturalAndEngineeringManagers.getText()).toEqual('Architectural and Engineering Managers'); - await CarrouselRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters'); - expect(await AuthorizingOfficialDesignatingRepresentative.getText()).toEqual('Authorizing Official/Designating Representative'); - expect(await BiofuelsProductionManagers.getText()).toEqual('Biofuels Production Managers'); - await CarrouselRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await BiofuelsBiodieselTechnologyAndProductDevelopmentManagers.getText()).toEqual('Biofuels/Biodiesel Technology and Product Development Managers'); - expect(await BiomassPowerPlantManagers.getText()).toEqual('Biomass Power Plant Managers'); - await ViewMoreLink.click().then(function() { - browser.sleep(5000); - }); - expect(await PageTitle.getText()).toEqual('My Careers'); - expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.click().then(function() { - browser.sleep(2500); - }); - await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollowingCard.click().then(function() { - browser.sleep(2500); - }); - expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); - expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers'); - browser.executeScript('window.scrollTo(0, 255);').then(function() { - browser.sleep(2500); - }); - expect(await AircraftCargoHandlingSupervisors.getText()).toEqual('Aircraft Cargo Handling Supervisors'); - expect(await AirfieldOperationsSpecialists.getText()).toEqual('Airfield Operations Specialists'); - expect(await AppraisersAndAsessorsOfRealEstate.getText()).toEqual('Appraisers and Assessors of Real Estate'); - expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval'); - browser.executeScript('window.scrollTo(0, 725);').then(function() { - browser.sleep(2500); - }); - expect(await ArchitecturalAndEngineeringManagers.getText()).toEqual('Architectural and Engineering Managers'); - expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters'); - expect(await AuthorizingOfficialDesignatingRepresentative.getText()).toEqual('Authorizing Official/Designating Representative'); - expect(await BiofuelsProductionManagers.getText()).toEqual('Biofuels Production Managers'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await BiofuelsBiodieselTechnologyAndProductDevelopmentManagers.getText()).toEqual('Biofuels/Biodiesel Technology and Product Development Managers'); - expect(await BiomassPowerPlantManagers.getText()).toEqual('Biomass Power Plant Managers'); - expect(await BrownfieldRedevelopmentSpecialistsAndSiteManagers.getText()).toEqual('Brownfield Redevelopment Specialists and Site Managers'); - expect(await BudgetAnalysts.getText()).toEqual('Budget Analysts'); - expect(await NavigationFooterBackArrowLink.getText()).toEqual('«'); - expect(await NavigationFooterOneLink.getText()).toEqual('1'); - expect(await NavigationFooterTwoLink.getText()).toEqual('2'); - expect(await NavigationFooterThreeLink.getText()).toEqual('3'); - expect(await NavigationFooterFourLink.getText()).toEqual('4'); - expect(await NavigationFooterFiveLink.getText()).toEqual('5'); - expect(await NavigationFooterNextLink.getText()).toEqual('...'); - expect(await NavigationFooterForwardArrowLink.getText()).toEqual('»'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await FilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await FilterTitle.getText()).toEqual('Filter'); - expect(await MyResultsHeader.getText()).toEqual('My Results'); - expect(await InterestSurveyResults.getText()).toContain('Interest Survey Results ('); - expect(await SkillsAssessmentResults.getText()).toContain('Skills Matcher Results ('); - await SkillsAssessmentResultsCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await MyFollowing.getText()).toContain('My Following ('); - expect(await JobPrepHeader.getText()).toEqual('Job Prep'); - expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED ('); - await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await HighSchoolDiploma.getText()).toContain('High School Diploma ('); - expect(await VocationalTrainingOrAssociatesDegrees.getText()).toContain('Vocational Training or Associates Degree ('); - expect(await FourYearBachelorDegrees.getText()).toContain('4 Year Bachelor Degree ('); - expect(await GraduateSchoolOrProfessionalDegree.getText()).toContain('Graduate School or Professional Degree ('); - expect(await FitHeader.getText()).toEqual('Fit'); - expect(await Best.getText()).toContain('Best ('); - await BestCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await Great.getText()).toContain('Great ('); - expect(await Good.getText()).toContain('Good ('); - await GoodCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await CategoryHeader.getText()).toEqual('Category'); - expect(await BrightOutlook.getText()).toContain('Bright Outlook ('); - expect(await Green.getText()).toContain('Green ('); - expect(await Apprenticeships.getText()).toContain('Apprenticeship ('); - expect(await Following.getText()).toContain('Following ('); - await FollowingCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await SortHeader.getText()).toEqual('Sort'); - expect(await AtoZ.getText()).toEqual('A to Z'); - expect(await ZtoA.getText()).toEqual('Z to A'); - await ZtoARadioButton.click().then(function() { - browser.sleep(1000); - }); - await FilterButton.click().then(function() { - browser.sleep(5000); - }); - expect(await FilterBubbleOne.getText()).toEqual('Job PrepX'); - expect(await FilterBubbleTwo.getText()).toEqual('FitX'); - expect(await FilterBubbleThree.getText()).toEqual('My ResultsX'); - expect(await FilterBubbleFour.getText()).toEqual('CategoryX'); - expect(await FilterBubbleFive.getText()).toEqual('Z to AX'); - expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers'); - expect(await WholesaleAndRetailBuyersExceptFarmProducts.getText()).toEqual('Wholesale and Retail Buyers, Except Farm Products'); - expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers'); - expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers'); - browser.executeScript('window.scrollTo(0, 255);').then(function() { - browser.sleep(2500); - }); - expect(await SupplyChainManagers.getText()).toEqual('Supply Chain Managers'); - expect(await StorageAndDistributionManagers.getText()).toEqual('Storage and Distribution Managers'); - expect(await SolarSalesRepresentativesAndAssessors.getText()).toEqual('Solar Sales Representatives and Assessors'); - expect(await SecurityManagers.getText()).toEqual('Security Managers'); - browser.executeScript('window.scrollTo(0, 725);').then(function() { - browser.sleep(2500); - }); - expect(await SecurityManagementSpecialists.getText()).toEqual('Security Management Specialists'); - expect(await SecurityControlAssessor.getText()).toEqual('Security Control Assessor'); - expect(await SalesRepresentativesWholesaleAndManufacturingTechnicalAndScientificProducts.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products'); - expect(await Roofers.getText()).toEqual('Roofers'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await RiskManagementSpecialists.getText()).toEqual('Risk Management Specialists'); - expect(await ReinforcingIronAndRebarWorkers.getText()).toEqual('Reinforcing Iron and Rebar Workers'); - expect(await QualityControlSystemsManagers.getText()).toEqual('Quality Control Systems Managers'); - expect(await PropertyRealEstateAndCommunityAssociationManagers.getText()).toEqual('Property, Real Estate, and Community Association Managers'); - expect(await NavigationFooterBackArrowLink.getText()).toEqual('«'); - expect(await NavigationFooterOneLink.getText()).toEqual('1'); - expect(await NavigationFooterTwoLink.getText()).toEqual('2'); - expect(await NavigationFooterThreeLink.getText()).toEqual('3'); - expect(await NavigationFooterFourLink.getText()).toEqual('4'); - expect(await NavigationFooterFiveLink.getText()).toEqual('5'); - expect(await NavigationFooterForwardArrowLink.getText()).toEqual('»'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await JobPrepFilterButton.click().then(function() { - browser.sleep(5000); - }); - expect(await FilterBubbleOne.getText()).toEqual('FitX'); - expect(await FilterBubbleTwo.getText()).toEqual('My ResultsX'); - expect(await FilterBubbleThree.getText()).toEqual('CategoryX'); - expect(await FilterBubbleFour.getText()).toEqual('Z to AX'); - expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers'); - expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers'); - expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers'); - expect(await SupplyChainManagers.getText()).toEqual('Supply Chain Managers'); - browser.executeScript('window.scrollTo(0, 255);').then(function() { - browser.sleep(2500); - }); - expect(await StorageAndDistributionManagers.getText()).toEqual('Storage and Distribution Managers'); - expect(await SolarSalesRepresentativesAndAssessors.getText()).toEqual('Solar Sales Representatives and Assessors'); - expect(await SecurityManagers.getText()).toEqual('Security Managers'); - expect(await SecurityManagementSpecialists.getText()).toEqual('Security Management Specialists'); - browser.executeScript('window.scrollTo(0, 725);').then(function() { - browser.sleep(2500); - }); - expect(await SecurityControlAssessor.getText()).toEqual('Security Control Assessor'); - expect(await SalesRepresentativesWholesaleAndManufacturingTechnicalAndScientificProducts.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products'); - expect(await Roofers.getText()).toEqual('Roofers'); - expect(await RiskManagementSpecialists.getText()).toEqual('Risk Management Specialists'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await ReinforcingIronAndRebarWorkers.getText()).toEqual('Reinforcing Iron and Rebar Workers'); - expect(await QualityControlSystemsManagers.getText()).toEqual('Quality Control Systems Managers'); - expect(await PropertyRealEstateAndCommunityAssociationManagers.getText()).toEqual('Property, Real Estate, and Community Association Managers'); - expect(await ProgramManager.getText()).toEqual('Program Manager'); - expect(await NavigationFooterBackArrowLink.getText()).toEqual('«'); - expect(await NavigationFooterOneLink.getText()).toEqual('1'); - expect(await NavigationFooterTwoLink.getText()).toEqual('2'); - expect(await NavigationFooterThreeLink.getText()).toEqual('3'); - expect(await NavigationFooterFourLink.getText()).toEqual('4'); - expect(await NavigationFooterFiveLink.getText()).toEqual('5'); - expect(await NavigationFooterForwardArrowLink.getText()).toEqual('»'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await BackLink.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 1250);').then(function() { - browser.sleep(5000); - }); - expect(await FilterBubbleOne.getText()).toEqual('FitX'); - expect(await FilterBubbleTwo.getText()).toEqual('My ResultsX'); - expect(await FilterBubbleThree.getText()).toEqual('CategoryX'); - expect(await FilterBubbleFour.getText()).toEqual('Z to AX'); - expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers'); - expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers'); - expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers'); - await WidgetFilterIcon.click().then(function() { - browser.sleep(2500); - }); - await BestCheckBox.click().then(function() { - browser.sleep(1000); - }); - await GoodCheckBox.click().then(function() { - browser.sleep(1000); - }); - expect(await Following.getText()).toContain('Following ('); - await FollowingCheckBox.click().then(function() { - browser.sleep(2500); - }); - await FilterButtonTwo.click().then(function() { - browser.sleep(5000); - }); - expect(await FilterBubbleOne.getText()).toEqual('My ResultsX'); - expect(await FilterBubbleTwo.getText()).toEqual('Z to AX'); - expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers'); - expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers'); - expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers'); - await RemoveZtoAFilterButton.click().then(function() { - browser.sleep(5000); - }); - expect(await FilterBubbleOne.getText()).toEqual('My ResultsX'); - expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval'); - expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters'); - expect(await AuthorizingOfficialDesignatingRepresentative.getText()).toEqual('Authorizing Official/Designating Representative'); - await RemoveShowMyResultsFilterButton.click().then(function() { - browser.sleep(5000); - }); - expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors'); - expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); - expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.click().then(function() { - browser.sleep(2500); - }); - await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersCard.click().then(function() { - browser.sleep(2500); - }); - expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers'); - browser.sleep(2500); - 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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/myJourneysWidget_config.js b/myJourneysWidget_config.js deleted file mode 100644 index 8a6d5b0..0000000 --- a/myJourneysWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//myJourneysWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['myJourneysWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/myJourneysWidget_spec.js b/myJourneysWidget_spec.js deleted file mode 100644 index 2502f89..0000000 --- a/myJourneysWidget_spec.js +++ /dev/null @@ -1,419 +0,0 @@ -//myJourneysWidget_spec.js - -describe('My Journeys Widget script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - MyJourneysWidget(); - MyJourneysPage(); - - //Sign Out*/ - SignOut(); -}); - -function MyJourneysWidget() { - it(': MyJourneys, should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () { - var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)')); - var LatestJourneyTitle = element(by.css('.borderTop .jrnys_body-copy')); - var LatestJourneyLearnMoreLink = element(by.css('.borderTop > #appendHere > .jrnys_support-text')); - var LatestJourneyStepCount = element(by.css('.borderTop')); - var ThirdJourneyInfo = element(by.css('.hideSmallRange > div')); - var SecondJourneyInfo = element(by.css('.hideMidRange > div')); - var SelectedJourneyTitle = element(by.css('.col-md-12 > .ng-binding')); - var SelectedJourneySubTitle = element(by.css('.select-waypointTitle')); - var SelectedJourneySubText = element(by.css('.details-resourceRowTitle')) - var JourneysGreeting = element(by.css('.dropdown')); - var SelectedJourneyResourceTitleOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleFive = element(by.css('.col-md-12:nth-child(6) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeFive = element(by.css('.col-md-12:nth-child(6) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleSix = element(by.css('.col-md-12:nth-child(7) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeSix = element(by.css('.col-md-12:nth-child(7) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleSeven = element(by.css('.col-md-12:nth-child(8) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeSeven = element(by.css('.col-md-12:nth-child(8) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleEight = element(by.css('.col-md-12:nth-child(9) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeEight = element(by.css('.col-md-12:nth-child(9) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleNine = element(by.css('.col-md-12:nth-child(10) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeNine = element(by.css('.col-md-12:nth-child(10) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceNone = element(by.css('.col-md-12 > .col-md-12')); - var SelectedJourneyRightArrow = element(by.css('.glyphicon-menu-right')); - var OldestJourneyInfo = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div')); - var BackLink = element(by.css('.btn-primary-back-mod')); - - browser.executeScript('window.scrollTo(0, 3473);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('My Journeys'); - expect(await LatestJourneyTitle.getText()).toContain('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await LatestJourneyLearnMoreLink.getText()).toContain('Learn More'); - expect(await LatestJourneyStepCount.getText()).toContain('5 steps (0 Complete)'); - expect(await ThirdJourneyInfo.getText()).toContain('8 to Airfield Operations Specialists through College'); - expect(await ThirdJourneyInfo.getText()).toContain('Learn More'); - expect(await ThirdJourneyInfo.getText()).toContain('7 steps (0 Complete)'); - expect(await SecondJourneyInfo.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await SecondJourneyInfo.getText()).toContain('Learn More'); - expect(await SecondJourneyInfo.getText()).toContain('5 steps (0 Complete)'); - expect(await OldestJourneyInfo.getText()).toContain('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); - expect(await OldestJourneyInfo.getText()).toContain('Learn More'); - expect(await OldestJourneyInfo.getText()).toContain('13 steps (0 Complete)'); - await SecondJourneyInfo.click().then(function() { - browser.sleep(5000); - }); - expect(await SelectedJourneyTitle.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await SelectedJourneySubTitle.getText()).toEqual('10'); - expect(await SelectedJourneySubText.getText()).toEqual('Try these resources'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('cnn'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('10th Grade Class Science Project'); - expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('11'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('This is CNN'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('just juan testing'); - expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('fdg'); - expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('cnn'); - expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('12'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('cnn'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Computer Security Graduate Certificate'); - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Computer and Information Systems Managers'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Computer and Information Systems Managers (Business, Management and Administration)'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML'); - expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('Save'); - expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('Gave'); - expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleFive.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeFive.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleSix.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeSix.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleSeven.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeSeven.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Computer and Information Systems Managers (Business, Management and Administration)'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML'); - expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleFive.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeFive.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleSix.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeSix.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleSeven.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeSeven.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleEight.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeEight.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleNine.getText()).toEqual('Computer and Information Systems Managers'); - expect(await SelectedJourneyResourceTypeNine.getText()).toEqual('Type:'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - await BackLink.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 3473);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('My Journeys'); - expect(await LatestJourneyTitle.getText()).toContain('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await LatestJourneyLearnMoreLink.getText()).toContain('Learn More'); - expect(await LatestJourneyStepCount.getText()).toContain('5 steps (0 Complete)'); - expect(await ThirdJourneyInfo.getText()).toContain('8 to Airfield Operations Specialists through College'); - expect(await ThirdJourneyInfo.getText()).toContain('Learn More'); - expect(await ThirdJourneyInfo.getText()).toContain('7 steps (0 Complete)'); - expect(await SecondJourneyInfo.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await SecondJourneyInfo.getText()).toContain('Learn More'); - expect(await SecondJourneyInfo.getText()).toContain('5 steps (0 Complete)'); - expect(await OldestJourneyInfo.getText()).toContain('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); - expect(await OldestJourneyInfo.getText()).toContain('Learn More'); - expect(await OldestJourneyInfo.getText()).toContain('13 steps (0 Complete)'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyJourneysPage() { - it(': MyJourneysPage, should navigate to My Journeys page, view first latest journey on map', async function () { - var MyJourneysHeaderLink = element(by.css('#nbMyJourneys span')); - var PageTitle = element(by.css('.jrnys_lead-body-copy')); - var PageSubTitle = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); - var SavedJourneyTitleOne = element(by.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]")); - var SelectedJourneyBubbleOne = element(by.css('#mCSB_6_container > .firstWaypoint .lblClass')); - var SelectedJourneyBubbleTwo = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(2) .lblClass')); - var SelectedJourneyBubbleThree = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(3) .lblClass')); - var SelectedJourneyBubbleFourOne = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(4) .lblClass:nth-child(1)')); - var SelectedJourneyBubbleFourTwo = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(4) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleFourThree = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(4) .lblClass:nth-child(3)')); - var SelectedJourneyBubbleFiveOne = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(1)')); - var SelectedJourneyBubbleFiveTwo = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(2)')); - var SelectedJourneyBubbleFiveThree = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(3)')); - var SavedJourneyTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]")); - var SavedJourneyTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]")); - var SavedJourneyTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]")); - var SelectedJourneyTitle = element(by.css('.col-md-12 > .ng-binding')); - var SelectedJourneySubTitle = element(by.css('.select-waypointTitle')); - var SelectedJourneySubText = element(by.css('.details-resourceRowTitle')) - var JourneysGreeting = element(by.css('.dropdown')); - var SelectedJourneyResourceTitleOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceTitleFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTitleRow')); - var SelectedJourneyResourceTypeFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTypeRow')); - var SelectedJourneyResourceNone = element(by.css('.col-md-12 > .col-md-12')); - var SelectedJourneyRightArrow = element(by.css('.glyphicon-menu-right')); - var JourneyLearnMoreSubTitle = element(by.css('.details-resourceRowTitle')); - var ViewOnMapButton = element(by.css('.col-md-4 > .btn-info')); - var JourneyViewOnMapTitle = element(by.css('div:nth-child(2) > .ng-binding')); - var JourneyTitleOnMap = element(by.css('#journey-view-single > .side-bar-child-text')); - var EditJourneyLinkText = element(by.linkText('Edit Journey')); - var JourneyClusterOne = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyPathwayOne = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyClusterTwo = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyPathwayTwo = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyClusterThree = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyPathwayThree = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyClusterFour = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyPathwayFour = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyClusterFive = element(by.css('#journeyViewToolTip_4 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyPathwayFive = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)')); - var HowAmIDoingButton = element(by.css('.btn-success')); - var DIVTitle = element(by.css('h2')); - var DIVSubTitle = element(by.css('p:nth-child(7)')); - var DIVOKButton = element(by.css('.confirm')); - var DIVCancelButton = element(by.css('.cancel')); - var RemoveJourneyButton = element(by.css('#saveJourneyButton')); - - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await expect(PageTitle.getText()).toEqual('My Saved Journeys'); - expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map'); - expect(await SavedJourneyTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await SelectedJourneyBubbleOne.getText()).toEqual('11'); - expect(await SelectedJourneyBubbleTwo.getText()).toEqual('12'); - expect(await SelectedJourneyBubbleThree.getText()).toEqual('M.U.R.P.'); - expect(await SelectedJourneyBubbleFourOne.getText()).toEqual('Personal'); - expect(await SelectedJourneyBubbleFourTwo.getText()).toEqual('Fitness'); - expect(await SelectedJourneyBubbleFourThree.getText()).toEqual('Trainer'); - expect(await SelectedJourneyBubbleFiveOne.getText()).toEqual('Fitness and'); - expect(await SelectedJourneyBubbleFiveTwo.getText()).toEqual('Wellness'); - expect(await SelectedJourneyBubbleFiveThree.getText()).toEqual('Coordinators'); - expect(await SavedJourneyTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); - expect(await SavedJourneyTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); - expect(await SavedJourneyTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); - await SavedJourneyTitleOne.click().then(function() { - browser.sleep(5000); - }); - expect(await SelectedJourneyTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await SelectedJourneySubTitle.getText()).toEqual('11'); - expect(await SelectedJourneySubText.getText()).toEqual('Try these resources'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('This is CNN'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('just juan testing'); - expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('fdg'); - expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('cnn'); - expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('12'); - expect(await SelectedJourneySubText.getText()).toEqual('Try these resources'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('cnn'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('M.U.R.P.'); - expect(await SelectedJourneySubText.getText()).toEqual('Try these resources'); - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Personal Fitness Trainer'); - expect(await SelectedJourneySubText.getText()).toEqual('Try these resources'); - expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!'); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneySubTitle.getText()).toEqual('Fitness and Wellness Coordinators'); - expect(await SelectedJourneySubText.getText()).toEqual('Try these resources'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Fitness and Wellness Coordinators (Education and Training)'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML'); - expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('test'); - expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:'); - expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('222'); - expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:'); - } else { - expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Fitness and Wellness Coordinators (Education and Training)'); - expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML'); - } - }); - await SelectedJourneyRightArrow.click().then(function() { - browser.sleep(2500); - }); - expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources'); - await ViewOnMapButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyViewOnMapTitle.getText()).toEqual('Journey View'); - expect(await JourneyTitleOnMap.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - expect(await EditJourneyLinkText.getText()).toEqual('Edit Journey'); - expect(await JourneyClusterOne.getText()).toEqual('HS'); - expect(await JourneyPathwayOne.getText()).toEqual('11'); - expect(await JourneyClusterTwo.getText()).toEqual('HS'); - expect(await JourneyPathwayTwo.getText()).toEqual('12'); - expect(await JourneyClusterThree.getText()).toEqual('Public Administration'); - expect(await JourneyPathwayThree.getText()).toEqual('M.U.R.P.'); - expect(await JourneyClusterFour.getText()).toEqual('International Fitness Professional Association'); - expect(await JourneyPathwayFour.getText()).toEqual('Personal Fitness Trainer'); - expect(await JourneyClusterFive.getText()).toEqual('Administration & Admin Support'); - expect(await JourneyPathwayFive.getText()).toEqual('Fitness and Wellness Coordinators'); - await MyJourneysHeaderLink.click().then(function() { - browser.sleep(5000); - }); - await SavedJourneyTitleOne.click().then(function() { - browser.sleep(5000); - }); - await HowAmIDoingButton.click().then(function() { - browser.sleep(5000); - }); - expect(await DIVTitle.getText()).toEqual('Oops!'); - expect(await DIVSubTitle.getText()).toEqual("Sorry, we can't give you a quiz for this."); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - await RemoveJourneyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Are you sure?'); - expect(await DIVSubTitle.getText()).toEqual('You will not be able to recover this journey!'); - await DIVCancelButton.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectedJourneyTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); - 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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/myResourcesWidget_config.js b/myResourcesWidget_config.js deleted file mode 100644 index 61df3aa..0000000 --- a/myResourcesWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//myResourcesWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['myResourcesWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/myResourcesWidget_spec.js b/myResourcesWidget_spec.js deleted file mode 100644 index dc7a851..0000000 --- a/myResourcesWidget_spec.js +++ /dev/null @@ -1,101 +0,0 @@ -//myResourcesWidget_spec.js - -describe('My Resources Widget script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - MyResourcesWidget(); - - //Sign Out*/ - SignOut(); -}); - -function MyResourcesWidget() { - it(': MyResourcesWidget, Should interact with the My Resources Widget', async function () { - var MyResourcesWidgetTitle = element(by.css('#id > .ng-scope > .jrnys_lead-body-copy')); - var MyResourcesViewAllLink = element(by.css('#id > .ng-scope .text-color-7a')); - var MyResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MyResourcesDIVOneTitle = element(by.css('.col-xs-9 > .ng-binding')); - var MyResourcesDIVOneEllipsis = element(by.css('.glyphicon-option-vertical')); - var MyResourcesDIVOneFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span')); - var MyResourcesDIVOneLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)')); - var MyResourcesDIVCloseXIcon = element(by.css('.close')); - var MyResourcesOneTitle = element(by.css('.hotTitles')); - - browser.executeScript('window.scrollTo(0, 2362);').then(function() { - browser.sleep(2500); - }); - expect(await MyResourcesWidgetTitle.getText()).toEqual('My Resources View All'); - await MyResourcesViewAllLink.click().then(function() { - browser.sleep(2500); - }); - expect(await MyResourcesDIVTitle.getText()).toEqual('My Resources'); - expect(await MyResourcesDIVOneTitle.getText()).toEqual('Test Doc'); - await MyResourcesDIVOneEllipsis.click().then(function() { - browser.sleep(2500); - }); - expect(await MyResourcesDIVOneFollowIcon.getText()).toEqual('Follow'); - expect(await MyResourcesDIVOneLearnMoreIcon.getText()).toEqual('Learn More'); - await MyResourcesDIVCloseXIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await MyResourcesOneTitle.getText()).toEqual('Test Doc'); - 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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/profileAndMyProgressWidgets_config.js b/profileAndMyProgressWidgets_config.js deleted file mode 100644 index 88a79e4..0000000 --- a/profileAndMyProgressWidgets_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//profileAndMyProgressWidgets_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['profileAndMyProgressWidgets_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/profileAndMyProgressWidgets_spec.js b/profileAndMyProgressWidgets_spec.js deleted file mode 100644 index efa34c8..0000000 --- a/profileAndMyProgressWidgets_spec.js +++ /dev/null @@ -1,483 +0,0 @@ -//profileAndMyProgressWidgets_spec.js - -const { buildPath } = require("selenium-webdriver/http"); - -describe('Profile And My Progress Widget Scripts', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - ProfileWidget(); - MyProgressWidget(); - - //Sign Out*/ - SignOut(); -}); - -function ProfileWidget() { - it(': ProfileWidget, should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () { - var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa')); - var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text')); - var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text')); - var FollowersDivTitle = element(by.css('.default-color2 > h3')); - var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)')); - var FollowersDivGotItButton = element(by.css('.btn-lg')); - //About Me Widget - var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy')); - var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil')); - var ABoutMeInputArea = element(by.id('inputArea')); - //Role Model Widget - var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy')); - var RoleModelNameOne = element(by.css('.inner-content-padding > .textSize:nth-child(1)')); - var RoleModelNameTwo = element(by.css('.textSize:nth-child(2)')); - //Education Widget - var EducationWidgetTitle = element(by.css('#education > .jrnys_lead-body-copy')); - var EducationStartEndDate = element(by.css('.col-xs-4 > .ng-binding:nth-child(1)')); - var EducationSchoolName = element(by.css('.col-xs-8')); - - expect(await ConnectionsLink.getText()).toEqual('CONNECTIONS'); - await FollowersLink.click().then(function() { - browser.sleep(1000); - }); - expect(await FollowersDivTitle.getText()).toEqual('This feature is on its way!'); - expect(await FollowersDivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next."); - await FollowersDivGotItButton.click().then(function() { - browser.sleep(1000); - }); - await ProfileWidgetExpandCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - //About Me Widget - expect(await AboutMeWidgetTitle.getText()).toEqual('About Me'); - browser.actions().mouseMove(element(by.css('#aboutMeFull > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(1000); - }); - await AboutMePencil.click().then(function() { - browser.sleep(1000); - }); - await ABoutMeInputArea.clear().then(function() { - browser.sleep(2500); - }); - await ABoutMeInputArea.sendKeys('This is my automated bio, there are many like it but this one is mine.'); - await AboutMePencil.click().then(function() { - browser.sleep(1000); - }); - browser.executeScript('window.scrollTo(0, 772);').then(function() { - browser.sleep(1000); - }); - //Role Model Widget - expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model'); - expect(await RoleModelNameOne.getText()).toEqual('Elon Musk'); - expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson'); - //Education Widget - expect(await EducationWidgetTitle.getText()).toEqual('Education'); - expect(await EducationStartEndDate.getText()).toEqual('06/2005'); - expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(2500); - }); - await ProfileWidgetExpandCollapseIcon.click().then(function() { - browser.sleep(2500); - }); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function MyProgressWidget() { - it(': MyProgressWidget, should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { - //My Progress Widget - var MyProgressWidgetTitle = element(by.css('.yourProgressTitle')); - var ProgressLevel = element(by.css('.myProgressLevel')); - var ProgressWidgetExpandIcon = element(by.css('.full-width .ng-scope')); - //Account Creation - var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope')); - var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); - var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); - var ActionTwoRetake = element(by.css('.col-md-3:nth-child(2) .redo')); - var ActionThreeCompleted = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); - var ActionThreeRetake = element(by.css('.col-md-3:nth-child(3) .redo')); - var ActionFourCompleted = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); - var ActionFourKeepExploring = element(by.linkText('Keep Exploring')); - //Interest Survey - var PageTitle = element(by.css('.jrnys_lead-body-copy')); - var EnglishLanguageButton = element(by.css('.btn-xs:nth-child(1)')); - var SpanishLanguageButton = element(by.css('.btn:nth-child(2)')); - var DescriptiveTextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)')); - var DescriptiveTextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)')); - var DescriptiveTextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)')); - var LanguageAlertDIV = element(by.css('p:nth-child(7)')); - var LanguageAlterCancelButton = element(by.css('.cancel')); - var LanguageAlterConfirmButton = element(by.css('.confirm')); - var DislikeEmojiIcon = element(by.id('emoji_0_0')); - var DislikeEmojiText = element(by.id('emoji_lbl_0_0')); - var MehEmojiIcon = element(by.id('emoji_0_1')); - var MehEmojiText = element(by.id('emoji_lbl_0_1')); - var UnsureEmojiIcon = element(by.id('emoji_0_2')); - var UnsureEmojiText = element(by.id('emoji_lbl_0_2')); - var LikeItEmojiIcon = element(by.id('emoji_0_3')); - var LikeItEmojiText = element(by.id('emoji_lbl_0_3')); - var LoveItEmojiIcon = element(by.id('emoji_0_4')); - var LoveItEmojiText = element(by.id('emoji_lbl_0_4')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var PreguntaAnterior = element(by.linkText('< Pregunta Anterior')); - var CancelButton = element(by.css('.btn-md')); - //Skills Matcher - var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)')); - //Explore Careers - var CareerExplorationPageTitle = element(by.css('.col-sm-12')); - var SkillsFilterButton = 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('span:nth-child(2)')); - var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var AgricultureFoodAndNaturalResourcesTwo = element(by.css('.col-md-4:nth-child(2) #\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 .ng-binding')); - var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureAndConstructionTwo = element(by.css('.col-md-4:nth-child(1) #b3ebc784-a26e-4134-87ea-87a44d90049a .ng-binding')); - var ArtsAVTechnologyAndCommunications = element(by.css('#\\31 48161d3-2bf8-4703-bf6b-17f05cafc9f0 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministrationTwo = element(by.css('.col-md-4:nth-child(3) #\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 .ng-binding')); - var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var PreviousLinkText = element(by.css('.col-xs-2:nth-child(2)')); - var NextLinkText = element(by.linkText('Next')); - //Skills Filter Applied - var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - //My Progress Widget - expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS'); - expect(await ProgressLevel.getText()).toEqual('Level: Scout'); - await ProgressWidgetExpandIcon.click().then(function() { - browser.sleep(2500); - }); - //Account Creation - expect(await ActionOneCompleted.getText()).toContain('Account Creation'); - expect(await ActionOneCompleted.getText()).toContain('Completed'); - expect(await ActionTwo.getText()).toContain('Interest Survey'); - expect(await ActionTwoCompleted.getText()).toContain('Completed'); - expect(await ActionTwoRetake.getText()).toEqual('Retake'); - expect(await ActionThreeCompleted.getText()).toContain('Skills Matcher'); - expect(await ActionThreeCompleted.getText()).toContain('Completed'); - expect(await ActionThreeRetake.getText()).toEqual('Retake'); - expect(await ActionFourCompleted.getText()).toContain('Explore Careers'); - expect(await ActionFourCompleted.getText()).toContain('Completed'); - expect(await ActionFourKeepExploring.getText()).toEqual('Keep Exploring'); - await ActionTwoRetake.click().then(function() { - browser.sleep(5000); - }); - //Interest Survey page - validate English text - expect(await PageTitle.getText()).toEqual('Interest Survey'); - expect(await EnglishLanguageButton.getText()).toEqual('English'); - expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SpanishLanguageButton.getText()).toEqual('Español'); - expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - expect(await DescriptiveTextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); - expect(await DescriptiveTextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); - expect(await DescriptiveTextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); - expect(await DislikeEmojiText.getText()).toEqual('Dislike'); - expect(await MehEmojiText.getText()).toEqual('Meh'); - expect(await UnsureEmojiText.getText()).toEqual('Unsure'); - expect(await LikeItEmojiText.getText()).toEqual('Like it'); - expect(await LoveItEmojiText.getText()).toEqual('Love it!'); - expect(await CancelButton.getText()).toEqual('Cancel Test'); - await LikeItEmojiIcon.click().then(function() { - browser.sleep(2500) - }); - await PreviousQuestion.click().then(function() { - browser.sleep(2500) - }); - await SpanishLanguageButton.click().then(function() { - browser.sleep(2500) - }); - //Interest Survey page - Spanish text - expect(await LanguageAlertDIV.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?'); - expect(await LanguageAlterCancelButton.getText()).toEqual('Cancel'); - expect(await LanguageAlterConfirmButton.getText()).toEqual('Change'); - await LanguageAlterConfirmButton.click().then(function() { - browser.sleep(2500) - }); - expect(await PageTitle.getText()).toEqual('Interest Survey'); - expect(await EnglishLanguageButton.getText()).toEqual('English'); - expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - expect(await SpanishLanguageButton.getText()).toEqual('Español'); - expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(72, 201, 176, 1)'); //journey green: active - expect(await DescriptiveTextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!'); - expect(await DescriptiveTextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.'); - expect(await DescriptiveTextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!'); - expect(await DislikeEmojiText.getText()).toEqual('Me disgusta mucho'); - expect(await MehEmojiText.getText()).toEqual('Me disgusta'); - expect(await UnsureEmojiText.getText()).toEqual('No estoy seguro'); - expect(await LikeItEmojiText.getText()).toEqual('Me gusta'); - expect(await LoveItEmojiText.getText()).toEqual('Me gusta mucho'); - expect(await CancelButton.getText()).toEqual('Cancelar Encuesta'); - await LoveItEmojiIcon.click().then(function() { - browser.sleep(2500) - }); - await PreguntaAnterior.click().then(function() { - browser.sleep(2500) - }); - await EnglishLanguageButton.click().then(function() { - browser.sleep(2500) - }); - expect(await LanguageAlertDIV.getText()).toEqual('Cambiando la configuración de idioma resultará a comenzar la encuesta nuevamente. ¿Quieres cambiar de idioma y comenzar la encuesta en la pregunta 1?'); - expect(await LanguageAlterCancelButton.getText()).toEqual('Cancelar'); - expect(await LanguageAlterConfirmButton.getText()).toEqual('Cambiar'); - await LanguageAlterConfirmButton.click().then(function() { - browser.sleep(2500) - }); - //Interest Survey page - validate English text - expect(await PageTitle.getText()).toEqual('Interest Survey'); - expect(await EnglishLanguageButton.getText()).toEqual('English'); - expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(72, 201, 176, 1)'); //journey green: active - expect(await SpanishLanguageButton.getText()).toEqual('Español'); - expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - expect(await DescriptiveTextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); - expect(await DescriptiveTextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); - expect(await DescriptiveTextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); - expect(await DislikeEmojiText.getText()).toEqual('Dislike'); - expect(await MehEmojiText.getText()).toEqual('Meh'); - expect(await UnsureEmojiText.getText()).toEqual('Unsure'); - expect(await LikeItEmojiText.getText()).toEqual('Like it'); - expect(await LoveItEmojiText.getText()).toEqual('Love it!'); - expect(await CancelButton.getText()).toEqual('Cancel Test'); - await LoveItEmojiIcon.click().then(function() { - browser.sleep(2500) - }); - expect(await PreviousQuestion.getText()).toEqual('< Previous Question'); - await DislikeEmojiIcon.click().then(function() { - browser.sleep(2500) - }); - await MehEmojiIcon.click().then(function() { - browser.sleep(2500) - }); - await UnsureEmojiIcon.click().then(function() { - browser.sleep(2500) - }); - expect(await CancelButton.getText()).toEqual('Cancel Test'); - await CancelButton.click().then(function() { - browser.sleep(5000); - browser.waitForAngular(); - }); - await ProgressWidgetExpandIcon.click().then(function() { - browser.sleep(2500); - }); - //Skills Matcher - expect(await ActionThreeRetake.getText()).toEqual('Retake'); - await ActionThreeRetake.click().then(function() { - browser.sleep(5000); - }); - //Skills Matcher Page - expect(await PageTitle.getText()).toEqual('Skills Matcher'); - expect(await DescriptiveTextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); - expect(await DescriptiveTextTwo.getText()).toEqual('For each option, choose the skill level you have done in the example.'); - expect(await DescriptiveTextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); - expect(await SkillsQuestion.getText()).toEqual('Administration and Management'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);'); - expect(await CancelButton.getText()).toEqual('Cancel Assessment'); - await CancelButton.click().then(function() { - browser.sleep(5000); - }); - await ProgressWidgetExpandIcon.click().then(function() { - browser.sleep(2500); - }); - //Career Exploration - expect(await ActionFourKeepExploring.getText()).toEqual('Keep Exploring'); - await ActionFourKeepExploring.click().then(function() { - browser.sleep(5000); - }); - //Career Exploration Page - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - //Skills Filter Applied - await SkillsFilterButton.click().then(function() { - browser.sleep(5000); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - await SkillsFilterButton.click().then(function() { - browser.sleep(2500); - }); - //Removed Skills Filter - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - await InterestsFilterButton.click().then(function() { - browser.sleep(2500); - }); - //Interests Filter Appplied - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - await InterestsFilterButton.click().then(function() { - browser.sleep(2500); - }); - //Removed Interests Filter - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - //Both Filters Applied - await SkillsFilterButton.click().then(function() { - browser.sleep(2500); - }); - await InterestsFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await WidgetTitle.getText()).toEqual('Clusters'); - expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await AgricultureFoodAndNaturalResourcesTwo.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await ArchitectureAndConstructionTwo.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - expect(await BusinessManagementAndAdministrationTwo.getText()).toEqual('Business Management & Administration'); - }); -} - -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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/skillsMatcherResultsWidget_config.js b/skillsMatcherResultsWidget_config.js deleted file mode 100644 index 2c89fe4..0000000 --- a/skillsMatcherResultsWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//skillsMatcherResultsWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['skillsMatcherResultsWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/skillsMatcherResultsWidget_spec.js b/skillsMatcherResultsWidget_spec.js deleted file mode 100644 index d257143..0000000 --- a/skillsMatcherResultsWidget_spec.js +++ /dev/null @@ -1,842 +0,0 @@ -//skillsMatcherResultsWidget_spec.js - -describe('Skills Matcher Results Widget Script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - SkillsMatcherResultsWidget(); - SkillsMatcherRetake(); - SkillsMatcherCareerExploration(); - InterestSurveyResultsCreateJourney(); - DeleteCreatedJourney(); - - //Sign Out*/ - SignOut(); -}); - -function SkillsMatcherResultsWidget() { - it(': SkillsMatcherResultsWidget, should validate Skills Matcher Results widget', async function () { - var SkillsMatcherResultsWidgetTitle = element(by.css('.bigScreenHeader')); - var BestFitSubHeader = element(by.css('div:nth-child(2) > b')); - var SkillsResultsOneTitle = element(by.css('.ng-scope:nth-child(4) > div > div > .ng-binding:nth-child(1)')); - var SkillsResultsOneDescription = element(by.css('.ng-scope:nth-child(4) .skillProfilerResultTruncateText')); - var SkillsResultsTwoTitle = element(by.css('.skillProfilerResultsSpacing:nth-child(5) > div > div > .ng-binding')); - var SkillsResultsTwoDescription = element(by.css('.ng-scope:nth-child(5) .skillProfilerResultTruncateText')); - var SkillsResultsThreeTitle = element(by.css('.ng-scope:nth-child(6) > div > div > .ng-binding')); - var SkillsResultsThreeDescription = element(by.css('.ng-scope:nth-child(6) .skillProfilerResultTruncateText')); - var SkillsResultsIcon = element(by.css('div:nth-child(7) > div:nth-child(1) > .hideIconLabels')); - var SkillsRetakeIcon = element(by.css('div:nth-child(7) > div:nth-child(2) > .hideIconLabels')); - - browser.executeScript('window.scrollTo(0, 592);').then(function() { - browser.sleep(5000); - }); - expect(await SkillsMatcherResultsWidgetTitle.getText()).toEqual('Skills Matcher Results'); - expect(await BestFitSubHeader.getText()).toEqual('BEST FIT'); - expect(await SkillsResultsOneTitle.getText()).toEqual('Building and Construction'); - expect(await SkillsResultsOneDescription.getText()).toEqual('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await SkillsResultsTwoTitle.getText()).toEqual('Foreign Language'); - expect(await SkillsResultsTwoDescription.getText()).toEqual('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await SkillsResultsThreeTitle.getText()).toEqual('Management of Financial Resources'); - expect(await SkillsResultsThreeDescription.getText()).toEqual('Making spending decisions and keeping track of what is spent.'); - expect(await SkillsResultsIcon.getText()).toEqual('Results'); - expect(await SkillsRetakeIcon.getText()).toEqual('Retake'); - }); -} - -function SkillsMatcherRetake() { - it(': SkillsMatcherRetake, should retake Skills Matcher', async function () { - var InterestRetakeLink = element(by.css('div:nth-child(2) > .fa-tasks')); - var SkillsMatcherPageTitle = element(by.css('.jrnys_lead-body-copy')); - var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)')); - var SkillsSubQuestion = element(by.css('.questionText > .ng-binding:nth-child(2)')); - var BeginnerIcon = element(by.id('emoji_0_0')); - var BasicIcon = element(by.id('emoji_0_1')); - var SkilledIcon = element(by.id('emoji_0_2')); - var AdvancedIcon = element(by.id('emoji_0_3')); - var ExpertIcon = element(by.id('emoji_0_4')); - var CancelAssessment = element(by.css('.btn-md')); - var PreviousQuestion = element(by.linkText('< Previous Question')); - var SkillsMatcherResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); - var YourTop3SkillsWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); - var BestFitHeader = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .jrnys_lead-body-copy')); - var BestFitSubTextHeaderOne = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(2) > .ng-binding')); - var BestFitSubTextOne = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(2)')); - var BestFitSubTextHeaderTwo = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(3) > .ng-binding')); - var BestFitSubTextTwo = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(3)')); - var BestFitSubTextHeaderThree = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(4) > .ng-binding')); - var BestFitSubTextThree = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(4)')); - var GreatFitHeader = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .jrnys_lead-body-copy')); - var GreatFitSubTextHeaderOne = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(2) > .ng-binding')); - var GreatFitSubTextOne = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(2)')); - var GreatFitSubTextHeaderTwo = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(3) > .ng-binding')); - var GreatFitSubTextTwo = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(3)')); - var GreatFitSubTextHeaderThree = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(4) > .ng-binding')); - var GreatFitSubTextThree = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(4)')); - var GoodFitHeader = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .jrnys_lead-body-copy')); - var GoodFitSubTextHeaderOne = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(2) > .ng-binding')); - var GoodFitSubTextOne = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(2)')); - var GoodFitSubTextHeaderTwo = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(3) > .ng-binding')); - var GoodFitSubTextTwo = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(3)')); - var GoodFitSubTextHeaderThree = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(4) > .ng-binding')); - var GoodFitSubTextThree = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(4)')); - var ViewAllLink = element(by.linkText('View All')); - var ViewAllDIVBestFitHeader = element(by.css('.row:nth-child(1) > .col-xs-10 > .jrnys_lead-body-copy')); - var ViewAllDIVBestFitSubTextHeaderOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding')); - var ViewAllDIVBestFitSubTextOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2)')); - var ViewAllDIVBestFitSubTextHeaderTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding')); - var ViewAllDIVBestFitSubTextTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3)')); - var ViewAllDIVBestFitSubTextHeaderThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding')); - var ViewAllDIVBestFitSubTextThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4)')); - var ViewAllDIVBestFitSubTextHeaderFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5) > .ng-binding')); - var ViewAllDIVBestFitSubTextFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5)')); - var ViewAllDIVBestFitSubTextHeaderFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6) > .ng-binding')); - var ViewAllDIVBestFitSubTextFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6)')); - var ViewAllDIVBestFitSubTextHeaderSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7) > .ng-binding')); - var ViewAllDIVBestFitSubTextSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7)')); - var ViewAllDIVBestFitSubTextHeaderSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8) > .ng-binding')); - var ViewAllDIVBestFitSubTextSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8)')); - var ViewAllDIVGreatFitHeader = element(by.css('.row:nth-child(2) .jrnys_lead-body-copy')); - var ViewAllDIVGreatFitSubTextHeaderOne = element(by.css('.row:nth-child(2) .ng-binding:nth-child(2) > .ng-binding')); - var ViewAllDIVGreatFitSubTextOne = element(by.css('.row:nth-child(2) .ng-binding:nth-child(2)')); - var ViewAllDIVGreatFitSubTextHeaderTwo = element(by.css('.row:nth-child(2) .ng-binding:nth-child(3) > .ng-binding')); - var ViewAllDIVGreatFitSubTextTwo = element(by.css('.row:nth-child(2) .ng-binding:nth-child(3)')); - var ViewAllDIVGreatFitSubTextHeaderThree = element(by.css('.row:nth-child(2) .ng-binding:nth-child(4) > .ng-binding')); - var ViewAllDIVGreatFitSubTextThree = element(by.css('.row:nth-child(2) .ng-binding:nth-child(4)')); - var ViewAllDIVGreatFitSubTextHeaderFour = element(by.css('.row:nth-child(2) .ng-binding:nth-child(5) > .ng-binding')); - var ViewAllDIVGreatFitSubTextFour = element(by.css('.row:nth-child(2) .ng-binding:nth-child(5)')); - var ViewAllDIVGreatFitSubTextHeaderFive = element(by.css('.row:nth-child(2) .ng-binding:nth-child(6) > .ng-binding')); - var ViewAllDIVGreatFitSubTextFive = element(by.css('.row:nth-child(2) .ng-binding:nth-child(6)')); - var ViewAllDIVGreatFitSubTextHeaderSix = element(by.css('.row:nth-child(2) .ng-binding:nth-child(7) > .ng-binding')); - var ViewAllDIVGreatFitSubTextSix = element(by.css('.row:nth-child(2) .ng-binding:nth-child(7)')); - var ViewAllDIVGoodFitHeader = element(by.css('.row:nth-child(3) > .col-xs-10 > .jrnys_lead-body-copy')); - var ViewAllDIVGoodFitSubTextHeaderOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding')); - var ViewAllDIVGoodFitSubTextOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(2)')); - var ViewAllDIVGoodFitSubTextHeaderTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(3)')); - var ViewAllDIVGoodFitSubTextHeaderThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding')); - var ViewAllDIVGoodFitSubTextThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(4)')); - var ViewAllDIVGoodFitSubTextHeaderFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(5) > .ng-binding')); - var ViewAllDIVGoodFitSubTextFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(5)')); - var ViewAllDIVGoodFitSubTextHeaderFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(6) > .ng-binding')); - var ViewAllDIVGoodFitSubTextFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(6)')); - var ViewAllDIVGoodFitSubTextHeaderSix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(7) > .ng-binding')); - var ViewAllDIVGoodFitSubTextSix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(7)')); - var ViewAllDIVGoodFitSubTextHeaderSeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(8) > .ng-binding')); - var ViewAllDIVGoodFitSubTextSeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(8)')); - var ViewAllDIVGoodFitSubTextHeaderEight = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(9) > .ng-binding')); - var ViewAllDIVGoodFitSubTextEight = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(9)')); - var ViewAllDIVGoodFitSubTextHeaderNine = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(10) > .ng-binding')); - var ViewAllDIVGoodFitSubTextNine = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(10)')); - var ViewAllDIVGoodFitSubTextHeaderTen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(11) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(11)')); - var ViewAllDIVGoodFitSubTextHeaderEleven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(12) > .ng-binding')); - var ViewAllDIVGoodFitSubTextEleven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(12)')); - var ViewAllDIVGoodFitSubTextHeaderTwelve = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(13) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwelve = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(13)')); - var ViewAllDIVGoodFitSubTextHeaderThirteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(14) > .ng-binding')); - var ViewAllDIVGoodFitSubTextThirteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(14)')); - var ViewAllDIVGoodFitSubTextHeaderFourteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(15) > .ng-binding')); - var ViewAllDIVGoodFitSubTextFourteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(15)')); - var ViewAllDIVGoodFitSubTextHeaderFifteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(16) > .ng-binding')); - var ViewAllDIVGoodFitSubTextFifteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(16)')); - var ViewAllDIVGoodFitSubTextHeaderSixteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(17) > .ng-binding')); - var ViewAllDIVGoodFitSubTextSixteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(17)')); - var ViewAllDIVGoodFitSubTextHeaderSeventeen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(18) > .ng-binding')); - var ViewAllDIVGoodFitSubTextSeventeen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(18)')); - var ViewAllDIVGoodFitSubTextHeaderEighteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(19) > .ng-binding')); - var ViewAllDIVGoodFitSubTextEighteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(19)')); - var ViewAllDIVGoodFitSubTextHeaderNineteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(20) > .ng-binding')); - var ViewAllDIVGoodFitSubTextNineteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(20)')); - var ViewAllDIVGoodFitSubTextHeaderTwenty = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(21) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwenty = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(21)')); - var ViewAllDIVGoodFitSubTextHeaderTwentyOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(22) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentyOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(22)')); - var ViewAllDIVGoodFitSubTextHeaderTwentyTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(23) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentyTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(23)')); - var ViewAllDIVGoodFitSubTextHeaderTwentyThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(24) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentyThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(24)')); - var ViewAllDIVGoodFitSubTextHeaderTwentyFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(25) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentyFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(25)')); - var ViewAllDIVGoodFitSubTextHeaderTwentyFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(26) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentyFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(26)')); - var ViewAllDIVGoodFitSubTextHeaderTwentySix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(27) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentySix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(27)')); - var ViewAllDIVGoodFitSubTextHeaderTwentySeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(28) > .ng-binding')); - var ViewAllDIVGoodFitSubTextTwentySeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(28)')); - var ViewAllDIVXCloseIcon = element(by.css('.close')); - var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn')); - - browser.executeScript('window.scrollTo(0, 592);').then(function() { - browser.sleep(2500); - }); - - await InterestRetakeLink.click().then(function() { - browser.sleep(5000); - }); - expect(await SkillsMatcherPageTitle.getText()).toEqual('Skills Matcher'); - expect(await SkillsQuestion.getText()).toEqual('Administration and Management'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about business planning and leadership?'); - expect(await CancelAssessment.getText()).toEqual('Cancel Assessment'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Biology'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about plant, animal and cell functions?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Body Coordination'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you coordinate moving your arms, legs, and torso together?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Building and Construction'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about construction materials, methods, and tools?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Chemistry'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know chemistry?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Clerical'); - expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about administrative tasks and processes?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Complex Problem Solving'); - expect(await SkillsSubQuestion.getText()).toEqual('How good are you at figuring out the best way to solve a problem?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Computers and Electronics'); - expect(await SkillsSubQuestion.getText()).toEqual('How effective are you at using electronic equipment?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Customer and Personal Service'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to handle customer needs and resolve service problems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); - await AdvancedIcon.click(); - browser.sleep(2500); - await PreviousQuestion.click(); - browser.sleep(2500); - expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Fine Arts'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theory and techniques of an art form such as music, painting, drama, or other?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Foreign Language'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know a foreign language?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Helping People'); - expect(await SkillsSubQuestion.getText()).toEqual('How good are you at understanding how to help people?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Instructing'); - expect(await SkillsSubQuestion.getText()).toEqual('How skilled are you at teaching people how to do something?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Management of Financial Resources'); - expect(await SkillsSubQuestion.getText()).toEqual('What level of financial decision-maker are you?'); - await ExpertIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Mathematics'); - expect(await SkillsSubQuestion.getText()).toEqual('What is your level of math skill?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Mechanical'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you design, use, repair, and maintain machines?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Medicine and Dentistry'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to provide health care?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Memorization'); - expect(await SkillsSubQuestion.getText()).toEqual('How good is your memory?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Monitoring'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you assess your or others’ work?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Negotiation'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you persuade others to see different points of view or compromise?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Operations Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze needs and requirements, then make a plan that meets them?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Personnel and Human Resources'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and procedures for recruiting, hiring, and training employees?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Production and Processing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you oversee manufacturing and distribution processes?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Programming'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you write computer programs?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Psychology'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the methods of research, assessment, and treatment of human behavior?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Public Safety and Security'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the equipment, policies, procedures, and strategies used to promote security operations?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Quality Control Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you develop and use testing processes?'); - await AdvancedIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Repairing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you repair machines or systems using the needed tools?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Sales and Marketing'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you perform marketing strategies and tactics?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Science'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you use scientific rules and methods to solve problems?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Sociology and Anthropology'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theories of group behavior, societal trends and influences, and human culture?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Speaking'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you convey information when you speak?'); - await SkilledIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Systems Analysis'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Teaching and Course Design'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods of instruction?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Telecommunications'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you understand telecom systems?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Therapy and Counseling'); - expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods used in counseling?'); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Time Management'); - expect(await SkillsSubQuestion.getText()).toEqual("How well do you manage your and others' time?"); - await BasicIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Troubleshooting'); - expect(await SkillsSubQuestion.getText()).toEqual('How well can you identify and fix problems in machines or technology?'); - await BeginnerIcon.click(); - expect(await SkillsQuestion.getText()).toEqual('Writing'); - expect(await SkillsSubQuestion.getText()).toEqual("How well does your writing effectively communicate to an audience's particular need?"); - await BeginnerIcon.click(); - browser.sleep(10000); - //Skills Matcher Results Page - expect(await SkillsMatcherResultPageTitle.getText()).toEqual('Skills Matcher Results'); - expect(await YourTop3SkillsWidgetTitle.getText()).toEqual('Your Top 3 Skills View All'); - expect(await BestFitHeader.getText()).toEqual('BEST FIT'); - expect(await BestFitSubTextHeaderOne.getText()).toEqual('Building and Construction'); - expect(await BestFitSubTextOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await BestFitSubTextHeaderTwo.getText()).toEqual('Foreign Language'); - expect(await BestFitSubTextTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await BestFitSubTextHeaderThree.getText()).toEqual('Management of Financial Resources'); - expect(await BestFitSubTextThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); - expect(await GreatFitHeader.getText()).toEqual('GREAT FIT'); - expect(await GreatFitSubTextHeaderOne.getText()).toEqual('Administration and Management'); - expect(await GreatFitSubTextOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); - expect(await GreatFitSubTextHeaderTwo.getText()).toEqual('Chemistry'); - expect(await GreatFitSubTextTwo.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); - expect(await GreatFitSubTextHeaderThree.getText()).toEqual('Mathematics'); - expect(await GreatFitSubTextThree.getText()).toContain('Using math to solve problems.'); - expect(await GoodFitHeader.getText()).toEqual('GOOD FIT'); - expect(await GoodFitSubTextHeaderOne.getText()).toEqual('Biology'); - expect(await GoodFitSubTextOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); - expect(await GoodFitSubTextHeaderTwo.getText()).toEqual('Body Coordination'); - expect(await GoodFitSubTextTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); - expect(await GoodFitSubTextHeaderThree.getText()).toEqual('Clerical'); - expect(await GoodFitSubTextThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); - await ViewAllLink.click().then(function() { - browser.sleep(2500); - }); - expect(await ViewAllDIVBestFitHeader.getText()).toEqual('BEST FIT'); - expect(await ViewAllDIVBestFitSubTextHeaderOne.getText()).toEqual('Building and Construction'); - expect(await ViewAllDIVBestFitSubTextOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); - expect(await ViewAllDIVBestFitSubTextHeaderTwo.getText()).toEqual('Foreign Language'); - expect(await ViewAllDIVBestFitSubTextTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); - expect(await ViewAllDIVBestFitSubTextHeaderThree.getText()).toEqual('Management of Financial Resources'); - expect(await ViewAllDIVBestFitSubTextThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); - expect(await ViewAllDIVBestFitSubTextHeaderFour.getText()).toEqual('Operations Analysis'); - expect(await ViewAllDIVBestFitSubTextFour.getText()).toContain('Figuring out what a product or service needs to be able to do.'); - expect(await ViewAllDIVBestFitSubTextHeaderFive.getText()).toEqual('Personnel and Human Resources'); - expect(await ViewAllDIVBestFitSubTextFive.getText()).toContain('Knowledge of principles and procedures for personnel recruitment, selection, training, compensation and benefits, labor relations and negotiation, and personnel information systems.'); - expect(await ViewAllDIVBestFitSubTextHeaderSix.getText()).toEqual('Programming'); - expect(await ViewAllDIVBestFitSubTextSix.getText()).toContain('Writing computer programs.'); - expect(await ViewAllDIVBestFitSubTextHeaderSeven.getText()).toEqual('Quality Control Analysis'); - expect(await ViewAllDIVBestFitSubTextSeven.getText()).toContain('Testing how well a product or service works.'); - browser.actions().mouseMove(ViewAllDIVGreatFitSubTextSix).perform().then(function() { - browser.sleep(1000); - }); - expect(await ViewAllDIVGreatFitHeader.getText()).toEqual('GREAT FIT'); - expect(await ViewAllDIVGreatFitSubTextHeaderOne.getText()).toEqual('Administration and Management'); - expect(await ViewAllDIVGreatFitSubTextOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); - expect(await ViewAllDIVGreatFitSubTextHeaderTwo.getText()).toEqual('Chemistry'); - expect(await ViewAllDIVGreatFitSubTextTwo.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); - expect(await ViewAllDIVGreatFitSubTextHeaderThree.getText()).toEqual('Mathematics'); - expect(await ViewAllDIVGreatFitSubTextThree.getText()).toContain('Using math to solve problems.'); - expect(await ViewAllDIVGreatFitSubTextHeaderFour.getText()).toEqual('Psychology'); - expect(await ViewAllDIVGreatFitSubTextFour.getText()).toContain('Knowledge of human behavior and performance; individual differences in ability, personality, and interests; learning and motivation; psychological research methods; and the assessment and treatment of behavioral and affective disorders.'); - expect(await ViewAllDIVGreatFitSubTextHeaderFive.getText()).toEqual('Public Safety and Security'); - expect(await ViewAllDIVGreatFitSubTextFive.getText()).toContain('Knowledge of relevant equipment, policies, procedures, and strategies to promote effective local, state, or national security operations for the protection of people, data, property, and institutions.'); - expect(await ViewAllDIVGreatFitSubTextHeaderSix.getText()).toEqual('Speaking'); - expect(await ViewAllDIVGreatFitSubTextSix.getText()).toContain('Talking to others.'); - browser.actions().mouseMove(ViewAllDIVGoodFitSubTextEleven).perform().then(function() { - browser.sleep(1000); - }); - expect(await ViewAllDIVGoodFitHeader.getText()).toEqual('GOOD FIT'); - expect(await ViewAllDIVGoodFitSubTextHeaderOne.getText()).toEqual('Biology'); - expect(await ViewAllDIVGoodFitSubTextOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwo.getText()).toEqual('Body Coordination'); - expect(await ViewAllDIVGoodFitSubTextTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); - expect(await ViewAllDIVGoodFitSubTextHeaderThree.getText()).toEqual('Clerical'); - expect(await ViewAllDIVGoodFitSubTextThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); - expect(await ViewAllDIVGoodFitSubTextHeaderFour.getText()).toEqual('Complex Problem Solving'); - expect(await ViewAllDIVGoodFitSubTextFour.getText()).toContain('Noticing a problem and figuring out the best way to solve it.'); - expect(await ViewAllDIVGoodFitSubTextHeaderFive.getText()).toEqual('Computers and Electronics'); - expect(await ViewAllDIVGoodFitSubTextFive.getText()).toContain('Knowledge of circuit boards, processors, chips, electronic equipment, and computer hardware and software, including applications and programming.'); - expect(await ViewAllDIVGoodFitSubTextHeaderSix.getText()).toEqual('Customer and Personal Service'); - expect(await ViewAllDIVGoodFitSubTextSix.getText()).toContain('Knowledge of principles and processes for providing customer and personal services. This includes customer needs assessment, meeting quality standards for services, and evaluation of customer satisfaction.'); - expect(await ViewAllDIVGoodFitSubTextHeaderSeven.getText()).toEqual('Economics and Accounting'); - expect(await ViewAllDIVGoodFitSubTextSeven.getText()).toContain('Knowledge of economic and accounting principles and practices, the financial markets, banking and the analysis and reporting of financial data.'); - expect(await ViewAllDIVGoodFitSubTextHeaderEight.getText()).toEqual('Fine Arts'); - expect(await ViewAllDIVGoodFitSubTextEight.getText()).toContain('Knowledge of the theory and techniques required to compose, produce, and perform works of music, dance, visual arts, drama, and sculpture.'); - expect(await ViewAllDIVGoodFitSubTextHeaderNine.getText()).toEqual('Helping People'); - expect(await ViewAllDIVGoodFitSubTextNine.getText()).toContain('Looking for ways to help people.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTen.getText()).toEqual('Instructing'); - expect(await ViewAllDIVGoodFitSubTextTen.getText()).toContain('Teaching people how to do something.'); - expect(await ViewAllDIVGoodFitSubTextHeaderEleven.getText()).toEqual('Mechanical'); - expect(await ViewAllDIVGoodFitSubTextEleven.getText()).toContain('Knowledge of machines and tools, including their designs, uses, repair, and maintenance.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwelve.getText()).toEqual('Medicine and Dentistry'); - expect(await ViewAllDIVGoodFitSubTextTwelve.getText()).toContain('Knowledge of the information and techniques needed to diagnose and treat human injuries, diseases, and deformities. This includes symptoms, treatment alternatives, drug properties and interactions, and preventive health-care measures.'); - expect(await ViewAllDIVGoodFitSubTextHeaderThirteen.getText()).toEqual('Memorization'); - expect(await ViewAllDIVGoodFitSubTextThirteen.getText()).toContain('Remembering words, numbers, pictures, or steps.'); - expect(await ViewAllDIVGoodFitSubTextHeaderFourteen.getText()).toEqual('Monitoring'); - expect(await ViewAllDIVGoodFitSubTextFourteen.getText()).toContain('Keeping track of how well people and/or groups are doing in order to make improvements.'); - expect(await ViewAllDIVGoodFitSubTextHeaderFifteen.getText()).toEqual('Negotiation'); - expect(await ViewAllDIVGoodFitSubTextFifteen.getText()).toContain('Bringing people together to solve differences.'); - expect(await ViewAllDIVGoodFitSubTextHeaderSixteen.getText()).toEqual('Production and Processing'); - expect(await ViewAllDIVGoodFitSubTextSixteen.getText()).toContain('Knowledge of raw materials, production processes, quality control, costs, and other techniques for maximizing the effective manufacture and distribution of goods.'); - expect(await ViewAllDIVGoodFitSubTextHeaderSeventeen.getText()).toEqual('Repairing'); - expect(await ViewAllDIVGoodFitSubTextSeventeen.getText()).toContain('Repairing machines or systems using the right tools.'); - expect(await ViewAllDIVGoodFitSubTextHeaderEighteen.getText()).toEqual('Sales and Marketing'); - expect(await ViewAllDIVGoodFitSubTextEighteen.getText()).toContain('Knowledge of principles and methods for showing, promoting, and selling products or services. This includes marketing strategy and tactics, product demonstration, sales techniques, and sales control systems.'); - expect(await ViewAllDIVGoodFitSubTextHeaderNineteen.getText()).toEqual('Science'); - expect(await ViewAllDIVGoodFitSubTextNineteen.getText()).toContain('Using scientific rules and strategies to solve problems.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwenty.getText()).toEqual('Sociology and Anthropology'); - expect(await ViewAllDIVGoodFitSubTextTwenty.getText()).toContain('Knowledge of group behavior and dynamics, societal trends and influences, human migrations, ethnicity, cultures and their history and origins.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentyOne.getText()).toEqual('Systems Analysis'); - expect(await ViewAllDIVGoodFitSubTextTwentyOne.getText()).toContain('Figuring out how a system should work and how changes in the future will affect it.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentyTwo.getText()).toEqual('Teaching and Course Design'); - expect(await ViewAllDIVGoodFitSubTextTwentyTwo.getText()).toContain('Knowledge of principles and methods for curriculum and training design, teaching and instruction for individuals and groups, and the measurement of training effects.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentyThree.getText()).toEqual('Telecommunications'); - expect(await ViewAllDIVGoodFitSubTextTwentyThree.getText()).toContain('Knowledge of transmission, broadcasting, switching, control, and operation of telecommunications systems.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentyFour.getText()).toEqual('Therapy and Counseling'); - expect(await ViewAllDIVGoodFitSubTextTwentyFour.getText()).toContain('Knowledge of principles, methods, and procedures for diagnosis, treatment, and rehabilitation of physical and mental dysfunctions, and for career counseling and guidance.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentyFive.getText()).toEqual('Time Management'); - expect(await ViewAllDIVGoodFitSubTextTwentyFive.getText()).toContain('Managing your time and the time of other people.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentySix.getText()).toEqual('Troubleshooting'); - expect(await ViewAllDIVGoodFitSubTextTwentySix.getText()).toContain('Figuring out what is causing equipment, machines, wiring, or computer programs to not work.'); - expect(await ViewAllDIVGoodFitSubTextHeaderTwentySeven.getText()).toEqual('Writing'); - expect(await ViewAllDIVGoodFitSubTextTwentySeven.getText()).toContain('Writing things for co-workers or customers.'); - await ViewAllDIVXCloseIcon.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await ExploreCareersButton.getText()).toEqual('Explore Careers'); - }); -} - -function SkillsMatcherCareerExploration() { - it(': SkillsMatcherRetake, should interact with Skills Matcher widget and validate results', async function () { - var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn')); - var CareerExplortaionPageTitle = element(by.css('.col-sm-12')); - var SkillsFilterButton = element(by.css('.filter-category-on:nth-child(3)')); - var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)')); - var WidgetText = element(by.css('.row > .jrnys_lead-body-copy')); - var WidgetSubText = element(by.css('span:nth-child(2)')); - var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CyberSecuritySelectButton = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .btn')); - var CybersecurityManagementMGT = element(by.css('#\\37 087ce2a-5602-4e7a-ac42-250182301aa3 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var CybersecurityManagementMGTSelectButton = element(by.css('#\\37 087ce2a-5602-4e7a-ac42-250182301aa3 > #territoryCardContainer .btn')); - var RiskManagementRSK = element(by.css('#e727aac1-d5d9-4051-aa13-ab45854de0b8 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ExecutiveCyberLeadershipEXL = element(by.css('#f2578611-4857-459f-8292-f2b67bbea212 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)')); - var PreviousLinkText = element(by.linkText('Previous')); - var NextLinkText = element(by.linkText('Next')); - var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var Manufacturing = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var TransportaionDistributionAndLogistics = element(by.css('.territoryCardTitleText > .ng-binding')); - var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)')); - var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ClusterLinkText = element(by.linkText('Clusters')); - var PathwaysLinkText = element(by.linkText('Pathways')); - var CommunicationsSecurityCOMSECManager = element(by.css('.territoryCardTitleText > .ng-binding')); - var CommunicationsSecurityCOMSECManagerLearnMoreIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText')); - var CommunicationsSecurityCOMSECManagerMapIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText')); - var CommunicationsSecurityCOMSECManagerJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)')); - var CommunicationsSecurityCOMSECManagerVideoIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText')); - - await ExploreCareersButton.click().then(function() { - browser.sleep(2500); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetText.getText()).toEqual('Clusters'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetText.getText()).toEqual('Clusters'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration'); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await Manufacturing.getText()).toEqual('Manufacturing'); - expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); - expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await NextLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetText.getText()).toEqual('Clusters'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await TransportaionDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetText.getText()).toEqual('Clusters'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration'); - expect(await HumanServices.getText()).toEqual('Human Services'); - expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await Manufacturing.getText()).toEqual('Manufacturing'); - expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service'); - expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math'); - expect(await PreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await PreviousLinkText.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration'); - expect(await WidgetText.getText()).toEqual('Clusters'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.'); - expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources'); - expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction'); - expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(1000); - }); - expect(await CyberSecurity.getText()).toEqual('Cyber Security'); - expect(await EducationAndTraining.getText()).toEqual('Education & Training'); - expect(await Finance.getText()).toEqual('Finance'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await NextLinkText.getText()).toEqual('Next'); - await CyberSecuritySelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await ClusterLinkText.getText()).toEqual('Clusters'); - expect(await WidgetText.getText()).toEqual('Clusters > Pathways'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a pathway below.'); - expect(await CybersecurityManagementMGT.getText()).toEqual('Cybersecurity Management (MGT)'); - expect(await RiskManagementRSK.getText()).toEqual('Risk Management (RSK)'); - expect(await ExecutiveCyberLeadershipEXL.getText()).toEqual('Executive Cyber Leadership (EXL)'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - await CybersecurityManagementMGTSelectButton.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 0);').then(function() { - browser.sleep(1000); - }); - expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active - expect(await SkillsFilterButton.getText()).toEqual('Skills'); - expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active - expect(await InterestsFilterButton.getText()).toEqual('Interests'); - expect(await ClusterLinkText.getText()).toEqual('Clusters'); - expect(await PathwaysLinkText.getText()).toEqual('Pathways'); - expect(await WidgetText.getText()).toEqual('Clusters > Pathways > Occupations'); - expect(await WidgetSubText.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); - expect(await CommunicationsSecurityCOMSECManager.getText()).toEqual('Communications Security (COMSEC) Manager'); - expect(await CommunicationsSecurityCOMSECManagerLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await CommunicationsSecurityCOMSECManagerMapIcon.getText()).toEqual('Map'); - expect(await CommunicationsSecurityCOMSECManagerJourneymanIcon.getText()).toEqual('Journey'); - expect(await CommunicationsSecurityCOMSECManagerVideoIcon.getText()).toEqual('Video'); - expect(await DisabledPreviousLinkText.getText()).toEqual('Previous'); - expect(await DisabledNextLinkText.getText()).toEqual('Next'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function InterestSurveyResultsCreateJourney() { - it(': InterestSurveyResultsCreateJourney, should create a Journey to Top Interest Survey Result', async function () { - var CommunicationsSecurityCOMSECManagerJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)')); - 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(5) > .sidebarScrollListTxt > .ng-binding')); - var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); - var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding')); - var JourneyResultTitle = element(by.css('#journeyitem0 .side-bar-child-text')); - var JourneyDetailIcon = element(by.css('#tab-content-0 .journey-info-circle')); - var JourneyEntryPointCluster = element(by.css('#journeyViewToolTip_0 .ng-binding:nth-child(1)')); - var JourneyEntryPointPathway = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyEntryPointOccupation = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyCollegeStop = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneyExitPointCluster = element(by.css('#journeyViewToolTip_2 .ng-binding:nth-child(1)')); - var JourneyExitPointPathway = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); - var JourneyExitPointOccupation = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)')); - var JourneySaveIcon = element(by.css('div:nth-child(3) > div > .mapActionBarActive > .fas')); - var JourneyStopDIVTitle = element(by.css('.row:nth-child(1) > .col-md-12:nth-child(1)')); - 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 JourneySavedTitle = element(by.css('#sideBarTabJourneyItemHeader > .side-bar-child-text')); - - await CommunicationsSecurityCOMSECManagerJourneymanIcon.click().then(function() { - browser.sleep(2500); - }); - 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('Electrical Engineer'); - await SelectEntryPointDropDown.click(); - browser.waitForAngular(); - await StartYourJourneyButton.click(); - browser.waitForAngular(); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); - expect(await JourneyResultTitle.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College'); - await JourneyDetailIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyEntryPointCluster.getText()).toEqual('STEM'); - expect(await JourneyEntryPointPathway.getText()).toEqual('Engineering & Technology'); - expect(await JourneyEntryPointOccupation.getText()).toEqual('Electrical Engineering Technologists'); - expect(await JourneyCollegeStop.getText()).toEqual('College'); - expect(await JourneyExitPointCluster.getText()).toEqual('Cyber Security'); - expect(await JourneyExitPointPathway.getText()).toEqual('Cybersecurity Management (MGT)'); - expect(await JourneyExitPointOccupation.getText()).toEqual('Communications Security (COMSEC) Manager'); - await JourneySaveIcon.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneyStopDIVTitle.getText()).toEqual('Now that you have saved a journey, feel free to add any additional certification(s) to your journey by selecting from below!'); - expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('EC Council Certified Chief Information Security Officer'); - expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('GIAC Reverse Engineering Malware'); - expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Systems Security Certified Practitioner'); - 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 JourneySavedTitle.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College'); - expect(await JourneyEntryPointCluster.getText()).toEqual('STEM'); - expect(await JourneyEntryPointPathway.getText()).toEqual('Engineering & Technology'); - expect(await JourneyEntryPointOccupation.getText()).toEqual('Electrical Engineering Technologists'); - expect(await JourneyCollegeStop.getText()).toEqual('College'); - expect(await JourneyExitPointCluster.getText()).toEqual('Cyber Security'); - expect(await JourneyExitPointPathway.getText()).toEqual('Cybersecurity Management (MGT)'); - expect(await JourneyExitPointOccupation.getText()).toEqual('Communications Security (COMSEC) Manager'); - expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results'); - 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')); - 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(.,'Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College')]")); - 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 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 MyJourneysHowAmIDoingButton = element(by.css('.btn-success')); - var MyJourneysSubText = element(by.css('.details-resourceRowTitle')); - var MySavedJourneysTitleOne = element(by.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]")); - var MySavedJourneysTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]")); - var MySavedJourneysTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]")); - var MySavedJourneysTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]")); - - 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('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College'); - expect(await NinethGradeBubble.getText()).toEqual('Electrical'); - expect(await TenthGradeBubble.getText()).toEqual('College'); - expect(await EleventhGradeBubble.getText()).toEqual('Communication'); - await MyJourneysSelectCreatedJourney.click().then(function() { - browser.sleep(2500); - }); - expect(await MyJourneysTitleRow.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College'); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Electrical Engineering Technologists'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('College'); - await MyJourneysRightArrow.click().then(function() { - browser.sleep(1500); - }); - expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Communications Security (COMSEC) Manager'); - 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 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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/topCareerWidget_config.js b/topCareerWidget_config.js deleted file mode 100644 index 74a8593..0000000 --- a/topCareerWidget_config.js +++ /dev/null @@ -1,35 +0,0 @@ -//topCareerWidget_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['topcareerWidget_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/topCareerWidget_spec.js b/topCareerWidget_spec.js deleted file mode 100644 index 38bea26..0000000 --- a/topCareerWidget_spec.js +++ /dev/null @@ -1,971 +0,0 @@ -//topCareerWidget_spec.js - -const { WebElement } = require("selenium-webdriver"); - -describe('Top Career Widget script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - EditTopCareer(); - TopCareerWidget(); - - //Sign Out*/ - SignOut(); -}); - -function EditTopCareer() { - it(': EditTopCareer, should edit Top Career', async function () { - var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy')); - var TopCareerEditIcon = element(by.css('.full-width .fa-pencil')); - var TopCareerDIvXRemoveLink = element(by.css('.col-xs-1 > .glyphicon')); - var TopCareerDIVCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info')); - var TopCareerGreenText = element(by.css('.default-color:nth-child(2)')); - var TopCareerGreenSubText = element(by.css('.textPosition')); - var TopCareerDIVAddButton = element(by.css('.resetBtn')); - var TopCareerDIVTitle = element(by.css('h2')); - var TopCareerDIVSubTitle = element(by.css('.row:nth-child(5) > .col-lg-8')); - var TopCareerDIVHandle = element(by.css('.col-lg-8 > label')); - var TopCareerDIVTextBox = element(by.id('searchBox')); - var TopCareerDIVSelection = element(by.xpath('//div[2]/div/ul/li[3]/a/span')); - var TopCareerDIVSaveButton = element(by.css('.row:nth-child(12) #photoBtn')); - var TopCareerLink = element(by.css('td>.jrnys_support-text')); - var TopCareerDescription = element(by.css('.jrEllipsis3Lines')); - - browser.executeScript('window.scrollTo(0, 1885);').then(function() { - browser.sleep(2500); - }); - expect(await WidgetTitle.getText()).toEqual('Top Career'); - browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { - browser.sleep(2500); - }); - await TopCareerEditIcon.click().then(function() { - browser.sleep(2500); - }); - await TopCareerDIvXRemoveLink.click().then(function() { - browser.sleep(2500); - }); - await TopCareerDIVCancelButton.click().then(function() { - browser.sleep(2500); - }); - expect(await TopCareerGreenText.getText()).toEqual('Top Career'); - expect(await TopCareerGreenSubText.getText()).toEqual("Head in the clouds? Share what Career you’re thinking about!"); - await TopCareerDIVAddButton.click().then(function() { - browser.sleep(2500); - }); - expect(await TopCareerDIVTitle.getText()).toEqual('Dream big, reach higher!'); - expect(await TopCareerDIVSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?"); - expect(await TopCareerDIVHandle.getText()).toEqual('Job Title'); - await TopCareerDIVTextBox.click().then(function() { - browser.sleep(2500); - }); - await TopCareerDIVTextBox.sendKeys('Computer'); - browser.sleep(2500); - browser.actions().mouseMove(TopCareerDIVSelection).perform().then(function() { - browser.sleep(2500); - }); - await TopCareerDIVSelection.click().then(function() { - browser.sleep(2500); - }); - await TopCareerDIVSaveButton.click().then(function() { - browser.sleep(2500); - }); - expect(await TopCareerLink.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopCareerDescription.getText()).toEqual('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); -} - -function TopCareerWidget() { - it(': TopCareerWidget, should validate the Top Career widget', async function () { - var TopCareerLink = element(by.css('td>.jrnys_support-text')); - var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); - var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); - var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding')); - var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)')); - var CloseXIcon = element(by.css('.close')); - var BackLink = element(by.css('.btn-primary-back-mod')); - //At A Glance - var AtAGlanceLink = element(by.css('tr:nth-child(3) > td:nth-child(1) > .text-color-7a')); - var AtAGlanceDIVTitle = element(by.css('.widgetHeaderContainer > .jrnys_lead-body-copy')); - var TypicalDegreeHeader = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); - var TypicalDegreeData = element(by.css('.row-height:nth-child(1) .col-sm-offset-4')); - var AverageAnnualSalaryHeader = element(by.css('.row-height:nth-child(2) .jrnys_support-text')) - var AverageAnnualSalaryData = element(by.css('.row-height:nth-child(2) .dataFontSize')); - var ProjectedGrowthHeader = element(by.css('.row-height:nth-child(3) .jrnys_support-text')); - var ProjectedGrowthPath = element(by.css('.col-sm-offset-4 > span')); - var ProjectedGrowthData = element(by.css('.row-height:nth-child(3) .col-sm-offset-4')); - var ProjectedJobOpeningsHeader = element(by.css('.row-height:nth-child(4) .jrnys_support-text')); - var ProjectedJobOpeningsData = element(by.css('.row-height:nth-child(4) .dataFontSize')); - var CurrentlyEmployedHeader = element(by.css('.row-height:nth-child(5) .jrnys_support-text')); - var CurrentlyEmployedData = element(by.css('.row-height:nth-child(5) .dataFontSize')); - //Personality - var PersonalityLink = element(by.css('tr:nth-child(4) > td:nth-child(1) > .text-color-7a')); - var PersonalityDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var PersonalityDescriptionOne = element(by.css('.ng-scope:nth-child(1) > tbody td > .ng-binding')); - var PersonalityDescriptionTwo = element(by.css('.ng-scope:nth-child(1) > tbody > tr:nth-child(2) div')); - var PersonalityBulletOne = element(by.css('.ng-scope:nth-child(3) > td .ng-binding')); - var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(4) > td .ng-binding')); - var PersonalityBulletThree = element(by.css('.ng-scope:nth-child(5) > td .ng-binding')); - var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(6) > td .ng-binding')); - var PersonalityBulletFive = element(by.css('.ng-scope:nth-child(7) .ng-binding')); - var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(8) .ng-binding')); - //Wages - var WagesLink = element(by.css('tr:nth-child(5) > td:nth-child(1) > .text-color-7a')); - var WagesDIVTitle = element(by.css('.widget-padding > div > .jrnys_lead-body-copy')); - var WagesIIcon = element(by.css('.journey-info-circle')); - var WagesBackOfDIVTitle = element(by.css('table:nth-child(2) .jrnys_lead-body-copy')); - var WagesBackOfDIVTextOne = element(by.css('td > .ng-binding:nth-child(2)')); - var WagesBackOfDIVTextTwo = element(by.css('td:nth-child(1) > div:nth-child(3)')); - var WagesBackOfDIVTextThree = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0')); - var WagesBackOfDIVTextFour = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm19all.zip')); - var WagesBackOfDIVTextFive = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm18all.zip')); - var WagesBackOfDIVTextSix = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm17all.zip')); - var WagesBackOfDIVXCloseIcon = element(by.css('.fa-times-rectangle')); - var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text')); - var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text')); - //var WagesTypeText = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[4]/occupation-wages/div/div[2]/div/table/tbody/tr/td/div/div/div[1]/div/svg/g[3]/g/text'));//Can't ID - var WagesHighText = element(by.css('g:nth-child(6) > text')); - var WagesMedianText = element(by.css('g:nth-child(7) > text')); - var WagesLowText = element(by.css('g:nth-child(8) > text')); - var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text')); - var WagesXAxisOneText = element(by.css('g:nth-child(4) > g:nth-child(2) > text')); - var WagesXAxisTwoText = element(by.css('g:nth-child(3) > text')); - var WagesXAxisThreeText = element(by.css('g:nth-child(4) > text')); - var WagesXAxisFourText = element(by.css('g:nth-child(5) > text')); - var WagesFilterIcon = element(by.css('.fa-sliders-h')); - var ZipCodeTextBoxText = element(by.css('.dropdown-menu tr:nth-child(1) > td:nth-child(1)')); - var ZipCodeTextBox = element(by.css('.ng-valid-maxlength')); - var ZipCodeApplyButton = element(by.css('tr:nth-child(1) .btn')); - var StateDropDownText = element(by.css('.dropdown-menu tr:nth-child(2) > td:nth-child(1)')); - var StateDropDownApplyButton = element(by.css('tr:nth-child(2) .btn')); - var WagesHighTextTwo = element(by.css('g:nth-child(7) > text')); - var WagesMedianTextTwo = element(by.css('g:nth-child(8) > text')); - var WagesLowTextTwo = element(by.css('g:nth-child(9) > text')); - var WagesXAxisFiveText = element(by.css('g:nth-child(6) > text')); - var RateTypeText = element(by.css('.dropdown-menu tr:nth-child(3) > td:nth-child(1)')); - var HourlyButton = element(by.xpath("//button[contains(.,'Hourly')]")); - var AnnualButton = element(by.xpath("//button[contains(.,'Annual')]")); - //College Pathways - var CollegPathwaysLink = element(by.css('tr:nth-child(3) > td:nth-child(2) > .text-color-7a')); - var CollegePathwaysDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var ComputerApplicationsMinorCollegeWide = element(by.css('#\\36 3f93734-c4e9-48cd-8ff4-041e10760da5 #territoryCardMobileTitle')); - var ComputerScienceBS = element(by.css('#a6e09aef-a938-4c2b-aa90-c6d6b2499de7 #territoryCardMobileTitle')); - var ComputerScienceMinor = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 #territoryCardMobileTitle')); - var ComputerScienceMinorDescription = element(by.xpath("//territory-card[@id='fd59401c-391c-4fe4-979a-440cf9648e22']/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div")); - var ComputerScienceMinorInstitutionsHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText:nth-child(1)')); - var ComputerScienceMinorInstitutionsData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(1) .ng-binding')); - var ComputerScienceMinorCoursesHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(3) .territoryCardBackOfCardItemText:nth-child(1)')); - var ComputerScienceMinorCoursesData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(3) .ng-binding')); - var ComputerScienceMinorOccupationsHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(5) .territoryCardBackOfCardItemText:nth-child(1)')); - var ComputerScienceMinorOccupationsData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(5) .ng-binding')); - var ComputerScienceMinorAverageAnnualSalaryHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(7) .territoryCardBackOfCardItemText:nth-child(1)')); - var ComputerScienceMinorAverageAnnualSalaryData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(7) .ng-binding')); - var ComputerScienceMinorEllipsisIcon = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 .territoryCardIcon > .fas')); - var ComputerScienceMinorFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText')); - var ComputerScienceMinorLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText')); - var ComputerScienceMinorMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText')); - var ComputerScienceMinorJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText')); - var ComputerScienceMinorAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText')); - var CollegePathwaysRightScrollIcon = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); - var ComputerScienceMS = element(by.css('#a8803504-ea19-4643-8569-b5fae3db34d9 #territoryCardMobileTitle')); - //Certificates - var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a')); - var CertificatesDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var CertifiedLabVIEWArchitect = element(by.css('#\\35 179bed9-a8e1-44af-b525-3e8ad0dcb31e #territoryCardMobileTitle')); - var CertifiedLabVIEWArchitectDescription = element(by.xpath("//territory-card[@id='5179bed9-a8e1-44af-b525-3e8ad0dcb31e']/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div")); - var CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersHeader = element(by.css('.ng-scope:nth-child(2) > .ng-scope > table:nth-child(1) .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText:nth-child(1)')); - var CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(1) .ng-binding')); - var CertifiedLabVIEWArchitectOccupationsHeader = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(3) .territoryCardBackOfCardItemText:nth-child(1)')); - var CertifiedLabVIEWArchitectOccupationsData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(3) .ng-binding')); - var CertifiedLabVIEWArchitectResourcesHeader = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(5) .territoryCardBackOfCardItemText:nth-child(1)')); - var CertifiedLabVIEWArchitectResourcesData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(5) .ng-binding')); - var CertifiedAssociateLabVIEWDeveloper = element(by.css('#\\38 8e24eb9-a695-4048-917d-f45bd0015675 #territoryCardMobileTitle')); - var AvayaCertifiedExpert = element(by.css('#\\31 82f070b-18f9-4276-bb91-3128c4d0cf2c #territoryCardMobileTitle')); - var CertificatesRightScrollIcon = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var CertifiedBiometricsProfessional = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f #territoryCardMobileTitle')); - var CertifiedSoftwareDevelopmentProfessional = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 #territoryCardMobileTitle')); - var MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc #territoryCardMobileTitle')); - //Institutions - var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a')); - var InstitutionsDIVTitle = element(by.xpath('//recommended-colleges/div/div/div')); - var UniversityOfSanDiego = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) #territoryCardMobileTitle')); - var NationalUniversity = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(2) #territoryCardMobileTitle')); - var PointLomaNazareneUniversity = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(3) #territoryCardMobileTitle')); - var InstitutionsRightScrollIcon = element(by.css('#recommendedColleges .right > .glyphicon')); - var UniversityOfCaliforniaSanDiego = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(1) #territoryCardMobileTitle')); - var SanDiegoStateUniversity = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) #territoryCardMobileTitle')); - var SanDiegoStateUniversity4YearHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)')); - var SanDiegoStateUniversity4YearData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)')); - var SanDiegoStateUniversityUndergradHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)')); - var SanDiegoStateUniversityUndergradData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding')); - var SanDiegoStateUniversityLocationHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText')); - var SanDiegoStateUniversityLocationData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div')); - var SanDiegoStateUniversityClassroomHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText')); - var SanDiegoStateUniversityClassroomData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div')); - var SanDiegoStateUniversityEllipsisIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(1) > td:nth-child(3) > div > i')); - var SanDiegoStateUniversityFollowIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(1) > div.territoryCardItemText')); - var SanDiegoStateUniversityLearnMoreIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(2) > div.territoryCardBackOfCardItemText')); - var SanDiegoStateUniversityAtAGlanceIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText')); - var CaliforniaStateUniversitySanMarcos = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(3) #territoryCardMobileTitle')); - //Top Resources - var TopResourcesLink = element(by.css('tr:nth-child(3) > td:nth-child(3) > .text-color-7a')); - var TopResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding')); - var JourneysGreeting = element(by.css('.dropdown')); - var TopResourcesTitleOne = element(by.css('.panel:nth-child(1) .ng-binding')); - var TopResourcesTitleTwo = element(by.css('.panel:nth-child(2) .ng-binding')); - var TopResourcesTitleTwoFollow = element(by.css('.panel:nth-child(2) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)')); - var TopResourcesTitleTwoLearnMore = element(by.css('.panel:nth-child(2) .row:nth-child(2) div:nth-child(2) span:nth-child(2)')); - var TopResourcesTitleThree = element(by.css('.panel:nth-child(3) .ng-binding')); - var TopResourcesTitleThreeFollow = element(by.css('.panel:nth-child(3) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)')); - var TopResourcesTitleThreeLearnMore = element(by.css('.panel:nth-child(3) .row:nth-child(2) div:nth-child(2) span:nth-child(2)')); - var TopResourcesTitleFour = element(by.css('.panel:nth-child(4) .ng-binding')); - var TopResourcesTitleFive = element(by.css('.panel:nth-child(5) .ng-binding')); - var TopResourcesTitleSix = element(by.css('.panel:nth-child(6) .ng-binding')); - //Find Opportunities - var FindOpportunitiesLink = element(by.css('tr:nth-child(4) > td:nth-child(3) > .text-color-7a')); - var FindOpportunitiesDIVTitle = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); - var SubmitResourceLink = element(by.css('tr:nth-child(5) > td:nth-child(3) > .text-color-7a')); - var SubmitResourceDIVTitle = element(by.css('.jrnys_lead-body-copy > .col-xs-12')); - var SubmitResourceDIVSubTextOne = element(by.css('.subtitle')); - var TotalInJourneysHeader = element(by.css('.total-display')); - var TotalInJourneysData = element(by.css('.submit-count:nth-child(2)')); - var MySubmittedResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding')); - var MySubmittedResourcesTitle = element(by.css('.row > .row .ng-binding')); - var MySubmittedResourcesEllipsisIcon = element(by.css('.glyphicon-option-vertical')); - var MySubmittedResourcesFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span')); - var MySubmittedResourcesLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)')); - var MySubmittedResourcesDIVXCloseIcon = element(by.css('div:nth-child(2) > .close')); - var ForThisMapPointHeader = element(by.css('.row:nth-child(4) .col-xs-8')); - var ForThisMapPointData = element(by.css('.submit-count:nth-child(1)')); - var SubmitResourceDIVSubTextTwo = element(by.css('.row:nth-child(6) > .col-sm-12')); - var SubmitAResourceDIVButton = element(by.css('.row:nth-child(7) .btn')); - var SubmitAResourceDIVTitle = element(by.css('h3')); - var SubmitAResourceDIVCloseXIcon = element(by.css('.btn-blue-RoundTabsinfo')); - //Nearby Places - var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a')); - var NearbyPlacesDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding')); - var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 #territoryCardMobileTitle')); - var ComputerAndInformationSystemsManagersEllipsisIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardIcon > .fas')); - var ComputerAndInformationSystemsManagersFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText')); - var ComputerAndInformationSystemsManagersLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersVideoIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardDescriptionText:nth-child(1)')); - var ComputerAndInformationSystemsManagersTypicalDegreeHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersTypicalDegreeDataOne = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(2) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersTypicalDegreeDataTwo = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(3) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersTypicalDegreeDataThree = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(4) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualSalaryHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(16) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualSalaryData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(17) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(19) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataOne = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemText > .ng-binding:nth-child(1)')); - var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataTwo = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-binding:nth-child(3)')); - var ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(22) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope tr:nth-child(23) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(25) .territoryCardBackOfCardItemText')); - var ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope tr:nth-child(26) .territoryCardBackOfCardItemText')); - var ComputerNetworkArchitects = element(by.css('#fb2fabe5-621b-477e-948c-64d1fef31b95 #territoryCardMobileTitle')); - var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span')); - var ComputerNetworkSupportSpecialists = element(by.css('#b645081d-8b86-44b2-8d68-155c064edced #territoryCardMobileTitle')); - var ComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 #territoryCardMobileTitle')); - var ComputerProgrammers = element(by.css('#\\33 ce39f29-0e17-4472-8dba-682356e8df07 #territoryCardMobileTitle')); - var ComputerScienceTeachersPostsecondary = element(by.css('#e867c7f0-c5e9-43ac-9dd3-82dd4dd62660 #territoryCardMobileTitle')); - var DataWarehousingSpecialist = element(by.css('#\\34 9618b26-751c-4c6c-bb52-1773b0c84e68 #territoryCardMobileTitle')); - var DatabaseAdministrator = element(by.css('#\\31 25099b5-7514-4a28-8c5f-776a0edd13c2 #territoryCardMobileTitle')); - var DatabaseArchitects = element(by.css('#\\32 f5c1341-aaec-41f7-8d76-7fbe9c0497fa #territoryCardMobileTitle')); - var GraphicDesigners = element(by.css('#cc7cc408-71ef-4390-b425-d03e24f8253a #territoryCardMobileTitle')); - var InformationSecurityAnalysts = element(by.css('#\\31 fe39d9e-c19d-45eb-bfef-f44e759a56d6 #territoryCardMobileTitle')); - var MultimediaArtistsAndAnimators = element(by.css('#\\32 a294540-b4cc-4886-a4de-edb17e7a748e #territoryCardMobileTitle')); - var NetworkAndComputerSystemsAdministrators = element(by.css('#ce3ef31a-9e4e-4ab8-a950-61b07731ad66 #territoryCardMobileTitle')); - var SoftwareDevelopersApplications = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 #territoryCardMobileTitle')); - var SoftwareDevelopersSystemsSoftware = element(by.css('#d1ab3735-cd9e-46aa-9046-76cd7122f4a8 #territoryCardMobileTitle')); - var TelecommunicationsEngineeringSpecialists = element(by.css('#\\35 3a78dab-253e-4962-a9a7-282e9b23493c #territoryCardMobileTitle')); - //Knowledge - var KnowledgeLink = element(by.css('tr:nth-child(4) > td:nth-child(4) > .text-color-7a')) - var DIVTitle = element(by.css('h6 > .ng-binding')); - var ImportanceHeader = element(by.css('thead .text-color-7a')); - var DescriptionOne = element(by.css('tbody:nth-child(3) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a')); - var DescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var ImportanceStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-center')); - var DescriptionThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var ImportanceStatThree = element(by.css('.ng-scope:nth-child(3) > .text-center')); - var DescriptionFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var ImportanceStatFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a')); - var DescriptionFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var ImportanceStatFive = element(by.css('.ng-scope:nth-child(5) > .text-center')); - var DescriptionSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var ImportanceStatSix = element(by.css('.ng-scope:nth-child(6) > .text-center')); - var DescriptionSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)')); - var ImportanceStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-center')); - var CloseXImage = element(by.css('.fa-times-circle')); - //Skills - var SkillsLink = element(by.css('tr:nth-child(5) > td:nth-child(4) > .text-color-7a')); - var DescriptionEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)')); - var ImportanceStatEight = element(by.css('.ng-scope:nth-child(8) > .text-center')); - //Ability - var AbilityLink = element(by.css('tr:nth-child(3) > td:nth-child(5) > .text-color-7a')); - //Tasks - var TasksLink = element(by.css('tr:nth-child(4) > td:nth-child(5) > .text-color-7a')); - var TasksCategoryHeader = element(by.css('thead .text-color-7a:nth-child(2)')); - var TasksImportanceHeader = element(by.css('thead .text-color-7a:nth-child(3)')); - var TasksDescriptionOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)')); - var TasksCategoryDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a:nth-child(2)')); - var TasksImportanceDataOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(3)')); - var TasksDescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)')); - var TasksCategoryDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(2)')); - var TasksImportanceDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(3)')); - var TasksDescriptionThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)')); - var TasksCategoryDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(2)')); - var TasksImportanceDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(3)')); - var TasksDescriptionFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)')); - var TasksCategoryDataFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(2)')); - var TasksImportanceDataFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(3)')); - var TasksDescriptionFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)')); - var TasksCategoryDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a:nth-child(2)')); - var TasksImportanceDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center:nth-child(3)')); - var TasksDescriptionSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)')); - var TasksCategoryDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a:nth-child(2)')); - var TasksImportanceDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center:nth-child(3)')); - //Technology - var TechnologyLink = element(by.css('td:nth-child(5) > .ng-scope')); - var TechnologyDescriptionOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding')); - var TechnologyStatOne = element(by.css('.ng-scope:nth-child(1) > .text-left > .ng-binding:nth-child(1)')); - //Work Activities - var WorkActivitiesLink = element(by.css('td:nth-child(6) > .text-color-7a')); - var DescriptionNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)')); - var ImportanceStatNine = element(by.css('.ng-scope:nth-child(9) > .text-center')); - - //Jump to Learn More Page - await TopCareerLink.click().then(function() { - browser.sleep(5000); - }); - //Description - expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists'); - await DescriptionDetail.click().then(function() { - browser.sleep(2500); - }); - expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.'); - expect(await DescriptionSubText.getText()).toContain('Other Jobs:'); - expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Computer Specialist; Control System Computer Scientist; HPC Applications Manager (High Performance Computing Applications Manager); Research Scientist; Scientific Programmer Analyst'); - expect(await DescriptionSubText.getText()).toContain('O*NET SOC: 15-1111.00'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - await BackLink.click().then(function() { - browser.sleep(5000); - }); - browser.executeScript('window.scrollTo(0, 1885);').then(function() { - browser.sleep(2500); - }); - //At A Glance Link - expect(await AtAGlanceLink.getText()).toEqual('AT A GLANCE'); - await AtAGlanceLink.click().then(function() { - browser.sleep(2500); - }); - expect(await AtAGlanceDIVTitle.getText()).toEqual('At A Glance'); - expect(await TypicalDegreeHeader.getText()).toEqual('Typical Degree'); - expect(await TypicalDegreeData.getText()).toContain('College (4 Year) - 1%'); - expect(await TypicalDegreeData.getText()).toContain('Doctoral degree - 1%'); - expect(await TypicalDegreeData.getText()).toContain("Master's degree - 1%"); - expect(await AverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary'); - expect(await AverageAnnualSalaryData.getText()).toEqual('$114,520'); - expect(await ProjectedGrowthHeader.getText()).toEqual('Projected Growth'); - expect(await ProjectedGrowthPath.getText()).toEqual(' ABOVE AVERAGE'); - expect(await ProjectedGrowthData.getText()).toContain('19.2%'); - expect(await ProjectedJobOpeningsHeader.getText()).toEqual('Projected Job Openings'); - expect(await ProjectedJobOpeningsData.getText()).toEqual('2,500'); - expect(await CurrentlyEmployedHeader.getText()).toEqual('Currently Employed'); - expect(await CurrentlyEmployedData.getText()).toEqual('27,900'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Personality Link - await PersonalityLink.click().then(function() { - browser.sleep(2500); - }); - expect(await PersonalityDIVTitle.getText()).toEqual('Personality'); - expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.'); - expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:'); - expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking'); - expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation'); - expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail'); - expect(await PersonalityBulletFour.getText()).toEqual('Independence'); - expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort'); - expect(await PersonalityBulletSix.getText()).toEqual('Initiative'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Wages Link - await WagesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await WagesDIVTitle.getText()).toEqual('Wages'); - await WagesIIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await WagesBackOfDIVTitle.getText()).toEqual('Wages'); - expect(await WagesBackOfDIVTextOne.getText()).toEqual('The graph is reflecting data based on BLS statistics of year 2019.'); - expect(await WagesBackOfDIVTextTwo.getText()).toEqual('For more information please visit:'); - expect(await WagesBackOfDIVTextThree.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'); - expect(await WagesBackOfDIVTextFour.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm19all.zip'); - expect(await WagesBackOfDIVTextFive.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm18all.zip'); - expect(await WagesBackOfDIVTextSix.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm17all.zip'); - await WagesBackOfDIVXCloseIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toEqual('San Diego-Carlsbad, CA Metro Area'); - //expect(await WagesTypeText.getText()).toEqual('4');//Can't ID - expect(await WagesHighText.getText()).toEqual('High'); - expect(await WagesMedianText.getText()).toEqual('Median'); - expect(await WagesLowText.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ZipCodeTextBoxText.getText()).toEqual('Zip Code'); - await ZipCodeTextBox.click(); - await ZipCodeTextBox.clear(); - await ZipCodeTextBox.sendKeys('85013').then(function() { - browser.sleep(1000); - }); - await ZipCodeApplyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ'); - expect(await WagesHighText.getText()).toEqual('High'); - expect(await WagesMedianText.getText()).toEqual('Median'); - expect(await WagesLowText.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await StateDropDownText.getText()).toEqual('Or State'); - element(by.cssContainingText('option', 'Oregon')).click().then(function() { - browser.sleep(1000); - }); - await StateDropDownApplyButton.click().then(function() { - browser.sleep(1000); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Oregon'); - expect(await WagesHighTextTwo.getText()).toEqual('High'); - expect(await WagesMedianTextTwo.getText()).toEqual('Median'); - expect(await WagesLowTextTwo.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - expect(await WagesXAxisFiveText.getText()).toEqual('$250,000'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await RateTypeText.getText()).toEqual('Rate Type'); - expect(await HourlyButton.getText()).toEqual('Hourly'); - expect(HourlyButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - expect(await AnnualButton.getText()).toEqual('Annual'); - expect(AnnualButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - await HourlyButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Oregon'); - expect(await WagesHighTextTwo.getText()).toEqual('High'); - expect(await WagesMedianTextTwo.getText()).toEqual('Median'); - expect(await WagesLowTextTwo.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$20'); - expect(await WagesXAxisTwoText.getText()).toEqual('$40'); - expect(await WagesXAxisThreeText.getText()).toEqual('$60'); - expect(await WagesXAxisFourText.getText()).toEqual('$80'); - expect(await WagesXAxisFiveText.getText()).toEqual('$100'); - await WagesFilterIcon.click().then(function() { - browser.sleep(2500); - }); - expect(HourlyButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active - expect(AnnualButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active - await AnnualButton.click().then(function() { - browser.sleep(2500); - }); - expect(await CurrentDataNationalHeader.getText()).toEqual('National'); - expect(await CurrentDataLocalHeader.getText()).toContain('Oregon'); - expect(await WagesHighTextTwo.getText()).toEqual('High'); - expect(await WagesMedianTextTwo.getText()).toEqual('Median'); - expect(await WagesLowTextTwo.getText()).toEqual('Low'); - expect(await Wages0Text.getText()).toEqual('$0'); - expect(await WagesXAxisOneText.getText()).toEqual('$50,000'); - expect(await WagesXAxisTwoText.getText()).toEqual('$100,000'); - expect(await WagesXAxisThreeText.getText()).toEqual('$150,000'); - expect(await WagesXAxisFourText.getText()).toEqual('$200,000'); - expect(await WagesXAxisFiveText.getText()).toEqual('$250,000'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //College Pathways Link - await CollegPathwaysLink.click().then(function() { - browser.sleep(2500); - }); - expect(await CollegePathwaysDIVTitle.getText()).toEqual('College Pathways'); - expect(await ComputerApplicationsMinorCollegeWide.getText()).toEqual('Computer Applications Minor—College-Wide'); - expect(await ComputerScienceBS.getText()).toEqual('Computer Science B.S.'); - expect(await ComputerScienceMinor.getText()).toEqual('Computer Science Minor'); - await ComputerScienceMinor.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerScienceMinorDescription.getText()).toEqual('The computer science program is designed to provide students with the educational background required for a professional career in the computing industry and for further study at the graduate level. The program includes a core of required courses and an elective program of courses over a wide range of topics. Seniors work in teams to carry out community-based projects during the two-term capstone course in software engineering. A minor in computer science is available within the Maseeh College of Engineering and Computer Science in the area of computer science. To earn a minor in computer science, a student must complete 36 credits.'); - expect(await ComputerScienceMinorInstitutionsHeader.getText()).toEqual('Institutions'); - expect(await ComputerScienceMinorInstitutionsData.getText()).toEqual('2,407'); - expect(await ComputerScienceMinorCoursesHeader.getText()).toEqual('Courses'); - expect(await ComputerScienceMinorCoursesData.getText()).toEqual('5'); - expect(await ComputerScienceMinorOccupationsHeader.getText()).toEqual('Occupations'); - expect(await ComputerScienceMinorOccupationsData.getText()).toEqual('77'); - expect(await ComputerScienceMinorAverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary'); - expect(await ComputerScienceMinorAverageAnnualSalaryData.getText()).toEqual('$99,362'); - await ComputerScienceMinor.click().then(function() { - browser.sleep(2500); - }); - await ComputerScienceMinorEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerScienceMinorFollowIcon.getText()).toEqual('Follow'); - expect(await ComputerScienceMinorLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await ComputerScienceMinorMapIcon.getText()).toEqual('Map'); - expect(await ComputerScienceMinorJourneyIcon.getText()).toEqual('Journey'); - expect(await ComputerScienceMinorAtAGlanceIcon.getText()).toEqual('At A Glance'); - await CollegePathwaysRightScrollIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerScienceMS.getText()).toEqual('Computer Science M.S.'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Certificates Link - await CertificatesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await CertificatesDIVTitle.getText()).toEqual('Certificates'); - expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect'); - await CertifiedLabVIEWArchitect.click().then(function() { - browser.sleep(2500); - }); - expect(await CertifiedLabVIEWArchitectDescription.getText()).toEqual("The Certified LabVIEW Architect is the final step in the three-part NI LabVIEW certification process. The exam for this step presents a set of high-level requirements and tests the user's ability to build a sensible VI hierarchy and project plan for delivering an application that fulfills those requirements. You can use this certification to assess and validate an individual's LabVIEW development and project management skills for the purpose of project staffing or career advancement."); - expect(await CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersHeader.getText()).toEqual('Institutions & training providers'); - expect(await CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersData.getText()).toEqual('0'); - expect(await CertifiedLabVIEWArchitectOccupationsHeader.getText()).toEqual('Occupations'); - expect(await CertifiedLabVIEWArchitectOccupationsData.getText()).toEqual('0'); - expect(await CertifiedLabVIEWArchitectResourcesHeader.getText()).toEqual('Resources'); - expect(await CertifiedLabVIEWArchitectResourcesData.getText()).toEqual('0'); - expect(await CertifiedAssociateLabVIEWDeveloper.getText()).toEqual('Certified Associate LabVIEW Developer'); - expect(await AvayaCertifiedExpert.getText()).toEqual('Avaya Certified Expert'); - await CertificatesRightScrollIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await CertifiedBiometricsProfessional.getText()).toEqual('Certified Biometrics Professional'); - expect(await CertifiedSoftwareDevelopmentProfessional.getText()).toEqual('Certified Software Development Professional'); - expect(await MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter.getText()).toEqual('Microsoft Server Virtualization with Windows Server Hyper-V and System Center'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Institutions Link - await InstitutionsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await InstitutionsDIVTitle.getText()).toEqual('Institutions View All'); - expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego'); - expect(await NationalUniversity.getText()).toEqual('National University'); - expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University'); - await InstitutionsRightScrollIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego'); - expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University'); - await SanDiegoStateUniversity.click().then(function() { - browser.sleep(2500) - }); - expect(await SanDiegoStateUniversity4YearHeader.getText()).toEqual('4 Year'); - expect(await SanDiegoStateUniversity4YearData.getText()).toEqual('Public'); - expect(await SanDiegoStateUniversityUndergradHeader.getText()).toEqual('Undergraduate Students'); - expect(await SanDiegoStateUniversityUndergradData.getText()).toEqual('30,018'); - expect(await SanDiegoStateUniversityLocationHeader.getText()).toContain('Location'); - expect(await SanDiegoStateUniversityLocationData.getText()).toEqual('City'); - expect(await SanDiegoStateUniversityClassroomHeader.getText()).toContain('Classrooms'); - expect(await SanDiegoStateUniversityClassroomData.getText()).toEqual('Large'); - await SanDiegoStateUniversity.click().then(function() { - browser.sleep(1000); - }); - await SanDiegoStateUniversityEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await SanDiegoStateUniversityFollowIcon.getText()).toEqual('Follow'); - expect(await SanDiegoStateUniversityLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await SanDiegoStateUniversityAtAGlanceIcon.getText()).toEqual('At A Glance'); - expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Top Resources Link - expect(await TopResourcesLink.getText()).toEqual('TOP RESOURCES'); - await TopResourcesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesDIVTitle.getText()).toEqual('Computer and Information Research Scientists'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await TopResourcesTitleOne.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - expect(await TopResourcesTitleTwo.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesTitleThree.getText()).toEqual('Computer and Information Research Scientists'); - await TopResourcesTitleThree.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesTitleThreeFollow.getText()).toEqual('Follow'); - expect(await TopResourcesTitleThreeLearnMore.getText()).toEqual('Learn More'); - expect(await TopResourcesTitleFour.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesTitleFive.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesTitleSix.getText()).toEqual('Arduino download link for Thinkabitlab'); - } else { - expect(await TopResourcesTitleOne.getText()).toEqual('How to Become a Research Scientist'); - expect(await TopResourcesTitleTwo.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); - await TopResourcesTitleTwo.click().then(function() { - browser.sleep(2500); - }); - expect(await TopResourcesTitleTwoFollow.getText()).toEqual('Follow'); - expect(await TopResourcesTitleTwoLearnMore.getText()).toEqual('Learn More'); - expect(await TopResourcesTitleThree.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesTitleFour.getText()).toEqual('Computer and Information Research Scientists'); - expect(await TopResourcesTitleFive.getText()).toEqual('Computer and Information Research Scientists'); - } - }); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Find Opportunities Link - expect(await FindOpportunitiesLink.getText()).toEqual('FIND OPPORTUNITIES'); - await FindOpportunitiesLink.click().then(function() { - browser.sleep(5000); - }); - expect(await FindOpportunitiesDIVTitle.getText()).toContain('Job Listings: '); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Submit A Resource Link - expect(await SubmitResourceLink.getText()).toEqual('SUBMIT A RESOURCE'); - await SubmitResourceLink.click().then(function() { - browser.sleep(5000); - }); - expect(await SubmitResourceDIVTitle.getText()).toEqual('Submit a Resource'); - expect(await SubmitResourceDIVSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources"); - expect(await TotalInJourneysHeader.getText()).toContain('Total in Journeys'); - expect(await TotalInJourneysData.getText()).toContain('1'); - await TotalInJourneysData.click().then(function() { - browser.sleep(5000); - }); - expect(await MySubmittedResourcesDIVTitle.getText()).toEqual('My Submitted Resources'); - await JourneysGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await MySubmittedResourcesTitle.getText()).toEqual('Test Doc'); - } else { - expect(await MySubmittedResourcesTitle.getText()).toEqual('Recommended Careers Doc'); - } - }); - await MySubmittedResourcesTitle.click().then(function() { - browser.sleep(2500); - }); - expect(await MySubmittedResourcesFollowIcon.getText()).toEqual('Follow'); - expect(await MySubmittedResourcesLearnMoreIcon.getText()).toEqual('Learn More'); - await MySubmittedResourcesEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - await MySubmittedResourcesDIVXCloseIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ForThisMapPointHeader.getText()).toContain('For this map point'); - expect(await ForThisMapPointData.getText()).toContain('0'); - //expect(await SubmitResourceDIVSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); //CAN'T LOCATE TEXT - expect(await SubmitAResourceDIVButton.getText()).toEqual('Submit a Resource'); - await SubmitAResourceDIVButton.click().then(function() { - browser.sleep(2500); - }); - expect(await SubmitAResourceDIVTitle.getText()).toEqual('Submit a Resource'); - await SubmitAResourceDIVCloseXIcon.click().then(function() { - browser.sleep(2500); - }); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - browser.executeScript('window.scrollTo(0, 1885);').then(function() { - browser.sleep(2500); - }); - //Nearby Places Link - expect(await NearbyPlacesLink.getText()).toEqual('NEARBY PLACES'); - await NearbyPlacesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await NearbyPlacesDIVTitle.getText()).toEqual('Nearby Places'); - expect(await ComputerAndInformationSystemsManagers.getText()).toEqual('Computer and Information Systems Managers'); - await ComputerAndInformationSystemsManagersEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerAndInformationSystemsManagersFollowIcon.getText()).toEqual('Follow'); - expect(await ComputerAndInformationSystemsManagersLearnMoreIcon.getText()).toEqual('Learn More'); - expect(await ComputerAndInformationSystemsManagersMapIcon.getText()).toEqual('Map'); - expect(await ComputerAndInformationSystemsManagersJourneyIcon.getText()).toEqual('Journey'); - expect(await ComputerAndInformationSystemsManagersVideoIcon.getText()).toEqual('Video'); - expect(await ComputerAndInformationSystemsManagersAtAGlanceIcon.getText()).toEqual('At A Glance'); - await ComputerAndInformationSystemsManagersAtAGlanceIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerAndInformationSystemsManagersDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.'); - expect(await ComputerAndInformationSystemsManagersTypicalDegreeHeader.getText()).toEqual('Typical Degree'); - expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataOne.getText()).toEqual('College (4 Year) - 48%'); - expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataTwo.getText()).toEqual('Some college - 26%'); - expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataThree.getText()).toEqual("Master's degree - 14%"); - expect(await ComputerAndInformationSystemsManagersAverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualSalaryData.getText()).toEqual('$139,220'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthHeader.getText()).toEqual('Projected Growth'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataOne.getText()).toEqual('12%'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataTwo.getText()).toEqual('ABOVE AVERAGE'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsHeader.getText()).toEqual('Projected Job Openings'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsData.getText()).toEqual('32,500'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedHeader.getText()).toEqual('Currently Employed'); - expect(await ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedData.getText()).toEqual('367,600'); - expect(await ComputerNetworkArchitects.getText()).toEqual('Computer Network Architects'); - expect(await ComputerNetworkSupportSpecialists.getText()).toEqual('Computer Network Support Specialists'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other'); - expect(await ComputerProgrammers.getText()).toEqual('Computer Programmers'); - expect(await ComputerScienceTeachersPostsecondary.getText()).toEqual('Computer Science Teachers, Postsecondary'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await DataWarehousingSpecialist.getText()).toEqual('Data Warehousing Specialists'); - expect(await DatabaseAdministrator.getText()).toEqual('Database Administrators'); - expect(await DatabaseArchitects.getText()).toEqual('Database Architects'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - //EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await GraphicDesigners.getText()).toEqual('Graphic Designers'); - expect(await InformationSecurityAnalysts.getText()).toEqual('Information Security Analysts'); - expect(await MultimediaArtistsAndAnimators.getText()).toEqual('Multimedia Artists and Animators'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - //EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await NetworkAndComputerSystemsAdministrators.getText()).toEqual('Network and Computer Systems Administrators'); - expect(await SoftwareDevelopersApplications.getText()).toEqual('Software Developers, Applications'); - expect(await SoftwareDevelopersSystemsSoftware.getText()).toEqual('Software Developers, Systems Software'); - await NearbyPlacesRightScroll.click().then(function() { - browser.sleep(2500); - }); - expect(await TelecommunicationsEngineeringSpecialists.getText()).toEqual('Telecommunications Engineering Specialists'); - await CloseXIcon.click().then(function() { - browser.sleep(2500); - }); - //Knowledge Link - await KnowledgeLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Knowledge'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await DescriptionOne.getText()).toEqual('Computers and Electronics'); - expect(await ImportanceStatOne.getText()).toEqual('89%'); - expect(await DescriptionTwo.getText()).toEqual('Mathematics'); - expect(await ImportanceStatTwo.getText()).toEqual('77%'); - expect(await DescriptionThree.getText()).toEqual('Engineering and Technology'); - expect(await ImportanceStatThree.getText()).toEqual('74%'); - expect(await DescriptionFour.getText()).toEqual('English Language'); - expect(await ImportanceStatFour.getText()).toEqual('72%'); - expect(await DescriptionFive.getText()).toEqual('Administration and Management'); - expect(await ImportanceStatFive.getText()).toEqual('58%'); - expect(await DescriptionSix.getText()).toEqual('Design'); - expect(await ImportanceStatSix.getText()).toEqual('57%'); - expect(await DescriptionSeven.getText()).toEqual('Telecommunications'); - expect(await ImportanceStatSeven.getText()).toEqual('52%'); - await CloseXImage.click().then(function() { - browser.sleep(2500); - }); - //Skills Link - await SkillsLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Skills'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await DescriptionOne.getText()).toEqual('Complex Problem Solving'); - expect(await ImportanceStatOne.getText()).toEqual('75%'); - expect(await DescriptionTwo.getText()).toEqual('Critical Thinking'); - expect(await ImportanceStatTwo.getText()).toEqual('75%'); - expect(await DescriptionThree.getText()).toEqual('Judgment and Decision Making'); - expect(await ImportanceStatThree.getText()).toEqual('75%'); - expect(await DescriptionFour.getText()).toEqual('Active Listening'); - expect(await ImportanceStatFour.getText()).toEqual('69%'); - expect(await DescriptionFive.getText()).toEqual('Reading Comprehension'); - expect(await ImportanceStatFive.getText()).toEqual('69%'); - expect(await DescriptionSix.getText()).toEqual('Systems Analysis'); - expect(await ImportanceStatSix.getText()).toEqual('69%'); - expect(await DescriptionSeven.getText()).toEqual('Programming'); - expect(await ImportanceStatSeven.getText()).toEqual('66%'); - expect(await DescriptionEight.getText()).toEqual('Systems Evaluation'); - expect(await ImportanceStatEight.getText()).toEqual('66%'); - await CloseXImage.click().then(function() { - browser.sleep(2500); - }); - //Ability Link - await AbilityLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Ability'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await DescriptionOne.getText()).toEqual('Deductive Reasoning'); - expect(await ImportanceStatOne.getText()).toEqual('78%'); - expect(await DescriptionTwo.getText()).toEqual('Inductive Reasoning'); - expect(await ImportanceStatTwo.getText()).toEqual('78%'); - expect(await DescriptionThree.getText()).toEqual('Oral Comprehension'); - expect(await ImportanceStatThree.getText()).toEqual('75%'); - await CloseXImage.click().then(function() { - browser.sleep(2500); - }); - //Tasks Link - await TasksLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Tasks'); - expect(await TasksCategoryHeader.getText()).toEqual('Category'); - expect(await TasksImportanceHeader.getText()).toEqual('Importance'); - expect(await TasksDescriptionOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.'); - expect(await TasksCategoryDataOne.getText()).toEqual('Core'); - expect(await TasksImportanceDataOne.getText()).toEqual('81%'); - expect(await TasksDescriptionTwo.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.'); - expect(await TasksCategoryDataTwo.getText()).toEqual('Core'); - expect(await TasksImportanceDataTwo.getText()).toEqual('72%'); - expect(await TasksDescriptionThree.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.'); - expect(await TasksCategoryDataThree.getText()).toEqual('Core'); - expect(await TasksImportanceDataThree.getText()).toEqual('69%'); - expect(await TasksDescriptionFour.getText()).toEqual('Meet with managers, vendors, and others to solicit cooperation and resolve problems.'); - expect(await TasksCategoryDataFour.getText()).toEqual('Core'); - expect(await TasksImportanceDataFour.getText()).toEqual('66%'); - expect(await TasksDescriptionFive.getText()).toEqual('Design computers and the software that runs them.'); - expect(await TasksCategoryDataFive.getText()).toEqual('Core'); - expect(await TasksImportanceDataFive.getText()).toEqual('66%'); - expect(await TasksDescriptionSix.getText()).toEqual('Conduct logical analyses of business, scientific, engineering, and other technical problems, formulating mathematical models of problems for solution by computers.'); - expect(await TasksCategoryDataSix.getText()).toEqual('Core'); - expect(await TasksImportanceDataSix.getText()).toEqual('65%'); - await CloseXImage.click().then(function() { - browser.sleep(2500); - }); - //Technology Link - await TechnologyLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Technology'); - expect(await TechnologyDescriptionOne.getText()).toEqual('Development environment software'); - expect(await TechnologyStatOne.getText()).toEqual('Ada ;'); - await CloseXImage.click().then(function() { - browser.sleep(2500); - }); - //Work Activities Link - await WorkActivitiesLink.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Work Activities'); - expect(await ImportanceHeader.getText()).toEqual('Importance'); - expect(await DescriptionOne.getText()).toEqual('Interacting With Computers'); - expect(await ImportanceStatOne.getText()).toEqual('99%'); - expect(await DescriptionTwo.getText()).toEqual('Getting Information'); - expect(await ImportanceStatTwo.getText()).toEqual('91%'); - expect(await DescriptionThree.getText()).toEqual('Making Decisions and Solving Problems'); - expect(await ImportanceStatThree.getText()).toEqual('91%'); - expect(await DescriptionFour.getText()).toEqual('Analyzing Data or Information'); - expect(await ImportanceStatFour.getText()).toEqual('89%'); - expect(await DescriptionFive.getText()).toEqual('Updating and Using Relevant Knowledge'); - expect(await ImportanceStatFive.getText()).toEqual('89%'); - expect(await DescriptionSix.getText()).toEqual('Thinking Creatively'); - expect(await ImportanceStatSix.getText()).toEqual('88%'); - expect(await DescriptionSeven.getText()).toEqual('Documenting/Recording Information'); - expect(await ImportanceStatSeven.getText()).toEqual('84%'); - expect(await DescriptionEight.getText()).toEqual('Communicating with Supervisors, Peers, or Subordinates'); - expect(await ImportanceStatEight.getText()).toEqual('83%'); - expect(await DescriptionNine.getText()).toEqual('Identifying Objects, Actions, and Events'); - expect(await ImportanceStatNine.getText()).toEqual('83%'); - await CloseXImage.click().then(function() { - browser.sleep(2500); - }); - }); -} - -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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file diff --git a/userProfile_config.js b/userProfile_config.js deleted file mode 100644 index 6e6dd76..0000000 --- a/userProfile_config.js +++ /dev/null @@ -1,36 +0,0 @@ -//userProfile_config.js - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['userProfile_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', - username: 'QA_AutomatedRegression', - nonAngularURL: 'https://app-qa.journeysmap.com/UI/User/Profile' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/userProfile_spec.js b/userProfile_spec.js deleted file mode 100644 index c9d50b0..0000000 --- a/userProfile_spec.js +++ /dev/null @@ -1,506 +0,0 @@ -//userProfile_spec.js - -describe('User Profile script', function () { - //login-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); - - it('should have a title', async function () { - await expect(browser.getTitle()).toEqual('My Dashboard'); - }); - - 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(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('_Automated'); - browser.waitForAngular(); - browser.getCurrentUrl(); - }); - } - - UserProfile(); - SignOut(); - //LogBackInToResetTestCase(); //CAN'T GET SCRIPT TO SUCCESSFULLY SAVE EDIT PROFILE RESET TO REMOVE EMAIL AND MIDDLE INITIAL -}); - -function UserProfile() { - it(': UserProfile, Should interact with the Account Information page', async function () { - var ProfileImage = element(by.css('.roundCenterBackgroundImage')); - var ProfileLink = element(by.linkText('Profile')); - //Account Information Page - var PageTitle = element(by.css('#title')); - //Personal Information block - var PersonalInformationTitle = element(by.css('div > .col-12 > h4')); - var AccountInformationGreeting = element(by.css('.navbar-nav:nth-child(2) > .nav-item:nth-child(1)')); - var UserNameText = element(by.css('h5')); - var UserEmailHeader = element(by.css('.col-lg-4 .col-3')); - var UserEmailText = element(by.css('.col-lg-4 .col-7')); - var UserRoleHeader = element(by.css('.col-12:nth-child(3) > .row > .col-3')); - var UserRoleText = element(by.css('.col-12:nth-child(3) > .row > .col-7')); - var UserBirthDateHeader = element(by.css('.col-12:nth-child(4) .col-3')); - var UserBirthDateText = element(by.css('.col-12:nth-child(4) .col-7')); - var UserZipCodeHeader = element(by.css('.col-lg-2 .col-3')); - var UserZipCodeText = element(by.css('.col-lg-2 .col-7')); - //My Connection block - var MyConnectionTitleRow = element(by.css('.ng-untouched h4')); - var ConnectionCodeHeader = element(by.css('.text-muted:nth-child(1)')); - var ConnectionCodeText = element(by.name('newConnectionCode')); - var ConnectionCodeButton = element(by.css('.col-md-3 > .btn')); - //Edit Profile - var EditProfileTile = element(by.css('.col-md-3:nth-child(1) tr:nth-child(1) > td')); - var DIVTitle = element(by.css('.ng-star-inserted .bg-secondary')); - var FirstNameHeader = element(by.css('.col-12:nth-child(1) .col-4')); - var FirstNameTextBox = element(by.name('FirstName')); - var MiddleInitialHeader = element(by.css('.col-12:nth-child(2) > .row > .col-4')); - var MiddleInitialTextBox = element(by.name('MI')); - var LastNameHeader = element(by.css('.col-12:nth-child(3) .col-4')); - var LastNameTextBox = element(by.name('LastName')); - var EmailHeader = element(by.css('.col-12:nth-child(4) .col-4')); - var EmailTextBox = element(by.name('Email')); - var BirthDateHeader = element(by.css('.col-12:nth-child(5) .col-4')); - var BirthDateTextBox = element(by.name('BirthDate')); - var ZipCodeHeader = element(by.css('.col-12:nth-child(6) .col-4')); - var ZipCodeTextBox = element(by.name('ZipCode')); - var RoleHeader = element(by.css('.col-12:nth-child(7) .col-4')); - var RoleTextBox = element(by.name('Role')); - var UsernameHeader = element(by.css('.col-12:nth-child(8) .col-4')); - var UsernameTextBox = element(by.name('UserName')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - //Chage Password - var ChangePasswordTile = element(by.css('.col-md-3:nth-child(2) tr:nth-child(1) > td')); - var EnterCurrentPasswordHeader = element(by.css('.col-lg-8 > div:nth-child(1) > .text-muted')); - var EnterCurrentPasswordTextBox = element(by.name('CurrentPassword')); - var EnterNewPasswordHeader = element(by.css('div:nth-child(2) > .text-muted')); - var EnterNewPasswordTextBox = element(by.name('NewPassword1')); - var ReenterNewPasswordHeader = element(by.css('div:nth-child(3) > .text-muted')); - var ReenterNewPasswordTextBox = element(by.name('NewPassword2')); - //My Connections - var MyConnectionTile = element(by.css('.col-md-3:nth-child(3) tr:nth-child(1) > td')); - var ConnectionCodeDIVHeader = element(by.css('th:nth-child(1)')); - var ConnectionCodeDIVText = element(by.css('.ng-star-inserted > td:nth-child(1)')); - var ConnectionTypeHeader = element(by.css('th:nth-child(2)')); - var ConnectionTypeText = element(by.css('td:nth-child(2)')); - var NameHeader = element(by.css('th:nth-child(3)')); - var NameText = element(by.css('td:nth-child(3)')); - var OrganizationHeader = element(by.css('th:nth-child(4)')); - var OrganizationText = element(by.css('td:nth-child(4)')); - var JoinDateHeader = element(by.css('th:nth-child(5)')); - var JoinDateText = element(by.css('td:nth-child(5)')); - var ExitDateHeader = element(by.css('th:nth-child(6)')); - var ExitDateText = element(by.css('td:nth-child(6)')); - var CloseButton = element(by.css('.ng-star-inserted .btn')); - //Edit Security Question - var EditSecurityQuestionTile = element(by.css('.col-md-3:nth-child(4) tr:nth-child(1) > td')); - var SelectASecurityQuestionHeader = element(by.css('.col-lg-8 > div:nth-child(1) > .text-muted')); - var AnswerSecurityQuestionHeader = element(by.css('div:nth-child(2) > .text-muted')); - var AnswerSecurityAnswerTextBox = element(by.name('Answer')); - var BackToDashboardLink = element(by.linkText('BACK TO DASHBOARD')); - - await ProfileImage.click().then(function() { - browser.sleep(1500); - }); - browser.actions().mouseMove(ProfileLink).perform().then(function() { - browser.sleep(1500); - }); - await ProfileLink.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngularEnabled(false); - browser.get(browser.params.nonAngularURL); - //Account Information Page - expect(await PageTitle.getText()).toEqual('Account Information'); - //Personal Information block - expect(await PersonalInformationTitle.getText()).toEqual('Personal Information'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await UserNameText.getText()).toEqual('Qa_Automated Regression'); - } else { - expect(await UserNameText.getText()).toEqual('Prod_Automated Regression'); - } - }); - expect(await UserEmailHeader.getText()).toEqual('Email'); - expect(await UserEmailText.getText()).toEqual(''); - expect(await UserRoleHeader.getText()).toEqual('Role'); - expect(await UserRoleText.getText()).toEqual('Student'); - expect(await UserBirthDateHeader.getText()).toEqual('Birthdate'); - expect(await UserBirthDateText.getText()).toEqual('2000-02-15'); - expect(await UserZipCodeHeader.getText()).toEqual('Zip Code'); - expect(await UserZipCodeText.getText()).toEqual('92123'); - //My Connection block - expect(await MyConnectionTitleRow.getText()).toEqual('Make Connection'); - expect(await ConnectionCodeHeader.getText()).toEqual('Connection Code'); - await ConnectionCodeText.sendKeys('1G8HNBQ7').then(function() { - browser.sleep(1500); - }); - await ConnectionCodeButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toContain('Fail to connect.'); - expect(alertDialog.getText()).toContain('Class not found'); - browser.switchTo().alert().accept(); - }); - //Edit Profile - expect(await EditProfileTile.getText()).toContain('EDIT'); - expect(await EditProfileTile.getText()).toContain('PROFILE'); - await EditProfileTile.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Edit Personal Information'); - expect(await FirstNameHeader.getText()).toEqual('First Name'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await FirstNameTextBox.getAttribute('value')).toEqual('Qa_Automated'); - } else { - expect(await FirstNameTextBox.getAttribute('value')).toEqual('Prod_Automated'); - } - }); - expect(await MiddleInitialHeader.getText()).toEqual('Middle Initial'); - expect(await MiddleInitialTextBox.getAttribute('value')).toEqual(''); - expect(await LastNameHeader.getText()).toEqual('Last Name'); - expect(await LastNameTextBox.getAttribute('value')).toEqual('Regression'); - expect(await EmailHeader.getText()).toEqual('Email'); - expect(await EmailTextBox.getAttribute('value')).toEqual(''); - expect(await BirthDateHeader.getText()).toEqual('Birthdate'); - expect(await BirthDateTextBox.getAttribute('value')).toEqual('2000-02-15'); - expect(await ZipCodeHeader.getText()).toEqual('Zip Code'); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('92123'); - expect(await RoleHeader.getText()).toEqual('Role'); - expect(await RoleTextBox.getAttribute('value')).toEqual('Student'); - expect(await UsernameHeader.getText()).toEqual('Username'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await UsernameTextBox.getAttribute('value')).toEqual('QA_AutomatedRegression'); - } else { - expect(await UsernameTextBox.getAttribute('value')).toEqual('PROD_AutomatedRegression'); - } - }); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await MiddleInitialTextBox.sendKeys('G').then(function() { - browser.sleep(1500); - }); - await EmailTextBox.sendKeys('AutomatedRegression@edmin.com').then(function() { - browser.sleep(1500); - }); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('Personal information is updated.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(await PersonalInformationTitle.getText()).toEqual('Personal Information'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await UserNameText.getText()).toEqual('Qa_Automated G. Regression'); - } else { - expect(await UserNameText.getText()).toEqual('Prod_Automated G. Regression'); - } - }); - expect(await UserEmailHeader.getText()).toEqual('Email'); - expect(await UserEmailText.getText()).toEqual('AutomatedRegression@edmin.com'); - expect(await UserRoleHeader.getText()).toEqual('Role'); - expect(await UserRoleText.getText()).toEqual('Student'); - expect(await UserBirthDateHeader.getText()).toEqual('Birthdate'); - expect(await UserBirthDateText.getText()).toEqual('2000-02-15'); - expect(await UserZipCodeHeader.getText()).toEqual('Zip Code'); - expect(await UserZipCodeText.getText()).toEqual('92123'); - //Change Password - expect(await ChangePasswordTile.getText()).toContain('CHANGE'); - expect(await ChangePasswordTile.getText()).toContain('PASSWORD'); - await ChangePasswordTile.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('Change Password'); - expect(await EnterCurrentPasswordHeader.getText()).toEqual('Enter Current Password'); - await EnterCurrentPasswordTextBox.sendKeys('EDminAuto').then(function() { - browser.sleep(1500); - }); - expect(await EnterNewPasswordHeader.getText()).toEqual('Enter New Password'); - await EnterNewPasswordTextBox.sendKeys('edmin123').then(function() { - browser.sleep(1500); - }); - expect(await ReenterNewPasswordHeader.getText()).toEqual('Reenter New Password'); - await ReenterNewPasswordTextBox.sendKeys('edmin123').then(function() { - browser.sleep(1500); - }); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toContain('Your old password was incorrect. Try again.'); - expect(alertDialog.getText()).toContain('Fail to update authentication.'); - expect(alertDialog.getText()).toContain('Current password is incorrrect'); - browser.switchTo().alert().accept(); - }); - await EnterCurrentPasswordTextBox.clear().then(function() { - browser.sleep(1500); - }); - await EnterCurrentPasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await EnterNewPasswordTextBox.clear().then(function() { - browser.sleep(1500); - }); - await EnterNewPasswordTextBox.sendKeys('EDmin123').then(function() { - browser.sleep(1500); - }); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toContain('New Password failed.'); - expect(alertDialog.getText()).toContain('Please provide Current Password and ensure New Passwords fields match.'); - browser.switchTo().alert().accept(); - }); - await EnterNewPasswordTextBox.clear().then(function() { - browser.sleep(1500); - }); - await EnterNewPasswordTextBox.sendKeys('edmin123').then(function() { - browser.sleep(1500); - }); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('Password change saved.'); - browser.switchTo().alert().accept(); - }); - //My Connections - expect(await MyConnectionTile.getText()).toContain('MY'); - expect(await MyConnectionTile.getText()).toContain('CONNECTIONS'); - await MyConnectionTile.click().then(function() { - browser.sleep(2500); - }); - expect(await DIVTitle.getText()).toEqual('My Connections'); - expect(await ConnectionCodeDIVHeader.getText()).toContain('CONNECTION'); - expect(await ConnectionCodeDIVHeader.getText()).toContain('CODE'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await ConnectionCodeDIVText.getText()).toEqual('QYS2VMLJ'); - } else { - expect(await ConnectionCodeDIVText.getText()).toEqual('C5KWI9W7'); - } - }); - expect(await ConnectionTypeHeader.getText()).toContain('CONNECTION'); - expect(await ConnectionTypeHeader.getText()).toContain('TYPE'); - expect(await ConnectionTypeText.getText()).toEqual('Class'); - expect(await NameHeader.getText()).toEqual('NAME'); - expect(await NameText.getText()).toEqual('Connection P-1'); - expect(await OrganizationHeader.getText()).toEqual('ORGANIZATION'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await OrganizationText.getText()).toEqual('Art Of Eight'); - } else { - expect(await OrganizationText.getText()).toEqual('ProdLoadTest'); - } - }); - expect(await JoinDateHeader.getText()).toEqual('JOIN DATE'); - expect(await JoinDateText.getText()).toEqual('2019-05-29'); - expect(await ExitDateHeader.getText()).toEqual('EXIT DATE'); - expect(await ExitDateText.getText()).toEqual(''); - expect(await CloseButton.getText()).toEqual('CLOSE'); - await CloseButton.click().then(function() { - browser.sleep(2500); - }); - //Edit Security Question - expect(await EditSecurityQuestionTile.getText()).toContain('EDIT'); - expect(await EditSecurityQuestionTile.getText()).toContain('SECURITY'); - expect(await EditSecurityQuestionTile.getText()).toContain('QUESTION'); - await EditSecurityQuestionTile.click().then(function() { - browser.sleep(2500); - }); - expect(await SelectASecurityQuestionHeader.getText()).toContain('Select a Security Question'); - element(by.cssContainingText('option', 'What was the make of your first car?')).click().then(function() { - browser.sleep(1500); - }); - expect(await AnswerSecurityQuestionHeader.getText()).toContain('Answer Security Question'); - await AnswerSecurityAnswerTextBox.sendKeys('Chevy Luv').then(function() { - browser.sleep(1500); - }); - expect(await CancelButton.getText()).toContain('CANCEL'); - expect(await SaveButton.getText()).toContain('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(1500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('Security questions is updated.'); - browser.switchTo().alert().accept(); - browser.sleep(1500); - }); - //<<<>>> - //Password - await ChangePasswordTile.click().then(function() { - browser.sleep(2500); - }); - await EnterCurrentPasswordTextBox.sendKeys('edmin123').then(function() { - browser.sleep(1500); - }); - await EnterNewPasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await ReenterNewPasswordTextBox.sendKeys('3Dm!nAuto').then(function() { - browser.sleep(1500); - }); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('Password change saved.'); - browser.switchTo().alert().accept(); - }); - //Back to Dashboard - expect(await BackToDashboardLink.getText()).toContain('BACK TO DASHBOARD'); - await BackToDashboardLink.click().then(function() { - browser.sleep(2500); - }); - }); -} - -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')); - - await ProfileImage.click().then(function() { - browser.sleep(1000); - }); - await SignOutButton.click().then(function() { - browser.sleep(2500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} - -//Back to Edit Profile to remove Email and MI (script issue) -function LogBackInToResetTestCase() { - it('should sign back into journeysmap.com and reset profile email & middle initial', async function () { - var PageGreetingText = element(by.css('td > div > div:nth-child(1)')); - var UserNameTextBox = element(by.css('#txtU')); - var PasswordTextBox = element(by.css('#txtP')); - var NextButton = element(by.css('.btn')); - var ProfileImage = element(by.css('.roundCenterBackgroundImage')); - var ProfileLink = element(by.linkText('Profile')); - //Account Information Page - var PageTitle = element(by.css('#title')); - //Personal Information block - var PersonalInformationTitle = element(by.css('div > .col-12 > h4')); - var AccountInformationGreeting = element(by.css('.navbar-nav:nth-child(2) > .nav-item:nth-child(1)')); - var UserNameText = element(by.css('h5')); - var UserEmailHeader = element(by.css('.col-lg-4 .col-3')); - var UserEmailText = element(by.css('.col-lg-4 .col-7')); - var UserRoleHeader = element(by.css('.col-12:nth-child(3) > .row > .col-3')); - var UserRoleText = element(by.css('.col-12:nth-child(3) > .row > .col-7')); - var UserBirthDateHeader = element(by.css('.col-12:nth-child(4) .col-3')); - var UserBirthDateText = element(by.css('.col-12:nth-child(4) .col-7')); - var UserZipCodeHeader = element(by.css('.col-lg-2 .col-3')); - var UserZipCodeText = element(by.css('.col-lg-2 .col-7')); - //Edit Profile - var EditProfileTile = element(by.css('.col-md-3:nth-child(1) tr:nth-child(1) > td')); - var MiddleInitialHeader = element(by.css('.col-12:nth-child(2) > .row > .col-4')); - var MiddleInitialTextBox = element(by.name('MI')); - var EmailHeader = element(by.css('.col-12:nth-child(4) .col-4')); - var EmailTextBox = element(by.name('Email')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var ResetProfileImage = element(by.css('.dropdown-toggle > .jmRoundCenterImage')); - var ResetSignOutButton = element(by.css('li > .btn')); - - browser.get(browser.params.login).then(function() { - browser.sleep(2500); - }); - 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(); - }); - await ProfileImage.click().then(function() { - browser.sleep(1500); - }); - browser.actions().mouseMove(ProfileLink).perform().then(function() { - browser.sleep(1500); - }); - await ProfileLink.click().then(function() { - browser.sleep(5000); - }); - //Account Information Page - browser.waitForAngularEnabled(false); - browser.get(browser.params.nonAngularURL); - expect(await PageTitle.getText()).toEqual('Account Information'); - await EditProfileTile.click().then(function() { - browser.sleep(2500); - }); - expect(await MiddleInitialHeader.getText()).toEqual('Middle Initial'); - expect(await MiddleInitialTextBox.getAttribute('value')).toEqual('G'); - expect(await EmailHeader.getText()).toEqual('Email'); - expect(await EmailTextBox.getAttribute('value')).toEqual('AutomatedRegression@edmin.com'); - await MiddleInitialTextBox.clear().then(function() { - browser.sleep(1500); - }); - await EmailTextBox.clear().then(function() { - browser.sleep(1500); - }); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('Personal information is updated.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(await PersonalInformationTitle.getText()).toEqual('Personal Information'); - await AccountInformationGreeting.getText().then(async function(actualText) { - if(actualText.indexOf('Qa_Automated') !== -1) { - expect(await UserNameText.getText()).toEqual('Qa_Automated Regression'); - } else { - expect(await UserNameText.getText()).toEqual('Prod_Automated Regression'); - } - }); - expect(await UserEmailHeader.getText()).toEqual('Email'); - expect(await UserEmailText.getText()).toEqual(''); - expect(await UserRoleHeader.getText()).toEqual('Role'); - expect(await UserRoleText.getText()).toEqual('Student'); - expect(await UserBirthDateHeader.getText()).toEqual('Birthdate'); - expect(await UserBirthDateText.getText()).toEqual('2000-02-15'); - expect(await UserZipCodeHeader.getText()).toEqual('Zip Code'); - expect(await UserZipCodeText.getText()).toEqual('92123'); - await ResetProfileImage.click().then(function() { - browser.sleep(1500); - }); - await ResetSignOutButton.click().then(function() { - browser.sleep(1500); - }); - browser.get(browser.params.login); - browser.sleep(2500); - }); -} \ No newline at end of file