Cleaned up Insitution
This commit is contained in:
@@ -41,11 +41,11 @@ describe('Journeysmap script', function () {
|
|||||||
|
|
||||||
//<<<<DASHBOARD>>>>
|
//<<<<DASHBOARD>>>>
|
||||||
//Top Career
|
//Top Career
|
||||||
//TopCareerWidget();
|
TopCareerWidget();
|
||||||
TopCareer();
|
TopCareer();
|
||||||
OccupationCard();//Learn More; Nearby Places carousel
|
OccupationCard();//Learn More; Nearby Places carousel
|
||||||
AtAGlance();
|
AtAGlance();
|
||||||
/*Personality();
|
Personality();
|
||||||
Wages();
|
Wages();
|
||||||
Degrees();
|
Degrees();
|
||||||
Certificates();
|
Certificates();
|
||||||
@@ -101,12 +101,8 @@ function TopCareerWidget() {
|
|||||||
var WidgetTitle = element(by.css('.full-width > .widget-padding > .jrnys_lead-body-copy'));
|
var WidgetTitle = element(by.css('.full-width > .widget-padding > .jrnys_lead-body-copy'));
|
||||||
var TopCareerEditIcon = element(by.css('.full-width .fa-pencil'));
|
var TopCareerEditIcon = element(by.css('.full-width .fa-pencil'));
|
||||||
var TopCareerDivTitle = element(by.css('h2'));
|
var TopCareerDivTitle = element(by.css('h2'));
|
||||||
//var TopCareerDivXRemoveLink = element(by.css('.glyphicon-remove'));
|
|
||||||
var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon'));
|
var TopCareerDivXRemoveLink = element(by.css('.col-xs-1 > .glyphicon'));
|
||||||
var TopCareerDivCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info'));
|
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 TopCareerGreenText = element(by.css('.jrnys_lead-body-copy:nth-child(2)'));
|
||||||
var TopCareerGreenSubText = element(by.css('.textPosition'));
|
var TopCareerGreenSubText = element(by.css('.textPosition'));
|
||||||
var TopCareerDivAddButton = element(by.css('.text-center > .btn'));
|
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 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 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 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 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 InstitutionsHeader = element(by.xpath('//li[7]/div/div/div[2]/div/div'));
|
||||||
var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon'));
|
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 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 InstitutionFavoriteButton = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-favorite'));
|
||||||
var InstitutionDetailsButton = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-info'));
|
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 InstitutionFollowButton = element(by.css('.social-panel-spacing > .journey-follow-selected'));
|
||||||
var CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon'));
|
var CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon'));
|
||||||
var CarrouselLeftScroll = element(by.css('#recommendedColleges .left > .glyphicon'));
|
var CarrouselLeftScroll = element(by.css('#recommendedColleges .left > .glyphicon'));
|
||||||
@@ -785,13 +781,17 @@ function Institutions() {
|
|||||||
});
|
});
|
||||||
expect(await WidgetTitle.getText()).toEqual('Institutions');
|
expect(await WidgetTitle.getText()).toEqual('Institutions');
|
||||||
await CarrouselRightScroll.click();
|
await CarrouselRightScroll.click();
|
||||||
|
browser.sleep(1000);
|
||||||
await EllipsisInstitutions.click();
|
await EllipsisInstitutions.click();
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
await InstitutionFavoriteButton.click();
|
await InstitutionFavoriteButton.click();
|
||||||
|
browser.sleep(1000);
|
||||||
await InstitutionDetailsButton.click();
|
await InstitutionDetailsButton.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
await InstitutionFollowButton.click();
|
await InstitutionFollowButton.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
|
await InstitutionDetailsXCloseLink.click();
|
||||||
|
browser.sleep(1000);
|
||||||
await EllipsisInstitutions.click();
|
await EllipsisInstitutions.click();
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
await CarrouselLeftScroll.click();
|
await CarrouselLeftScroll.click();
|
||||||
|
|||||||
Reference in New Issue
Block a user