diff --git a/app_journeysmap_spec.js b/app_journeysmap_spec.js index a0d3a60..82ebcd5 100644 --- a/app_journeysmap_spec.js +++ b/app_journeysmap_spec.js @@ -59,11 +59,12 @@ describe('Journeysmap script', function () { BeginCareerExploration(); - MyRecommendedCareers(); + MyCareersCarousel(); EditTopCareer(); TopCareerWidget(); NearbyPlacesOccupationCard(); + FollowingPage(); AtAGlance(); Personality(); Wages(); @@ -113,7 +114,7 @@ describe('Journeysmap script', function () { }); function ProfileWidget() { - it('should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () { + it(': ProfileWidget, should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () { var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa')); var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text')); var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text')); @@ -177,7 +178,7 @@ function ProfileWidget() { } function MyProgressWidget() { - it('should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { + it(': MyProgressWidget, should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { var MyProgressWidgetTitle = element(by.css('.yourProgressTitle')); var ProgressLevel = element(by.css('.myProgressLevel')); //var ProgressWidgetExpandCollapseIcon = element(by.css('.full-width > div > .fa')); @@ -372,7 +373,7 @@ function MyProgressWidget() { } function InterestSurveyResultsWidget() { - it('should interact with Interest Survey Results widget, validate results', async function () { + it(': InterestSurveyResultsWidget, should interact with Interest Survey Results widget, validate results', async function () { var InterestSurveyWidgetTitle = element(by.css('.fullHeight:nth-child(2) > div:nth-child(2) > .jrnys_lead-body-copy > div')); var InterestEditLink = element(by.css('.fa-pencil:nth-child(1)')); var EditInterestDivTitle = element(by.css('#interests .jrnys_lead-body-copy')); @@ -610,7 +611,7 @@ function InterestSurveyResultsWidget() { } function InterestSurveyResultsClusters() { - it('should verify the Interest Survey Clusters widget and jump to learn more page', async function () { + it(': InterestSurveyResultsClusters, should verify the Interest Survey Clusters widget and jump to learn more page', async function () { var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); var WidgetDescription = element(by.css('.row > span:nth-child(2)')); var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); @@ -694,7 +695,7 @@ function InterestSurveyResultsClusters() { } function InterestSurveyResultsCreateJourney() { - it('should create a Journey to Top Interest Survey Result', async function () { + it(': InterestSurveyResultsCreateJourney, should create a Journey to Top Interest Survey Result', async function () { var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg')); var JourneySideBarHeader = element(by.css('.side-bar-child-text > span')); var JourneyInfoIcon = element(by.css('.journey-info-circle')); @@ -770,7 +771,7 @@ function InterestSurveyResultsCreateJourney() { } function SkillsAssessmentWidget() { - it('should take Skills Assessment', async function () { + it(': SkillsAssessmentWidget, should take Skills Assessment', async function () { var InterestRetakeLink = element(by.css('div:nth-child(2) > .fa-tasks')); var SkillsAssessmentPageTitle = element(by.css('.jrnys_lead-body-copy')); var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)')); @@ -975,7 +976,7 @@ function SkillsAssessmentWidget() { } function SkillsAssessmentResults() { - it('should interact with Skills Assessment widget and validate results', async function () { + it(': SkillsAssessmentResults, should interact with Skills Assessment widget and validate results', async function () { var SkillsAssessmentWidgetTitle = element(by.css('.bigScreenHeader')); var BestFitHeader = element(by.css('div:nth-child(2) > b')); var SkillsResultsOneTitle = element(by.css('.ng-scope:nth-child(4) > div > div > .ng-binding:nth-child(1)')); @@ -1072,7 +1073,7 @@ function SkillsAssessmentResults() { } function BeginCareerExploration() { - it('should interact with Begin Career Exploration widget', async function () { + it(': BeginCareerExploration, should interact with Begin Career Exploration widget', async function () { var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy')); var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td')); var ExploreCareersButton = element(by.css('td > .btn-info')); @@ -1097,33 +1098,64 @@ function BeginCareerExploration() { }); } -function MyRecommendedCareers() { - it('should cycle through Recommended Careers carousel and click the View More link', async function () { - var WidgetTitle = element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy')); +function MyCareersCarousel() { + it(': MyCareersCarousel, should cycle through Recommended Careers carousel and click the View More link', async function () { + var WidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); var CarrouselRightScroll = element(by.xpath('//div[3]/table/tbody/tr/td/div/div/a[2]/span')); var ViewMoreLink = element(by.linkText('View More')); var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); var FollowFirstOccupationCardIcon = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); var FilterIcon = element(by.css('.widgetControlContainer')); var FilterTitle = element(by.css('tr:nth-child(1) > .ng-binding')); - var RequiredJobPrepHeader = element(by.css('#recommendedCareerFilter tr:nth-child(2) > td')); - var MayRequireHighSchoolDiplomaOrGED = element(by.css('tr:nth-child(3) .ng-pristine')); - var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(9) > td')); - var Best = element(by.css('.ng-scope:nth-child(10) > td > input')); - var Good = element(by.css('.ng-scope:nth-child(12) > td > input')); - var ShowResultsByHeader = element(by.css('#recommendedCareerFilter tr:nth-child(13) > td')); - var BrightOutlook = element(by.css('tr:nth-child(14) .ng-pristine')); - var Following = element(by.css('tr:nth-child(17) .ng-pristine')); - var MyFavorites = element(by.css('tr:nth-child(18) .ng-pristine')); - var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(19) > td')); - var ZtoA = element(by.css('tr:nth-child(21) .ng-pristine')); + var MyResultsHeader = element(by.css('#recommendedCareerFilter tr:nth-child(2) > td')); + var InterestSurveyResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); + var InterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > td > input')); + var SkillsAssessmentResults = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(2)')); + var SkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(4) input')); + var MyFollowing = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(2)')); + var MyFollowingCheckBox = element(by.css('.ng-scope:nth-child(5) input')); + var RequiredJobPrepHeader= element(by.css('#recommendedCareerFilter tr:nth-child(6) > td')); + var MayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(2)')); + var MayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(7) input')); + var HighSchoolDiploma = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(2)')); + var HighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(8) input')); + var VocationalTrainingOrAssociatesDegrees = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); + var VocationalTrainingOrAssociatesDegreesCheckBox = element(by.css('.ng-scope:nth-child(9) input')); + var FourYearBachelorDegrees = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); + var FourYearBachelorDegreesCheckBox = element(by.css('.ng-scope:nth-child(10) input')); + var GraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(11) > .ng-binding')); + var GraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(11) input')); + var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(12) > td')); + var Best = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); + var BestCheckBox = element(by.css('.ng-scope:nth-child(13) input')); + var Great = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); + var GreatCheckBox = element(by.css('.ng-scope:nth-child(14) input')); + var Good = element(by.css('.ng-scope:nth-child(15) > .ng-binding')); + var GoodCheckBox = element(by.css('.ng-scope:nth-child(15) input')); + var ShowResultsByHeader = element(by.css('#recommendedCareerFilter tr:nth-child(16) > td')); + var BrightOutlook = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); + var BrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(17) input')); + var Green = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); + var GreenCheckBox = element(by.css('.ng-scope:nth-child(18) input')); + var Apprenticeships = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); + var ApprenticeshipsCheckBox = element(by.css('.ng-scope:nth-child(19) input')); + var Following = element(by.css('.ng-scope:nth-child(20) > .ng-binding')); + var FollowingCheckBox = element(by.css('.ng-scope:nth-child(20) input')); + var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(21) > td')); + var AtoZ = element(by.css('#recommendedCareerFilter tr:nth-child(22) > td:nth-child(2)')); + var AtoZRadioButton = element(by.css('td > .ng-pristine')); + var ZtoA = element(by.css('#recommendedCareerFilter tr:nth-child(23) > td:nth-child(2)')); + var ZtoARadioButton = element(by.css('tr:nth-child(23) .ng-pristine')); var FilterButton = element(by.css('td > .btn-info')); var NoResultsFoundAppliedFilters = element(by.css('.col-md-10')); var BackLink = element(by.css('.btn-primary-back-mod')); var NoResultsFound = element(by.css('.table-height:nth-child(1) td')); var RemoveLeftFilterButton = element(by.css('.statusBtn:nth-child(1)')); - var RemoveShowResultsByFilterButton = element(by.css('.statusBtn:nth-child(2)')); - var RemoveRightFilterButton = element(by.css('.statusBtn')); + var RemoveShowMyResultsByFilterButton = element(by.css('.statusBtn:nth-child(2)')); + var RemoveRightFilterButton = element(by.css('.statusBtn:nth-child(3)')); + var WidgetFilterIcon = element(by.css('.fa-filter')); + var FilterButtonTwo = element(by.css('tr:nth-child(24) .btn-info')); + var RemoveLastFilterButton = element(by.css('.statusBtn'));//.xIcon')); var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); @@ -1136,7 +1168,7 @@ function MyRecommendedCareers() { browser.executeScript('window.scrollTo(0, 1250);').then(function() { browser.sleep(5000); }); - expect(await WidgetTitle.getText()).toEqual('My Recommended Careers View All'); + expect(await WidgetTitle.getText()).toEqual('My Careers View All'); await CarrouselRightScroll.click(); browser.sleep(2500); await CarrouselRightScroll.click(); @@ -1146,30 +1178,57 @@ function MyRecommendedCareers() { await CarrouselRightScroll.click(); browser.sleep(2500); await ViewMoreLink.click(); - browser.sleep(2500); - expect(await PageTitle.getText()).toEqual('My Recommended Careers'); + browser.sleep(5000); + expect(await PageTitle.getText()).toEqual('My Careers'); await FollowFirstOccupationCardIcon.click().then(function() { browser.sleep(3000); }); await FilterIcon.click(); - browser.sleep(1000); - expect(await FilterTitle.getText()).toEqual('Filter'); - expect(await RequiredJobPrepHeader.getText()).toEqual('Required Job Prep'); - await MayRequireHighSchoolDiplomaOrGED.click(); - browser.sleep(1000); - expect(await FitHeader.getText()).toEqual('Fit'); - await Best.click(); - browser.sleep(1000); - await Good.click(); - browser.sleep(1000); - expect(await ShowResultsByHeader.getText()).toEqual('Show Results By'); - await Following.click(); - browser.sleep(1000); - expect(await SortHeader.getText()).toEqual('Sort'); - await ZtoA.click(); - browser.sleep(1000); - await FilterButton.click(); browser.sleep(2500); + expect(await FilterTitle.getText()).toEqual('Filter'); + expect(await MyResultsHeader.getText()).toEqual('My Results'); + expect(await InterestSurveyResults.getText()).toContain('Interest Survey Results ('); + expect(await SkillsAssessmentResults.getText()).toContain('Skills Assessment Results ('); + await SkillsAssessmentResultsCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await MyFollowing.getText()).toEqual('My Following (7)'); + expect(await RequiredJobPrepHeader.getText()).toEqual('Required Job Prep'); + expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED ('); + await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await HighSchoolDiploma.getText()).toContain('High School Diploma ('); + expect(await VocationalTrainingOrAssociatesDegrees.getText()).toContain('Vocational Training or Associates Degree ('); + expect(await FourYearBachelorDegrees.getText()).toContain('4 Year Bachelor Degree ('); + expect(await GraduateSchoolOrProfessionalDegree.getText()).toContain('Graduate School or Professional Degree ('); + expect(await FitHeader.getText()).toEqual('Fit'); + expect(await Best.getText()).toContain('Best ('); + await BestCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await Great.getText()).toContain('Great ('); + expect(await Good.getText()).toContain('Good ('); + await GoodCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await ShowResultsByHeader.getText()).toEqual('Show Results By'); + expect(await BrightOutlook.getText()).toContain('Bright Outlook ('); + expect(await Green.getText()).toContain('Green ('); + expect(await Apprenticeships.getText()).toContain('Apprenticeship ('); + expect(await Following.getText()).toEqual('Following (7)'); + await FollowingCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await SortHeader.getText()).toEqual('Sort'); + expect(await AtoZ.getText()).toEqual('A to Z'); + expect(await ZtoA.getText()).toEqual('Z to A'); + await ZtoARadioButton.click().then(function() { + browser.sleep(1000); + }); + await FilterButton.click().then(function() { + browser.sleep(2500); + }); expect(await NoResultsFoundAppliedFilters.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); await BackLink.click(); browser.sleep(2500); @@ -1180,9 +1239,15 @@ function MyRecommendedCareers() { browser.sleep(5000); }); expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); + //expect(await RemoveLeftFilterButton.getText()).toEqual('Required Job Prep'); //debugging await RemoveLeftFilterButton.click().then(function() { browser.sleep(2500); }); + expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); + //expect(await RemoveShowMyResultsByFilterButton.getText()).toEqual('Show My Results'); //debugging + await RemoveShowMyResultsByFilterButton.click().then(function() { + browser.sleep(2500); + }); expect(await FirstOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); @@ -1190,26 +1255,7 @@ function MyRecommendedCareers() { expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); expect(await ThirdOccupationCardTitle.getText()).toEqual('Airfield Operations Specialists'); - await RemoveShowResultsByFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); - expect(await SecondOccupationCardTitle.getText()).toEqual('Security Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products'); - await RemoveLeftFilterButton.click().then(function() { - browser.sleep(2500); - }); - expect(await FirstOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); - expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); - expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); - expect(await SecondOccupationCardTitle.getText()).toEqual('Wind Energy Operations Managers'); - expect(await ThirdOccupationCardTitle.getText()).toEqual('Wholesale and Retail Buyers, Except Farm Products'); + //expect(await RemoveRightFilterButton.getText()).toEqual('Z to A'); //debugging await RemoveRightFilterButton.click().then(function() { browser.sleep(2500); }); @@ -1218,18 +1264,47 @@ function MyRecommendedCareers() { expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); + expect(await SecondOccupationCardTitle.getText()).toEqual('Airfield Operations Specialists'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); + await FollowFirstOccupationCardIcon.click().then(function() { + browser.sleep(2500); + }); + await WidgetFilterIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await Following.getText()).toEqual('Following (6)'); + await FollowingCheckBox.click().then(function() { + browser.sleep(1000); + }); + await FilterButtonTwo.click().then(function() { + browser.sleep(2500); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); - await FollowFirstOccupationCardIcon.click().then(function() { + //expect(await RemoveLastFilterButton.getText()).toEqual('Fit'); //debugging + await RemoveLastFilterButton.click().then(function() { browser.sleep(2500); }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); + expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + browser.sleep(2500); browser.waitForAngular(); browser.getCurrentUrl(); }); } function EditTopCareer() { - it('should edit Top Career', async function () { + it(': EditTopCareer, should edit Top Career', async function () { var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy')); var TopCareerEditIcon = element(by.css('.full-width .fa-pencil')); var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon')); @@ -1293,7 +1368,7 @@ function EditTopCareer() { } function TopCareerWidget() { - it('should click the Top Career link and interact with Learn More page', async function () { + it(': TopCareerWidget, should click the Top Career link and interact with Learn More page', async function () { var TopCareerLink = element(by.css('td>.jrnys_support-text')); var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); @@ -1658,7 +1733,7 @@ function TopCareerWidget() { } function NearbyPlacesOccupationCard() { - it('should interact with Occupation cards on Nearby Places widget of Learn More page, then navigate to Following page an unfollow occupation', async function () { + it(': NearbyPlacesOccupationCard, should interact with Occupation cards on Nearby Places widget of Learn More page, then navigate to Following page an unfollow occupation', async function () { var OccupationCardTitle = element(by.xpath('//territory-card/div/div/div[3]/div/div[2]/span')); var OccupatonCardFollow = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); @@ -1698,18 +1773,6 @@ function NearbyPlacesOccupationCard() { var OccupationCardVideoIcon = element(by.xpath('//div[4]/career-one-stop-video/i')); var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding')); var XCloseVideoDivLink = element(by.css('.close:nth-child(2)')); - var FollowingLink = element(by.css('.col-md-3:nth-child(4) .jrnys_stand-out-text')); - var ConnectionsTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(1)')); - var DivTitle = element(by.css('.default-color2 > h3')); - var DivSubText = element(by.css('.col-lg-12:nth-child(1)')); - var DivGotItButton = element(by.css('.row > .btn')); - var FollowersTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(2)')); - var DivCloseLlink = element(by.css('.glyphicon-remove')); - var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected')); - var SoftwareDevelopersApplicationsTitle = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(5) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.title.ng-binding')); - var SoftwareDevelopersApplicationsPathway = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(5) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.subtitle.ng-binding')); - var SoftwareDevelopersApplicationsUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(5) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(3) > td > div:nth-child(1) > div > span:nth-child(2) > social-follow-icon > span > i')); - var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications'); await OccupatonCardFollow.click().then(function() { @@ -1810,7 +1873,26 @@ function NearbyPlacesOccupationCard() { await DashboardHeaderLink.click().then(function() { browser.sleep(10000); }); - //Following Page + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function FollowingPage() { + it(': FollowingPage, should navigate to Following page and delete 3rd card', async function () { + var FollowingLink = element(by.css('.col-md-3:nth-child(4) .jrnys_stand-out-text')); + var ConnectionsTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(1)')); + var DivTitle = element(by.css('.default-color2 > h3')); + var DivSubText = element(by.css('.col-lg-12:nth-child(1)')); + var DivGotItButton = element(by.css('.row > .btn')); + var FollowersTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(2)')); + var DivCloseLlink = element(by.css('.glyphicon-remove')); + var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected')); + var SoftwareDevelopersApplicationsTitle = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.title.ng-binding')); + var SoftwareDevelopersApplicationsPathway = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(2) > td > div.subtitle.ng-binding')); + var SoftwareDevelopersApplicationsUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(3) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(3) > td > div:nth-child(1) > div > span:nth-child(2) > social-follow-icon > span > i')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + await FollowingLink.click().then(function() { browser.sleep(5000); }); @@ -1829,10 +1911,7 @@ function NearbyPlacesOccupationCard() { browser.sleep(1000); }); expect(await FollowingTab.getText()).toEqual('Following'); - browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(2500); - }); - expect(await SoftwareDevelopersApplicationsTitle.getText()).toEqual('Software Developers, Applications'); + expect(await SoftwareDevelopersApplicationsTitle.getText()).toEqual('Computer and Information Systems Managers'); expect(await SoftwareDevelopersApplicationsPathway.getText()).toEqual('Information Technology'); await SoftwareDevelopersApplicationsUnfollowIcon.click().then(function() { browser.sleep(2500); @@ -1846,7 +1925,7 @@ function NearbyPlacesOccupationCard() { } function AtAGlance() { - it('should click the At A Glance link and validate data', async function () { + it(': AtAGlance, should click the At A Glance link and validate data', async function () { var AtAGlanceLink = element(by.css('tr:nth-child(3) > td:nth-child(1) > .text-color-7a')); var WidgetTitle = element(by.css('.widgetHeaderContainer > .jrnys_lead-body-copy')); var WidgetHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text')); @@ -1893,7 +1972,7 @@ function AtAGlance() { } function Personality() { - it('should click the Personality link and validate data', async function() { + it(': Personality, should click the Personality link and validate data', async function() { var PersonatlityLink = element(by.css('tr:nth-child(4) > td:nth-child(1) > .text-color-7a')); var WidgetTitle = element(by.css('.ng-isolate-scope:nth-child(3) > .fullHeight .jrnys_lead-body-copy')); var WidgetDescriptionOne = element(by.css('.carouselHeight > .ng-scope td > .ng-binding')); @@ -1927,7 +2006,7 @@ function Personality() { } function Wages() { - it('should click the Wages link and change State drop down to Nevada', async function () { + it(': Wages, should click the Wages link and change State drop down to Nevada', async function () { var WagesLink = element(by.css('tr:nth-child(5) > td:nth-child(1) > .text-color-7a')); var CurrentDataNational = element(by.css('g:nth-child(2) > g > text')); var CurrentDataLocal = element(by.css('g:nth-child(3) > g > text')); @@ -1960,7 +2039,7 @@ function Wages() { } function Degrees() { - it('should click the Degrees link, expand/collapse first career card by title and validate data', async function () { + it(': Degrees, should click the Degrees link, expand/collapse first career card by title and validate data', async function () { var DegreesLink = element(by.css('tr:nth-child(3) > td:nth-child(2) > .text-color-7a')); var WidgetTitle = element(by.css('#id > .jrnys_lead-body-copy')); var DegreeTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .textSize:nth-child(1)')); @@ -2005,7 +2084,7 @@ function Degrees() { } function Certificates() { - it('should click the Certificate link, expand/collapse first card by ellipsis validate data and scroll to second set', async function () { + it(': Certificates, should click the Certificate link, expand/collapse first card by ellipsis validate data and scroll to second set', async function () { var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a')); var WidgetTitle = element(by.css('#id > .jrnys_lead-body-copy')); var CertificateTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) .textSize:nth-child(1)')); @@ -2057,7 +2136,7 @@ function Certificates() { } function Institutions() { - it('should click the Institutions link, scroll to second set, expand by ellipsis, and validate data', async function () { + it(': Institutions, should click the Institutions link, scroll to second set, expand by ellipsis, and validate data', async function () { var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a')); var WidgetTitle = element(by.xpath('//recommended-colleges/div/div[2]/div/div')); var CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); @@ -2151,7 +2230,7 @@ function Institutions() { } function TopResources() { - it('should click Top Resources link and expand fourth then expand first card and follow', async function () { + it(': TopResources, should click Top Resources link and expand fourth then expand first card and follow', async function () { var TopResourcesLink = element(by.css('tr:nth-child(3) > td:nth-child(3) > .text-color-7a')); var TopResourcesDivTitle = element(by.css('.col-sm-12 > .ng-binding')); var FourthResourceCardTitle = element(by.css('.panel:nth-child(4) .ng-binding')); @@ -2200,7 +2279,7 @@ function TopResources() { } function FindOpportunities() { - it('should click Find Opportunities link', async function () { + it(': FindOpportunities, should click Find Opportunities link', async function () { var FindOpportunitiesLink = element(by.css('tr:nth-child(4) > td:nth-child(3) > .text-color-7a')); var WidgetTitle = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding')); var XCloseLink = element(by.css('.close')); @@ -2219,7 +2298,7 @@ function FindOpportunities() { } function SubmitAResource() { - it('should click Find Resources link', async function () { + it(': SubmitAResource, should click Find Resources link', async function () { var SubmitAResourceLink = element(by.css('tr:nth-child(5) > td:nth-child(3) > .text-color-7a')); var WidgetTitle = element(by.css('.jrnys_lead-body-copy > .col-xs-12')); var SubmitAResourceButton = element(by.css('.row:nth-child(7) .btn')); @@ -2251,7 +2330,7 @@ function SubmitAResource() { } function NearbyPlaces() { - it('should click Nearby Places link, expand 3rd card and play video', async function () { + it(': NearbyPlaces, should click Nearby Places link, expand 3rd card and play video', async function () { var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a')); var NearbyPlcaesWidgetTitle = element(by.css('#nearByid > .jrnys_lead-body-copy')); var NearbyPlacesTitle = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(3) .textSize:nth-child(1)')); @@ -2313,7 +2392,7 @@ function NearbyPlaces() { } function Tasks() { - it('should click Tasks link and validate data', async function () { + it(': Tasks, should click Tasks link and validate data', async function () { var TasksLink = element(by.css('tr:nth-child(4) > td:nth-child(4) > .text-color-7a')); var WidgetTitle = element(by.css('h6 > .ng-binding')); var ImportanceHeader = element(by.css('th:nth-child(2) > .text-color-7a')); @@ -2426,7 +2505,7 @@ function Tasks() { } function Technology() { - it('should click Technology link and validate data', async function () { + it(': Technology, should click Technology link and validate data', async function () { var TechnologyLink = element(by.css('tr:nth-child(5) > td:nth-child(4) > .text-color-7a')); var WidgetTitle = element(by.css('h6 > .ng-binding')); var TechnologyTitleOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding')); @@ -2577,7 +2656,7 @@ function Technology() { } function Knowledge() { - it('should click Knowledge link and validate data', async function () { + it(': Knowledge, should click Knowledge link and validate data', async function () { var KnowledgeLink = element(by.css('tr:nth-child(3) > td:nth-child(5) > .text-color-7a')); var WidgetTitle = element(by.css('h6 > .ng-binding')); var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); @@ -2642,7 +2721,7 @@ function Knowledge() { } function Skills() { - it('should click Skills link and validate data', async function () { + it(': Skills, should click Skills link and validate data', async function () { var SkillsLink = element(by.css('tr:nth-child(4) > td:nth-child(5) > .text-color-7a')); var WidgetTitle = element(by.css('h6 > .ng-binding')); var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); @@ -2739,7 +2818,7 @@ function Skills() { } function WorkActivities() { - it('should click Work Activities link and validate data', async function () { + it(': WorkActivities, should click Work Activities link and validate data', async function () { var WorkActivitiesLink = element(by.css('tr:nth-child(5) > td:nth-child(5) > .text-color-7a')); var WidgetTitle = element(by.css('h6 > .ng-binding')); var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); @@ -2852,7 +2931,7 @@ function WorkActivities() { } function Ability() { - it('should click Ability link and validate data', async function () { + it(': Ability, should click Ability link and validate data', async function () { var AbilityLink = element(by.css('td:nth-child(6) > .text-color-7a')); var WidgetTitle = element(by.css('h6 > .ng-binding')); var ImportanceHeader = element(by.css('.text-right > .text-color-7a')); @@ -2945,7 +3024,7 @@ function Ability() { } function MyResourcesCarousel() { - it('should click My Resources carousel View All link, expand and collapse resources and remove latest resource', async function () { + it(': MyResourcesCarousel, should click My Resources carousel View All link, expand and collapse resources and remove latest resource', async function () { var WidgetTitle = element(by.css('#id > .ng-scope > .jrnys_lead-body-copy')); var TopResources1stCardHeader = element(by.css('.col-xs-4:nth-child(1) tr:nth-child(2) > .hotTitles')); var TopResources1stCardSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)')); @@ -2984,7 +3063,7 @@ function MyResourcesCarousel() { } function InstitutionsCarousel() { - it('should click Institution carousel View All link', async function () { + it(': InstitutionsCarousel, should click Institution carousel View All link', async function () { var WidgetTitle = element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy')); var ViewAllLink = element(by.css('#myInstitutionsCollapsed .text-color-7a')); var EditSearchWidgetTitle = element(by.css('.panel-with-page > .row > b')); @@ -3012,7 +3091,7 @@ function InstitutionsCarousel() { } function MyJourneys() { - it('should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () { + it(': MyJourneys, should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () { var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)')); var JourneySteps = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div')); var LearnMoreLink = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) #appendHere > .jrnys_support-text')); @@ -3060,7 +3139,7 @@ function MyJourneys() { } function MyJourneysPage() { - it('should navigate to My Journeys page and delete 1st journey', async function () { + it(': MyJourneysPage, should navigate to My Journeys page and delete 1st journey', async function () { var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover')); var PageTitle = element(by.css('.jrnys_lead-body-copy')); var PageSubTitle = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); @@ -3111,7 +3190,7 @@ function MyJourneysPage() { } function MapInteraction() { - it('should navigate to map and interact with it', async function () { + it(': MapInteraction, should navigate to map and interact with it', async function () { var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover')); var MapSearchTextBox = element(by.css('#searchBox')); var MapSearchIcon = element(by.css('.glyphicon-search')); @@ -3188,7 +3267,7 @@ function MapInteraction() { await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst'); await MapSearchIcon.click(); browser.sleep(5000); - await SearchCareerOne.click(); + /*await SearchCareerOne.click(); browser.sleep(2500); expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >'); expect(await ItemTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers'); @@ -3211,7 +3290,7 @@ function MapInteraction() { browser.sleep(2500); }); expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED'); - expect(await ItemEmployedStat.getText()).toEqual('287,200'); + expect(await ItemEmployedStat.getText()).toEqual('287,200');*/ await CollegeTabLink.click(); browser.sleep(2500); await CollegePath.click(); @@ -3312,8 +3391,32 @@ function MapInteraction() { browser.sleep(5000); await BackToResultsLink.click(); browser.sleep(2500); + /*expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >'); + expect(await ItemTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers');*/ + await SearchCareerOne.click(); + browser.sleep(2500); expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >'); expect(await ItemTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers'); + expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.'); + expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE'); + expect(await ItemDegree.getText()).toEqual('College (4 Year)'); + expect(await ItemDegreeOneStat.getText()).toEqual('70%'); + expect(await ItemDegreeTwo.getText()).toEqual("Associate's degree"); + expect(await ItemDegreeTwoStat.getText()).toEqual('15%'); + expect(await ItemDegreeThree.getText()).toEqual('Professional degree certificate'); + expect(await ItemDegreeThreeStat.getText()).toEqual('7%'); + expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY'); + expect(await ItemSalaryStat.getText()).toEqual('$88,510'); + expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH'); + expect(await ItemGrowthStat.getText()).toEqual('9.3'); + expect(await ItemGrowthStatTwo.getText()).toEqual('%'); + expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS'); + expect(await ItemJobOpeningsStat.getText()).toEqual('22,400'); + browser.actions().mouseMove(SearchCareerOneViewOnMapIcon).perform().then(function() { + browser.sleep(2500); + }); + expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED'); + expect(await ItemEmployedStat.getText()).toEqual('287,200'); await MapSearchClearIcon.click(); browser.sleep(2500); browser.waitForAngular(); @@ -3322,7 +3425,7 @@ function MapInteraction() { } function MyActivityJourneys() { - it('should validate My Journeys widget under the My Activity Dashboard', async function () { + it(': MyActivityJourneys, should validate My Journeys widget under the My Activity Dashboard', async function () { var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); var MyDashboardLink = element(by.linkText('My Dashboards')); var MyActivityLink = element(by.linkText('My Activity')); @@ -3406,7 +3509,7 @@ function MyActivityJourneys() { } function SurveyMetrics() { - it('should navigate to My Activity Dashboard and interact with Survey Metrics widget and validate data of 07/30/2019', async function () { + it(': SurveyMetrics, should navigate to My Activity Dashboard and interact with Survey Metrics widget and validate data of 07/30/2019', async function () { var SurveyMetricsTitle = element(by.css('.widget-round-corners:nth-child(2) .fullHeight > .jrnys_lead-body-copy')); var MostRecentResultsTitle = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-4')); var MostRecentResultsStat = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-9')); @@ -3517,7 +3620,7 @@ function SurveyMetrics() { } function Logins() { - it('should validate Logins widget under the My Activity Dashboard', async function () { + it(': Logins, should validate Logins widget under the My Activity Dashboard', async function () { var LoginsWidgetTitle = element(by.css('.jrnys_lead-body-copy .col-lg-4')); var LastLoggedInHeader = element(by.css('.login-display-row:nth-child(1) > .col-lg-4')); var MonthOfHeader = element(by.css('.month-picker-lbl')); @@ -3581,7 +3684,7 @@ function Logins() { } function InstitutionMetrics() { - it('should validate Institution Metrics widget data', async function () { + it(': InstitutionMetrics, should validate Institution Metrics widget data', async function () { var InstitutionMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .widget-padding > .jrnys_lead-body-copy')); var InstitutionsOfInterestTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy')); var InstitutionsOfInterestStat = element(by.css('.fullHeight:nth-child(1) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text')); @@ -3635,7 +3738,7 @@ function InstitutionMetrics() { } function InstitutionsOfInterest() { - it('should validate Institutions Of Interest widget data', async function () { + it(': InstitutionsOfInterest, should validate Institutions Of Interest widget data', async function () { var InstitutionsOfInterestWidgetTitle = element(by.css('#id > .jrnys_lead-body-copy')); var InstitutionsCardTitleOne = element(by.css('.col-xs-4:nth-child(1) .jrnys_body-copy')); var InstitutionsUnfollowIconOne = element(by.css('.iconSpacing .journey-follow-selected')); @@ -4034,7 +4137,7 @@ function InstitutionsOfInterest() { } function OccupationMetrics() { - it('should validate Occupation Metrics widget data', async function () { + it(': OccupationMetrics, should validate Occupation Metrics widget data', async function () { var OccupationMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy')); var OccupationsOfInterestTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy')); var OccupationsOfInterestStat = element(by.css('.fullHeight:nth-child(2) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text')); @@ -4057,7 +4160,7 @@ function OccupationMetrics() { browser.sleep(1000); });*/ browser.executeScript('window.scrollTo(0, 2050);').then(function() { - browser.sleep(1000); + browser.sleep(10000); }); expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics'); expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest'); @@ -4082,7 +4185,7 @@ function OccupationMetrics() { } function OccupationsOfInterest() { - it('should verify Occupations Of Interest widget data', async function () { + it(': OccupationsOfInterest, should verify Occupations Of Interest widget data', async function () { var OccupationsOfInterestWidgetTitle = element(by.css('#occupationVisitedId .jrnys_lead-body-copy')); var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//territory-card/div/div[2]/div/div[2]/span')); @@ -4093,9 +4196,9 @@ function OccupationsOfInterest() { var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a')); browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { - browser.sleep(10000); - browser.waitForAngular(); + browser.sleep(1000); }); + browser.waitForAngular(); /*browser.executeScript('window.scrollTo(0, 2350);').then(function() { browser.sleep(2500); });*/ @@ -4124,7 +4227,7 @@ function OccupationsOfInterest() { } function AccountProfile() { - it('should navigate to Account Profile and validate data', async function () { + it(': AccountProfile, should navigate to Account Profile and validate data', async function () { var ProfileImage = element(by.css('.roundCenterBackgroundImage')); var ProfileLink = element(by.linkText('Profile')); var PageTitle = element(by.css('.view-title')); @@ -4248,7 +4351,7 @@ function AccountProfile() { } function AccountPortfolio() { - it('should navigate to portfolio and validate resource', async function () { + it(': AccountPortfolio, should navigate to portfolio and validate resource', async function () { var ProfileImage = element(by.css('.roundCenterBackgroundImage')); var PortfolioLink = element(by.linkText('Portfolio')); var SubmittedResourcesTitle = element(by.css('.ng-scope > .jrnys_lead-body-copy')); @@ -4280,7 +4383,7 @@ function AccountPortfolio() { } function SignOut() { - it('should log out of journeysmap', async function () { + it(': SignOut, should log out of journeysmap', async function () { var ProfileImage = element(by.css('.roundCenterBackgroundImage')); var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));