971 lines
76 KiB
JavaScript
971 lines
76 KiB
JavaScript
//topCareerWidget_spec.js
|
||
|
||
const { WebElement } = require("selenium-webdriver");
|
||
|
||
describe('Top Career Widget script', function () {
|
||
//login-journeysmap landing page
|
||
var UserNameTextBox = element(by.css('#txtU'));
|
||
var PasswordTextBox = element(by.css('#txtP'));
|
||
|
||
//Open browser
|
||
browser.get(browser.params.login);
|
||
|
||
it('should have a title', async function () {
|
||
await expect(browser.getTitle()).toEqual('Login');
|
||
});
|
||
|
||
//Sign In
|
||
SignIn(UserNameTextBox, PasswordTextBox);
|
||
|
||
it('should have a title', async function () {
|
||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
||
});
|
||
|
||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
||
it('SignIn, should sign into journeysmap.com', async function () {
|
||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
||
var NextButton = element(by.css('.btn'));
|
||
var JourneysGreeting = element(by.css('.dropdown'));
|
||
|
||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||
browser.sleep(1500);
|
||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
||
browser.sleep(1500);
|
||
});
|
||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||
browser.sleep(1500);
|
||
});
|
||
await NextButton.click().then(function() {
|
||
browser.sleep(5000);
|
||
});
|
||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
||
browser.waitForAngular();
|
||
browser.getCurrentUrl();
|
||
});
|
||
}
|
||
|
||
EditTopCareer();
|
||
TopCareerWidget();
|
||
|
||
//Sign Out*/
|
||
SignOut();
|
||
});
|
||
|
||
function EditTopCareer() {
|
||
it(': EditTopCareer, should edit Top Career', async function () {
|
||
var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'));
|
||
var TopCareerEditIcon = element(by.css('.full-width .fa-pencil'));
|
||
var TopCareerDIvXRemoveLink = element(by.css('.col-xs-1 > .glyphicon'));
|
||
var TopCareerDIVCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info'));
|
||
var TopCareerGreenText = element(by.css('.default-color:nth-child(2)'));
|
||
var TopCareerGreenSubText = element(by.css('.textPosition'));
|
||
var TopCareerDIVAddButton = element(by.css('.resetBtn'));
|
||
var TopCareerDIVTitle = element(by.css('h2'));
|
||
var TopCareerDIVSubTitle = element(by.css('.row:nth-child(5) > .col-lg-8'));
|
||
var TopCareerDIVHandle = element(by.css('.col-lg-8 > label'));
|
||
var TopCareerDIVTextBox = element(by.id('searchBox'));
|
||
var TopCareerDIVSelection = element(by.xpath('//div[2]/div/ul/li[3]/a/span'));
|
||
var TopCareerDIVSaveButton = element(by.css('.row:nth-child(12) #photoBtn'));
|
||
var TopCareerLink = element(by.css('td>.jrnys_support-text'));
|
||
var TopCareerDescription = element(by.css('.jrEllipsis3Lines'));
|
||
|
||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await WidgetTitle.getText()).toEqual('Top Career');
|
||
browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await TopCareerEditIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await TopCareerDIvXRemoveLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await TopCareerDIVCancelButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TopCareerGreenText.getText()).toEqual('Top Career');
|
||
expect(await TopCareerGreenSubText.getText()).toEqual("Head in the clouds? Share what Career you’re thinking about!");
|
||
await TopCareerDIVAddButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TopCareerDIVTitle.getText()).toEqual('Dream big, reach higher!');
|
||
expect(await TopCareerDIVSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?");
|
||
expect(await TopCareerDIVHandle.getText()).toEqual('Job Title');
|
||
await TopCareerDIVTextBox.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await TopCareerDIVTextBox.sendKeys('Computer');
|
||
browser.sleep(2500);
|
||
browser.actions().mouseMove(TopCareerDIVSelection).perform().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await TopCareerDIVSelection.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await TopCareerDIVSaveButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TopCareerLink.getText()).toEqual('Computer and Information Research Scientists');
|
||
expect(await TopCareerDescription.getText()).toEqual('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.');
|
||
browser.waitForAngular();
|
||
browser.getCurrentUrl();
|
||
});
|
||
}
|
||
|
||
function TopCareerWidget() {
|
||
it(': TopCareerWidget, should validate the Top Career widget', async function () {
|
||
var TopCareerLink = element(by.css('td>.jrnys_support-text'));
|
||
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
|
||
var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
|
||
var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding'));
|
||
var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
||
var CloseXIcon = element(by.css('.close'));
|
||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
||
//At A Glance
|
||
var AtAGlanceLink = element(by.css('tr:nth-child(3) > td:nth-child(1) > .text-color-7a'));
|
||
var AtAGlanceDIVTitle = element(by.css('.widgetHeaderContainer > .jrnys_lead-body-copy'));
|
||
var TypicalDegreeHeader = element(by.css('.row-height:nth-child(1) .jrnys_support-text'));
|
||
var TypicalDegreeData = element(by.css('.row-height:nth-child(1) .col-sm-offset-4'));
|
||
var AverageAnnualSalaryHeader = element(by.css('.row-height:nth-child(2) .jrnys_support-text'))
|
||
var AverageAnnualSalaryData = element(by.css('.row-height:nth-child(2) .dataFontSize'));
|
||
var ProjectedGrowthHeader = element(by.css('.row-height:nth-child(3) .jrnys_support-text'));
|
||
var ProjectedGrowthPath = element(by.css('.col-sm-offset-4 > span'));
|
||
var ProjectedGrowthData = element(by.css('.row-height:nth-child(3) .col-sm-offset-4'));
|
||
var ProjectedJobOpeningsHeader = element(by.css('.row-height:nth-child(4) .jrnys_support-text'));
|
||
var ProjectedJobOpeningsData = element(by.css('.row-height:nth-child(4) .dataFontSize'));
|
||
var CurrentlyEmployedHeader = element(by.css('.row-height:nth-child(5) .jrnys_support-text'));
|
||
var CurrentlyEmployedData = element(by.css('.row-height:nth-child(5) .dataFontSize'));
|
||
//Personality
|
||
var PersonalityLink = element(by.css('tr:nth-child(4) > td:nth-child(1) > .text-color-7a'));
|
||
var PersonalityDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
||
var PersonalityDescriptionOne = element(by.css('.ng-scope:nth-child(1) > tbody td > .ng-binding'));
|
||
var PersonalityDescriptionTwo = element(by.css('.ng-scope:nth-child(1) > tbody > tr:nth-child(2) div'));
|
||
var PersonalityBulletOne = element(by.css('.ng-scope:nth-child(3) > td .ng-binding'));
|
||
var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(4) > td .ng-binding'));
|
||
var PersonalityBulletThree = element(by.css('.ng-scope:nth-child(5) > td .ng-binding'));
|
||
var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(6) > td .ng-binding'));
|
||
var PersonalityBulletFive = element(by.css('.ng-scope:nth-child(7) .ng-binding'));
|
||
var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(8) .ng-binding'));
|
||
//Wages
|
||
var WagesLink = element(by.css('tr:nth-child(5) > td:nth-child(1) > .text-color-7a'));
|
||
var WagesDIVTitle = element(by.css('.widget-padding > div > .jrnys_lead-body-copy'));
|
||
var WagesIIcon = element(by.css('.journey-info-circle'));
|
||
var WagesBackOfDIVTitle = element(by.css('table:nth-child(2) .jrnys_lead-body-copy'));
|
||
var WagesBackOfDIVTextOne = element(by.css('td > .ng-binding:nth-child(2)'));
|
||
var WagesBackOfDIVTextTwo = element(by.css('td:nth-child(1) > div:nth-child(3)'));
|
||
var WagesBackOfDIVTextThree = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'));
|
||
var WagesBackOfDIVTextFour = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm19all.zip'));
|
||
var WagesBackOfDIVTextFive = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm18all.zip'));
|
||
var WagesBackOfDIVTextSix = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm17all.zip'));
|
||
var WagesBackOfDIVXCloseIcon = element(by.css('.fa-times-rectangle'));
|
||
var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text'));
|
||
var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text'));
|
||
//var WagesTypeText = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[4]/occupation-wages/div/div[2]/div/table/tbody/tr/td/div/div/div[1]/div/svg/g[3]/g/text'));//Can't ID
|
||
var WagesHighText = element(by.css('g:nth-child(6) > text'));
|
||
var WagesMedianText = element(by.css('g:nth-child(7) > text'));
|
||
var WagesLowText = element(by.css('g:nth-child(8) > text'));
|
||
var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text'));
|
||
var WagesXAxisOneText = element(by.css('g:nth-child(4) > g:nth-child(2) > text'));
|
||
var WagesXAxisTwoText = element(by.css('g:nth-child(3) > text'));
|
||
var WagesXAxisThreeText = element(by.css('g:nth-child(4) > text'));
|
||
var WagesXAxisFourText = element(by.css('g:nth-child(5) > text'));
|
||
var WagesFilterIcon = element(by.css('.fa-sliders-h'));
|
||
var ZipCodeTextBoxText = element(by.css('.dropdown-menu tr:nth-child(1) > td:nth-child(1)'));
|
||
var ZipCodeTextBox = element(by.css('.ng-valid-maxlength'));
|
||
var ZipCodeApplyButton = element(by.css('tr:nth-child(1) .btn'));
|
||
var StateDropDownText = element(by.css('.dropdown-menu tr:nth-child(2) > td:nth-child(1)'));
|
||
var StateDropDownApplyButton = element(by.css('tr:nth-child(2) .btn'));
|
||
var WagesHighTextTwo = element(by.css('g:nth-child(7) > text'));
|
||
var WagesMedianTextTwo = element(by.css('g:nth-child(8) > text'));
|
||
var WagesLowTextTwo = element(by.css('g:nth-child(9) > text'));
|
||
var WagesXAxisFiveText = element(by.css('g:nth-child(6) > text'));
|
||
var RateTypeText = element(by.css('.dropdown-menu tr:nth-child(3) > td:nth-child(1)'));
|
||
var HourlyButton = element(by.xpath("//button[contains(.,'Hourly')]"));
|
||
var AnnualButton = element(by.xpath("//button[contains(.,'Annual')]"));
|
||
//College Pathways
|
||
var CollegPathwaysLink = element(by.css('tr:nth-child(3) > td:nth-child(2) > .text-color-7a'));
|
||
var CollegePathwaysDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
||
var ComputerApplicationsMinorCollegeWide = element(by.css('#\\36 3f93734-c4e9-48cd-8ff4-041e10760da5 #territoryCardMobileTitle'));
|
||
var ComputerScienceBS = element(by.css('#a6e09aef-a938-4c2b-aa90-c6d6b2499de7 #territoryCardMobileTitle'));
|
||
var ComputerScienceMinor = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 #territoryCardMobileTitle'));
|
||
var ComputerScienceMinorDescription = element(by.xpath("//territory-card[@id='fd59401c-391c-4fe4-979a-440cf9648e22']/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div"));
|
||
var ComputerScienceMinorInstitutionsHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var ComputerScienceMinorInstitutionsData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(1) .ng-binding'));
|
||
var ComputerScienceMinorCoursesHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(3) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var ComputerScienceMinorCoursesData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(3) .ng-binding'));
|
||
var ComputerScienceMinorOccupationsHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(5) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var ComputerScienceMinorOccupationsData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(5) .ng-binding'));
|
||
var ComputerScienceMinorAverageAnnualSalaryHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(7) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var ComputerScienceMinorAverageAnnualSalaryData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(7) .ng-binding'));
|
||
var ComputerScienceMinorEllipsisIcon = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 .territoryCardIcon > .fas'));
|
||
var ComputerScienceMinorFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
|
||
var ComputerScienceMinorLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
|
||
var ComputerScienceMinorMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
|
||
var ComputerScienceMinorJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
|
||
var ComputerScienceMinorAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
|
||
var CollegePathwaysRightScrollIcon = element(by.css('.table-height:nth-child(2) .right > .glyphicon'));
|
||
var ComputerScienceMS = element(by.css('#a8803504-ea19-4643-8569-b5fae3db34d9 #territoryCardMobileTitle'));
|
||
//Certificates
|
||
var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a'));
|
||
var CertificatesDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
||
var CertifiedLabVIEWArchitect = element(by.css('#\\35 179bed9-a8e1-44af-b525-3e8ad0dcb31e #territoryCardMobileTitle'));
|
||
var CertifiedLabVIEWArchitectDescription = element(by.xpath("//territory-card[@id='5179bed9-a8e1-44af-b525-3e8ad0dcb31e']/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div"));
|
||
var CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersHeader = element(by.css('.ng-scope:nth-child(2) > .ng-scope > table:nth-child(1) .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(1) .ng-binding'));
|
||
var CertifiedLabVIEWArchitectOccupationsHeader = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(3) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var CertifiedLabVIEWArchitectOccupationsData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(3) .ng-binding'));
|
||
var CertifiedLabVIEWArchitectResourcesHeader = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(5) .territoryCardBackOfCardItemText:nth-child(1)'));
|
||
var CertifiedLabVIEWArchitectResourcesData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(5) .ng-binding'));
|
||
var CertifiedAssociateLabVIEWDeveloper = element(by.css('#\\38 8e24eb9-a695-4048-917d-f45bd0015675 #territoryCardMobileTitle'));
|
||
var AvayaCertifiedExpert = element(by.css('#\\31 82f070b-18f9-4276-bb91-3128c4d0cf2c #territoryCardMobileTitle'));
|
||
var CertificatesRightScrollIcon = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
||
var CertifiedBiometricsProfessional = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f #territoryCardMobileTitle'));
|
||
var CertifiedSoftwareDevelopmentProfessional = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 #territoryCardMobileTitle'));
|
||
var MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc #territoryCardMobileTitle'));
|
||
//Institutions
|
||
var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a'));
|
||
var InstitutionsDIVTitle = element(by.xpath('//recommended-colleges/div/div/div'));
|
||
var UniversityOfSanDiego = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) #territoryCardMobileTitle'));
|
||
var NationalUniversity = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(2) #territoryCardMobileTitle'));
|
||
var PointLomaNazareneUniversity = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(3) #territoryCardMobileTitle'));
|
||
var InstitutionsRightScrollIcon = element(by.css('#recommendedColleges .right > .glyphicon'));
|
||
var UniversityOfCaliforniaSanDiego = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(1) #territoryCardMobileTitle'));
|
||
var SanDiegoStateUniversity = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) #territoryCardMobileTitle'));
|
||
var SanDiegoStateUniversity4YearHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)'));
|
||
var SanDiegoStateUniversity4YearData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)'));
|
||
var SanDiegoStateUniversityUndergradHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)'));
|
||
var SanDiegoStateUniversityUndergradData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding'));
|
||
var SanDiegoStateUniversityLocationHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText'));
|
||
var SanDiegoStateUniversityLocationData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div'));
|
||
var SanDiegoStateUniversityClassroomHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText'));
|
||
var SanDiegoStateUniversityClassroomData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div'));
|
||
var SanDiegoStateUniversityEllipsisIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(1) > td:nth-child(3) > div > i'));
|
||
var SanDiegoStateUniversityFollowIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(1) > div.territoryCardItemText'));
|
||
var SanDiegoStateUniversityLearnMoreIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(2) > div.territoryCardBackOfCardItemText'));
|
||
var SanDiegoStateUniversityAtAGlanceIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText'));
|
||
var CaliforniaStateUniversitySanMarcos = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(3) #territoryCardMobileTitle'));
|
||
//Top Resources
|
||
var TopResourcesLink = element(by.css('tr:nth-child(3) > td:nth-child(3) > .text-color-7a'));
|
||
var TopResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
||
var JourneysGreeting = element(by.css('.dropdown'));
|
||
var TopResourcesTitleOne = element(by.css('.panel:nth-child(1) .ng-binding'));
|
||
var TopResourcesTitleTwo = element(by.css('.panel:nth-child(2) .ng-binding'));
|
||
var TopResourcesTitleTwoFollow = element(by.css('.panel:nth-child(2) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)'));
|
||
var TopResourcesTitleTwoLearnMore = element(by.css('.panel:nth-child(2) .row:nth-child(2) div:nth-child(2) span:nth-child(2)'));
|
||
var TopResourcesTitleThree = element(by.css('.panel:nth-child(3) .ng-binding'));
|
||
var TopResourcesTitleThreeFollow = element(by.css('.panel:nth-child(3) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)'));
|
||
var TopResourcesTitleThreeLearnMore = element(by.css('.panel:nth-child(3) .row:nth-child(2) div:nth-child(2) span:nth-child(2)'));
|
||
var TopResourcesTitleFour = element(by.css('.panel:nth-child(4) .ng-binding'));
|
||
var TopResourcesTitleFive = element(by.css('.panel:nth-child(5) .ng-binding'));
|
||
var TopResourcesTitleSix = element(by.css('.panel:nth-child(6) .ng-binding'));
|
||
//Find Opportunities
|
||
var FindOpportunitiesLink = element(by.css('tr:nth-child(4) > td:nth-child(3) > .text-color-7a'));
|
||
var FindOpportunitiesDIVTitle = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding'));
|
||
var SubmitResourceLink = element(by.css('tr:nth-child(5) > td:nth-child(3) > .text-color-7a'));
|
||
var SubmitResourceDIVTitle = element(by.css('.jrnys_lead-body-copy > .col-xs-12'));
|
||
var SubmitResourceDIVSubTextOne = element(by.css('.subtitle'));
|
||
var TotalInJourneysHeader = element(by.css('.total-display'));
|
||
var TotalInJourneysData = element(by.css('.submit-count:nth-child(2)'));
|
||
var MySubmittedResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
||
var MySubmittedResourcesTitle = element(by.css('.row > .row .ng-binding'));
|
||
var MySubmittedResourcesEllipsisIcon = element(by.css('.glyphicon-option-vertical'));
|
||
var MySubmittedResourcesFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span'));
|
||
var MySubmittedResourcesLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)'));
|
||
var MySubmittedResourcesDIVXCloseIcon = element(by.css('div:nth-child(2) > .close'));
|
||
var ForThisMapPointHeader = element(by.css('.row:nth-child(4) .col-xs-8'));
|
||
var ForThisMapPointData = element(by.css('.submit-count:nth-child(1)'));
|
||
var SubmitResourceDIVSubTextTwo = element(by.css('.row:nth-child(6) > .col-sm-12'));
|
||
var SubmitAResourceDIVButton = element(by.css('.row:nth-child(7) .btn'));
|
||
var SubmitAResourceDIVTitle = element(by.css('h3'));
|
||
var SubmitAResourceDIVCloseXIcon = element(by.css('.btn-blue-RoundTabsinfo'));
|
||
//Nearby Places
|
||
var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a'));
|
||
var NearbyPlacesDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
||
var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 #territoryCardMobileTitle'));
|
||
var ComputerAndInformationSystemsManagersEllipsisIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardIcon > .fas'));
|
||
var ComputerAndInformationSystemsManagersFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
|
||
var ComputerAndInformationSystemsManagersLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersVideoIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardDescriptionText:nth-child(1)'));
|
||
var ComputerAndInformationSystemsManagersTypicalDegreeHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersTypicalDegreeDataOne = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(2) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersTypicalDegreeDataTwo = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(3) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersTypicalDegreeDataThree = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(4) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualSalaryHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(16) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualSalaryData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(17) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(19) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataOne = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemText > .ng-binding:nth-child(1)'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataTwo = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-binding:nth-child(3)'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(22) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope tr:nth-child(23) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(25) .territoryCardBackOfCardItemText'));
|
||
var ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope tr:nth-child(26) .territoryCardBackOfCardItemText'));
|
||
var ComputerNetworkArchitects = element(by.css('#fb2fabe5-621b-477e-948c-64d1fef31b95 #territoryCardMobileTitle'));
|
||
var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
||
var ComputerNetworkSupportSpecialists = element(by.css('#b645081d-8b86-44b2-8d68-155c064edced #territoryCardMobileTitle'));
|
||
var ComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 #territoryCardMobileTitle'));
|
||
var ComputerProgrammers = element(by.css('#\\33 ce39f29-0e17-4472-8dba-682356e8df07 #territoryCardMobileTitle'));
|
||
var ComputerScienceTeachersPostsecondary = element(by.css('#e867c7f0-c5e9-43ac-9dd3-82dd4dd62660 #territoryCardMobileTitle'));
|
||
var DataWarehousingSpecialist = element(by.css('#\\34 9618b26-751c-4c6c-bb52-1773b0c84e68 #territoryCardMobileTitle'));
|
||
var DatabaseAdministrator = element(by.css('#\\31 25099b5-7514-4a28-8c5f-776a0edd13c2 #territoryCardMobileTitle'));
|
||
var DatabaseArchitects = element(by.css('#\\32 f5c1341-aaec-41f7-8d76-7fbe9c0497fa #territoryCardMobileTitle'));
|
||
var GraphicDesigners = element(by.css('#cc7cc408-71ef-4390-b425-d03e24f8253a #territoryCardMobileTitle'));
|
||
var InformationSecurityAnalysts = element(by.css('#\\31 fe39d9e-c19d-45eb-bfef-f44e759a56d6 #territoryCardMobileTitle'));
|
||
var MultimediaArtistsAndAnimators = element(by.css('#\\32 a294540-b4cc-4886-a4de-edb17e7a748e #territoryCardMobileTitle'));
|
||
var NetworkAndComputerSystemsAdministrators = element(by.css('#ce3ef31a-9e4e-4ab8-a950-61b07731ad66 #territoryCardMobileTitle'));
|
||
var SoftwareDevelopersApplications = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 #territoryCardMobileTitle'));
|
||
var SoftwareDevelopersSystemsSoftware = element(by.css('#d1ab3735-cd9e-46aa-9046-76cd7122f4a8 #territoryCardMobileTitle'));
|
||
var TelecommunicationsEngineeringSpecialists = element(by.css('#\\35 3a78dab-253e-4962-a9a7-282e9b23493c #territoryCardMobileTitle'));
|
||
//Knowledge
|
||
var KnowledgeLink = element(by.css('tr:nth-child(4) > td:nth-child(4) > .text-color-7a'))
|
||
var DIVTitle = element(by.css('h6 > .ng-binding'));
|
||
var ImportanceHeader = element(by.css('thead .text-color-7a'));
|
||
var DescriptionOne = element(by.css('tbody:nth-child(3) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a'));
|
||
var DescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-center'));
|
||
var DescriptionThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatThree = element(by.css('.ng-scope:nth-child(3) > .text-center'));
|
||
var DescriptionFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a'));
|
||
var DescriptionFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatFive = element(by.css('.ng-scope:nth-child(5) > .text-center'));
|
||
var DescriptionSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatSix = element(by.css('.ng-scope:nth-child(6) > .text-center'));
|
||
var DescriptionSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-center'));
|
||
var CloseXImage = element(by.css('.fa-times-circle'));
|
||
//Skills
|
||
var SkillsLink = element(by.css('tr:nth-child(5) > td:nth-child(4) > .text-color-7a'));
|
||
var DescriptionEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatEight = element(by.css('.ng-scope:nth-child(8) > .text-center'));
|
||
//Ability
|
||
var AbilityLink = element(by.css('tr:nth-child(3) > td:nth-child(5) > .text-color-7a'));
|
||
//Tasks
|
||
var TasksLink = element(by.css('tr:nth-child(4) > td:nth-child(5) > .text-color-7a'));
|
||
var TasksCategoryHeader = element(by.css('thead .text-color-7a:nth-child(2)'));
|
||
var TasksImportanceHeader = element(by.css('thead .text-color-7a:nth-child(3)'));
|
||
var TasksDescriptionOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
||
var TasksCategoryDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a:nth-child(2)'));
|
||
var TasksImportanceDataOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(3)'));
|
||
var TasksDescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
||
var TasksCategoryDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(2)'));
|
||
var TasksImportanceDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(3)'));
|
||
var TasksDescriptionThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
||
var TasksCategoryDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(2)'));
|
||
var TasksImportanceDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(3)'));
|
||
var TasksDescriptionFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
||
var TasksCategoryDataFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(2)'));
|
||
var TasksImportanceDataFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(3)'));
|
||
var TasksDescriptionFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)'));
|
||
var TasksCategoryDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a:nth-child(2)'));
|
||
var TasksImportanceDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center:nth-child(3)'));
|
||
var TasksDescriptionSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)'));
|
||
var TasksCategoryDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a:nth-child(2)'));
|
||
var TasksImportanceDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center:nth-child(3)'));
|
||
//Technology
|
||
var TechnologyLink = element(by.css('td:nth-child(5) > .ng-scope'));
|
||
var TechnologyDescriptionOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding'));
|
||
var TechnologyStatOne = element(by.css('.ng-scope:nth-child(1) > .text-left > .ng-binding:nth-child(1)'));
|
||
//Work Activities
|
||
var WorkActivitiesLink = element(by.css('td:nth-child(6) > .text-color-7a'));
|
||
var DescriptionNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)'));
|
||
var ImportanceStatNine = element(by.css('.ng-scope:nth-child(9) > .text-center'));
|
||
|
||
//Jump to Learn More Page
|
||
await TopCareerLink.click().then(function() {
|
||
browser.sleep(5000);
|
||
});
|
||
//Description
|
||
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
|
||
await DescriptionDetail.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||
expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.');
|
||
expect(await DescriptionSubText.getText()).toContain('Other Jobs:');
|
||
expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Computer Specialist; Control System Computer Scientist; HPC Applications Manager (High Performance Computing Applications Manager); Research Scientist; Scientific Programmer Analyst');
|
||
expect(await DescriptionSubText.getText()).toContain('O*NET SOC: 15-1111.00');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await BackLink.click().then(function() {
|
||
browser.sleep(5000);
|
||
});
|
||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//At A Glance Link
|
||
expect(await AtAGlanceLink.getText()).toEqual('AT A GLANCE');
|
||
await AtAGlanceLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await AtAGlanceDIVTitle.getText()).toEqual('At A Glance');
|
||
expect(await TypicalDegreeHeader.getText()).toEqual('Typical Degree');
|
||
expect(await TypicalDegreeData.getText()).toContain('College (4 Year) - 1%');
|
||
expect(await TypicalDegreeData.getText()).toContain('Doctoral degree - 1%');
|
||
expect(await TypicalDegreeData.getText()).toContain("Master's degree - 1%");
|
||
expect(await AverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary');
|
||
expect(await AverageAnnualSalaryData.getText()).toEqual('$114,520');
|
||
expect(await ProjectedGrowthHeader.getText()).toEqual('Projected Growth');
|
||
expect(await ProjectedGrowthPath.getText()).toEqual(' ABOVE AVERAGE');
|
||
expect(await ProjectedGrowthData.getText()).toContain('19.2%');
|
||
expect(await ProjectedJobOpeningsHeader.getText()).toEqual('Projected Job Openings');
|
||
expect(await ProjectedJobOpeningsData.getText()).toEqual('2,500');
|
||
expect(await CurrentlyEmployedHeader.getText()).toEqual('Currently Employed');
|
||
expect(await CurrentlyEmployedData.getText()).toEqual('27,900');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Personality Link
|
||
await PersonalityLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await PersonalityDIVTitle.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('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('Achievement/Effort');
|
||
expect(await PersonalityBulletSix.getText()).toEqual('Initiative');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Wages Link
|
||
await WagesLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await WagesDIVTitle.getText()).toEqual('Wages');
|
||
await WagesIIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await WagesBackOfDIVTitle.getText()).toEqual('Wages');
|
||
expect(await WagesBackOfDIVTextOne.getText()).toEqual('The graph is reflecting data based on BLS statistics of year 2019.');
|
||
expect(await WagesBackOfDIVTextTwo.getText()).toEqual('For more information please visit:');
|
||
expect(await WagesBackOfDIVTextThree.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0');
|
||
expect(await WagesBackOfDIVTextFour.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm19all.zip');
|
||
expect(await WagesBackOfDIVTextFive.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm18all.zip');
|
||
expect(await WagesBackOfDIVTextSix.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm17all.zip');
|
||
await WagesBackOfDIVXCloseIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||
expect(await CurrentDataLocalHeader.getText()).toEqual('San Diego-Carlsbad, CA Metro Area');
|
||
//expect(await WagesTypeText.getText()).toEqual('4');//Can't ID
|
||
expect(await WagesHighText.getText()).toEqual('High');
|
||
expect(await WagesMedianText.getText()).toEqual('Median');
|
||
expect(await WagesLowText.getText()).toEqual('Low');
|
||
expect(await Wages0Text.getText()).toEqual('$0');
|
||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
||
await WagesFilterIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ZipCodeTextBoxText.getText()).toEqual('Zip Code');
|
||
await ZipCodeTextBox.click();
|
||
await ZipCodeTextBox.clear();
|
||
await ZipCodeTextBox.sendKeys('85013').then(function() {
|
||
browser.sleep(1000);
|
||
});
|
||
await ZipCodeApplyButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||
expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ');
|
||
expect(await WagesHighText.getText()).toEqual('High');
|
||
expect(await WagesMedianText.getText()).toEqual('Median');
|
||
expect(await WagesLowText.getText()).toEqual('Low');
|
||
expect(await Wages0Text.getText()).toEqual('$0');
|
||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
||
await WagesFilterIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await StateDropDownText.getText()).toEqual('Or State');
|
||
element(by.cssContainingText('option', 'Oregon')).click().then(function() {
|
||
browser.sleep(1000);
|
||
});
|
||
await StateDropDownApplyButton.click().then(function() {
|
||
browser.sleep(1000);
|
||
});
|
||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
||
expect(await Wages0Text.getText()).toEqual('$0');
|
||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
||
expect(await WagesXAxisFiveText.getText()).toEqual('$250,000');
|
||
await WagesFilterIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await RateTypeText.getText()).toEqual('Rate Type');
|
||
expect(await HourlyButton.getText()).toEqual('Hourly');
|
||
expect(HourlyButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
||
expect(await AnnualButton.getText()).toEqual('Annual');
|
||
expect(AnnualButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
||
await HourlyButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
||
expect(await Wages0Text.getText()).toEqual('$0');
|
||
expect(await WagesXAxisOneText.getText()).toEqual('$20');
|
||
expect(await WagesXAxisTwoText.getText()).toEqual('$40');
|
||
expect(await WagesXAxisThreeText.getText()).toEqual('$60');
|
||
expect(await WagesXAxisFourText.getText()).toEqual('$80');
|
||
expect(await WagesXAxisFiveText.getText()).toEqual('$100');
|
||
await WagesFilterIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(HourlyButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
||
expect(AnnualButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
||
await AnnualButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
||
expect(await Wages0Text.getText()).toEqual('$0');
|
||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
||
expect(await WagesXAxisFiveText.getText()).toEqual('$250,000');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//College Pathways Link
|
||
await CollegPathwaysLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CollegePathwaysDIVTitle.getText()).toEqual('College Pathways');
|
||
expect(await ComputerApplicationsMinorCollegeWide.getText()).toEqual('Computer Applications Minor—College-Wide');
|
||
expect(await ComputerScienceBS.getText()).toEqual('Computer Science B.S.');
|
||
expect(await ComputerScienceMinor.getText()).toEqual('Computer Science Minor');
|
||
await ComputerScienceMinor.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ComputerScienceMinorDescription.getText()).toEqual('The computer science program is designed to provide students with the educational background required for a professional career in the computing industry and for further study at the graduate level. The program includes a core of required courses and an elective program of courses over a wide range of topics. Seniors work in teams to carry out community-based projects during the two-term capstone course in software engineering. A minor in computer science is available within the Maseeh College of Engineering and Computer Science in the area of computer science. To earn a minor in computer science, a student must complete 36 credits.');
|
||
expect(await ComputerScienceMinorInstitutionsHeader.getText()).toEqual('Institutions');
|
||
expect(await ComputerScienceMinorInstitutionsData.getText()).toEqual('2,407');
|
||
expect(await ComputerScienceMinorCoursesHeader.getText()).toEqual('Courses');
|
||
expect(await ComputerScienceMinorCoursesData.getText()).toEqual('5');
|
||
expect(await ComputerScienceMinorOccupationsHeader.getText()).toEqual('Occupations');
|
||
expect(await ComputerScienceMinorOccupationsData.getText()).toEqual('77');
|
||
expect(await ComputerScienceMinorAverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary');
|
||
expect(await ComputerScienceMinorAverageAnnualSalaryData.getText()).toEqual('$99,362');
|
||
await ComputerScienceMinor.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await ComputerScienceMinorEllipsisIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ComputerScienceMinorFollowIcon.getText()).toEqual('Follow');
|
||
expect(await ComputerScienceMinorLearnMoreIcon.getText()).toEqual('Learn More');
|
||
expect(await ComputerScienceMinorMapIcon.getText()).toEqual('Map');
|
||
expect(await ComputerScienceMinorJourneyIcon.getText()).toEqual('Journey');
|
||
expect(await ComputerScienceMinorAtAGlanceIcon.getText()).toEqual('At A Glance');
|
||
await CollegePathwaysRightScrollIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ComputerScienceMS.getText()).toEqual('Computer Science M.S.');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Certificates Link
|
||
await CertificatesLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CertificatesDIVTitle.getText()).toEqual('Certificates');
|
||
expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect');
|
||
await CertifiedLabVIEWArchitect.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CertifiedLabVIEWArchitectDescription.getText()).toEqual("The Certified LabVIEW Architect is the final step in the three-part NI LabVIEW certification process. The exam for this step presents a set of high-level requirements and tests the user's ability to build a sensible VI hierarchy and project plan for delivering an application that fulfills those requirements. You can use this certification to assess and validate an individual's LabVIEW development and project management skills for the purpose of project staffing or career advancement.");
|
||
expect(await CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersHeader.getText()).toEqual('Institutions & training providers');
|
||
expect(await CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersData.getText()).toEqual('0');
|
||
expect(await CertifiedLabVIEWArchitectOccupationsHeader.getText()).toEqual('Occupations');
|
||
expect(await CertifiedLabVIEWArchitectOccupationsData.getText()).toEqual('0');
|
||
expect(await CertifiedLabVIEWArchitectResourcesHeader.getText()).toEqual('Resources');
|
||
expect(await CertifiedLabVIEWArchitectResourcesData.getText()).toEqual('0');
|
||
expect(await CertifiedAssociateLabVIEWDeveloper.getText()).toEqual('Certified Associate LabVIEW Developer');
|
||
expect(await AvayaCertifiedExpert.getText()).toEqual('Avaya Certified Expert');
|
||
await CertificatesRightScrollIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await CertifiedBiometricsProfessional.getText()).toEqual('Certified Biometrics Professional');
|
||
expect(await CertifiedSoftwareDevelopmentProfessional.getText()).toEqual('Certified Software Development Professional');
|
||
expect(await MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter.getText()).toEqual('Microsoft Server Virtualization with Windows Server Hyper-V and System Center');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Institutions Link
|
||
await InstitutionsLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await InstitutionsDIVTitle.getText()).toEqual('Institutions View All');
|
||
expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego');
|
||
expect(await NationalUniversity.getText()).toEqual('National University');
|
||
expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University');
|
||
await InstitutionsRightScrollIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego');
|
||
expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University');
|
||
await SanDiegoStateUniversity.click().then(function() {
|
||
browser.sleep(2500)
|
||
});
|
||
expect(await SanDiegoStateUniversity4YearHeader.getText()).toEqual('4 Year');
|
||
expect(await SanDiegoStateUniversity4YearData.getText()).toEqual('Public');
|
||
expect(await SanDiegoStateUniversityUndergradHeader.getText()).toEqual('Undergraduate Students');
|
||
expect(await SanDiegoStateUniversityUndergradData.getText()).toEqual('30,018');
|
||
expect(await SanDiegoStateUniversityLocationHeader.getText()).toContain('Location');
|
||
expect(await SanDiegoStateUniversityLocationData.getText()).toEqual('City');
|
||
expect(await SanDiegoStateUniversityClassroomHeader.getText()).toContain('Classrooms');
|
||
expect(await SanDiegoStateUniversityClassroomData.getText()).toEqual('Large');
|
||
await SanDiegoStateUniversity.click().then(function() {
|
||
browser.sleep(1000);
|
||
});
|
||
await SanDiegoStateUniversityEllipsisIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await SanDiegoStateUniversityFollowIcon.getText()).toEqual('Follow');
|
||
expect(await SanDiegoStateUniversityLearnMoreIcon.getText()).toEqual('Learn More');
|
||
expect(await SanDiegoStateUniversityAtAGlanceIcon.getText()).toEqual('At A Glance');
|
||
expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Top Resources Link
|
||
expect(await TopResourcesLink.getText()).toEqual('TOP RESOURCES');
|
||
await TopResourcesLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TopResourcesDIVTitle.getText()).toEqual('Computer and Information Research Scientists');
|
||
await JourneysGreeting.getText().then(async function(actualText) {
|
||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
||
expect(await TopResourcesTitleOne.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
||
expect(await TopResourcesTitleTwo.getText()).toEqual('How to Become a Research Scientist');
|
||
expect(await TopResourcesTitleThree.getText()).toEqual('Computer and Information Research Scientists');
|
||
await TopResourcesTitleThree.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TopResourcesTitleThreeFollow.getText()).toEqual('Follow');
|
||
expect(await TopResourcesTitleThreeLearnMore.getText()).toEqual('Learn More');
|
||
expect(await TopResourcesTitleFour.getText()).toEqual('Computer and Information Research Scientists');
|
||
expect(await TopResourcesTitleFive.getText()).toEqual('Computer and Information Research Scientists');
|
||
expect(await TopResourcesTitleSix.getText()).toEqual('Arduino download link for Thinkabitlab');
|
||
} else {
|
||
expect(await TopResourcesTitleOne.getText()).toEqual('How to Become a Research Scientist');
|
||
expect(await TopResourcesTitleTwo.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
||
await TopResourcesTitleTwo.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TopResourcesTitleTwoFollow.getText()).toEqual('Follow');
|
||
expect(await TopResourcesTitleTwoLearnMore.getText()).toEqual('Learn More');
|
||
expect(await TopResourcesTitleThree.getText()).toEqual('Computer and Information Research Scientists');
|
||
expect(await TopResourcesTitleFour.getText()).toEqual('Computer and Information Research Scientists');
|
||
expect(await TopResourcesTitleFive.getText()).toEqual('Computer and Information Research Scientists');
|
||
}
|
||
});
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Find Opportunities Link
|
||
expect(await FindOpportunitiesLink.getText()).toEqual('FIND OPPORTUNITIES');
|
||
await FindOpportunitiesLink.click().then(function() {
|
||
browser.sleep(5000);
|
||
});
|
||
expect(await FindOpportunitiesDIVTitle.getText()).toContain('Job Listings: ');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Submit A Resource Link
|
||
expect(await SubmitResourceLink.getText()).toEqual('SUBMIT A RESOURCE');
|
||
await SubmitResourceLink.click().then(function() {
|
||
browser.sleep(5000);
|
||
});
|
||
expect(await SubmitResourceDIVTitle.getText()).toEqual('Submit a Resource');
|
||
expect(await SubmitResourceDIVSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources");
|
||
expect(await TotalInJourneysHeader.getText()).toContain('Total in Journeys');
|
||
expect(await TotalInJourneysData.getText()).toContain('1');
|
||
await TotalInJourneysData.click().then(function() {
|
||
browser.sleep(5000);
|
||
});
|
||
expect(await MySubmittedResourcesDIVTitle.getText()).toEqual('My Submitted Resources');
|
||
await JourneysGreeting.getText().then(async function(actualText) {
|
||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
||
expect(await MySubmittedResourcesTitle.getText()).toEqual('Test Doc');
|
||
} else {
|
||
expect(await MySubmittedResourcesTitle.getText()).toEqual('Recommended Careers Doc');
|
||
}
|
||
});
|
||
await MySubmittedResourcesTitle.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await MySubmittedResourcesFollowIcon.getText()).toEqual('Follow');
|
||
expect(await MySubmittedResourcesLearnMoreIcon.getText()).toEqual('Learn More');
|
||
await MySubmittedResourcesEllipsisIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await MySubmittedResourcesDIVXCloseIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ForThisMapPointHeader.getText()).toContain('For this map point');
|
||
expect(await ForThisMapPointData.getText()).toContain('0');
|
||
//expect(await SubmitResourceDIVSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); //CAN'T LOCATE TEXT
|
||
expect(await SubmitAResourceDIVButton.getText()).toEqual('Submit a Resource');
|
||
await SubmitAResourceDIVButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await SubmitAResourceDIVTitle.getText()).toEqual('Submit a Resource');
|
||
await SubmitAResourceDIVCloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Nearby Places Link
|
||
expect(await NearbyPlacesLink.getText()).toEqual('NEARBY PLACES');
|
||
await NearbyPlacesLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await NearbyPlacesDIVTitle.getText()).toEqual('Nearby Places');
|
||
expect(await ComputerAndInformationSystemsManagers.getText()).toEqual('Computer and Information Systems Managers');
|
||
await ComputerAndInformationSystemsManagersEllipsisIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ComputerAndInformationSystemsManagersFollowIcon.getText()).toEqual('Follow');
|
||
expect(await ComputerAndInformationSystemsManagersLearnMoreIcon.getText()).toEqual('Learn More');
|
||
expect(await ComputerAndInformationSystemsManagersMapIcon.getText()).toEqual('Map');
|
||
expect(await ComputerAndInformationSystemsManagersJourneyIcon.getText()).toEqual('Journey');
|
||
expect(await ComputerAndInformationSystemsManagersVideoIcon.getText()).toEqual('Video');
|
||
expect(await ComputerAndInformationSystemsManagersAtAGlanceIcon.getText()).toEqual('At A Glance');
|
||
await ComputerAndInformationSystemsManagersAtAGlanceIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ComputerAndInformationSystemsManagersDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.');
|
||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeHeader.getText()).toEqual('Typical Degree');
|
||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataOne.getText()).toEqual('College (4 Year) - 48%');
|
||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataTwo.getText()).toEqual('Some college - 26%');
|
||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataThree.getText()).toEqual("Master's degree - 14%");
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualSalaryData.getText()).toEqual('$139,220');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthHeader.getText()).toEqual('Projected Growth');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataOne.getText()).toEqual('12%');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataTwo.getText()).toEqual('ABOVE AVERAGE');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsHeader.getText()).toEqual('Projected Job Openings');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsData.getText()).toEqual('32,500');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedHeader.getText()).toEqual('Currently Employed');
|
||
expect(await ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedData.getText()).toEqual('367,600');
|
||
expect(await ComputerNetworkArchitects.getText()).toEqual('Computer Network Architects');
|
||
expect(await ComputerNetworkSupportSpecialists.getText()).toEqual('Computer Network Support Specialists');
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await ComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
||
expect(await ComputerProgrammers.getText()).toEqual('Computer Programmers');
|
||
expect(await ComputerScienceTeachersPostsecondary.getText()).toEqual('Computer Science Teachers, Postsecondary');
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DataWarehousingSpecialist.getText()).toEqual('Data Warehousing Specialists');
|
||
expect(await DatabaseAdministrator.getText()).toEqual('Database Administrators');
|
||
expect(await DatabaseArchitects.getText()).toEqual('Database Architects');
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await GraphicDesigners.getText()).toEqual('Graphic Designers');
|
||
expect(await InformationSecurityAnalysts.getText()).toEqual('Information Security Analysts');
|
||
expect(await MultimediaArtistsAndAnimators.getText()).toEqual('Multimedia Artists and Animators');
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await NetworkAndComputerSystemsAdministrators.getText()).toEqual('Network and Computer Systems Administrators');
|
||
expect(await SoftwareDevelopersApplications.getText()).toEqual('Software Developers, Applications');
|
||
expect(await SoftwareDevelopersSystemsSoftware.getText()).toEqual('Software Developers, Systems Software');
|
||
await NearbyPlacesRightScroll.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await TelecommunicationsEngineeringSpecialists.getText()).toEqual('Telecommunications Engineering Specialists');
|
||
await CloseXIcon.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Knowledge Link
|
||
await KnowledgeLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DIVTitle.getText()).toEqual('Knowledge');
|
||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
||
expect(await DescriptionOne.getText()).toEqual('Computers and Electronics');
|
||
expect(await ImportanceStatOne.getText()).toEqual('89%');
|
||
expect(await DescriptionTwo.getText()).toEqual('Mathematics');
|
||
expect(await ImportanceStatTwo.getText()).toEqual('77%');
|
||
expect(await DescriptionThree.getText()).toEqual('Engineering and Technology');
|
||
expect(await ImportanceStatThree.getText()).toEqual('74%');
|
||
expect(await DescriptionFour.getText()).toEqual('English Language');
|
||
expect(await ImportanceStatFour.getText()).toEqual('72%');
|
||
expect(await DescriptionFive.getText()).toEqual('Administration and Management');
|
||
expect(await ImportanceStatFive.getText()).toEqual('58%');
|
||
expect(await DescriptionSix.getText()).toEqual('Design');
|
||
expect(await ImportanceStatSix.getText()).toEqual('57%');
|
||
expect(await DescriptionSeven.getText()).toEqual('Telecommunications');
|
||
expect(await ImportanceStatSeven.getText()).toEqual('52%');
|
||
await CloseXImage.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Skills Link
|
||
await SkillsLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DIVTitle.getText()).toEqual('Skills');
|
||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
||
expect(await DescriptionOne.getText()).toEqual('Complex Problem Solving');
|
||
expect(await ImportanceStatOne.getText()).toEqual('75%');
|
||
expect(await DescriptionTwo.getText()).toEqual('Critical Thinking');
|
||
expect(await ImportanceStatTwo.getText()).toEqual('75%');
|
||
expect(await DescriptionThree.getText()).toEqual('Judgment and Decision Making');
|
||
expect(await ImportanceStatThree.getText()).toEqual('75%');
|
||
expect(await DescriptionFour.getText()).toEqual('Active Listening');
|
||
expect(await ImportanceStatFour.getText()).toEqual('69%');
|
||
expect(await DescriptionFive.getText()).toEqual('Reading Comprehension');
|
||
expect(await ImportanceStatFive.getText()).toEqual('69%');
|
||
expect(await DescriptionSix.getText()).toEqual('Systems Analysis');
|
||
expect(await ImportanceStatSix.getText()).toEqual('69%');
|
||
expect(await DescriptionSeven.getText()).toEqual('Programming');
|
||
expect(await ImportanceStatSeven.getText()).toEqual('66%');
|
||
expect(await DescriptionEight.getText()).toEqual('Systems Evaluation');
|
||
expect(await ImportanceStatEight.getText()).toEqual('66%');
|
||
await CloseXImage.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Ability Link
|
||
await AbilityLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DIVTitle.getText()).toEqual('Ability');
|
||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
||
expect(await DescriptionOne.getText()).toEqual('Deductive Reasoning');
|
||
expect(await ImportanceStatOne.getText()).toEqual('78%');
|
||
expect(await DescriptionTwo.getText()).toEqual('Inductive Reasoning');
|
||
expect(await ImportanceStatTwo.getText()).toEqual('78%');
|
||
expect(await DescriptionThree.getText()).toEqual('Oral Comprehension');
|
||
expect(await ImportanceStatThree.getText()).toEqual('75%');
|
||
await CloseXImage.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Tasks Link
|
||
await TasksLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DIVTitle.getText()).toEqual('Tasks');
|
||
expect(await TasksCategoryHeader.getText()).toEqual('Category');
|
||
expect(await TasksImportanceHeader.getText()).toEqual('Importance');
|
||
expect(await TasksDescriptionOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.');
|
||
expect(await TasksCategoryDataOne.getText()).toEqual('Core');
|
||
expect(await TasksImportanceDataOne.getText()).toEqual('81%');
|
||
expect(await TasksDescriptionTwo.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.');
|
||
expect(await TasksCategoryDataTwo.getText()).toEqual('Core');
|
||
expect(await TasksImportanceDataTwo.getText()).toEqual('72%');
|
||
expect(await TasksDescriptionThree.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.');
|
||
expect(await TasksCategoryDataThree.getText()).toEqual('Core');
|
||
expect(await TasksImportanceDataThree.getText()).toEqual('69%');
|
||
expect(await TasksDescriptionFour.getText()).toEqual('Meet with managers, vendors, and others to solicit cooperation and resolve problems.');
|
||
expect(await TasksCategoryDataFour.getText()).toEqual('Core');
|
||
expect(await TasksImportanceDataFour.getText()).toEqual('66%');
|
||
expect(await TasksDescriptionFive.getText()).toEqual('Design computers and the software that runs them.');
|
||
expect(await TasksCategoryDataFive.getText()).toEqual('Core');
|
||
expect(await TasksImportanceDataFive.getText()).toEqual('66%');
|
||
expect(await TasksDescriptionSix.getText()).toEqual('Conduct logical analyses of business, scientific, engineering, and other technical problems, formulating mathematical models of problems for solution by computers.');
|
||
expect(await TasksCategoryDataSix.getText()).toEqual('Core');
|
||
expect(await TasksImportanceDataSix.getText()).toEqual('65%');
|
||
await CloseXImage.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Technology Link
|
||
await TechnologyLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DIVTitle.getText()).toEqual('Technology');
|
||
expect(await TechnologyDescriptionOne.getText()).toEqual('Development environment software');
|
||
expect(await TechnologyStatOne.getText()).toEqual('Ada ;');
|
||
await CloseXImage.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
//Work Activities Link
|
||
await WorkActivitiesLink.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
expect(await DIVTitle.getText()).toEqual('Work Activities');
|
||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
||
expect(await DescriptionOne.getText()).toEqual('Interacting With Computers');
|
||
expect(await ImportanceStatOne.getText()).toEqual('99%');
|
||
expect(await DescriptionTwo.getText()).toEqual('Getting Information');
|
||
expect(await ImportanceStatTwo.getText()).toEqual('91%');
|
||
expect(await DescriptionThree.getText()).toEqual('Making Decisions and Solving Problems');
|
||
expect(await ImportanceStatThree.getText()).toEqual('91%');
|
||
expect(await DescriptionFour.getText()).toEqual('Analyzing Data or Information');
|
||
expect(await ImportanceStatFour.getText()).toEqual('89%');
|
||
expect(await DescriptionFive.getText()).toEqual('Updating and Using Relevant Knowledge');
|
||
expect(await ImportanceStatFive.getText()).toEqual('89%');
|
||
expect(await DescriptionSix.getText()).toEqual('Thinking Creatively');
|
||
expect(await ImportanceStatSix.getText()).toEqual('88%');
|
||
expect(await DescriptionSeven.getText()).toEqual('Documenting/Recording Information');
|
||
expect(await ImportanceStatSeven.getText()).toEqual('84%');
|
||
expect(await DescriptionEight.getText()).toEqual('Communicating with Supervisors, Peers, or Subordinates');
|
||
expect(await ImportanceStatEight.getText()).toEqual('83%');
|
||
expect(await DescriptionNine.getText()).toEqual('Identifying Objects, Actions, and Events');
|
||
expect(await ImportanceStatNine.getText()).toEqual('83%');
|
||
await CloseXImage.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
});
|
||
}
|
||
|
||
function SignOut() {
|
||
it(': SignOut; should log out of journeysmap.', async function () {
|
||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
||
|
||
await ProfileImage.click().then(function() {
|
||
browser.sleep(1000);
|
||
});
|
||
await SignOutButton.click().then(function() {
|
||
browser.sleep(2500);
|
||
});
|
||
browser.get(browser.params.login);
|
||
browser.sleep(2500);
|
||
});
|
||
} |