diff --git a/app_journeysmap_spec.js b/app_journeysmap_spec.js index ae6d7d5..10f88cb 100644 --- a/app_journeysmap_spec.js +++ b/app_journeysmap_spec.js @@ -41,11 +41,11 @@ describe('Journeysmap script', function () { //<<<>>> //Top Career - //TopCareerWidget(); + TopCareerWidget(); TopCareer(); OccupationCard();//Learn More; Nearby Places carousel AtAGlance(); - /*Personality(); + Personality(); Wages(); Degrees(); Certificates(); @@ -101,12 +101,8 @@ function TopCareerWidget() { var WidgetTitle = element(by.css('.full-width > .widget-padding > .jrnys_lead-body-copy')); var TopCareerEditIcon = element(by.css('.full-width .fa-pencil')); var TopCareerDivTitle = element(by.css('h2')); - //var TopCareerDivXRemoveLink = element(by.css('.glyphicon-remove')); var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon')); var TopCareerDivCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info')); - //var TopCareerGreenText = element(by.xpath('//div/div[2]/table/tbody/tr/td/div[2]/div[2]')); - //var TopCareerGreenSubText = element(by.xpath('//td/div[2]/div[3]')); - //var TopCareerDivAddButton = element(by.xpath('//button[contains(.,"Add Top Career")]')); var TopCareerGreenText = element(by.css('.jrnys_lead-body-copy:nth-child(2)')); var TopCareerGreenSubText = element(by.css('.textPosition')); var TopCareerDivAddButton = element(by.css('.text-center > .btn')); @@ -208,7 +204,6 @@ function TopCareer() { var DegreesHeader = element(by.css('.widget-round-corners:nth-child(5) #id > .jrnys_lead-body-copy')); var DegreesRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon')); var CertificatesHeader = element(by.css('.widget-round-corners:nth-child(6) #id > .jrnys_lead-body-copy')); - //var CertificatesRightScroll = element(by.xpath('//li[6]')).element(by.css('.right.carousel-control')); var CertificatesRightScroll = element(by.css('.widget-round-corners:nth-child(6) .right:nth-child(4) > .glyphicon:nth-child(1)')); var InstitutionsHeader = element(by.xpath('//li[7]/div/div/div[2]/div/div')); var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); @@ -775,6 +770,7 @@ function Institutions() { var EllipsisInstitutions = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .col-sm-1')); var InstitutionFavoriteButton = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-favorite')); var InstitutionDetailsButton = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-info')); + var InstitutionDetailsXCloseLink = element(by.css('#dropDownDataInstitutions_1_1 > .col-xs-1')); var InstitutionFollowButton = element(by.css('.social-panel-spacing > .journey-follow-selected')); var CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon')); var CarrouselLeftScroll = element(by.css('#recommendedColleges .left > .glyphicon')); @@ -785,13 +781,17 @@ function Institutions() { }); expect(await WidgetTitle.getText()).toEqual('Institutions'); await CarrouselRightScroll.click(); + browser.sleep(1000); await EllipsisInstitutions.click(); browser.sleep(1000); await InstitutionFavoriteButton.click(); + browser.sleep(1000); await InstitutionDetailsButton.click(); - browser.sleep(2500); + browser.sleep(1000); await InstitutionFollowButton.click(); - browser.sleep(2500); + browser.sleep(1000); + await InstitutionDetailsXCloseLink.click(); + browser.sleep(1000); await EllipsisInstitutions.click(); browser.sleep(1000); await CarrouselLeftScroll.click();