From bfddd81fbed2878b4f95a2d466f02ceb54f161ed Mon Sep 17 00:00:00 2001 From: Juan Huerta Date: Fri, 6 Nov 2020 09:10:12 -0800 Subject: [PATCH] Updated to run on prod --- topCareerWidget_config.js | 1 + topCareerWidget_spec.js | 1128 ++++++++++++++++++++----------------- 2 files changed, 626 insertions(+), 503 deletions(-) diff --git a/topCareerWidget_config.js b/topCareerWidget_config.js index 9ab171b..74a8593 100644 --- a/topCareerWidget_config.js +++ b/topCareerWidget_config.js @@ -14,6 +14,7 @@ exports.config = { }, onPrepare: function() { + browser.sleep(2500); browser.driver.manage().window().maximize(); }, diff --git a/topCareerWidget_spec.js b/topCareerWidget_spec.js index 2910fd8..63fa32a 100644 --- a/topCareerWidget_spec.js +++ b/topCareerWidget_spec.js @@ -1,5 +1,7 @@ //topCareerWidget_spec.js +const { WebElement } = require("selenium-webdriver"); + describe('Top Career Widget script', function () { //login-journeysmap landing page var UserNameTextBox = element(by.css('#txtU')); @@ -112,250 +114,272 @@ function EditTopCareer() { } function TopCareerWidget() { - it(': TopCareerWidget, should click the Top Career link and interact with Learn More page', async function () { + 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 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.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 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 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 ComputerAndInformationResearchScientists = element(by.css('#\\39 4ad8294-dd41-476f-81e3-966c265c428b > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - var ComputerAndInformationResearchScientistsEllipsisIcon = element(by.css('#\\39 4ad8294-dd41-476f-81e3-966c265c428b > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas')); - var ComputerAndInformationResearchScientistsBackOfCardTitle = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[17]/career-occupation-carousel/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/career-territory-card/territory-card/div/div[3]/div[1]/div[1]'));//css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText')); - var ComputerAndInformationResearchScientistsBackOfCardXIcon = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[17]/career-occupation-carousel/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/career-territory-card/territory-card/div/div[3]/div[1]/div[2]/span'));//css('.ng-scope > #territoryCardTitleHeader .glyphicon')); - 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 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 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); - 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 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')); + 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); }); - //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() { @@ -366,28 +390,42 @@ function TopCareerWidget() { 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() { + await CloseXIcon.click().then(function() { browser.sleep(2500); }); - browser.actions().mouseMove(VideoIcon).perform().then(function() { + await BackLink.click().then(function() { + browser.sleep(5000); + }); + browser.executeScript('window.scrollTo(0, 1885);').then(function() { browser.sleep(2500); }); - browser.actions().mouseMove(FollowIcon).perform().then(function() { + //At A Glance Link + expect(await AtAGlanceLink.getText()).toEqual('AT A GLANCE'); + await AtAGlanceLink.click().then(function() { browser.sleep(2500); }); - browser.actions().mouseMove(JourneymanIcon).perform().then(function() { + 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); }); - 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() { + //Personality Link + await PersonalityLink.click().then(function() { browser.sleep(2500); }); - //Personality - expect(await PersonalityWidgetTitle.getText()).toEqual('Personality'); + 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'); @@ -396,22 +434,26 @@ function TopCareerWidget() { 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); + await CloseXIcon.click().then(function() { + browser.sleep(2500); }); - 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);'); + //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'); @@ -477,7 +519,6 @@ function TopCareerWidget() { 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'); @@ -509,324 +550,405 @@ function TopCareerWidget() { 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'); + 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 CollegePathwaysRightScroll.click().then(function() { + 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.'); - browser.executeScript('window.scrollTo(0, 1890);').then(function() { - browser.sleep(2495); + await CloseXIcon.click().then(function() { + browser.sleep(2500); }); - //Certificates - expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); + //Certificates Link + await CertificatesLink.click().then(function() { + browser.sleep(2500); + }); + expect(await CertificatesDIVTitle.getText()).toEqual('Certificates'); expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect'); - //expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); Bug? + 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 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() { + 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'); - browser.executeScript('window.scrollTo(0, 2525);').then(function() { + await CloseXIcon.click().then(function() { browser.sleep(2500); }); - //Institutions - expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All'); + //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'); - 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() { + 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'); - expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos'); - browser.executeScript('window.scrollTo(0, 3160);').then(function() { - browser.sleep(2500); + await SanDiegoStateUniversity.click().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 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 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'); - 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() { + 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); - });*/ - //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() { + }); + await SanDiegoStateUniversityEllipsisIcon.click().then(function() { browser.sleep(2500); }); - expect(await MySubmittedResourcesWidgetTitle.getText()).toEqual('My Submitted Resources'); + 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 MyResourceTitle.getText()).toEqual('Test Doc'); + 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 MyResourceTitle.getText()).toEqual('Recommended Careers Doc'); + 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 EllipsisResource.click().then(function() { + await CloseXIcon.click().then(function() { browser.sleep(2500); }); - expect(await MyResourceFollowIcon.getText()).toEqual('Follow'); - expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More'); - await XCloseLink.click().then(function() { + //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); }); - 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() { + //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 SubmitAResourceDIVCancelButton.click().then(function() { + await SubmitAResourceDIVCloseXIcon.click().then(function() { browser.sleep(2500); }); - browser.executeScript('window.scrollTo(0, 4118);').then(function() { + await CloseXIcon.click().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.executeScript('window.scrollTo(0, 1885);').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 ComputerAndInformationResearchScientists.getText()).toEqual('Computer and Information Research Scientists'); - await ComputerAndInformationResearchScientistsEllipsisIcon.click().then(function() { - browser.sleep(2500); - }); - expect(await ComputerAndInformationResearchScientistsBackOfCardTitle.getText()).toEqual('Computer and Information Research Scientists'); - await ComputerAndInformationResearchScientistsBackOfCardXIcon.click().then(function() { + //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 ComputerNetworkSupportSpecialists.getText()).toEqual('Computer Network Support Specialists'); 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 ComputerScienceTeachersPostsecondary.getText()).toEqual('Computer Science Teachers, Postsecondary'); 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 DatabaseArchitects.getText()).toEqual('Database Architects'); 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); }); - expect(await MultimediaArtistsAndAnimators.getText()).toEqual('4');//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt - expect(await NetworkAndComputerSystemsAdministrators.getText()).toEqual('5'); - expect(await SoftwareDevelopersApplications.getText()).toEqual('6'); + //EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt await NearbyPlacesRightScroll.click().then(function() { browser.sleep(2500); }); - //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() { + 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 MyResourcesOneHeader.getText()).toEqual('Computer and Information Research Scientists'); - expect(await MyResourcesTwoHeader.getText()).toEqual('Test Doc'); - await MyResourcesOneSaveIcon.click().then(function() { + expect(await TelecommunicationsEngineeringSpecialists.getText()).toEqual('Telecommunications Engineering Specialists'); + await CloseXIcon.click().then(function() { browser.sleep(2500); }); - browser.refresh().then(function() { - browser.sleep(5000); - }); - browser.executeScript('window.scrollTo(0, 2362);').then(function() { + //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); }); - expect(await MyResourcesOneHeader.getText()).toEqual(''); - browser.waitForAngular(); - browser.getCurrentUrl(); }); }