Added Following Page & cleaned up Map Search
This commit is contained in:
@@ -24,6 +24,7 @@ describe('Journeysmap script', function () {
|
|||||||
function SignIn(UserNameTextBox, PasswordTextBox, SignInButton) {
|
function SignIn(UserNameTextBox, PasswordTextBox, SignInButton) {
|
||||||
it('should sign into journeys', async function () {
|
it('should sign into journeys', async function () {
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
var JourneysGreeting = element(by.css('.dropdown'));
|
||||||
|
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||||
|
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression');
|
await UserNameTextBox.sendKeys('QA_AutomatedRegression');
|
||||||
await PasswordTextBox.sendKeys('3Dm1nAuto');
|
await PasswordTextBox.sendKeys('3Dm1nAuto');
|
||||||
@@ -31,9 +32,12 @@ describe('Journeysmap script', function () {
|
|||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
browser.getCurrentUrl();
|
browser.getCurrentUrl();
|
||||||
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||||
browser.refresh();//Role Model doesn't always load properly
|
await DashboardHeaderLink.click().then(function() {
|
||||||
/*browser.driver.navigate().refresh();
|
browser.sleep(5000);
|
||||||
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');*/
|
});
|
||||||
|
//browser.refresh();//Role Model doesn't always load properly EDM-1603
|
||||||
|
//browser.driver.navigate().refresh();
|
||||||
|
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
browser.getCurrentUrl();
|
browser.getCurrentUrl();
|
||||||
});
|
});
|
||||||
@@ -70,6 +74,9 @@ describe('Journeysmap script', function () {
|
|||||||
//My Recommended Careers
|
//My Recommended Careers
|
||||||
MyRecommendedCareers();
|
MyRecommendedCareers();
|
||||||
|
|
||||||
|
//Following Page
|
||||||
|
FollowingPage();
|
||||||
|
|
||||||
//My Journeys
|
//My Journeys
|
||||||
MyJourneys();
|
MyJourneys();
|
||||||
|
|
||||||
@@ -157,7 +164,7 @@ function TopCareer() {
|
|||||||
var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding'));
|
var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding'));
|
||||||
var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
||||||
var XCloseLink = element(by.css('.close'));
|
var XCloseLink = element(by.css('.close'));
|
||||||
var VideoIcon = element(by.css('.text-right .socialImgIcon .far'));
|
var VideoIcon = element(by.css('.text-right .far'));
|
||||||
var FollowIcon = element(by.css('.text-right .journey-follow:nth-child(2)'));
|
var FollowIcon = element(by.css('.text-right .journey-follow:nth-child(2)'));
|
||||||
var FavoriteIcon = element(by.css('.text-right .journey-favorite:nth-child(3)'));
|
var FavoriteIcon = element(by.css('.text-right .journey-favorite:nth-child(3)'));
|
||||||
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
|
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
|
||||||
@@ -240,11 +247,13 @@ function TopCareer() {
|
|||||||
var WorkActivitiesHeader = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
var WorkActivitiesHeader = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
||||||
var AbilityHeader = element(by.css('#abilitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
var AbilityHeader = element(by.css('#abilitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
||||||
var NearbyPlacesHeader = element(by.css('#nearByid > .jrnys_lead-body-copy'));
|
var NearbyPlacesHeader = element(by.css('#nearByid > .jrnys_lead-body-copy'));
|
||||||
var NearbyPlacesRightScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-right'));
|
var NearbyPlacesRightScroll = element(by.css('#nearByid .right > .glyphicon'));
|
||||||
var NearbyPlacesLeftScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-left'));
|
var NearbyPlacesLeftScroll = element(by.css('#nearByid .left > .glyphicon'));
|
||||||
|
//var NearbyPlacesRightScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-right'));
|
||||||
|
//var NearbyPlacesLeftScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-left'));
|
||||||
|
|
||||||
await TopCareerLink.click().then(function() {
|
await TopCareerLink.click().then(function() {
|
||||||
browser.sleep(20000);
|
browser.sleep(15000);
|
||||||
});
|
});
|
||||||
//Description
|
//Description
|
||||||
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
|
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
|
||||||
@@ -551,7 +560,7 @@ function OccupationCard() {
|
|||||||
});
|
});
|
||||||
expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications');
|
expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications');
|
||||||
await OccupationCardLearnMoreIcon.click().then(function() {
|
await OccupationCardLearnMoreIcon.click().then(function() {
|
||||||
browser.sleep(20000);
|
browser.sleep(15000);
|
||||||
});
|
});
|
||||||
expect(await LearnMoreTitle.getText()).toEqual('Software Developers, Applications');
|
expect(await LearnMoreTitle.getText()).toEqual('Software Developers, Applications');
|
||||||
browser.navigate().back().then(function() {
|
browser.navigate().back().then(function() {
|
||||||
@@ -561,7 +570,7 @@ function OccupationCard() {
|
|||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
await OccupationCardMapIcon.click().then(function() {
|
await OccupationCardMapIcon.click().then(function() {
|
||||||
browser.sleep(20000);
|
browser.sleep(15000);
|
||||||
});
|
});
|
||||||
expect(await ObjectPath.getText()).toEqual('IT > Network Systems >');
|
expect(await ObjectPath.getText()).toEqual('IT > Network Systems >');
|
||||||
expect(await ObjectTitle.getText()).toEqual('Software Developers, Applications');
|
expect(await ObjectTitle.getText()).toEqual('Software Developers, Applications');
|
||||||
@@ -573,7 +582,7 @@ function OccupationCard() {
|
|||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
await OccupationCardJourneymanIcon.click().then(function() {
|
await OccupationCardJourneymanIcon.click().then(function() {
|
||||||
browser.sleep(20000);
|
browser.sleep(15000);
|
||||||
});
|
});
|
||||||
expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey');
|
expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey');
|
||||||
browser.navigate().back().then(function() {
|
browser.navigate().back().then(function() {
|
||||||
@@ -590,7 +599,7 @@ function OccupationCard() {
|
|||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
await DashboardHeaderLink.click().then(function() {
|
await DashboardHeaderLink.click().then(function() {
|
||||||
browser.sleep(20000);
|
browser.sleep(15000);
|
||||||
});
|
});
|
||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
browser.getCurrentUrl();
|
browser.getCurrentUrl();
|
||||||
@@ -1351,47 +1360,47 @@ function WorkActivities() {
|
|||||||
var WorkActivitiesTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)'));
|
||||||
var WorkActivitiesTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataThree = element(by.css('.ng-scope:nth-child(3) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center'));
|
||||||
var WorkActivitiesTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a'));
|
||||||
var WorkActivitiesTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center'));
|
||||||
var WorkActivitiesTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center'));
|
||||||
var WorkActivitiesTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataSeven = element(by.css('.ng-scope:nth-child(7) > .text-center'));
|
||||||
var WorkActivitiesTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataEight = element(by.css('.ng-scope:nth-child(8) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataEight = element(by.css('.ng-scope:nth-child(8) > .text-center'));
|
||||||
var WorkActivitiesTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataNine = element(by.css('.ng-scope:nth-child(9) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataNine = element(by.css('.ng-scope:nth-child(9) > .text-center'));
|
||||||
var WorkActivitiesTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTen = element(by.css('.ng-scope:nth-child(10) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTen = element(by.css('.ng-scope:nth-child(10) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTen = element(by.css('.ng-scope:nth-child(10) > .text-center'));
|
||||||
var WorkActivitiesTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleEleven = element(by.css('.ng-scope:nth-child(11) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataEleven = element(by.css('.ng-scope:nth-child(11) > .text-center'));
|
||||||
var WorkActivitiesTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTwelve = element(by.css('.ng-scope:nth-child(12) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTwelve = element(by.css('.ng-scope:nth-child(12) > .text-center'));
|
||||||
var WorkActivitiesTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleThirteen = element(by.css('.ng-scope:nth-child(13) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataThirteen = element(by.css('.ng-scope:nth-child(13) > .text-center'));
|
||||||
var WorkActivitiesTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleFourteen = element(by.css('.ng-scope:nth-child(14) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataFourteen = element(by.css('.ng-scope:nth-child(14) > .text-center'));
|
||||||
var WorkActivitiesTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleFifteen = element(by.css('.ng-scope:nth-child(15) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataFifteen = element(by.css('.ng-scope:nth-child(15) > .text-center'));
|
||||||
var WorkActivitiesTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleSixteen = element(by.css('.ng-scope:nth-child(16) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataSixteen = element(by.css('.ng-scope:nth-child(16) > .text-center'));
|
||||||
var WorkActivitiesTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleSeventeen = element(by.css('.ng-scope:nth-child(17) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataSeventeen = element(by.css('.ng-scope:nth-child(17) > .text-center'));
|
||||||
var WorkActivitiesTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleEighteen = element(by.css('.ng-scope:nth-child(18) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataEighteen = element(by.css('.ng-scope:nth-child(18) > .text-center'));
|
||||||
var WorkActivitiesTitleNineteen = element(by.css('.ng-scope:nth-child(19) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleNineteen = element(by.css('.ng-scope:nth-child(19) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataNineteen = element(by.css('.ng-scope:nth-child(19) > .text-center'));
|
||||||
var WorkActivitiesTitleTwenty = element(by.css('.ng-scope:nth-child(20) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTwenty = element(by.css('.ng-scope:nth-child(20) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTwenty = element(by.css('.ng-scope:nth-child(20) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTwenty = element(by.css('.ng-scope:nth-child(20) > .text-center'));
|
||||||
var WorkActivitiesTitleTwentyOne = element(by.css('.ng-scope:nth-child(21) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTwentyOne = element(by.css('.ng-scope:nth-child(21) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTwentyOne = element(by.css('.ng-scope:nth-child(21) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTwentyOne = element(by.css('.ng-scope:nth-child(21) > .text-center'));
|
||||||
var WorkActivitiesTitleTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTwentyTwo = element(by.css('.ng-scope:nth-child(22) > .text-center'));
|
||||||
var WorkActivitiesTitleTwentyThree = element(by.css('.ng-scope:nth-child(23) > .ng-binding:nth-child(1)'));
|
var WorkActivitiesTitleTwentyThree = element(by.css('.ng-scope:nth-child(23) > .ng-binding:nth-child(1)'));
|
||||||
var WorkActivitiesDataTwentyThree = element(by.css('.ng-scope:nth-child(23) > .text-color-7a:nth-child(2)'));
|
var WorkActivitiesDataTwentyThree = element(by.css('.ng-scope:nth-child(23) > .text-center'));
|
||||||
var XCloseLink = element(by.css('.close'));
|
var XCloseLink = element(by.css('.close'));
|
||||||
|
|
||||||
await WorkActivitiesLink.click().then(function() {
|
await WorkActivitiesLink.click().then(function() {
|
||||||
@@ -1455,14 +1464,14 @@ function WorkActivities() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Ability() {
|
function Ability() {
|
||||||
it('should click Work Activities link', async function () {
|
it('should click Ability link', async function () {
|
||||||
var AbilityLink = element(by.css('td:nth-child(6) > .text-color-7a'));
|
var AbilityLink = element(by.css('td:nth-child(6) > .text-color-7a'));
|
||||||
var WidgetTitle = element(by.css('h6 > .ng-binding'));
|
var WidgetTitle = element(by.css('h6 > .ng-binding'));
|
||||||
var ImportanceHeader = element(by.css('.text-right > .text-color-7a'));
|
var ImportanceHeader = element(by.css('.text-right > .text-color-7a'));
|
||||||
var AbilityTitleOne = element(by.css('tbody > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
var AbilityTitleOne = element(by.css('tbody > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
||||||
var AbilityDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a'));
|
var AbilityDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a'));
|
||||||
var AbilityTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
var AbilityTitleTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||||
var AbilityDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center'));
|
var AbilityDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-color-7a:nth-child(2)'));
|
||||||
var AbilityTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
var AbilityTitleThree = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
||||||
var AbilityDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center'));
|
var AbilityDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center'));
|
||||||
var AbilityTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
var AbilityTitleFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
||||||
@@ -1608,12 +1617,7 @@ function MyRecommendedCareers() {
|
|||||||
var CarrouselRightScroll = element(by.xpath('//div[3]/table/tbody/tr/td/div/div/a[2]/span'));
|
var CarrouselRightScroll = element(by.xpath('//div[3]/table/tbody/tr/td/div/div/a[2]/span'));
|
||||||
var ViewMoreLink = element(by.linkText('View More'));
|
var ViewMoreLink = element(by.linkText('View More'));
|
||||||
var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
|
var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
|
||||||
var InfoIcon = element(by.css('.ng-scope:nth-child(1) > .col-md-3 > .panel > div:nth-child(1) .fa'));
|
var FollowFirstOccupationCard = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-interaction-icon/span/i'));
|
||||||
var DegreeRequiredHeader = element(by.css('.ng-scope:nth-child(1) > .col-md-3 .detail-row:nth-child(2) > td:nth-child(2)'));
|
|
||||||
var AverageSalaryHeader = element(by.css('.ng-scope:nth-child(1) > .col-md-3 .detail-row:nth-child(3) > td:nth-child(2)'));
|
|
||||||
var CurrentlyEmployedHeader = element(by.css('.ng-scope:nth-child(1) > .col-md-3 .detail-row:nth-child(4) > td:nth-child(2)'));
|
|
||||||
var ProjectedGrowthHeader = element(by.css('.ng-scope:nth-child(1) > .col-md-3 .detail-row:nth-child(5) > td:nth-child(2)'));
|
|
||||||
var BackOfCardInfoIcon = element(by.css('.ng-scope:nth-child(1) > .col-md-3 .card-detail tr:nth-child(1) .fa'));
|
|
||||||
var FilterIcon = element(by.css('.widgetControlContainer'));
|
var FilterIcon = element(by.css('.widgetControlContainer'));
|
||||||
var FilterTitle = element(by.css('tr:nth-child(1) > .ng-binding'));
|
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('tbody:nth-child(1) > tr:nth-child(2) > td'));
|
||||||
@@ -1651,14 +1655,8 @@ function MyRecommendedCareers() {
|
|||||||
await ViewMoreLink.click();
|
await ViewMoreLink.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
expect(await PageTitle.getText()).toEqual('My Recommended Careers');
|
expect(await PageTitle.getText()).toEqual('My Recommended Careers');
|
||||||
/*await InfoIcon.click();
|
await FollowFirstOccupationCard.click();
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
expect(await DegreeRequiredHeader.getText()).toContain('Degree Required');
|
|
||||||
expect(await AverageSalaryHeader.getText()).toContain('Average Salary');
|
|
||||||
expect(await CurrentlyEmployedHeader.getText()).toContain('Currently Employed');
|
|
||||||
expect(await ProjectedGrowthHeader.getText()).toContain('Projected Growth');
|
|
||||||
await BackOfCardInfoIcon.click();
|
|
||||||
browser.sleep(1000);*/
|
|
||||||
await FilterIcon.click();
|
await FilterIcon.click();
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
expect(await FilterTitle.getText()).toEqual('Filter');
|
expect(await FilterTitle.getText()).toEqual('Filter');
|
||||||
@@ -1698,6 +1696,46 @@ function MyRecommendedCareers() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function FollowingPage() {
|
||||||
|
it('should click Following link and un-follow Occupation card', async function () {
|
||||||
|
var FollowingLink = element(by.css('.col-lg-4:nth-child(3) .jrnys_stand-out-text'));
|
||||||
|
var ConnectionsTab = element(by.css('.col-md-4 > .row-follow-type > .col-xs-4:nth-child(1)'));
|
||||||
|
var DivTitle = element(by.css('.default-color2 > h3'));
|
||||||
|
var DivSubText = element(by.css('.col-lg-12:nth-child(1)'));
|
||||||
|
var DivGotItButton = element(by.css('.row > .btn'));
|
||||||
|
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 FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected'));
|
||||||
|
var UnFollowOccupationCard = element(by.css('.ng-scope:nth-child(1) > span:nth-child(1) .journey-follow-selected:nth-child(2)'));
|
||||||
|
var BackLink = element(by.css('.btn-primary-back-mod'));
|
||||||
|
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||||
|
|
||||||
|
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
||||||
|
browser.sleep(1000);
|
||||||
|
});
|
||||||
|
await FollowingLink.click().then(function() {
|
||||||
|
browser.sleep(5000);
|
||||||
|
});
|
||||||
|
await ConnectionsTab.click();
|
||||||
|
browser.sleep(1000);
|
||||||
|
expect(await DivTitle.getText()).toEqual('This feature is on its way!');
|
||||||
|
expect(await DivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next.");
|
||||||
|
await DivGotItButton.click();
|
||||||
|
browser.sleep(1000);
|
||||||
|
await FollowersTab.click();
|
||||||
|
browser.sleep(1000);
|
||||||
|
await DivCloseLlink.click();
|
||||||
|
browser.sleep(1000);
|
||||||
|
expect(await FollowingTab.getText()).toEqual('Following');
|
||||||
|
await UnFollowOccupationCard.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
await DashboardHeaderLink.click();
|
||||||
|
browser.sleep(10000);
|
||||||
|
browser.waitForAngular();
|
||||||
|
browser.getCurrentUrl();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function MyJourneys() {
|
function MyJourneys() {
|
||||||
it('should jump to latest created journey learn more page', async function () {
|
it('should jump to latest created journey learn more page', async function () {
|
||||||
var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'));
|
var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'));
|
||||||
@@ -1955,8 +1993,9 @@ function InterestSurveyResults() {
|
|||||||
var EC = protractor.ExpectedConditions;
|
var EC = protractor.ExpectedConditions;
|
||||||
|
|
||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
browser.sleep(5000);
|
browser.sleep(10000);
|
||||||
browser.wait(EC.elementToBeClickable(by.css('.fa-share-alt')), 5000);
|
browser.wait(EC.elementToBeClickable(by.css('.fa-share-alt')), 10000);
|
||||||
|
browser.waitForAngular();
|
||||||
});
|
});
|
||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
browser.getCurrentUrl();
|
browser.getCurrentUrl();
|
||||||
@@ -2135,26 +2174,12 @@ function MyJourneysPage() {
|
|||||||
function MapInteraction() {
|
function MapInteraction() {
|
||||||
it('should navigate to map and iteract with it', async function () {
|
it('should navigate to map and iteract with it', async function () {
|
||||||
var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover'));
|
var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover'));
|
||||||
var HideJourneyButton = element(by.css('#persistJourneyButton > .ng-binding'));
|
|
||||||
var CollapseIcon = element(by.css('div > .fa-angle-left'));
|
|
||||||
var ExpandIcon = element(by.css('div:nth-child(2) > .back-btn-mod'));
|
|
||||||
var CollegeTabLink = element(by.xpath('//md-tab-item[2]/span'));
|
|
||||||
var CertificationTabLink = element(by.xpath('//md-tab-item[3]/span'));
|
|
||||||
var K12TabLink = element(by.xpath('//md-tab-item[4]/span'));
|
|
||||||
var MilitaryTabLink = element(by.xpath('//md-tab-item[5]/span'));
|
|
||||||
var CTETabLlink = element(by.xpath('//md-tab-item[6]/span'));
|
|
||||||
var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon'));
|
|
||||||
var CareerTabLink = element(by.xpath('//md-tab-item[1]/span'));
|
|
||||||
var MapSearchTextBox = element(by.css('#searchBox'));
|
var MapSearchTextBox = element(by.css('#searchBox'));
|
||||||
var MapSearchIcon = element(by.css('.glyphicon-search'));
|
var MapSearchIcon = element(by.css('.glyphicon-search'));
|
||||||
var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text'));
|
var SearchCareerOne = element(by.css('#searchitem0 .side-bar-child-text'));
|
||||||
var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)'));
|
var ItemPath = element(by.css('#searchitem0 .ng-scope > div > .side-bar-ancestory-txt'));
|
||||||
var ObjectTitle = element(by.css('.side-bar-child-text:nth-child(2)'));
|
var ItemTitle = element(by.css('#searchitem0 .side-bar-child-text'));
|
||||||
var ItemDescription = element(by.css('.sidebarDescription'));
|
var ItemDescription = element(by.css('.sidebarDescription'));
|
||||||
var ItemReadMoreLink = element(by.css('.sidebarLinkTxt'));
|
|
||||||
var ItemTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
|
||||||
var ItemDescriptionReadMore = element(by.css('.col-lg-12:nth-child(3)'));
|
|
||||||
var ItemDetailCloseLink = element(by.css('.fa-times'));
|
|
||||||
var ItemDegreeHeader = element(by.css('.ng-scope > .panel-heading'));
|
var ItemDegreeHeader = element(by.css('.ng-scope > .panel-heading'));
|
||||||
var ItemDegree = element(by.css('.panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
var ItemDegree = element(by.css('.panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
||||||
var ItemDegreeOneStat = element(by.css('.ng-scope > .panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(2)'));
|
var ItemDegreeOneStat = element(by.css('.ng-scope > .panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(2)'));
|
||||||
@@ -2172,28 +2197,124 @@ function MapInteraction() {
|
|||||||
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'));
|
||||||
var ItemEmployedStat = element(by.css('.ng-scope:nth-child(5) .panel-body > .ng-binding'));
|
var ItemEmployedStat = element(by.css('.ng-scope:nth-child(5) .panel-body > .ng-binding'));
|
||||||
var ItemViewOnMapIcon = element(by.css('#searchitem3 .fas'));
|
var SearchCareerOneViewOnMapIcon = element(by.css('#searchitem0 .fas'));
|
||||||
|
var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)'));
|
||||||
|
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 SearchCareerOne = element(by.css('#searchitem0 .side-bar-child-text'));
|
var CollegeTabLink = element(by.css('#tab-item-7 > .ng-binding'));
|
||||||
var ItemViewOnMapIconTwo = element(by.css('#searchitem0 .fas'));
|
var CollegePath = element(by.css('#tab-content-7 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt'));
|
||||||
var MapSearchClearIcon = element(by.css('.glyphicon-remove'));
|
var CollegeTitle = element(by.css('#tab-content-7 #searchitem0 .side-bar-child-text:nth-child(2)'));
|
||||||
|
var CollegeDescription = element(by.css('#tab-content-7 #searchitem0 .sidebarDescription'));
|
||||||
|
var CertificationTabLink = element(by.css('#tab-item-8 > .ng-binding'));
|
||||||
|
var CertificationPath = element(by.css('#tab-content-8 #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 CertificationDescription = element(by.css('#tab-content-8 #searchitem0 .sidebarDescription'));
|
||||||
|
var K12TabLink = element(by.css('#tab-item-9 > .ng-binding'));
|
||||||
|
var K12Path = element(by.css('#tab-content-9 #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 K12Description = element(by.css('#tab-content-9 #searchitem0 .sidebarDescription'));
|
||||||
|
var MilitaryTabLink = element(by.css('#tab-item-10 > .ng-binding'));
|
||||||
|
var MilitaryPath = element(by.css('#tab-content-10 #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 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 CTETabLlink = element(by.css('#tab-item-11 > .ng-binding'));
|
||||||
|
var CTEPath = element(by.css('#tab-content-11 #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 CTEDescription = element(by.css('#tab-content-11 #searchitem0 .sidebarDescription'));
|
||||||
|
var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon'));
|
||||||
|
var CareerTabLink = element(by.css('#tab-item-6 > .ng-binding'));
|
||||||
|
var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text'));
|
||||||
|
var ItemReadMoreLink = element(by.css('.sidebarLinkTxt'));
|
||||||
|
var ItemTitleReadMore = element(by.css('.col-lg-12 > .ng-binding'));
|
||||||
|
var ItemDescriptionReadMore = element(by.css('.col-lg-12:nth-child(3)'));
|
||||||
|
var ItemDetailCloseLink = element(by.css('.fa-times'));
|
||||||
|
var SearchCareerFourViewOnMapIcon = element(by.css('#searchitem3 .fas'));
|
||||||
|
var CollapseIcon = element(by.css('div > .fa-angle-left'));
|
||||||
var MapZoomOutIcon = element(by.css('.glyphicon-minus'));
|
var MapZoomOutIcon = element(by.css('.glyphicon-minus'));
|
||||||
|
var HideJourneyButton = element(by.css('#persistJourneyButton > .ng-binding'));
|
||||||
var MapZoomInIcon = element(by.css('.glyphicon-plus'));
|
var MapZoomInIcon = element(by.css('.glyphicon-plus'));
|
||||||
|
var ExpandIcon = element(by.css('div:nth-child(2) > .back-btn-mod'));
|
||||||
var CollegeObjectTitle = element(by.css('#journeyitem0 .side-bar-child-text'));
|
var MapSearchClearIcon = element(by.css('.glyphicon-remove'));
|
||||||
|
|
||||||
MapHeaderLink.click().then(function() {
|
MapHeaderLink.click().then(function() {
|
||||||
browser.sleep(5000);
|
browser.sleep(5000);
|
||||||
});
|
});
|
||||||
await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst');
|
await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst');
|
||||||
await MapSearchIcon.click();
|
await MapSearchIcon.click();
|
||||||
browser.sleep(20000);
|
browser.sleep(20000);
|
||||||
|
await SearchCareerOne.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >');
|
||||||
|
expect(await ItemTitle.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.');
|
||||||
|
expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE');
|
||||||
|
expect(await ItemDegree.getText()).toEqual('College (4 Year)');
|
||||||
|
expect(await ItemDegreeOneStat.getText()).toEqual('70%');
|
||||||
|
expect(await ItemDegreeTwo.getText()).toEqual("Associate's degree");
|
||||||
|
expect(await ItemDegreeTwoStat.getText()).toEqual('15%');
|
||||||
|
expect(await ItemDegreeThree.getText()).toEqual('Professional degree certificate');
|
||||||
|
expect(await ItemDegreeThreeStat.getText()).toEqual('7%');
|
||||||
|
expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY');
|
||||||
|
expect(await ItemSalaryStat.getText()).toEqual('$88,510');
|
||||||
|
expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH');
|
||||||
|
expect(await ItemGrowthStatTwo.getText()).toEqual('9.3');
|
||||||
|
expect(await ItemGrowthStatThree.getText()).toEqual('%');
|
||||||
|
expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS');
|
||||||
|
expect(await ItemJobOpeningsStat.getText()).toEqual('22,400');
|
||||||
|
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
|
||||||
|
expect(await ItemEmployedStat.getText()).toEqual('287,200');
|
||||||
|
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(20000);
|
||||||
|
await CollegeTabLink.click();
|
||||||
|
browser.sleep(30000);
|
||||||
|
await CollegePath.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >');
|
||||||
|
expect(await CollegeTitle.getText()).toEqual('Publishing Software');
|
||||||
|
expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)');
|
||||||
|
await CertificationTabLink.click();
|
||||||
|
browser.sleep(30000);
|
||||||
|
await CertificationPath.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >');
|
||||||
|
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.');
|
||||||
|
await K12TabLink.click();
|
||||||
|
browser.sleep(30000);
|
||||||
|
await K12Path.click();
|
||||||
|
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 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.');
|
||||||
|
await MilitaryTabLink.click();
|
||||||
|
browser.sleep(30000);
|
||||||
|
await MilitaryPath.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
expect(await MilitaryPath.getText()).toEqual('Marine Science Technician > STEM >');
|
||||||
|
expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts');
|
||||||
|
expect(await MilitaryDescription.getText()).toEqual('No details for this location.');
|
||||||
|
await CTETabLlink.click();
|
||||||
|
browser.sleep(30000);
|
||||||
|
await CTEPath.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
expect(await CTEPath.getText()).toEqual('Information Technology > Programming & Software Development >');
|
||||||
|
expect(await CTETitle.getText()).toEqual('Quality Assurance');
|
||||||
|
expect(await CTEDescription.getText()).toEqual('Perform quality assurance tasks as part of the software development cycle.');
|
||||||
|
await ArrowTabLink.click();
|
||||||
|
browser.sleep(2500);
|
||||||
|
await CareerTabLink.click();
|
||||||
|
browser.sleep(30000);
|
||||||
await SearchCareerFour.click();
|
await SearchCareerFour.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
expect(await ItemDescription.getText()).toEqual('Analyze science, engineering, business, and other data processing problems to implement and improve computer systems. Analyze user requirements, procedures, and problems to automate or improve existing systems and review computer system cap...');
|
expect(await ItemDescription.getText()).toEqual('Analyze science, engineering, business, and other data processing problems to implement and improve computer systems. Analyze user requirements, procedures, and problems to automate or improve existing systems and review computer system cap...');
|
||||||
await ItemReadMoreLink.click();
|
await ItemReadMoreLink.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
expect(await ItemTitle.getText()).toEqual('Computer Systems Analysts');
|
expect(await ItemTitleReadMore.getText()).toEqual('Computer Systems Analysts');
|
||||||
expect(await ItemDescriptionReadMore.getText()).toEqual('Analyze science, engineering, business, and other data processing problems to implement and improve computer systems. Analyze user requirements, procedures, and problems to automate or improve existing systems and review computer system capabilities, workflow, and scheduling limitations. May analyze or recommend commercially available software.');
|
expect(await ItemDescriptionReadMore.getText()).toEqual('Analyze science, engineering, business, and other data processing problems to implement and improve computer systems. Analyze user requirements, procedures, and problems to automate or improve existing systems and review computer system capabilities, workflow, and scheduling limitations. May analyze or recommend commercially available software.');
|
||||||
await ItemDetailCloseLink.click().then(function() {
|
await ItemDetailCloseLink.click().then(function() {
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
@@ -2215,7 +2336,7 @@ function MapInteraction() {
|
|||||||
expect(await ItemJobOpeningsStat.getText()).toEqual('44,900');
|
expect(await ItemJobOpeningsStat.getText()).toEqual('44,900');
|
||||||
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
|
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
|
||||||
expect(await ItemEmployedStat.getText()).toEqual('600,500');
|
expect(await ItemEmployedStat.getText()).toEqual('600,500');
|
||||||
await ItemViewOnMapIcon.click();
|
await SearchCareerFourViewOnMapIcon.click();
|
||||||
browser.sleep(5000);
|
browser.sleep(5000);
|
||||||
expect(await ObjectPath.getText()).toEqual('IT > Interactive Media >');
|
expect(await ObjectPath.getText()).toEqual('IT > Interactive Media >');
|
||||||
expect(await ObjectTitle.getText()).toEqual('Computer Systems Analysts');
|
expect(await ObjectTitle.getText()).toEqual('Computer Systems Analysts');
|
||||||
@@ -2241,76 +2362,7 @@ function MapInteraction() {
|
|||||||
await ExpandIcon.click();
|
await ExpandIcon.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await BackToResultsLink.click();
|
await BackToResultsLink.click();
|
||||||
browser.sleep(20000);
|
browser.sleep(50000);
|
||||||
|
|
||||||
await CollegeTabLink.click();
|
|
||||||
browser.sleep(30000);
|
|
||||||
/*await SearchCareerOne.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await SearchCareerOne.getText()).toEqual('College path');
|
|
||||||
expect(await CollegeObjectTitle.getText()).toEqual('College desc');*/
|
|
||||||
|
|
||||||
await CertificationTabLink.click();
|
|
||||||
browser.sleep(30000);
|
|
||||||
/*await SearchCareerOne.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await CollegeObjectTitle.getText()).toEqual('College3');
|
|
||||||
expect(await ObjectPath.getText()).toEqual('Certification1');
|
|
||||||
expect(await ObjectTitle.getText()).toEqual('Certification2');
|
|
||||||
expect(await ItemDescription.getText()).toEqual('Certification3');*/
|
|
||||||
|
|
||||||
await K12TabLink.click();
|
|
||||||
browser.sleep(30000);
|
|
||||||
/*can't find correct path -await SearchCareerOne.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await ObjectPath.getText()).toEqual('K121');
|
|
||||||
expect(await ObjectTitle.getText()).toEqual('K122');
|
|
||||||
expect(await ItemDescription.getText()).toEqual('K123');*/
|
|
||||||
|
|
||||||
await MilitaryTabLink.click();
|
|
||||||
browser.sleep(30000);
|
|
||||||
/*can't find correct path -await SearchCareerOne.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await ObjectPath.getText()).toEqual('Military1');
|
|
||||||
expect(await ObjectTitle.getText()).toEqual('Military2');
|
|
||||||
expect(await ItemDescription.getText()).toEqual('Military3');*/
|
|
||||||
|
|
||||||
await CTETabLlink.click();
|
|
||||||
browser.sleep(30000);
|
|
||||||
/*can't find correct path -await SearchCareerOne.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await ObjectPath.getText()).toEqual('CTE1');
|
|
||||||
expect(await ObjectTitle.getText()).toEqual('CTE2');
|
|
||||||
expect(await ItemDescription.getText()).toEqual('CTE3');*/
|
|
||||||
|
|
||||||
await ArrowTabLink.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
await CareerTabLink.click();
|
|
||||||
browser.sleep(30000);
|
|
||||||
await SearchCareerOne.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.');
|
|
||||||
expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE');
|
|
||||||
expect(await ItemDegree.getText()).toEqual('College (4 Year)');
|
|
||||||
expect(await ItemDegreeOneStat.getText()).toEqual('70%');
|
|
||||||
expect(await ItemDegreeTwo.getText()).toEqual("Associate's degree");
|
|
||||||
expect(await ItemDegreeTwoStat.getText()).toEqual('15%');
|
|
||||||
expect(await ItemDegreeThree.getText()).toEqual('Professional degree certificate');
|
|
||||||
expect(await ItemDegreeThreeStat.getText()).toEqual('7%');
|
|
||||||
expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY');
|
|
||||||
expect(await ItemSalaryStat.getText()).toEqual('$88,510');
|
|
||||||
expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH');
|
|
||||||
expect(await ItemGrowthStatTwo.getText()).toEqual('9.3');
|
|
||||||
expect(await ItemGrowthStatThree.getText()).toEqual('%');
|
|
||||||
expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS');
|
|
||||||
expect(await ItemJobOpeningsStat.getText()).toEqual('22,400');
|
|
||||||
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
|
|
||||||
expect(await ItemEmployedStat.getText()).toEqual('287,200');
|
|
||||||
await ItemViewOnMapIconTwo.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 MapSearchClearIcon.click();
|
await MapSearchClearIcon.click();
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await HideJourneyButton.click();
|
await HideJourneyButton.click();
|
||||||
@@ -2473,6 +2525,8 @@ function SignOut() {
|
|||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
browser.getCurrentUrl();
|
browser.getCurrentUrl();
|
||||||
await SignOutButton.click();
|
await SignOutButton.click().then(function() {
|
||||||
|
browser.sleep(2500);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user