Added Institution Of Interest & Occupation Metrics
This commit is contained in:
@@ -98,6 +98,8 @@ describe('Journeysmap script', function () {
|
||||
//MyActivityJourneys
|
||||
SurveyMetrics();
|
||||
InstitutionMetrics();
|
||||
InstitutionsOfInterest();
|
||||
OccupationMetrics();
|
||||
|
||||
//<<<<Account Profile>>>>
|
||||
//Profile
|
||||
@@ -2415,8 +2417,14 @@ function SurveyMetrics() {
|
||||
var SurveyResultsDivConventionalReadMore = element(by.css('.text-center:nth-child(6) > .text-color-7a'));
|
||||
var SurveyResultsReadMoreXCloseLink = element(by.css('.close > .fa'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('.dashTitleBlock > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await MyDashboardLink.click();
|
||||
browser.sleep(1000);
|
||||
browser.sleep(1500);
|
||||
browser.actions().mouseMove(element(by.css('.dashboard-menu > .dropDownFAEdits:nth-child(3) > a'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await MyActivityLink.click();
|
||||
browser.sleep(5000);
|
||||
expect(await SurveyMetricsTitle.getText()).toEqual('Survey Metrics View All');
|
||||
@@ -2427,7 +2435,7 @@ function SurveyMetrics() {
|
||||
expect(await NumberOfManualChangesTitle.getText()).toEqual('Number of Manual Changes');
|
||||
expect(await NumberOfManualChangesStat.getText()).toEqual('3');
|
||||
await SurveyResultsViewAll.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivTitle.getText()).toContain('Survey Results for Automated Regression');
|
||||
element(by.cssContainingText('option', '2019-07-30 | 15:48:30')).click().then(function() {
|
||||
@@ -2443,7 +2451,7 @@ function SurveyMetrics() {
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Realistic');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('People who are independent, stable, persistent, genuine, practical, and thrifty. They tend to be no-nonsense and down-to-earth while enjoying physical, athletic, or mechanical activity. They prefer things rather than ideas or people such as being outdoors, using tools, operating machines, interacting with animals, and working with their hands. They also value the natural, concrete, and tangible.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivInvestigative.getText()).toContain('Investigative');
|
||||
await SurveyResultsDivInvestigativeReadMore.click();
|
||||
@@ -2451,7 +2459,7 @@ function SurveyMetrics() {
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Investigative');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivArtistic.getText()).toContain('Artistic');
|
||||
await SurveyResultsDivArtisticReadMore.click();
|
||||
@@ -2459,7 +2467,7 @@ function SurveyMetrics() {
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Artistic');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('People who are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative who rely on feelings, imagination, inspiration and who are spontaneous and open-minded. They prefer to work with ideas, abstractions, and concepts. They also enjoy work that is literary, verbal, visual and aesthetic. They typically excel in art, music, dance, drawing, painting, sculpting, drafting, writing, drama, communicating, design, fashion.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivSocial.getText()).toContain('Social');
|
||||
await SurveyResultsDivSocialReadMore.click();
|
||||
@@ -2467,7 +2475,7 @@ function SurveyMetrics() {
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Social');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('People who are kind, generous, cooperative, patient, caring, helpful, empathetic, tactful, and friendly. They prefer tasks that involve socializing, helping others, teaching, teamwork, social interaction, relationship building, humanitarian, educational, philanthropic, interpersonal, and service-oriented work.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivEnterprising.getText()).toContain('Enterprising');
|
||||
await SurveyResultsDivEnterprisingReadMore.click();
|
||||
@@ -2475,7 +2483,7 @@ function SurveyMetrics() {
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Enterprising');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivConventional.getText()).toContain('Conventional');
|
||||
await SurveyResultsDivConventionalReadMore.click();
|
||||
@@ -2483,10 +2491,10 @@ function SurveyMetrics() {
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Conventional');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await SurveyResultsDivXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1000);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
@@ -2495,9 +2503,7 @@ function SurveyMetrics() {
|
||||
|
||||
function InstitutionMetrics() {
|
||||
it('should navigate to portfolio', async function () {
|
||||
var MyDashboardLink = element(by.linkText('My Dashboards'));
|
||||
var MyActivityLink = element(by.linkText('My Activity'));
|
||||
var InstitutionsOfInterestWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .widget-padding > .jrnys_lead-body-copy'));
|
||||
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'));
|
||||
var AverageCostTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy'));
|
||||
@@ -2517,14 +2523,10 @@ function InstitutionMetrics() {
|
||||
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)'));
|
||||
|
||||
await MyDashboardLink.click();
|
||||
browser.sleep(1000);
|
||||
await MyActivityLink.click();
|
||||
browser.sleep(5000);
|
||||
browser.actions().mouseMove(element(by.css('#id > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institution Metrics');
|
||||
expect(await InstitutionMetricsWidgetTitle.getText()).toEqual('Institution Metrics');
|
||||
expect(await InstitutionsOfInterestTitle.getText()).toEqual('Institutions Of Interest');
|
||||
expect(await InstitutionsOfInterestStat.getText()).toContain('1');
|
||||
expect(await AverageCostTitle.getText()).toContain('Average Cost');
|
||||
@@ -2548,6 +2550,131 @@ function InstitutionMetrics() {
|
||||
});
|
||||
}
|
||||
|
||||
function InstitutionsOfInterest() {
|
||||
it('should navigate to portfolio', async function () {
|
||||
var InstitutionsOfInterestWidgetTitle = element(by.css('#id > .jrnys_lead-body-copy'));
|
||||
var InstitutionCardTitle = element(by.css('.jrnys_carousel-title-space'));
|
||||
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 EllipsisInstitutions = element(by.css('.glyphicon-option-vertical:nth-child(1)'));
|
||||
var InstitutionLearnMoreLink = element(by.css('.row:nth-child(1) > .col-xs-9 > span'));
|
||||
var InstitutionDetailsLink = element(by.css('.row:nth-child(2) > .col-xs-9 > span'));
|
||||
var UndergraduateStudentsTitle = element(by.css('.ng-scope:nth-child(1) > td > .item-title'));
|
||||
var UndergraduateStudentsStat = element(by.css('.ng-scope:nth-child(1) > td > .item-body'));
|
||||
var TuitionTitle = element(by.css('.ng-scope:nth-child(2) > td > .item-title'));
|
||||
var TuitionStat = element(by.css('.ng-scope:nth-child(2) > td > .item-body'));
|
||||
var GraduationRateTitle = element(by.css('.ng-scope:nth-child(3) > td > .item-title'));
|
||||
var GraduationRateStat = element(by.css('.ng-scope:nth-child(3) > td > .item-body'));
|
||||
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 InstitutionOfInterestDivXCloseLink = element(by.css('.default-color4a'));
|
||||
var InstitutionCardLearnMoreButton = element(by.css('.ng-scope > .full-width .btn'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
|
||||
expect(await InstitutionCardTitle.getText()).toEqual('University of San Diego');
|
||||
await InstitutionOfInterestViewAllLink.click();
|
||||
expect(await InstitutionOfInterestDivTitle.getText()).toContain('Institutions visited by Automated Regression');
|
||||
await EllipsisInstitutions.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await InstitutionLearnMoreLink.getText()).toContain(' Learn More');
|
||||
expect(await InstitutionDetailsLink.getText()).toContain(' Details');
|
||||
expect(await UndergraduateStudentsTitle.getText()).toContain('Undergraduate Students');
|
||||
expect(await UndergraduateStudentsStat.getText()).toContain('5,677');
|
||||
expect(await TuitionTitle.getText()).toContain('Tuition');
|
||||
expect(await TuitionStat.getText()).toContain('$34,752');
|
||||
expect(await GraduationRateTitle.getText()).toContain('Graduation Rate');
|
||||
expect(await GraduationRateStat.getText()).toContain('0.7977');
|
||||
expect(await EarningsAfterSchoolTitle.getText()).toContain('Earnings After School');
|
||||
expect(await EarningsAfterSchoolStat.getText()).toContain('$60,000');
|
||||
await InstitutionOfInterestDivXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
})
|
||||
await InstitutionCardLearnMoreButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
})
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
var secondWindowHandle = handles[1];
|
||||
var firstWindowHandle = handles[0];
|
||||
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 LearnMoreInfoTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
||||
var LearnMoreInfoDescription = element(by.linkText('http://www.sandiego.edu'));
|
||||
var LearnMoreInfoXCloseLink = element(by.css('.close > .fa'));
|
||||
|
||||
browser.switchTo().window(secondWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122436");
|
||||
expect(await LearnMoreTitle.getText()).toEqual('University of San Diego');
|
||||
await LearnMoreInfoIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await LearnMoreInfoTitle.getText()).toContain('University of San Diego');
|
||||
expect(await LearnMoreInfoDescription.getText()).toContain('http://www.sandiego.edu');
|
||||
await LearnMoreInfoXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
browser.driver.close();
|
||||
});
|
||||
browser.switchTo().window(firstWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
expect(await browser.driver.getCurrentUrl()).toContain("/activityDashboard");
|
||||
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
|
||||
});
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
}
|
||||
|
||||
function OccupationMetrics() {
|
||||
it('should navigate to portfolio', 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'));
|
||||
var AverageAnnualSalaryTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy'));
|
||||
var AverageAnnualSalaryStat = element(by.css('.fullHeight:nth-child(2) > .widget-padding .td-metrics-data-width:nth-child(4) .jrnys_stand-out-text'));
|
||||
var AverageProjectedJobOpeningsTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy'));
|
||||
var AverageProjectedJobOpeningsStat = element(by.css('.text-center:nth-child(1) > .td-metrics-data-width:nth-child(6) > .text-left > .ng-binding'));
|
||||
var TopClustersTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy:nth-child(1)'));
|
||||
var TopClustersStatOne = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(2)'));
|
||||
var TopClustersStatTwo = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(3)'));
|
||||
var TopClustersStatThree = element(by.css('.td-metrics-data-width:nth-child(2) .ng-scope:nth-child(4)'));
|
||||
var AverageProjectedGrowthTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(4) .jrnys_body-copy:nth-child(1)'));
|
||||
var AverageProjectedGrowthStat = element(by.css('.jrnys_body-copy:nth-child(2) > .ng-binding'));
|
||||
var TypicalDegreesTitle = element(by.css('.fullHeight:nth-child(2) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)'));
|
||||
var TypicalDegreesStatOne = element(by.css('.td-metrics-data-width:nth-child(6) .ng-scope:nth-child(2)'));
|
||||
var TypicalDegreesStatTwo = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(3)'));
|
||||
var TypicalDegreesStatThree = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(4)'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics');
|
||||
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest');
|
||||
expect(await OccupationsOfInterestStat.getText()).toContain('74');
|
||||
expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary');
|
||||
expect(await AverageAnnualSalaryStat.getText()).toContain('$66,681');
|
||||
expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings');
|
||||
expect(await AverageProjectedJobOpeningsStat.getText()).toContain('22,404');
|
||||
expect(await TopClustersTitle.getText()).toContain('Top Clusters');
|
||||
expect(await TopClustersStatOne.getText()).toContain('Arts, A/V Technology & Communications');
|
||||
expect(await TopClustersStatTwo.getText()).toContain('Health Science');
|
||||
expect(await TopClustersStatThree.getText()).toContain('Information Technology');
|
||||
expect(await AverageProjectedGrowthTitle.getText()).toContain('Average Projected Growth');
|
||||
expect(await AverageProjectedGrowthStat.getText()).toContain(' LOWER THAN AVERAGE');
|
||||
expect(await TypicalDegreesTitle.getText()).toContain('Typical Degrees');
|
||||
expect(await TypicalDegreesStatOne.getText()).toContain('24% College (4 Year)');
|
||||
expect(await TypicalDegreesStatTwo.getText()).toContain("15% Master's degree");
|
||||
expect(await TypicalDegreesStatThree.getText()).toContain('14% High school');
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
}
|
||||
|
||||
function AccountProfile() {
|
||||
it('should navigate to Account Profile', async function () {
|
||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
||||
|
||||
Reference in New Issue
Block a user