Added SDSU Learn More checks

This commit is contained in:
2019-11-26 10:29:21 -08:00
parent 3d530236b3
commit a727e359c8

View File

@@ -45,7 +45,7 @@ describe('Journeysmap script', function () {
}); });
} }
//<<<<DASHBOARD>>>> /*<<<<DASHBOARD>>>>
ProfileWidget(); ProfileWidget();
MyProgressWidget(); MyProgressWidget();
@@ -94,11 +94,11 @@ describe('Journeysmap script', function () {
MapInteraction(); MapInteraction();
//<<<<My Activity Dashboard>>>> //<<<<My Activity Dashboard>>>>
//MyActivityJourneys //MyActivityJourneys*/
SurveyMetrics(); SurveyMetrics();
InstitutionMetrics(); InstitutionMetrics();
InstitutionsOfInterest(); InstitutionsOfInterest();
OccupationMetrics(); /*OccupationMetrics();
OccupationsOfInterest(); OccupationsOfInterest();
//<<<<Account Profile>>>> //<<<<Account Profile>>>>
@@ -452,7 +452,7 @@ function InterestSurveyResultsWidget() {
browser.sleep(2500); browser.sleep(2500);
}); });
await InterestEditLink.click().then(function() { await InterestEditLink.click().then(function() {
browser.sleep(1000); browser.sleep(2500);
}); });
expect(await EditInterestDivTitle.getText()).toEqual('Interests'); expect(await EditInterestDivTitle.getText()).toEqual('Interests');
expect(await EditRealisticTitle.getText()).toEqual('Realistic'); expect(await EditRealisticTitle.getText()).toEqual('Realistic');
@@ -1274,6 +1274,10 @@ function EditTopCareer() {
browser.sleep(1000); browser.sleep(1000);
}); });
await TopCareerDivTextBox.sendKeys('Computer'); await TopCareerDivTextBox.sendKeys('Computer');
browser.sleep(2500);
browser.actions().mouseMove(TopCareerDivSelection).perform().then(function() {
browser.sleep(2500);
});
await TopCareerDivSelection.click().then(function() { await TopCareerDivSelection.click().then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });
@@ -1700,9 +1704,9 @@ function NearbyPlacesOccupationCard() {
var FollowersTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(2)')); 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 DivCloseLlink = element(by.css('.glyphicon-remove'));
var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected')); var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected'));
var FollowingTitle = element(by.css('.card-last-col:nth-child(1) .title:nth-child(3)')); 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 FollowingPathway = element(by.css('.card-last-col:nth-child(1) .subtitle:nth-child(4)')); 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(4) > 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 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')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications'); expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications');
@@ -1823,8 +1827,11 @@ function NearbyPlacesOccupationCard() {
browser.sleep(1000); browser.sleep(1000);
}); });
expect(await FollowingTab.getText()).toEqual('Following'); expect(await FollowingTab.getText()).toEqual('Following');
expect(await FollowingTitle.getText()).toEqual('Software Developers, Applications'); browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
expect(await FollowingPathway.getText()).toEqual('Information Technology'); browser.sleep(2500);
});
expect(await SoftwareDevelopersApplicationsTitle.getText()).toEqual('Software Developers, Applications');
expect(await SoftwareDevelopersApplicationsPathway.getText()).toEqual('Information Technology');
await SoftwareDevelopersApplicationsUnfollowIcon.click().then(function() { await SoftwareDevelopersApplicationsUnfollowIcon.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
@@ -1976,7 +1983,7 @@ function Degrees() {
await ExpandDegreeCard.click(); await ExpandDegreeCard.click();
browser.sleep(1000); browser.sleep(1000);
expect(await InstitutionTitle.getText()).toEqual('Institutions'); expect(await InstitutionTitle.getText()).toEqual('Institutions');
expect(await InstitutionData.getText()).toEqual('2,431'); expect(await InstitutionData.getText()).toEqual('2,425');
expect(await CourseTitle.getText()).toEqual('Courses'); expect(await CourseTitle.getText()).toEqual('Courses');
expect(await CourseData.getText()).toEqual('0'); expect(await CourseData.getText()).toEqual('0');
expect(await OccupationTitle.getText()).toEqual('Occupations'); expect(await OccupationTitle.getText()).toEqual('Occupations');
@@ -2079,29 +2086,56 @@ function Institutions() {
expect(await WidgetTitle.getText()).toEqual('Institutions'); expect(await WidgetTitle.getText()).toEqual('Institutions');
await CarrouselRightScroll.click(); await CarrouselRightScroll.click();
browser.sleep(1000); browser.sleep(1000);
expect(await SchoolNameTitle.getText()).toEqual('San Diego State University'); //Bug - Incorrect institution being loaded at times(Golden Gate University-San Francisco)
await EllipsisInstitutions.click(); await SchoolNameTitle.getText().then(async function(actualText) {
browser.sleep(1000); if(actualText.indexOf('San Diego State University') !== -1) {
await InstitutionFollowIcon.click(); expect(await SchoolNameTitle.getText()).toEqual('San Diego State University');
browser.sleep(1000); await EllipsisInstitutions.click().then(function() {
await InstitutionDetailsIcon.click(); browser.sleep(1000);
browser.sleep(1000); });
expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students'); await InstitutionFollowIcon.click().then(function() {
expect(await UndergraduateData.getText()).toEqual('29,781'); browser.sleep(1000);
expect(await NotRated.getText()).toEqual('Not Rated'); });
expect(await TuitionTitle.getText()).toEqual('Tuition'); await InstitutionDetailsIcon.click().then(function() {
//expect(await TuitionData.getText()).toEqual('$14,030'); Bug - Incorrect institutions are being loaded (Golden Gate University-San Francisco) - "Data not available" browser.sleep(1000);
//expect(await TuitionAverage.getText()).toEqual('Lower Than Average'); - row missing });
expect(await GraduateTitle.getText()).toEqual('Graduation Rate'); expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students');
//expect(await GraduateData.getText()).toEqual('74%'); - "Data not available" expect(await UndergraduateData.getText()).toEqual('29,781');
//expect(await GraduateAverage.getText()).toEqual('Above Average'); - row missing expect(await NotRated.getText()).toEqual('Not Rated');
expect(await EarningsTitle.getText()).toEqual('Earnings After School'); expect(await TuitionTitle.getText()).toEqual('Tuition');
expect(await EarningsData.getText()).toEqual('$51,000'); expect(await TuitionData.getText()).toEqual('$14,030');
expect(await EarningsAverage.getText()).toEqual('Above Average'); expect(await TuitionAverage.getText()).toEqual('Lower Than Average');
expect(await GraduateTitle.getText()).toEqual('Graduation Rate');
expect(await GraduateData.getText()).toEqual('74%');
expect(await GraduateAverage.getText()).toEqual('Above Average');
expect(await EarningsTitle.getText()).toEqual('Earnings After School');
expect(await EarningsData.getText()).toEqual('$51,000');
expect(await EarningsAverage.getText()).toEqual('Above Average');
} else {
expect(await SchoolNameTitle.getText()).toEqual('Golden Gate University-San Francisco');
await EllipsisInstitutions.click().then(function() {
browser.sleep(1000);
});
await InstitutionFollowIcon.click().then(function() {
browser.sleep(1000);
});
await InstitutionDetailsIcon.click().then(function() {
browser.sleep(1000);
});
expect(await UndergraduateTitle.getText()).toEqual('Undergraduate Students');
expect(await UndergraduateData.getText()).toEqual('416');
expect(await NotRated.getText()).toEqual('Not Rated');
expect(await TuitionTitle.getText()).toEqual('Tuition');
expect(await GraduateTitle.getText()).toEqual('Graduation Rate');
expect(await EarningsTitle.getText()).toEqual('Earnings After School');
expect(await EarningsData.getText()).toEqual('$71,100');
expect(await EarningsAverage.getText()).toEqual('Above Average');
}
});
await InstitutionDetailsXCloseLink.click(); await InstitutionDetailsXCloseLink.click();
browser.sleep(1000); browser.sleep(1000);
await InstitutionUnFollowIcon.click(); //remove await InstitutionUnFollowIcon.click();
browser.sleep(1000); //remove browser.sleep(1000);
await EllipsisInstitutions.click(); await EllipsisInstitutions.click();
browser.sleep(1000); browser.sleep(1000);
await CarrouselLeftScroll.click(); await CarrouselLeftScroll.click();
@@ -2121,8 +2155,8 @@ function TopResources() {
var FourthResourceCardTitle = element(by.css('.panel:nth-child(4) .ng-binding')); var FourthResourceCardTitle = element(by.css('.panel:nth-child(4) .ng-binding'));
var FirstResourceCardTitle = element(by.css('.panel:nth-child(1) .ng-binding')); var FirstResourceCardTitle = element(by.css('.panel:nth-child(1) .ng-binding'));
var FirstResourceCardEllipsis = element(by.css('.panel:nth-child(1) .glyphicon')); var FirstResourceCardEllipsis = element(by.css('.panel:nth-child(1) .glyphicon'));
var FirstResourceLearnMoreLink = element(by.css('.panel:nth-child(1) .row:nth-child(2) div:nth-child(2) span:nth-child(2)')); var FirstFollowResourceIcon = element(by.css('.panel:nth-child(1) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)'));
var FollowFirstResourceCard = element(by.css('#pageBody > div.modal.fade.ng-isolate-scope.in > div > div > div > div.color-card-background.widget-padding > accordion > div > div:nth-child(1) > div.panel-collapse.in > div > resource-card > div > div > div > div:nth-child(1) > a > social-follow-icon > span > i')); var FirstResourceLearnMoreIcon = element(by.css('.panel:nth-child(1) .row:nth-child(2) div:nth-child(2) span:nth-child(2)'));
var XCloseLink = element(by.css('.close')); var XCloseLink = element(by.css('.close'));
await TopResourcesLink.click().then(function() { await TopResourcesLink.click().then(function() {
@@ -2135,12 +2169,12 @@ function TopResources() {
expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
await FirstResourceCardEllipsis.click(); await FirstResourceCardEllipsis.click();
browser.sleep(1000); browser.sleep(1000);
await FirstResourceLearnMoreLink.click(); expect(await FirstFollowResourceIcon.getText()).toEqual('Follow');
await FirstResourceLearnMoreIcon.click();
browser.sleep(5000); browser.sleep(5000);
browser.getAllWindowHandles().then(function (handles) { browser.getAllWindowHandles().then(function (handles) {
//var SecondWindowHandle = handles[1]; //var SecondWindowHandle = handles[1];
//var FirstWindowHandle = handles[0]; //var FirstWindowHandle = handles[0];
browser.driver.switchTo().window(handles[1]).then(async function () { browser.driver.switchTo().window(handles[1]).then(async function () {
browser.sleep(10000); browser.sleep(10000);
expect(await browser.driver.getCurrentUrl()).toEqual("https://www.onetonline.org/link/summary/15-1111.00"); expect(await browser.driver.getCurrentUrl()).toEqual("https://www.onetonline.org/link/summary/15-1111.00");
@@ -2155,9 +2189,6 @@ function TopResources() {
expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)'); expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
});*/ });*/
//}); //});
await FollowFirstResourceCard.click().then(function() {
browser.sleep(2500);
});
await XCloseLink.click().then(function() { await XCloseLink.click().then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });
@@ -2926,12 +2957,13 @@ function MyResourcesCarousel() {
browser.sleep(1000); browser.sleep(1000);
});*/ });*/
browser.executeScript('window.scrollTo(0, 1990);').then(function() { browser.executeScript('window.scrollTo(0, 1990);').then(function() {
browser.sleep(2500); browser.sleep(5000);
}); });
expect(await WidgetTitle.getText()).toEqual('My Resources View All'); expect(await WidgetTitle.getText()).toEqual('My Resources View All');
expect(await TopResources1stCardHeader.getText()).toEqual('Computer and Information Research Scientists'); expect(await TopResources1stCardHeader.getText()).toEqual('Computer and Information Research Scientists');
await TopResources1stCardSaveIcon.click(); await TopResources1stCardSaveIcon.click().then(function() {
browser.sleep(2500); browser.sleep(5000);
});
await ViewAllLink.click(); await ViewAllLink.click();
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
@@ -3095,9 +3127,8 @@ function MapInteraction() {
var ItemSalaryHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading')); var ItemSalaryHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading'));
var ItemSalaryStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding')); var ItemSalaryStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding'));
var ItemGrowthHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading')); var ItemGrowthHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading'));
var ItemGrowthStat = element(by.css('.sidebarPanelBody > .ng-scope > .ng-scope')); var ItemGrowthStat = element(by.css('.panel-body > .ng-binding:nth-child(2)'));
var ItemGrowthStatTwo = element(by.css('.panel-body > .ng-binding:nth-child(2)')); var ItemGrowthStatTwo = element(by.css('.ng-scope > .panel > .panel-body > .ng-scope:nth-child(3)'));
var ItemGrowthStatThree = element(by.css('.ng-scope > .panel > .panel-body > .ng-scope:nth-child(3)'));
var ItemJobOpeningsHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading')); var ItemJobOpeningsHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading'));
var ItemJobOpeningsStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding')); var ItemJobOpeningsStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding'));
var ItemEmployedHeader = element(by.css('.ng-scope:nth-child(5) .sidebarPanelHeading')); var ItemEmployedHeader = element(by.css('.ng-scope:nth-child(5) .sidebarPanelHeading'));
@@ -3106,28 +3137,28 @@ function MapInteraction() {
var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)')); var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)'));
var ObjectTitle = element(by.css('.side-bar-child-text:nth-child(2)')); var ObjectTitle = element(by.css('.side-bar-child-text:nth-child(2)'));
var BackToResultsLink = element(by.css('div:nth-child(2) > .sidebarBackTxt')); var BackToResultsLink = element(by.css('div:nth-child(2) > .sidebarBackTxt'));
var CollegeTabLink = element(by.css('#tab-item-7 > .ng-binding')); var CollegeTabLink = element(by.css('#tab-item-1 > .ng-binding'));
var CollegePath = element(by.css('#tab-content-7 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt')); var CollegePath = element(by.css('#tab-content-1 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt'));
var CollegeTitle = element(by.css('#tab-content-7 #searchitem0 .side-bar-child-text:nth-child(2)')); var CollegeTitle = element(by.css('#tab-content-1 #searchitem0 .side-bar-child-text:nth-child(2)'));
var CollegeDescription = element(by.css('#tab-content-7 #searchitem0 .sidebarDescription')); var CollegeDescription = element(by.css('#tab-content-1 #searchitem0 .sidebarDescription'));
var CertificationTabLink = element(by.css('#tab-item-8 > .ng-binding')); var CertificationTabLink = element(by.css('#tab-item-2 > .ng-binding'));
var CertificationPath = element(by.css('#tab-content-8 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); var CertificationPath = element(by.css('#tab-content-2 #searchitem0 .side-bar-ancestory-txt:nth-child(1)'));
var CertificationTitle = element(by.css('#tab-content-8 #searchitem0 .side-bar-child-text:nth-child(2)')); var CertificationTitle = element(by.css('#tab-content-2 #searchitem0 .side-bar-child-text:nth-child(2)'));
var CertificationDescription = element(by.css('#tab-content-8 #searchitem0 .sidebarDescription')); var CertificationDescription = element(by.css('#tab-content-2 #searchitem0 .sidebarDescription'));
var K12TabLink = element(by.css('#tab-item-9 > .ng-binding')); var K12TabLink = element(by.css('#tab-item-3 > .ng-binding'));
var K12Path = element(by.css('#tab-content-9 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); var K12Path = element(by.css('#tab-content-3 #searchitem0 .side-bar-ancestory-txt:nth-child(1)'));
var K12Title = element(by.css('#tab-content-9 #searchitem0 .side-bar-child-text:nth-child(2)')); var K12Title = element(by.css('#tab-content-3 #searchitem0 .side-bar-child-text:nth-child(2)'));
var K12Description = element(by.css('#tab-content-9 #searchitem0 .sidebarDescription')); var K12Description = element(by.css('#tab-content-3 #searchitem0 .sidebarDescription'));
var MilitaryTabLink = element(by.css('#tab-item-10 > .ng-binding')); var MilitaryTabLink = element(by.css('#tab-item-4 > .ng-binding'));
var MilitaryPath = element(by.css('#tab-content-10 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); var MilitaryPath = element(by.css('#tab-content-4 #searchitem0 .side-bar-ancestory-txt:nth-child(1)'));
var MilitaryTitle = element(by.css('#tab-content-10 #searchitem0 .side-bar-child-text:nth-child(2)')); var MilitaryTitle = element(by.css('#tab-content-4 #searchitem0 .side-bar-child-text:nth-child(2)'));
var MilitaryDescription = element(by.css('#tab-content-10 #searchitem0 > div > div.panel-collapse.in > div > div > military-map-details > div > div:nth-child(3) > div')); var MilitaryDescription = element(by.css('#tab-content-4 #searchitem0 > div > div.panel-collapse.in > div > div > military-map-details > div > div:nth-child(3) > div'));
var CTETabLlink = element(by.css('#tab-item-11 > .ng-binding')); var CTETabLlink = element(by.css('#tab-item-5 > .ng-binding'));
var CTEPath = element(by.css('#tab-content-11 #searchitem0 .side-bar-ancestory-txt:nth-child(1)')); var CTEPath = element(by.css('#tab-content-5 #searchitem0 .side-bar-ancestory-txt:nth-child(1)'));
var CTETitle = element(by.css('#tab-content-11 #searchitem0 .side-bar-child-text:nth-child(2)')); var CTETitle = element(by.css('#tab-content-5 #searchitem0 .side-bar-child-text:nth-child(2)'));
var CTEDescription = element(by.css('#tab-content-11 #searchitem0 .sidebarDescription')); var CTEDescription = element(by.css('#tab-content-5 #searchitem0 .sidebarDescription'));
var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon')); var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon'));
var CareerTabLink = element(by.css('#tab-item-6 > .ng-binding')); var CareerTabLink = element(by.css('#tab-item-0 > .ng-binding'));
var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text')); var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text'));
var ItemReadMoreLink = element(by.css('.sidebarLinkTxt')); var ItemReadMoreLink = element(by.css('.sidebarLinkTxt'));
var ItemTitleReadMore = element(by.css('.col-lg-12 > .ng-binding')); var ItemTitleReadMore = element(by.css('.col-lg-12 > .ng-binding'));
@@ -3154,7 +3185,7 @@ function MapInteraction() {
}); });
await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst'); await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst');
await MapSearchIcon.click(); await MapSearchIcon.click();
browser.sleep(10000); browser.sleep(5000);
await SearchCareerOne.click(); await SearchCareerOne.click();
browser.sleep(2500); browser.sleep(2500);
expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >'); expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >');
@@ -3170,54 +3201,50 @@ function MapInteraction() {
expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY'); expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY');
expect(await ItemSalaryStat.getText()).toEqual('$88,510'); expect(await ItemSalaryStat.getText()).toEqual('$88,510');
expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH'); expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH');
expect(await ItemGrowthStatTwo.getText()).toEqual('9.3'); expect(await ItemGrowthStat.getText()).toEqual('9.3');
expect(await ItemGrowthStatThree.getText()).toEqual('%'); expect(await ItemGrowthStatTwo.getText()).toEqual('%');
expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS'); expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS');
expect(await ItemJobOpeningsStat.getText()).toEqual('22,400'); 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 ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
expect(await ItemEmployedStat.getText()).toEqual('287,200'); expect(await ItemEmployedStat.getText()).toEqual('287,200');
browser.actions().mouseMove(SearchCareerOneViewOnMapIcon).perform().then(function() {
browser.sleep(1000);
});
await SearchCareerOneViewOnMapIcon.click();
browser.sleep(5000);
expect(await ObjectPath.getText()).toEqual('IT > Programming & Software Development >');
expect(await ObjectTitle.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.');
await BackToResultsLink.click();
browser.sleep(5000);
await CollegeTabLink.click(); await CollegeTabLink.click();
browser.sleep(5000); browser.sleep(2500);
await CollegePath.click(); await CollegePath.click();
browser.sleep(2500); browser.sleep(2500);
await MapZoomInIcon.click();
browser.sleep(2500);
await MapZoomInIcon.click();
browser.sleep(2500);
expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >'); expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >');
expect(await CollegeTitle.getText()).toEqual('Publishing Software'); expect(await CollegeTitle.getText()).toEqual('Publishing Software');
expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)'); expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)');
await MapZoomInIcon.click(); browser.sleep(2500);
browser.sleep(5000);
await CertificationTabLink.click(); await CertificationTabLink.click();
browser.sleep(5000); browser.sleep(2500);
await CertificationPath.click(); await CertificationPath.click();
browser.sleep(2500); browser.sleep(2500);
expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >'); expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >');
expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst'); expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst');
expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.'); expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.');
await K12TabLink.click(); await K12TabLink.click();
browser.sleep(5000); browser.sleep(2500);
await K12Path.click(); await K12Path.click();
browser.sleep(2500); browser.sleep(2500);
expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >'); expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >');
expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.');
expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.');
await MilitaryTabLink.click(); await MilitaryTabLink.click();
browser.sleep(5000); browser.sleep(2500);
await MilitaryPath.click(); await MilitaryPath.click();
browser.sleep(2500); browser.sleep(2500);
expect(await MilitaryPath.getText()).toEqual('Aircraft Hydraulic Systems > Administration >'); expect(await MilitaryPath.getText()).toEqual('Aircraft Hydraulic Systems > Administration >');
expect(await MilitaryTitle.getText()).toEqual('Quality Control Systems Managers'); expect(await MilitaryTitle.getText()).toEqual('Quality Control Systems Managers');
expect(await MilitaryDescription.getText()).toEqual('No details for this location.'); expect(await MilitaryDescription.getText()).toEqual('No details for this location.');
await CTETabLlink.click(); await CTETabLlink.click();
browser.sleep(5000); browser.sleep(2500);
await CTEPath.click(); await CTEPath.click();
browser.sleep(2500); browser.sleep(2500);
expect(await CTEPath.getText()).toEqual('Programming & Software Development > Quality Assurance >'); expect(await CTEPath.getText()).toEqual('Programming & Software Development > Quality Assurance >');
@@ -3226,7 +3253,7 @@ function MapInteraction() {
await ArrowTabLink.click(); await ArrowTabLink.click();
browser.sleep(2500); browser.sleep(2500);
await CareerTabLink.click(); await CareerTabLink.click();
browser.sleep(5000); browser.sleep(2500);
await SearchCareerFour.click(); await SearchCareerFour.click();
browser.sleep(2500); browser.sleep(2500);
expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."');
@@ -3245,11 +3272,22 @@ function MapInteraction() {
expect(await AbilitiesStat.getText()).toEqual('52'); expect(await AbilitiesStat.getText()).toEqual('52');
expect(await KnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); expect(await KnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES');
expect(await KnowledgeChoicesStat.getText()).toEqual('33'); expect(await KnowledgeChoicesStat.getText()).toEqual('33');
browser.actions().mouseMove(SearchCareerFourViewOnMapIcon).perform().then(function() {
browser.sleep(2500);
});
await SearchCareerFourViewOnMapIcon.click(); await SearchCareerFourViewOnMapIcon.click();
browser.sleep(5000); browser.sleep(2500);
expect(await ObjectPath.getText()).toEqual('Career > Cyber Security >'); expect(await ObjectPath.getText()).toEqual('Career > Cyber Security >');
expect(await ObjectTitle.getText()).toEqual('Software Development (DEV)'); expect(await ObjectTitle.getText()).toEqual('Software Development (DEV)');
expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."');
expect(await CareerChoicesHeader.getText()).toEqual('CAREER CHOICES');
expect(await CareerChoicesStat.getText()).toEqual('2');
expect(await SkillsHeader.getText()).toEqual('SKILLS');
expect(await SkillsStat.getText()).toEqual('35');
expect(await AbilitiesHeader.getText()).toEqual('ABILITIES');
expect(await AbilitiesStat.getText()).toEqual('52');
expect(await KnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES');
expect(await KnowledgeChoicesStat.getText()).toEqual('33');
await CollapseIcon.click(); await CollapseIcon.click();
browser.sleep(2500); browser.sleep(2500);
await MapZoomOutIcon.click(); await MapZoomOutIcon.click();
@@ -3258,20 +3296,24 @@ function MapInteraction() {
browser.sleep(1000); browser.sleep(1000);
await MapZoomOutIcon.click(); await MapZoomOutIcon.click();
browser.sleep(1000); browser.sleep(1000);
await HideJourneyButton.click();
browser.sleep(2500);
await MapZoomOutIcon.click(); await MapZoomOutIcon.click();
browser.sleep(1000); browser.sleep(1000);
await HideJourneyButton.click();
browser.sleep(2500);
await MapZoomInIcon.click(); await MapZoomInIcon.click();
browser.sleep(1000); browser.sleep(1000);
await ExpandIcon.click(); await MapZoomInIcon.click();
browser.sleep(2500); browser.sleep(1000);
await BackToResultsLink.click();
browser.sleep(10000);
await MapSearchClearIcon.click();
browser.sleep(2500);
await HideJourneyButton.click(); await HideJourneyButton.click();
browser.sleep(2500); browser.sleep(2500);
await ExpandIcon.click();
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 MapSearchClearIcon.click();
browser.sleep(2500);
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
}); });
@@ -3419,7 +3461,8 @@ function InstitutionMetrics() {
var TopThreeLocationsTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)')); var TopThreeLocationsTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)'));
var TopThreeLocationsStat = element(by.css('.td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(2)')); var TopThreeLocationsStat = element(by.css('.td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(2)'));
var TypeOfInstitutionTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)')); var TypeOfInstitutionTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)'));
var TypeOfInstitutionStat = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(3)')); var TypeOfInstitutionStatOne = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(2)'));
var TypeOfInstitutionStatTwo = element(by.css('.td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(3)'));
var AverageGraduationRateTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)')); var AverageGraduationRateTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)'));
var AverageGraduationRateStat = element(by.css('.col-sm-4:nth-child(2)')); var AverageGraduationRateStat = element(by.css('.col-sm-4:nth-child(2)'));
@@ -3431,23 +3474,24 @@ function InstitutionMetrics() {
}); });
expect(await InstitutionMetricsWidgetTitle.getText()).toEqual('Institution Metrics'); expect(await InstitutionMetricsWidgetTitle.getText()).toEqual('Institution Metrics');
expect(await InstitutionsOfInterestTitle.getText()).toEqual('Institutions Of Interest'); expect(await InstitutionsOfInterestTitle.getText()).toEqual('Institutions Of Interest');
expect(await InstitutionsOfInterestStat.getText()).toContain('1'); expect(await InstitutionsOfInterestStat.getText()).toContain('3');
expect(await AverageCostTitle.getText()).toContain('Average Cost'); expect(await AverageCostTitle.getText()).toContain('Average Cost');
expect(await AverageCostStat.getText()).toContain('34,752'); expect(await AverageCostStat.getText()).toContain('24,391/year');
expect(await AverageSATACTScoresTitle.getText()).toContain('Average SAT/ACT Scores'); expect(await AverageSATACTScoresTitle.getText()).toContain('Average SAT/ACT Scores');
expect(await AverageSATSubTitle.getText()).toContain('SAT'); expect(await AverageSATSubTitle.getText()).toContain('SAT');
expect(await AverageSATReadingWritingStat.getText()).toContain('Reading & Writing - 630'); expect(await AverageSATReadingWritingStat.getText()).toContain('Reading & Writing - 612');
expect(await AverageSATMathStat.getText()).toContain('Math - 635'); expect(await AverageSATMathStat.getText()).toContain('Math - 615');
expect(await AverageACTSubTitle.getText()).toContain('ACT'); expect(await AverageACTSubTitle.getText()).toContain('ACT');
expect(await AverageACTEnglishStat.getText()).toContain('English - 29'); expect(await AverageACTEnglishStat.getText()).toContain('English - 27');
expect(await AverageACTMathStat.getText()).toContain('Math - 27'); expect(await AverageACTMathStat.getText()).toContain('Math - 26');
expect(await AverageACTCumulativeStat.getText()).toContain('Cumulative - 28'); expect(await AverageACTCumulativeStat.getText()).toContain('Cumulative - 27');
expect(await TopThreeLocationsTitle.getText()).toContain('Top 3 Locations'); expect(await TopThreeLocationsTitle.getText()).toContain('Top 3 Locations');
expect(await TopThreeLocationsStat.getText()).toContain('CA'); expect(await TopThreeLocationsStat.getText()).toContain('CA');
expect(await TypeOfInstitutionTitle.getText()).toContain('Type of Institution'); expect(await TypeOfInstitutionTitle.getText()).toContain('Type of Institution');
expect(await TypeOfInstitutionStat.getText()).toContain('Private nonprofit - 100%'); expect(await TypeOfInstitutionStatOne.getText()).toContain('Public - 33%');
expect(await TypeOfInstitutionStatTwo.getText()).toContain('Private nonprofit - 67%');
expect(await AverageGraduationRateTitle.getText()).toContain('Average Graduation Rate'); expect(await AverageGraduationRateTitle.getText()).toContain('Average Graduation Rate');
expect(await AverageGraduationRateStat.getText()).toContain('80%'); expect(await AverageGraduationRateStat.getText()).toContain('77%');
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
}); });
@@ -3456,7 +3500,10 @@ function InstitutionMetrics() {
function InstitutionsOfInterest() { function InstitutionsOfInterest() {
it('should validate Institutions Of Interest widget data', async function () { it('should validate Institutions Of Interest widget data', async function () {
var InstitutionsOfInterestWidgetTitle = element(by.css('#id > .jrnys_lead-body-copy')); var InstitutionsOfInterestWidgetTitle = element(by.css('#id > .jrnys_lead-body-copy'));
var InstitutionCardTitle = element(by.css('.jrnys_carousel-title-space')); var InstitutionsCardTitleOne = element(by.css('.col-xs-4:nth-child(1) .jrnys_body-copy'));
var InstitutionsUnfollowIconOne = element(by.css('.iconSpacing .journey-follow-selected'));
var InstitutionCardTitleTwo = element(by.css('.col-xs-4:nth-child(2) .jrnys_body-copy'));
var InstitutionCardTitleThree = element(by.css('.col-xs-4:nth-child(3) .jrnys_body-copy'));
var InstitutionOfInterestViewAllLink = element(by.css('.jrnys_lead-body-copy:nth-child(1) > .ng-binding')); var InstitutionOfInterestViewAllLink = element(by.css('.jrnys_lead-body-copy:nth-child(1) > .ng-binding'));
var InstitutionOfInterestDivTitle = element(by.css('.col-sm-12 > .ng-binding')); var InstitutionOfInterestDivTitle = element(by.css('.col-sm-12 > .ng-binding'));
var EllipsisInstitutions = element(by.css('.glyphicon-option-vertical:nth-child(1)')); var EllipsisInstitutions = element(by.css('.glyphicon-option-vertical:nth-child(1)'));
@@ -3471,7 +3518,7 @@ function InstitutionsOfInterest() {
var EarningsAfterSchoolTitle = element(by.css('.ng-scope:nth-child(4) > td > .item-title')); var EarningsAfterSchoolTitle = element(by.css('.ng-scope:nth-child(4) > td > .item-title'));
var EarningsAfterSchoolStat = element(by.css('.ng-scope:nth-child(4) > td > .item-body')); var EarningsAfterSchoolStat = element(by.css('.ng-scope:nth-child(4) > td > .item-body'));
var InstitutionOfInterestDivXCloseLink = element(by.css('.default-color4a')); var InstitutionOfInterestDivXCloseLink = element(by.css('.default-color4a'));
var InstitutionCardLearnMoreButton = element(by.css('.ng-scope > .full-width .btn')); var InstitutionCardLearnMoreButton = element(by.css('.in > .panel-body .row:nth-child(1) span'));
/*browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { /*browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
browser.sleep(1000); browser.sleep(1000);
@@ -3480,50 +3527,368 @@ function InstitutionsOfInterest() {
browser.sleep(2500); browser.sleep(2500);
}); });
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All'); expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
expect(await InstitutionCardTitle.getText()).toEqual('University of San Diego'); expect(await InstitutionsCardTitleOne.getText()).toEqual('Golden Gate University-San Francisco');
await InstitutionOfInterestViewAllLink.click(); await InstitutionsUnfollowIconOne.click().then(function() {
expect(await InstitutionOfInterestDivTitle.getText()).toContain('Institutions visited by Automated Regression'); browser.sleep(2500);
await EllipsisInstitutions.click().then(function() {
browser.sleep(1000);
}); });
expect(await InstitutionLearnMoreLink.getText()).toContain(' Learn More'); expect(await InstitutionCardTitleTwo.getText()).toEqual('San Diego State University');
expect(await InstitutionDetailsLink.getText()).toContain(' Details'); expect(await InstitutionCardTitleThree.getText()).toEqual('University of San Diego');
await InstitutionOfInterestViewAllLink.click();
expect(await InstitutionOfInterestDivTitle.getText()).toEqual('Institutions visited by Automated Regression');
await EllipsisInstitutions.click().then(function() {
browser.sleep(2500);
});
expect(await InstitutionLearnMoreLink.getText()).toContain('Learn More');
expect(await InstitutionDetailsLink.getText()).toContain('Details');
expect(await UndergraduateStudentsTitle.getText()).toContain('Undergraduate Students'); expect(await UndergraduateStudentsTitle.getText()).toContain('Undergraduate Students');
expect(await UndergraduateStudentsStat.getText()).toContain('5,677'); expect(await UndergraduateStudentsStat.getText()).toContain('29,781');
expect(await TuitionTitle.getText()).toContain('Tuition'); expect(await TuitionTitle.getText()).toContain('Tuition');
expect(await TuitionStat.getText()).toContain('$34,752'); expect(await TuitionStat.getText()).toContain('$14,030');
expect(await GraduationRateTitle.getText()).toContain('Graduation Rate'); expect(await GraduationRateTitle.getText()).toContain('Graduation Rate');
expect(await GraduationRateStat.getText()).toContain('0.7977'); expect(await GraduationRateStat.getText()).toContain('0.7381');
expect(await EarningsAfterSchoolTitle.getText()).toContain('Earnings After School'); expect(await EarningsAfterSchoolTitle.getText()).toContain('Earnings After School');
expect(await EarningsAfterSchoolStat.getText()).toContain('$60,000'); expect(await EarningsAfterSchoolStat.getText()).toContain('$51,000');
await InstitutionOfInterestDivXCloseLink.click().then(function() { browser.sleep(1000);
browser.sleep(1000);
})
await InstitutionCardLearnMoreButton.click().then(function() { await InstitutionCardLearnMoreButton.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}) })
browser.getAllWindowHandles().then(function (handles) { browser.getAllWindowHandles().then(function (handles) {
var AtAGlanceWidgetTitle = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy'));
var FourYearTitle = element(by.css('.row-height:nth-child(1) .jrnys_support-text'));
var FourYearStat = element(by.css('.row-height:nth-child(1) .ellipsis'));
var UndergraduateStudentsTitle = element(by.css('.row-height:nth-child(2) .jrnys_support-text'));
var UndergraduateStudentsStat = element(by.css('.row-height:nth-child(2) .col-sm-offset-4 > div'));
var LocationTitle = element(by.css('.row-height:nth-child(3) .jrnys_support-text'));
var LocationStat = element(by.css('.row-height:nth-child(3) .col-sm-offset-4 > div'));
var ClassroomsTitle = element(by.css('.row-height:nth-child(4) .jrnys_support-text'));
var ClassroomsStat = element(by.css('.row-height:nth-child(4) .col-sm-offset-4 > div'));
var CostTitle = element(by.css('.row-height:nth-child(5) .jrnys_support-text'));
var CostStat = element(by.css('.row-height:nth-child(5) .ellipsis'));
var GraduationRateTitle = element(by.css('.row-height:nth-child(6) .jrnys_support-text'));
var GraduationRateStat = element(by.css('.row-height:nth-child(6) .ellipsis'));
var ReturningStudentsTitle = element(by.css('.row-height:nth-child(7) .jrnys_support-text'));
var ReturningStudentsStat = element(by.css('.row-height:nth-child(7) .ellipsis'));
var AfterSchoolEarningsTitle = element(by.css('.row-height:nth-child(8) .jrnys_support-text'));
var AfterSchoolEarningsStat = element(by.css('.row-height:nth-child(8) .ellipsis'));
var PayingDownDebtTitle = element(by.css('.row-height:nth-child(9) .jrnys_support-text'));
var PayingDownDebtStat = element(by.css('.row-height:nth-child(9) .ellipsis'));
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy')); var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
var LearnMoreInfoIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle')); var LearnMoreInfoIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
var LearnMoreInfoTitle = element(by.css('.col-lg-12 > .ng-binding')); var DivTitle = element(by.css('.col-lg-12 > .ng-binding'));
var LearnMoreInfoDescription = element(by.linkText('http://www.sandiego.edu')); var LearnMoreInfoDescription = element(by.linkText('http://www.sdsu.edu'));
var LearnMoreInfoXCloseLink = element(by.css('.close > .fa')); var DivXCloseLink = element(by.css('.close > .fa'));
var LocationAndContactWidgetTitle = element(by.css('.widget-round-corners > .fullHeight > .widgetHeaderContainer > .jrnys_lead-body-copy'));
var SchoolMapName = element(by.css('.col-xs-4:nth-child(1) > .ng-binding:nth-child(1)'));
var MapAddress = element(by.css('.col-xs-4 > .ng-binding:nth-child(2)'));
var AcademicProgramsWidgetTitle = element(by.css('#acadProgramsid > .jrnys_lead-body-copy'));
var AcademicProgramsInfoIcon = element(by.css('.header-carousel-icon'));
var DivDescription = element(by.css('.col-lg-12:nth-child(3)'));
var AcademicProgramsCardOne = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .jrnys_body-copy'));
var AcademicProgramsCardTwo = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .jrnys_body-copy'));
var AcademicProgramsCardThree = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .jrnys_body-copy'));
var TestScoresWidgetTitle = element(by.css('#TestScoresID .jrnys_lead-body-copy'));
var TestScoresWidgetInfoIcon = element(by.css('.header-icon:nth-child(2)'));
var TestScoresWidgetDescription = element(by.css('#TestScoresID > div:nth-child(2)'));
var TestScoresStatTitle = element(by.css('div:nth-child(3) > .ng-scope:nth-child(1) > .ng-binding'));
var TestScoresCriticalReading = element(by.css('.ng-scope:nth-child(1) > figure > .ng-binding'));
var CriticalReadingRangeStart = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-min > .ng-binding'));
var CriticalReadingRangeOne = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-lower > .ng-binding'));
var CriticalReadingRangeTwo = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-middle > .ng-binding'));
var CriticalReadingRangeThree = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-upper > .ng-binding'));
var CriticalReadingRangeEnd = element(by.css('.ng-scope:nth-child(1) > figure .picc-range-label-max > .ng-binding'));
var TestScoresMath = element(by.css('.ng-scope:nth-child(2) > figure > .ng-binding'));
var MathRangeStart = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-min > .ng-binding'));
var MathRangeOne = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-lower > .ng-binding'));
var MathRangeTwo = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-middle > .ng-binding'));
var MathRangeThree = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-upper > .ng-binding'));
var MathRangeEnd = element(by.css('.ng-scope:nth-child(2) > figure .picc-range-label-max > .ng-binding'));
var TestScoresWriting = element(by.css('.ng-scope:nth-child(3) > figure > .ng-binding'));
var WritingRangeStart = element(by.css('.ng-scope:nth-child(3) > figure .picc-range-label-min > .ng-binding'));
var WritingRangeEnd = element(by.css('.ng-scope:nth-child(3) > figure .picc-range-label-max > .ng-binding'));
var TestScoresACT = element(by.css('.ng-scope:nth-child(4) > .ng-binding'));
var ACTRangeStart = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-min > .ng-binding'));
var ACTRangeOne = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-lower > .ng-binding'));
var ACTRangeTwo = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-middle > .ng-binding'));
var ACTRangeThree = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-upper > .ng-binding'));
var ACTRangeEnd = element(by.css('.ng-scope:nth-child(4) > figure .picc-range-label-max > .ng-binding'));
var GraduationAndRetentionWidgetTitle = element(by.css('#GraduationRetentionID .jrnys_lead-body-copy'));
var GraduationRateTitleTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) > .section-heading-wrapper > span'));
var GraduationRateInfoIcon = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) .fa'));
var GraduationRateStatOne = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) .label'));
var GraduationRateStatTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(1) figcaption > .ng-binding'));
var StudentsWhoReturnTitle = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) > .section-heading-wrapper > span'));
var StudentsWhoReturnInfoIcon = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) .fa'));
var StudentsWhoReturnStatOne = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) .label'));
var StudentsWhoReturnStatTwo = element(by.css('#GraduationRetentionID .col-xs-6:nth-child(2) figcaption > .ng-binding'));
var GraduationRetentionNationalAvg = element(by.css('#GraduationRetentionID > .row div:nth-child(3)'));
var CostWidgetTitle = element(by.css('#CostID .jrnys_lead-body-copy'));
var AverageAnnualCostTitle = element(by.css('#CostID .col-xs-6 > div > span'));
var AverageAnnualCostInfoIcon = element(by.css('#CostID > .row .fa'));
var AverageAnnualCostStatOne = element(by.css('.picc-meter-line > .font-size'));
var AverageAnnualCostStatTwo = element(by.css('figcaption > .font-size'));
var CostNationalAvg = element(by.css('.font-size:nth-child(3)'));
var CostWidgetHeader = element(by.css('.spacer-bottom-small'));
var CostWidgetDescription = element(by.css('.family-income-align'));
var CostByFamilyIncome = element(by.css('#CostID .col-xs-6:nth-child(2) > div:nth-child(3)'));
var FamilyIncomeHeader = element(by.css('.family-income-header > .col-xs-6:nth-child(1)'));
var FamilyIncomeStatOne = element(by.css('.family-income-row:nth-child(5) > .col-xs-6:nth-child(1)'));
var FamilyIncomeStatTwo = element(by.css('.family-income-row:nth-child(6) > .col-xs-6:nth-child(1)'));
var FamilyIncomeStatThree = element(by.css('.family-income-row:nth-child(7) > .col-xs-6:nth-child(1)'));
var FamilyIncomeStatFour = element(by.css('.family-income-row:nth-child(8) > .col-xs-6:nth-child(1)'));
var FamilyIncomeStatFive = element(by.css('.family-income-row:nth-child(9) > .col-xs-6:nth-child(1)'));
var AverageCostHeader = element(by.css('.font-size:nth-child(2)'));
var AverageCostStatOne = element(by.css('.family-income-row:nth-child(5) > .text-center'));
var AverageCostStatTwo = element(by.css('.family-income-row:nth-child(6) > .text-center'));
var AverageCostStatThree = element(by.css('.family-income-row:nth-child(7) > .text-center'));
var AverageCostStatFour = element(by.css('.family-income-row:nth-child(8) > .text-center'));
var AverageCostStatFive = element(by.css('.family-income-row:nth-child(9) > .text-center'));
var FinancialAidAndDebtWidgetTitle = element(by.css('#FinancialAidDebtID .jrnys_lead-body-copy'));
var FinancialAidAndDebtInfoIcon = element(by.css('.header-icon:nth-child(1)'));
var TypicalTotalDebtTitle = element(by.css('.col-xs-5:nth-child(1) > div:nth-child(1)'));
var TypicalTotalDebtInfoIcon = element(by.css('.col-xs-5:nth-child(1) .fa'));
var TypicalTotalDebtStat = element(by.css('.col-xs-5:nth-child(1) > .ng-binding'));
var StudentLoansStat = element(by.css('.col-xs-6 tr:nth-child(1) > .ng-binding'));
var StudentLoansTitle = element(by.css('tr:nth-child(1) > .pie-label'));
var NoStudentLoansStat = element(by.css('tr:nth-child(2) > .ng-binding'));
var NoStudentLoansTitle = element(by.css('tr:nth-child(2) > .pie-label'));
var StudentsPayingDownDebtTitle = element(by.css('.spacer-bottom > .section-heading'));
var StudentsPayingDownDebtInfoIcon = element(by.css('.spacer-bottom > .fa'));
var PayingDownDebtStatOne = element(by.css('.debt-meter .label'));
var PayingDownDebtStatTwo = element(by.css('.debt-meter > figcaption > .ng-binding'));
var PayingDownDebtNationalAvg = element(by.css('.row:nth-child(3) > .col-xs-6 > div:nth-child(3)'));
var TypicalMonthlyLoanPaymentTitle = element(by.css('.col-xs-offset-1:nth-child(2) > div:nth-child(1)'));
var TypicalMonthlyLoanPaymentInfoIcon = element(by.css('.col-xs-5:nth-child(2) .fa'));
var TypicalMonthlyLoanPaymentStat = element(by.css('.col-xs-5:nth-child(2) > .ng-binding'));
var EarningsAfterSchoolWidgetTitle = element(by.css('#EarningsAfterSchoolID .jrnys_lead-body-copy'));
var PercentageEarningTitle = element(by.css('.col-xs-6:nth-child(1) > .earn-section-wrapper > span'));
var PercentageEarningInfoIcon = element(by.css('.col-xs-6:nth-child(1) > .earn-section-wrapper > .fa'));
var PercentageEarningStat = element(by.css('.col-xs-6 > .ng-binding:nth-child(2)'));
var PercentageEarningDescription = element(by.css('#EarningsAfterSchoolID .col-xs-6:nth-child(1) > div:nth-child(3)'));
var SalaryAfterAttendingTitle = element(by.css('.section-heading-wrapper > .section-heading'));
var SalaryAfterAttendingInfoIcon = element(by.css('.col-xs-6:nth-child(2) > .earn-section-wrapper > .fa'));
var SalaryAfterAttendingStatOne = element(by.css('#EarningsAfterSchoolID .label'));
var SalaryAfterAttendingStatTwo = element(by.css('#EarningsAfterSchoolID figcaption > .ng-binding'));
var SalaryAfterAttendingNationalAvg = element(by.css('#EarningsAfterSchoolID .col-xs-6:nth-child(2) > div:nth-child(3)'));
browser.switchTo().window(handles[1]).then(async function () { browser.switchTo().window(handles[1]).then(async function () {
browser.sleep(5000); browser.sleep(5000);
expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122436"); expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122409");
expect(await LearnMoreTitle.getText()).toEqual('University of San Diego'); expect(await AtAGlanceWidgetTitle.getText()).toEqual('At A Glance');
expect(await FourYearTitle.getText()).toEqual('4 year');
expect(await FourYearStat.getText()).toEqual('Public');
expect(await UndergraduateStudentsTitle.getText()).toEqual('Undergraduate Students');
expect(await UndergraduateStudentsStat.getText()).toEqual('29,781');
expect(await LocationTitle.getText()).toEqual('Location');
expect(await LocationStat.getText()).toEqual('City');
expect(await ClassroomsTitle.getText()).toEqual('Classrooms');
expect(await ClassroomsStat.getText()).toEqual('Large');
expect(await CostTitle.getText()).toEqual('Cost');
expect(await CostStat.getText()).toEqual('Lower Than Average');
expect(await GraduationRateTitle.getText()).toEqual('Graduation Rate');
expect(await GraduationRateStat.getText()).toEqual('Above Average');
expect(await ReturningStudentsTitle.getText()).toEqual('Returning students');
expect(await ReturningStudentsStat.getText()).toEqual('Above Average');
expect(await AfterSchoolEarningsTitle.getText()).toEqual('After School Earnings');
expect(await AfterSchoolEarningsStat.getText()).toEqual('Above Average');
expect(await PayingDownDebtTitle.getText()).toEqual('Paying Down Debt');
expect(await PayingDownDebtStat.getText()).toEqual('Above Average');
expect(await LearnMoreTitle.getText()).toEqual('San Diego State University');
await LearnMoreInfoIcon.click(); await LearnMoreInfoIcon.click();
browser.sleep(2500); browser.sleep(2500);
expect(await LearnMoreInfoTitle.getText()).toContain('University of San Diego'); expect(await DivTitle.getText()).toEqual('San Diego State University');
expect(await LearnMoreInfoDescription.getText()).toContain('http://www.sandiego.edu'); expect(await LearnMoreInfoDescription.getText()).toEqual('http://www.sdsu.edu');
await LearnMoreInfoXCloseLink.click(); await DivXCloseLink.click().then(function() {
browser.sleep(5000); browser.sleep(1000);
});
browser.executeScript('window.scrollTo(0, 165);').then(function() {
browser.sleep(1000);
});
expect(await LocationAndContactWidgetTitle.getText()).toEqual('Location & Contact');
expect(await SchoolMapName.getText()).toEqual('San Diego State University');
expect(await MapAddress.getText()).toEqual('San Diego, CA 92182-0001');
browser.sleep(2500);
browser.executeScript('window.scrollTo(0, 480);').then(function() {
browser.sleep(1000);
});
expect(await AcademicProgramsWidgetTitle.getText()).toEqual('Academic Programs');
await AcademicProgramsInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Academic Programs');
expect(await DivDescription.getText()).toEqual('The five largest programs of study, as measured as the share of degrees awarded.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await AcademicProgramsCardOne.getText()).toEqual('Business, Management, Marketing, and Related Support Services');
expect(await AcademicProgramsCardTwo.getText()).toEqual('Social Sciences');
expect(await AcademicProgramsCardThree.getText()).toEqual('Health Professions and Related Programs');
browser.executeScript('window.scrollTo(0, 1330);').then(function() {
browser.sleep(1000);
});
expect(await TestScoresWidgetTitle.getText()).toEqual('Test Scores');
await TestScoresWidgetInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Test Scores');
expect(await DivDescription.getText()).toEqual('At schools that report their test scores, 50 percent had scores within this range. Of the remaining 50 percent, half were above the range and half were below. Not all schools require test scores.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await TestScoresWidgetDescription.getText()).toEqual('Students who were admitted and enrolled typically has standardized test scores in these ranges.');
expect(await TestScoresStatTitle.getText()).toEqual('SAT');
expect(await TestScoresCriticalReading.getText()).toEqual('Critical Reading');
expect(await CriticalReadingRangeStart.getText()).toEqual('0');
expect(await CriticalReadingRangeOne.getText()).toEqual('550');
expect(await CriticalReadingRangeTwo.getText()).toEqual('595');
expect(await CriticalReadingRangeThree.getText()).toEqual('640');
expect(await CriticalReadingRangeEnd.getText()).toEqual('800');
expect(await TestScoresMath.getText()).toEqual('Math');
expect(await MathRangeStart.getText()).toEqual('0');
expect(await MathRangeOne.getText()).toEqual('540');
expect(await MathRangeTwo.getText()).toEqual('595');
expect(await MathRangeThree.getText()).toEqual('650');
expect(await MathRangeEnd.getText()).toEqual('800');
expect(await TestScoresWriting.getText()).toEqual('Writing(Data not available)');
expect(await WritingRangeStart.getText()).toEqual('0');
expect(await WritingRangeEnd.getText()).toEqual('800');
expect(await TestScoresACT.getText()).toEqual('ACT');
expect(await ACTRangeStart.getText()).toEqual('0');
expect(await ACTRangeOne.getText()).toEqual('23');
expect(await ACTRangeTwo.getText()).toEqual('26');
expect(await ACTRangeThree.getText()).toEqual('28');
expect(await ACTRangeEnd.getText()).toEqual('36');
expect(await GraduationAndRetentionWidgetTitle.getText()).toEqual('Graduation & Retention');
expect(await GraduationRateTitleTwo.getText()).toEqual('Graduation Rate');
await GraduationRateInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Graduation Rate');
expect(await DivDescription.getText()).toEqual('The graduation rate within 150 percent of the expected time to completion (typically six years for schools that award predominantly four-year degrees and three years for schools that award predominantly two-year degrees). These rates are only for full-time students enrolled for the first time.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await GraduationRateStatOne.getText()).toEqual('42%');
expect(await GraduationRateStatTwo.getText()).toEqual('74%');
expect(await StudentsWhoReturnTitle.getText()).toEqual('Students Who Return After Their First Year');
await StudentsWhoReturnInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Students Who Return After Their First Year');
expect(await DivDescription.getText()).toEqual('The share of first-time, full-time undergraduates who returned to the institution after their freshman year.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await StudentsWhoReturnStatOne.getText()).toEqual('68%');
expect(await StudentsWhoReturnStatTwo.getText()).toEqual('89%');
expect(await GraduationRetentionNationalAvg.getText()).toEqual('---- National Average');
expect(await CostWidgetTitle.getText()).toEqual('Cost');
expect(await AverageAnnualCostTitle.getText()).toEqual('Average Annual Cost');
await AverageAnnualCostInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Average Annual Cost');
expect(await DivDescription.getText()).toEqual('The average annual net price for federal financial aid recipients, after aid from the school, state, or federal government. For public schools, this is only the average cost for in-state students.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await AverageAnnualCostStatOne.getText()).toEqual('$16,127');
expect(await AverageAnnualCostStatTwo.getText()).toEqual('$14,030');
expect(await CostNationalAvg.getText()).toEqual('---- National Average');
expect(await CostWidgetHeader.getText()).toEqual('By Family Income');
expect(await CostWidgetDescription.getText()).toEqual('Depending on the federal, state, or institutional grant aid available, students in your income bracket may pay more or less than the overall average costs.');
expect(await CostByFamilyIncome.getText()).toEqual('Average cost by family income');
expect(await FamilyIncomeHeader.getText()).toEqual('Family Income');
expect(await FamilyIncomeStatOne.getText()).toEqual('$0-$30,000');
expect(await FamilyIncomeStatTwo.getText()).toEqual('$30,001-$48,000');
expect(await FamilyIncomeStatThree.getText()).toEqual('$48,001-$75,000');
expect(await FamilyIncomeStatFour.getText()).toEqual('$75,001-$110,000');
expect(await FamilyIncomeStatFive.getText()).toEqual('$110,001+');
expect(await AverageCostHeader.getText()).toEqual('Average Cost');
expect(await AverageCostStatOne.getText()).toEqual('$8,182');
expect(await AverageCostStatTwo.getText()).toEqual('$10,145');
expect(await AverageCostStatThree.getText()).toEqual('$14,311');
expect(await AverageCostStatFour.getText()).toEqual('$18,262');
expect(await AverageCostStatFive.getText()).toEqual('$20,547');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(1000);
});
expect(await FinancialAidAndDebtWidgetTitle.getText()).toEqual('Financial Aid & Debt');
await FinancialAidAndDebtInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Students Receiving Federal Loans');
expect(await DivDescription.getText()).toEqual('The share of undergraduate students who borrowed federal loans to help pay for college. Excludes Parent PLUS loans.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await TypicalTotalDebtTitle.getText()).toEqual('Typical Total Debt');
await TypicalTotalDebtInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Typical Total Debt');
expect(await DivDescription.getText()).toEqual('The median federal debt of undergraduate borrowers who completed. This figure includes only federal loans; it excludes private student loans and Parent PLUS loans.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await TypicalTotalDebtStat.getText()).toEqual('$15,340');
expect(await StudentLoansStat.getText()).toEqual('31%');
expect(await StudentLoansTitle.getText()).toEqual('Students Receiving Federal Loans');
expect(await NoStudentLoansStat.getText()).toEqual('69%');
expect(await NoStudentLoansTitle.getText()).toEqual('Not Receiving Student Loans');
expect(await StudentsPayingDownDebtTitle.getText()).toEqual('Students Paying Down Debt');
await StudentsPayingDownDebtInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Students Paying Down Debt');
expect(await DivDescription.getText()).toEqual('The share of students who have repaid at least $1 of the principal balance on their federal loans within 3 years of leaving school.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await PayingDownDebtStatOne.getText()).toEqual('46%');
expect(await PayingDownDebtStatTwo.getText()).toEqual('66%');
expect(await PayingDownDebtNationalAvg.getText()).toEqual('---- National Average');
expect(await TypicalMonthlyLoanPaymentTitle.getText()).toEqual('Typical Monthly Loan Payment');
await TypicalMonthlyLoanPaymentInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Typical Monthly Loan Payment');
expect(await DivDescription.getText()).toEqual('The median monthly load payment for students who completed, if it were repaid over 10 years at a 4.29 percent interest rate.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await TypicalMonthlyLoanPaymentStat.getText()).toEqual('$159/mo');
expect(await PercentageEarningTitle.getText()).toEqual('Percentage Earning Above High School Grad');
expect(await EarningsAfterSchoolWidgetTitle.getText()).toEqual('Earnings After School');
await PercentageEarningInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Percentage Earning Above High School Grad');
expect(await DivDescription.getText()).toEqual('The share of former students earning more than $25,000, or about the average earnings of a high school graduate aged 25-34, 6 years after they first enroll.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await PercentageEarningStat.getText()).toEqual('70%');
expect(await PercentageEarningDescription.getText()).toEqual('of students who attend this school earned, on average, more than those with only a high school diploma.');
expect(await SalaryAfterAttendingTitle.getText()).toEqual('Salary After Attending');
await SalaryAfterAttendingInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await DivTitle.getText()).toEqual('Salary After Attending');
expect(await DivDescription.getText()).toEqual('The median earnings of former students who received federal financial aid, at 10 years after entering the school.');
await DivXCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await SalaryAfterAttendingStatOne.getText()).toEqual('$33,500');
expect(await SalaryAfterAttendingStatTwo.getText()).toEqual('$51,000');
expect(await SalaryAfterAttendingNationalAvg.getText()).toEqual('---- National Average');
browser.driver.close(); browser.driver.close();
browser.switchTo().window(handles[0]); browser.switchTo().window(handles[0]);
browser.sleep(5000); browser.sleep(5000);
expect(browser.driver.getCurrentUrl()).toContain("/activityDashboard"); expect(browser.driver.getCurrentUrl()).toContain("/activityDashboard");
expect(InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All'); expect(InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
await InstitutionOfInterestDivXCloseLink.click().then(function() {
browser.sleep(2500);
})
}); });
}); });
browser.waitForAngular(); browser.waitForAngular();
@@ -3554,8 +3919,8 @@ function OccupationMetrics() {
/*browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() { /*browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() {
browser.sleep(1000); browser.sleep(1000);
});*/ });*/
browser.executeScript('window.scrollTo(0, 1685);').then(function() { browser.executeScript('window.scrollTo(0, 2050);').then(function() {
browser.sleep(2500); browser.sleep(1000);
}); });
expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics'); expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics');
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest'); expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest');
@@ -3587,14 +3952,13 @@ function OccupationsOfInterest() {
var OccupationsOfInterestViewAllLink = element(by.css('#occupationVisitedId .text-color-7a')); var OccupationsOfInterestViewAllLink = element(by.css('#occupationVisitedId .text-color-7a'));
var OccupationsOfInterestTitle = element(by.css('.col-sm-12 > .ng-binding')); var OccupationsOfInterestTitle = element(by.css('.col-sm-12 > .ng-binding'));
var OccupationsOfInterestFirstCard = element(by.id('territoryCardMobileTitle')); var OccupationsOfInterestFirstCard = element(by.id('territoryCardMobileTitle'));
var FirstOccupationCardDescription = element(by.xpath('/html/body/div[4]/div/div/div/div[2]/div[1]/div/career-territory-card/territory-card/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div[1]')); var FirstOccupationCardDescription = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.territoryCardDescriptionText.ng-binding'));
var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a')); var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a'));
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(5000); browser.sleep(10000);
browser.waitForAngular();
}); });
//browser.waitForAngular();
/*browser.executeScript('window.scrollTo(0, 2350);').then(function() { /*browser.executeScript('window.scrollTo(0, 2350);').then(function() {
browser.sleep(2500); browser.sleep(2500);
});*/ });*/