Added ProfileWidget
This commit is contained in:
@@ -32,9 +32,9 @@ describe('Journeysmap script', function () {
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
/*DELETE await DashboardHeaderLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
});*/
|
||||
//browser.refresh();//Role Model doesn't always load properly EDM-1603
|
||||
//browser.driver.navigate().refresh();
|
||||
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||
@@ -44,8 +44,8 @@ describe('Journeysmap script', function () {
|
||||
}
|
||||
|
||||
//<<<<DASHBOARD>>>>
|
||||
//Top Career
|
||||
TopCareerWidget();
|
||||
ProfileWidget();
|
||||
/*TopCareerWidget();
|
||||
TopCareer();
|
||||
NearbyPlacesOccupationCard();
|
||||
AtAGlance();
|
||||
@@ -100,6 +100,7 @@ describe('Journeysmap script', function () {
|
||||
InstitutionMetrics();
|
||||
InstitutionsOfInterest();
|
||||
OccupationMetrics();
|
||||
OccupationsOfInterest();
|
||||
|
||||
//<<<<Account Profile>>>>
|
||||
//Profile
|
||||
@@ -110,6 +111,62 @@ describe('Journeysmap script', function () {
|
||||
SignOut();
|
||||
});
|
||||
|
||||
function ProfileWidget() {
|
||||
it('should edit Top Career', async function () {
|
||||
var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa'));
|
||||
var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text'));
|
||||
var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text'));
|
||||
var FollowersDivTitle = element(by.css('.default-color2 > h3'));
|
||||
var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)'));
|
||||
var FollowersDivGotItButton = element(by.css('.btn-lg'));
|
||||
var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy'));
|
||||
var AboutMeWidget = element(by.css('.ng-scope > #aboutMeFull'));
|
||||
var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil'));
|
||||
var ABoutMeInputArea = element(by.id('inputArea'));
|
||||
var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy'));
|
||||
var RoleModelNameOne = element(by.css('.inner-content-padding > .textSize:nth-child(1)'));
|
||||
var RoleModelNameTwo = element(by.css('.textSize:nth-child(2)'));
|
||||
var EducationWidgetTitle = element(by.css('#education > .jrnys_lead-body-copy'));
|
||||
var EducationStartEndDate = element(by.css('.col-xs-4 > .ng-binding:nth-child(1)'));
|
||||
var EducationSchoolName = element(by.css('.col-xs-8'));
|
||||
|
||||
expect(await ConnectionsLink.getText()).toEqual('CONNECTIONS');
|
||||
await FollowersLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await FollowersDivTitle.getText()).toEqual('This feature is on its way!');
|
||||
expect(await FollowersDivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next.");
|
||||
await FollowersDivGotItButton.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await ProfileWidgetExpandCollapseIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await AboutMeWidgetTitle.getText()).toEqual('About Me');
|
||||
browser.actions().mouseMove(AboutMeWidget).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await AboutMePencil.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await ABoutMeInputArea.sendKeys('This is my automated bio, there are many like it but this one is mine.');
|
||||
await AboutMePencil.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model');
|
||||
expect(await RoleModelNameOne.getText()).toEqual('Elon Musk');
|
||||
expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson');
|
||||
expect(await EducationWidgetTitle.getText()).toEqual('Education');
|
||||
expect(await EducationStartEndDate.getText()).toEqual('06/2005');
|
||||
expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY');
|
||||
await ProfileWidgetExpandCollapseIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
}
|
||||
|
||||
function TopCareerWidget() {
|
||||
it('should edit Top Career', async function () {
|
||||
var WidgetTitle = element(by.css('.full-width > .widget-padding > .jrnys_lead-body-copy'));
|
||||
@@ -312,12 +369,12 @@ function TopCareer() {
|
||||
expect(await PersonalityHeader.getText()).toEqual('Personality');
|
||||
expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.');
|
||||
expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:');
|
||||
expect(await PersonalityBulletOne.getText()).toEqual('Initiative');
|
||||
expect(await PersonalityBulletTwo.getText()).toEqual('Persistence');
|
||||
expect(await PersonalityBulletThree.getText()).toEqual('Achievement/Effort');
|
||||
expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking');
|
||||
expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation');
|
||||
expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail');
|
||||
expect(await PersonalityBulletFour.getText()).toEqual('Independence');
|
||||
expect(await PersonalityBulletFive.getText()).toEqual('Adaptability/Flexibility');
|
||||
expect(await PersonalityBulletSix.getText()).toEqual('Dependability');
|
||||
expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort');
|
||||
expect(await PersonalityBulletSix.getText()).toEqual('Initiative');
|
||||
//Wages
|
||||
expect(await WagesHeader.getText()).toContain('Wages');
|
||||
await WagesInfoIcon.click().then(function() {
|
||||
@@ -490,7 +547,9 @@ function NearbyPlacesOccupationCard() {
|
||||
var OccupatonCardFollow = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-interaction-icon/span/i'));
|
||||
var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]'));
|
||||
var AtAGlanceBackOfCardTitle = element(by.xpath('//territory-card/div/div[2]/div/div'));
|
||||
var AtAGlanceDegree = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/div/div[2]'));
|
||||
var AtAGlanceBackOfCardDescription = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div'));
|
||||
//var AtAGlanceDegree = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/div/div[2]'));
|
||||
//var AtAGlanceDegree = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/table/tbody/tr[1]/td[2]/div'));
|
||||
var AtAGlanceDegreeStat = element(by.xpath('//territory-card-at-a-glance-back/div/div/div/div[2]/div/div/div/div[3]'));
|
||||
var AtAGlanceSalary = element(by.xpath('//div/div[2]/div/div/div[2]/div[2]'));
|
||||
var AtAGlanceSalaryStat = element(by.xpath('//div/div[2]/div/div/div[2]/div[3]'));
|
||||
@@ -531,14 +590,18 @@ function NearbyPlacesOccupationCard() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Software Developers, Applications');
|
||||
expect(await AtAGlanceDegree.getText()).toEqual('Degree Required');
|
||||
expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Develop, create, and modify general computer applications software or specialized utility programs. Analyze user needs and develop software solutions. Design software or customize software for client use with the aim of optimizing operational efficiency. May analyze and design databases within an application area, working individually or coordinating database development as part of a team. May supervise computer programmers.');
|
||||
|
||||
/*expect(await AtAGlanceDegree.getText()).toEqual('Degree Required');
|
||||
|
||||
expect(await AtAGlanceDegreeStat.getText()).toEqual('College (4 Year) - 80%');
|
||||
|
||||
expect(await AtAGlanceSalary.getText()).toEqual('Average Salary');
|
||||
expect(await AtAGlanceSalaryStat.getText()).toEqual('$101,790');
|
||||
expect(await AtAGlanceEmployed.getText()).toEqual('Currently Employed');
|
||||
expect(await AtAGlanceEmployedStat.getText()).toEqual('831,300');
|
||||
expect(await AtAGlanceGrowth.getText()).toEqual('Projected Growth');
|
||||
expect(await AtAGlanceGrowthStat.getText()).toEqual('30.7%');
|
||||
expect(await AtAGlanceGrowthStat.getText()).toEqual('30.7%');*/
|
||||
await AtAGlanceXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
@@ -554,6 +617,7 @@ function NearbyPlacesOccupationCard() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await AtAGlanceBackOfCardTitle.getText()).toEqual('Software Developers, Applications');
|
||||
expect(await AtAGlanceBackOfCardDescription.getText()).toEqual('Develop, create, and modify general computer applications software or specialized utility programs. Analyze user needs and develop software solutions. Design software or customize software for client use with the aim of optimizing operational efficiency. May analyze and design databases within an application area, working individually or coordinating database development as part of a team. May supervise computer programmers.');
|
||||
expect(await AtAGlanceDegree.getText()).toEqual('Degree Required');
|
||||
expect(await AtAGlanceDegreeStat.getText()).toEqual('College (4 Year) - 80%');
|
||||
expect(await AtAGlanceSalary.getText()).toEqual('Average Salary');
|
||||
@@ -669,8 +733,8 @@ function Personality() {
|
||||
var WidgetBulletTwo = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(4) .ng-binding'));
|
||||
var WidgetBulletThree = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(5) .ng-binding'));
|
||||
var WidgetBulletFour = element(by.css('.ng-scope > tbody > .ng-scope:nth-child(6) .ng-binding'));
|
||||
var WidgetBulletFive = element(by.css('.ng-scope:nth-child(7) > td .ng-binding'));
|
||||
var WidgetBulletSix = element(by.css('.ng-scope:nth-child(8) > td .ng-binding'));
|
||||
var WidgetBulletFive = element(by.css('.ng-scope:nth-child(7) > td > div > .ng-binding'));
|
||||
var WidgetBulletSix = element(by.css('.ng-scope:nth-child(8) > td > div > .ng-binding'));
|
||||
var XCloseLink = element(by.css('.close'));
|
||||
|
||||
await PersonatlityLink.click().then(function() {
|
||||
@@ -679,12 +743,12 @@ function Personality() {
|
||||
expect(await WidgetTitle.getText()).toEqual('Personality');
|
||||
expect(await WidgetDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.');
|
||||
expect(await WidgetDescriptionTwo.getText()).toEqual('They do well at jobs that need:');
|
||||
expect(await WidgetBulletOne.getText()).toEqual('Initiative');
|
||||
expect(await WidgetBulletTwo.getText()).toEqual('Persistence');
|
||||
expect(await WidgetBulletThree.getText()).toEqual('Achievement/Effort');
|
||||
expect(await WidgetBulletOne.getText()).toEqual('Analytical Thinking');
|
||||
expect(await WidgetBulletTwo.getText()).toEqual('Cooperation');
|
||||
expect(await WidgetBulletThree.getText()).toEqual('Attention to Detail');
|
||||
expect(await WidgetBulletFour.getText()).toEqual('Independence');
|
||||
expect(await WidgetBulletFive.getText()).toEqual('Adaptability/Flexibility');
|
||||
expect(await WidgetBulletSix.getText()).toEqual('Dependability');
|
||||
expect(await WidgetBulletFive.getText()).toEqual('Achievement/Effort');
|
||||
expect(await WidgetBulletSix.getText()).toEqual('Initiative');
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
@@ -1627,16 +1691,16 @@ function MyRecommendedCareers() {
|
||||
var FollowFirstOccupationCard = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-interaction-icon/span/i'));
|
||||
var FilterIcon = element(by.css('.widgetControlContainer'));
|
||||
var FilterTitle = element(by.css('tr:nth-child(1) > .ng-binding'));
|
||||
var RequiredJobPrepHeader = element(by.css('tbody:nth-child(1) > tr:nth-child(2) > td'));
|
||||
var RequiredJobPrepHeader = element(by.css('#recommendedCareerFilter tr:nth-child(2) > td'));
|
||||
var MayRequireHighSchoolDiplomaOrGED = element(by.css('tr:nth-child(3) .ng-pristine'));
|
||||
var FitHeader = element(by.css('tr:nth-child(9) > td'));
|
||||
var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(9) > td'));
|
||||
var Best = element(by.css('.ng-scope:nth-child(10) > td > input'));
|
||||
var Good = element(by.css('.ng-scope:nth-child(12) > td > input'));
|
||||
var ShowResultsByHeader = element(by.css('tr:nth-child(13) > td'));
|
||||
var ShowResultsByHeader = element(by.css('#recommendedCareerFilter tr:nth-child(13) > td'));
|
||||
var BrightOutlook = element(by.css('tr:nth-child(14) .ng-pristine'));
|
||||
var Following = element(by.css('tr:nth-child(17) .ng-pristine'));
|
||||
var MyFavorites = element(by.css('tr:nth-child(18) .ng-pristine'));
|
||||
var SortHeader = element(by.css('tr:nth-child(20) > td'));
|
||||
var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(20) > td'));
|
||||
var ZtoA = element(by.css('tr:nth-child(22) .ng-pristine'));
|
||||
var FilterButton = element(by.css('td > .btn-info'));
|
||||
var NoResultsFoundAppliedFilters = element(by.css('.col-md-10'));
|
||||
@@ -1736,8 +1800,9 @@ function FollowingPage() {
|
||||
expect(await FollowingTab.getText()).toEqual('Following');
|
||||
await UnFollowOccupationCard.click();
|
||||
browser.sleep(2500);
|
||||
await DashboardHeaderLink.click();
|
||||
browser.sleep(10000);
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
browser.sleep(10000);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
@@ -2001,7 +2066,7 @@ function InterestSurveyResults() {
|
||||
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
browser.sleep(10000);
|
||||
//browser.sleep(10000);
|
||||
browser.wait(EC.elementToBeClickable(by.css('.fa-share-alt')), 10000);
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
@@ -2015,51 +2080,83 @@ function InterestSurveyResultsClusters() {
|
||||
it('should verify the Interest Survey Clusters widget and jump to learn more page', async function () {
|
||||
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
|
||||
var WidgetDescription = element(by.css('.row > span:nth-child(2)'));
|
||||
var SelectedButton = element(by.css('.row:nth-child(1) > .col-md-4:nth-child(1) .btn:nth-child(1)'));
|
||||
var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]'));
|
||||
var SelectButton = element(by.xpath('//territory-card-action-bar/div/button'));
|
||||
var PathwaysLink = element(by.linkText('Pathways'));
|
||||
var ClustersLink = element(by.linkText('Clusters'));
|
||||
var BestMatch = element(by.css('tr:nth-child(4) > td'));
|
||||
var InfoIcon = element(by.css('tr:nth-child(1) > td > i'));
|
||||
var DegreeRequiredHeader = element(by.css('tr:nth-child(2) > td.ng-binding'));
|
||||
var AverageSalaryHeader = element(by.css('tr:nth-child(3) > td.ng-binding'));
|
||||
var CurrentlyEmployedHeader = element(by.css('tr:nth-child(4) > td.ng-binding'));
|
||||
var ProjectedGrowthHeader = element(by.css('tr:nth-child(5) > td.ng-binding'));
|
||||
var LearnMoreButton = element(by.css('tr:nth-child(3) > td > div:nth-child(2) > div > button'));
|
||||
var BestMatchIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]'));
|
||||
var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]'));
|
||||
var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span'));
|
||||
var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i'));
|
||||
var LearnMoreButton = element(by.xpath('//div/div/div/div[2]/div[2]'));
|
||||
var EC = protractor.ExpectedConditions;
|
||||
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
|
||||
|
||||
/*REMOVE
|
||||
var ViewResultsLink = element(by.linkText('View Results'));
|
||||
browser.actions().mouseMove(element(by.linkText('View Results'))).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});*/
|
||||
|
||||
await ViewResultsLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
||||
await SelectedButton.click();
|
||||
browser.sleep(2500);
|
||||
browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await SelectButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
|
||||
await SelectedButton.click();
|
||||
browser.sleep(2500);
|
||||
browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await SelectButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select an occupation below.');
|
||||
await PathwaysLink.click();
|
||||
browser.sleep(2500);
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
|
||||
await PathwaysLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
|
||||
await ClustersLink.click();
|
||||
browser.sleep(2500);
|
||||
await ClustersLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
||||
await SelectedButton.click();
|
||||
browser.sleep(2500);
|
||||
await SelectedButton.click();
|
||||
browser.sleep(2500);
|
||||
expect(await BestMatch.getText()).toEqual('Best Match');
|
||||
await InfoIcon.click();
|
||||
browser.sleep(2500);
|
||||
expect(DegreeRequiredHeader.getText()).toContain('Degree Required');
|
||||
expect(AverageSalaryHeader.getText()).toContain('Average Annual Salary');
|
||||
expect(CurrentlyEmployedHeader.getText()).toContain('Currently Employed');
|
||||
expect(ProjectedGrowthHeader.getText()).toContain('Projected Growth');
|
||||
await InfoIcon.click();
|
||||
browser.sleep(2500);
|
||||
await LearnMoreButton.click();
|
||||
browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await SelectButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await SelectButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await BestMatchIcon.getText()).toContain('Best Fit');
|
||||
await AtAGlanceIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await AtAGlanceBackOfCardXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await OccupationCardEllipsis.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await LearnMoreButton.click().then(function() {
|
||||
browser.sleep(20000);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.wait(EC.elementToBeClickable(JourneymanIcon));
|
||||
browser.waitForAngular();
|
||||
@@ -2150,7 +2247,7 @@ function MyJourneysPage() {
|
||||
var EC = protractor.ExpectedConditions;
|
||||
|
||||
await MyJourneysHeaderLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(5000);
|
||||
});
|
||||
await expect(PageTitle.getText()).toEqual('My Saved Journeys');
|
||||
expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map');
|
||||
@@ -2304,7 +2401,7 @@ function MapInteraction() {
|
||||
browser.sleep(30000);
|
||||
await MilitaryPath.click();
|
||||
browser.sleep(2500);
|
||||
expect(await MilitaryPath.getText()).toEqual('Marine Science Technician > STEM >');
|
||||
expect(await MilitaryPath.getText()).toEqual('Calibration Technician > STEM >');
|
||||
expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts');
|
||||
expect(await MilitaryDescription.getText()).toEqual('No details for this location.');
|
||||
await CTETabLlink.click();
|
||||
@@ -2383,6 +2480,7 @@ function MapInteraction() {
|
||||
|
||||
function SurveyMetrics() {
|
||||
it('should navigate to My Activity Dashboard and interact with Survey Metrics widget', async function () {
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||
var MyDashboardLink = element(by.linkText('My Dashboards'));
|
||||
var MyActivityLink = element(by.linkText('My Activity'));
|
||||
var SurveyMetricsTitle = element(by.css('.widget-round-corners:nth-child(2) .fullHeight > .jrnys_lead-body-copy'));
|
||||
@@ -2417,6 +2515,9 @@ function SurveyMetrics() {
|
||||
var SurveyResultsDivConventionalReadMore = element(by.css('.text-center:nth-child(6) > .text-color-7a'));
|
||||
var SurveyResultsReadMoreXCloseLink = element(by.css('.close > .fa'));
|
||||
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
browser.sleep(10000);
|
||||
});
|
||||
browser.actions().mouseMove(element(by.css('.dashTitleBlock > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
@@ -2502,7 +2603,7 @@ function SurveyMetrics() {
|
||||
}
|
||||
|
||||
function InstitutionMetrics() {
|
||||
it('should navigate to portfolio', async function () {
|
||||
it('should validate Institution Metrics widget stats', async function () {
|
||||
var InstitutionMetricsWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .widget-padding > .jrnys_lead-body-copy'));
|
||||
var InstitutionsOfInterestTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(1) > .td-metrics-data-width:nth-child(2) .jrnys_body-copy'));
|
||||
var InstitutionsOfInterestStat = element(by.css('.fullHeight:nth-child(1) > .widget-padding .td-metrics-data-width:nth-child(2) .jrnys_stand-out-text'));
|
||||
@@ -2551,7 +2652,7 @@ function InstitutionMetrics() {
|
||||
}
|
||||
|
||||
function InstitutionsOfInterest() {
|
||||
it('should navigate to portfolio', async function () {
|
||||
it('should verify Institutions Of Interest widget', 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'));
|
||||
@@ -2597,15 +2698,15 @@ function InstitutionsOfInterest() {
|
||||
browser.sleep(2500);
|
||||
})
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
var secondWindowHandle = handles[1];
|
||||
var firstWindowHandle = handles[0];
|
||||
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.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');
|
||||
@@ -2619,7 +2720,7 @@ function InstitutionsOfInterest() {
|
||||
});
|
||||
browser.driver.close();
|
||||
});
|
||||
browser.switchTo().window(firstWindowHandle).then(async function () {
|
||||
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');
|
||||
@@ -2631,7 +2732,7 @@ function InstitutionsOfInterest() {
|
||||
}
|
||||
|
||||
function OccupationMetrics() {
|
||||
it('should navigate to portfolio', async function () {
|
||||
it('should validate Occupation Metrics widget stats', 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'));
|
||||
@@ -2655,7 +2756,7 @@ function OccupationMetrics() {
|
||||
});
|
||||
expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics');
|
||||
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest');
|
||||
expect(await OccupationsOfInterestStat.getText()).toContain('74');
|
||||
expect(await OccupationsOfInterestStat.getText()).toContain('73');
|
||||
expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary');
|
||||
expect(await AverageAnnualSalaryStat.getText()).toContain('$66,681');
|
||||
expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings');
|
||||
@@ -2675,16 +2776,86 @@ function OccupationMetrics() {
|
||||
});
|
||||
}
|
||||
|
||||
function OccupationsOfInterest() {
|
||||
it('should verify Occupations Of Interest widget', async function () {
|
||||
var OccupationsOfInterestWidgetTitle = element(by.css('#occupationVisitedId .jrnys_lead-body-copy'));
|
||||
var AtAGlanceHeaderRowIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]'));
|
||||
var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//territory-card/div/div[2]/div/div[2]/span'));
|
||||
var OccupationsOfInterestViewAllLink = element(by.css('#occupationVisitedId .text-color-7a'));
|
||||
var OccupationsOfInterestTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
||||
var OccupationsOfInterestFirstCard = element(by.id('territoryCardMobileTitle'));
|
||||
var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a'));
|
||||
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await OccupationsOfInterestWidgetTitle.getText()).toEqual('Occupations Of Interest View All');
|
||||
await AtAGlanceHeaderRowIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await AtAGlanceBackOfCardXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await OccupationsOfInterestViewAllLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations visited by Automated Regression');
|
||||
expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Computer Systems Analysts');
|
||||
await OccupationsOfInterestFirstCard.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
await OccupationsOfInterestXCloseLink.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 AccountProfile() {
|
||||
it('should navigate to Account Profile', async function () {
|
||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
||||
var ProfileLink = element(by.linkText('Profile'));
|
||||
var PageTitle = element(by.css('.view-title'));
|
||||
var UserName = element(by.css('.only-bottom-margin'));
|
||||
var Email = element(by.css('.col-md-8'));
|
||||
var Birthday = element(by.css('.col-md-8'));
|
||||
var ActiveRole = element(by.css('.col-md-8'));
|
||||
var ZipCode = element(by.css('.col-md-8'));
|
||||
var EmailHandle = element(by.css('.col-md-8 > .text-muted:nth-child(1)'));
|
||||
var BirthdayHandle = element(by.css('.text-muted:nth-child(3)'));
|
||||
var ActiveRoleHandle = element(by.css('.text-muted:nth-child(5)'));
|
||||
var ZipCodeHandle = element(by.css('.text-muted:nth-child(7)'));
|
||||
var UserInfo = element(by.css('.col-md-8'));
|
||||
var EditAccount = element(by.css('.btn:nth-child(12)'));
|
||||
var EditPageTitle = element(by.css('.view-title'));
|
||||
var FirstNameTextBox = element(by.xpath('//input[@name="first"]'));
|
||||
@@ -2725,10 +2896,13 @@ function AccountProfile() {
|
||||
});
|
||||
expect(await PageTitle.getText()).toEqual('Account Information');
|
||||
expect(await UserName.getText()).toEqual('Automated Regression');
|
||||
expect(await Email.getText()).toContain('Email: jhuerta@edmin.com');
|
||||
expect(await Birthday.getText()).toContain('Birthday: 2000-02-15');
|
||||
expect(await ActiveRole.getText()).toContain('Active Role: Student');
|
||||
expect(await ZipCode.getText()).toContain('ZIP Code: 92123');
|
||||
expect(await EmailHandle.getText()).toEqual('Email:');
|
||||
expect(await UserInfo.getText()).toContain('jhuerta@edmin.com');
|
||||
expect(await BirthdayHandle.getText()).toEqual('Birthday:');
|
||||
expect(await UserInfo.getText()).toContain('2000-02-15');
|
||||
expect(await ActiveRoleHandle.getText()).toEqual('Active Role:');
|
||||
expect(await ZipCodeHandle.getText()).toEqual('ZIP Code:');
|
||||
expect(await UserInfo.getText()).toContain('92123');
|
||||
await EditAccount.click();
|
||||
browser.sleep(1000);
|
||||
expect(await EditPageTitle.getText()).toEqual('Edit Account Information');
|
||||
|
||||
Reference in New Issue
Block a user