Added topCareer Test

This commit is contained in:
2020-05-28 15:49:21 -07:00
parent 54e022a2bd
commit c9e8417ef9
2 changed files with 744 additions and 0 deletions

29
topCareer_config.js Normal file
View File

@@ -0,0 +1,29 @@
// config.js
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['topcareer_spec.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 360000
},
capabilities: {
browserName: 'chrome'
},
onPrepare: function() {
browser.driver.manage().window().maximize();
},
/*multiCapabilities: [{
browserName: 'chrome'
}, {
browserName: 'firefox'
}]/*, {
browserName: 'internet explorer'
}], {
browserName: 'safari'
}]*/
}

715
topCareer_spec.js Normal file
View File

@@ -0,0 +1,715 @@
//journeysmap_spec.js
describe('Journeysmap script', function () {
//app-journeysmap landing page
var UserNameTextBox = element(by.css('#txtU'));
var PasswordTextBox = element(by.css('#txtP'));
//Open browser
//browser.driver.manage().window().setSize(1600, 800);
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/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('should sign into journeysmap.com', async function () {
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
var PageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)'));
var PageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope'));
var NextButton = element(by.css('.btn'));
var EC = protractor.ExpectedConditions;
var InvalidIcon = element(by.css('.far:nth-child(4)'));
var PageValidationText = element(by.css('.ng-binding:nth-child(1)'));
var EyeIcon = element(by.css('.fa-eye'));
var JourneysGreeting = element(by.css('.dropdown'));
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
browser.sleep(1000);
await UserNameTextBox.sendKeys('QA_AutomatedRegression');
await PasswordTextBox.sendKeys('3Dm!nAuto');
await NextButton.click().then(function() {
browser.waitForAngular();
browser.getCurrentUrl();
});
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
browser.waitForAngular();
browser.getCurrentUrl();
});
}
//<<<<DASHBOARD>>>>
//Top Career Widget
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 TopCareerDescription = element(by.css('.jrEllipsis3Lines'));
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 1383);').then(function() {
browser.sleep(2500);
});
/*browser.executeScript('window.scrollTo(0, 1880);').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 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 click the Top Career link and interact with Learn More page', 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 XCloseLink = element(by.css('.close'));
var VideoIcon = element(by.css('.text-right .far'));
var FollowIcon = element(by.css('.text-right > span .journey-follow'));
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
var AtAGlanceHeader = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy'));
var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text'));
var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4'));
var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text'));
var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize'));
var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text'));
var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span'));
var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4'));
var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text'));
var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize'));
var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text'));
var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize'));
var PersonalityWidgetTitle = element(by.css('.widget-round-corners:nth-child(3) .fullHeight .jrnys_lead-body-copy'));
var PersonalityDescriptionOne = element(by.css('.carouselHeight > .ng-scope > tbody > tr > td > .ng-binding'));
var PersonalityDescriptionTwo = element(by.css('.ng-scope > tbody > tr:nth-child(2) div'));
var PersonalityBulletOne = element(by.css('table:nth-child(1) .ng-scope:nth-child(1) > td:nth-child(1) > .ng-binding:nth-child(2)'));
var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(1) > td:nth-child(2) > .ng-binding'));
var PersonalityBulletThree = element(by.css('table:nth-child(1) .ng-scope:nth-child(2) > td:nth-child(1) > .ng-binding:nth-child(2)'));
var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(2) > td:nth-child(2) > .ng-binding'));
var PersonalityBulletFive = element(by.css('table:nth-child(1) .ng-scope:nth-child(3) > td:nth-child(1) > .ng-binding:nth-child(2)'));
var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(3) > td:nth-child(2) > .ng-binding'));
var WagesWidgetTitle = element(by.css('.widget-round-corners:nth-child(4) .fullHeight .jrnys_lead-body-copy'));
var WagesInfoIcon = element(by.css('.jrnys_lead-body-copy > .journey-info-circle'));
var WagesSubTextOne = element(by.css('table:nth-child(2) > tbody > tr:nth-child(2) div:nth-child(1)'));
var WagesSubTextTwo = element(by.css('td > .ng-scope:nth-child(2)'));
var WagesSubTextThree = element(by.css('.fullHeight:nth-child(2) > table div:nth-child(3)'));
var WagesSubTextFour = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'));
var WagesSubTextFive = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm19all.zip'));
var WagesSubTextSix = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm18all.zip'));
var WagesSubTextSeven = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm17all.zip'));
var WagesCloseBackOfCardIcon = element(by.css('.fa-times-rectangle'));
var WagesNoDataText = element(by.css('div:nth-child(1) > .ng-binding:nth-child(3)'));
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 WagesHighText = element(by.css('g:nth-child(4) > text'));
var WagesMedianText = element(by.css('g:nth-child(5) > text'));
var WagesLowText = element(by.css('g:nth-child(6) > text'));
var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text'));
var Wages100KText = element(by.css('g:nth-child(4) > g:nth-child(2) > text'));
var Wages200KText = element(by.css('g:nth-child(3) > text'));
var WagesChangeLocationLink = element(by.css('.dropdown > .widgetRightControlContainer'));
var ZipCodeTextBox = element(by.css('.ng-valid-maxlength:nth-child(1)'));
var ApplyButton = element(by.css('tr:nth-child(1) > td > .btn'));
var DegreesWidgetTitle = element(by.css('#liDegree .jrnys_lead-body-copy'));
var DegreesCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .jrnys_body-copy'));
var DegreesCardTwoHeader = element(by.css('.col-xs-4:nth-child(2) .jrnys_body-copy'));
var DegreesCardThreeHeader = element(by.css('.col-xs-4:nth-child(3) .jrnys_body-copy'));
var DegreesRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon'));
var DegreesCardTWoHeaderOne = element(by.css('.item:nth-child(2) .jrnys_body-copy'));
var CertificatesWidgetTitle = element(by.css('#liCertificate .jrnys_lead-body-copy'));
var CertificatesCardOneHeader = element(by.css('#\\35 179bed9-a8e1-44af-b525-3e8ad0dcb31e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CertificatesCardOneSubHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/span'));
var CertificatesCardTwoHeader = element(by.css('#\\38 8e24eb9-a695-4048-917d-f45bd0015675 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CertificatesCardTwoSubHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/span'));
var CertificatesCardThreeHeader = element(by.css('#\\31 82f070b-18f9-4276-bb91-3128c4d0cf2c > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CertificatesCardThreeSubHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/span'));
var CertificatesRightScroll = element(by.css('.widget-round-corners:nth-child(6) .right:nth-child(4) > .glyphicon:nth-child(1)'));
var CertificatesCardTwoHeaderOne = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CertificatesCardTwoHeaderTwo = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CertificatesCardTwoHeaderThree = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div'));
var InstitutionsCardOneHeader = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
var InstitutionsCardOneAtAGlance = element(by.css('#territoryCardContainer > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div > div.territoryCardIcon > i'));
var InstitutionsBackOfCardAtAGlance = element(by.css('#territoryCardContainer > div:nth-child(3) > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText'));
var InstitutionsBackOfCardOneHeader = element(by.css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding'));
var InstitutionsBackOfCard4YearHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)'));
var InstitutionsBackOfCard4YearData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)'));
var InstitutionsBackOfCardUndergradHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)'));
var InstitutionsBackOfCardUndergradData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding'));
var InstitutionsBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText'));
var InstitutionsBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div'));
var InstitutionsBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText'));
var InstitutionsBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div'));
var InstitutionsCardTwoHeader = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
var InstitutionsCardThreeHeader = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon'));
var InstitutionsCardTwoHeaderOne = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
var InstitutionsCardTwoHeaderTwo = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
var InstitutionsCardTwoHeaderThree = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
var TopResourcesWidgetTitle = element(by.css('#id .jrnys_lead-body-copy'));
var TopResourcesCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .hotTitles'));
var TopResourcesCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .hotTitles'));
var TopResourcesCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .hotTitles'));
var TopResourcesRightScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
var TopResourcesCardTwoHeaderOne = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(1) .hotTitles'));
var TopResourcesCardTwoHeaderTwo = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(2) .hotTitles'));
var TopResourcesCardTwoHeaderThree = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(3) .hotTitles'));
var TopResourcesLeftScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a/span'));
var TopResourcesCardThreeSaveIcon = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .journey-save:nth-child(1)'));
var FindOpportunitiesWidgetTitle = element(by.css('.widgetTitleContainerFindJob > .noPaddingCol'));
var FindOpportunitiesSubText = element(by.css('.col-sm-12:nth-child(2)'));
var JobsTotalsLink = element(by.css('.col-sm-8 .job-title-display'));
var JobListingsDivHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding'));
var InternshipsTotalsLink = element(by.xpath('//div[2]/div/div[2]/div/div'));
var InternshipsListingsDivHeader = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));
var ApprenticeshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));
var FindOpportunitiesChangeLocationLink = element(by.css('.text-right:nth-child(2)'));
var ChangeLocationDivTitle = element(by.css('b'));
var ChangeLocationDivSubTitle = element(by.css('.col-xs-11:nth-child(2)'));
var ChnageLocationEnterZipCodeTextBox = element(by.css('#inputZip'));
var ChangeLocationApplyButton = element(by.css('#indeedQuery'));
var SubmitResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12'));
var SubmitResourceWidgetSubTextOne = element(by.css('.row:nth-child(2) > .jrnys_body-copy:nth-child(1)'));
var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1'));
var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy'));
var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding'));
var MyResourceTitle = element(by.css('.row > .row > .col-xs-9 > .ng-binding'));
var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)'));
var MyResourceFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span'));
var MyResourceLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)'));
var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1'));
var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12'));
var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text'));
var SubmitAResourceDivTitle = element(by.css('h3'));
var SubmitAResourceDivCancelButton = element(by.css('.btn-blue-RoundTabsinfo'));
var KnowledgeWidgetTitle = element(by.css('#knowledgeid .jrnys_lead-body-copy'));
var KnowledgeImportanceHeader = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
var KnowledgeDescriptionOne = element(by.css('#knowledgeid .table:nth-child(1) .ng-scope:nth-child(1) .ng-binding:nth-child(1)'));
var KnowledgeImportanceStatOne = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
var KnowledgeDescriptionTwo = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
var KnowledgeImportanceStatTwo = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
var KnowledgeDescriptionThree = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
var KnowledgeImportanceStatThree = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
var SkillsWidgetTitle = element(by.css('#skillsid > div > div'));
var SkillsImportanceHeader = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
var SkillsDescriptionOne = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span'));
var SkillsImportanceStatOne = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
var SkillsDescriptionTwo = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
var SkillsImportanceStatTwo = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
var SkillsDescriptionThree = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
var SkillsImportanceStatThree = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
var AbilityWidgetTitle = element(by.css('#abilitiesid > div > div'));
var AbilityImportanceHeader = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
var AbilityDescriptionOne = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span'));
var AbilityImportanceStatOne = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
var AbilityDescriptionTwo = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
var AbilityImportanceStatTwo = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
var AbilityDescriptionThree = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
var AbilityImportanceStatThree = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
var TasksWidgetTitle = element(by.css('#tasksid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
var TasksCategoryHeader = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > thead > tr > th:nth-child(2)'));
var TasksImportanceHeader = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > thead > tr > th:nth-child(3)'));
var TasksDescriptionOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(1) > span > span'));
var TasksCategoryStatOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(2)'));
var TasksImportanceStatOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(3)'));
var TasksDescriptionTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(1) > span > span'));
var TasksCategoryStatTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(2)'));
var TasksImportanceStatTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(3)'));
var TasksDescriptionThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(1) > span > span'));
var TasksCategoryStatThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(2)'));
var TasksImportanceStatThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(3)'));
var WorkActivitiesWidgetTitle = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
var WorkActivitiesImportanceHeader = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
var WorkActivitiesDescriptionOne = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span'));
var WorkActivitiesImportanceStatOne = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
var WorkActivitiesDescriptionTwo = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
var WorkActivitiesImportanceStatTwo = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
var WorkActivitiesDescriptionThree = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
var WorkActivitiesImportanceStatThree = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
var TechnologyWidgetTitle = element(by.css('#technologyid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
var TechnologyDescriptionOne = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(1) > span > span'));
var TechnologyStatOne = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-left.text-color-7a > span > span > span'));
var TechnologyDescriptionTwo = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(1) > span > span'));
var TechnologyStatTwo = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-left.text-color-7a > span > span > span'));
var TechnologyDescriptionThree = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(1) > span > span'));
var TechnologyStatThree = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-left.text-color-7a > span > span > span'));
var TechnologyDescriptionFour = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(4) > td:nth-child(1) > span > span'));
var TechnologyStatFour = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(4) > td.text-left.text-color-7a > span > span > span'));
var NearbyPlacesWidgetTitle = element(by.css('#liNearby .jrnys_lead-body-copy'));
var NearbyPlacesCardOneHeader = element(by.xpath('//career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var NearbyPlacesCardOneEllipsisIcon = element(by.xpath('//career-territory-card/territory-card/div/div/div/div[2]/div/i'));
var NearbyPlacesBackOfCardOneHeader = element(by.xpath('//career-territory-card/territory-card/div/div[3]/div/div'));
var NearbyPlacesBackOfCardOneXIcon = element(by.xpath('//career-territory-card/territory-card/div/div[3]/div/div[2]/span'));
var NearbyPlacesCardTwoHeader = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var NearbyPlacesCardThreeHeader = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
var NearbyPlacesCardTwoHeaderOne = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var NearbyPlacesCardTwoHeaderTwo = element(by.xpath('//div[2]/div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var NearbyPlacesCardTwoHeaderThree = element(by.xpath('//div[2]/div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var NearbyPlacesLeftScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a/span'));
//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() {
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; Control System Computer Scientist; Scientific Programmer Analyst');
await XCloseLink.click().then(function() {
browser.sleep(2500);
});
browser.actions().mouseMove(VideoIcon).perform().then(function() {
browser.sleep(2500);
});
browser.actions().mouseMove(FollowIcon).perform().then(function() {
browser.sleep(2500);
});
browser.actions().mouseMove(JourneymanIcon).perform().then(function() {
browser.sleep(2500);
});
//At A Glance
expect(await AtAGlanceHeader.getText()).toEqual('At A Glance');
expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree');
expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 59%");
expect(await AtAGlanceStatOne.getText()).toContain("Associate's degree - 0%");
expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 0%');
expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary');
expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520');
expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth');
expect(await AtAGlanceSubHeaderThree.getText()).toEqual(' ABOVE AVERAGE');
expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE');
expect(await AtAGlanceStatThree.getText()).toContain('19.2%');
expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings');
expect(await AtAGlanceStatFour.getText()).toEqual('2,500');
expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed');
expect(await AtAGlanceStatFive.getText()).toEqual('27,900');
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 393);').then(function() {
browser.sleep(2500);
});
/*browser.executeScript('window.scrollTo(0, 405);').then(function() {
browser.sleep(2500);
});*/
//Personality
expect(await PersonalityWidgetTitle.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');
//Wages
expect(await WagesWidgetTitle.getText()).toContain('Wages');
await WagesInfoIcon.click().then(function() {
browser.sleep(1000);
});
expect(await WagesSubTextOne.getText()).toEqual('Data provided by the Bureau of Labor Statistics for SOC 15-1111.00.');
expect(await WagesSubTextTwo.getText()).toEqual('The graph is reflecting data based on BLS statistics of year 2018.');
expect(await WagesSubTextThree.getText()).toEqual('For more information please visit:');
expect(await WagesSubTextFour.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0');
expect(await WagesSubTextFive.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm19all.zip');
expect(await WagesSubTextSix.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm18all.zip');
expect(await WagesSubTextSeven.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm17all.zip');
await WagesCloseBackOfCardIcon.click().then(function() {
browser.sleep(1000);
});
//expect(await WagesNoDataText.getText()).toEqual("Sometimes even Journeys can't find something. Don't worry, we'll keep our eyes out for this information.");
expect(await WagesWidgetTitle.getText()).toContain('Change Location');
expect(await CurrentDataNationalHeader.getText()).toEqual('U.S.');
expect(await CurrentDataLocalHeader.getText()).toContain('San Diego-Carlsbad, CA');
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 Wages100KText.getText()).toEqual('$100,000');
expect(await Wages200KText.getText()).toEqual('$200,000');
await WagesChangeLocationLink.click().then(function() {
browser.sleep(1000);
});
await ZipCodeTextBox.click();
await ZipCodeTextBox.clear();
await ZipCodeTextBox.sendKeys('85013').then(function() {
browser.sleep(1000);
});
await ApplyButton.click().then(function() {
browser.sleep(2500);
});
expect(await CurrentDataNationalHeader.getText()).toEqual('U.S.');
expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ');
/*browser.actions().mouseMove(CertificatesWidgetTitle).perform().then(function() {
browser.sleep(1000);
});*/
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 938);').then(function() {
browser.sleep(2500);
});
/*browser.executeScript('window.scrollTo(0, 882);').then(function() { remove
browser.sleep(2495);
});*/
//Degrees
expect(await DegreesWidgetTitle.getText()).toEqual('Degrees');
expect(await DegreesCardOneHeader.getText()).toEqual('Computer Applications Minor—College-Wide');
expect(await DegreesCardTwoHeader.getText()).toEqual('Computer Science B.S.');
expect(await DegreesCardThreeHeader.getText()).toEqual('Computer Science Minor');
await DegreesRightScroll.click().then(function() {
browser.sleep(2500);
});
expect(await DegreesCardTWoHeaderOne.getText()).toEqual('Computer Science M.S.');
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 1277);').then(function() {
browser.sleep(2500);
});
//Certificates
expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates');
expect(await CertificatesCardOneHeader.getText()).toEqual('Certified LabVIEW Architect');
//expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); Bug?
expect(await CertificatesCardTwoHeader.getText()).toEqual('Certified Associate LabVIEW Developer');
//expect(await CertificatesCardTwoSubHeader.getText()).toEqual('Business Analysis'); Bug?
expect(await CertificatesCardThreeHeader.getText()).toEqual('Avaya Certified Expert');
//expect(await CertificatesCardThreeSubHeader.getText()).toEqual('Business Financial Mgmt & Acctg'); Bug?
await CertificatesRightScroll.click().then(function() {
browser.sleep(2500);
});
expect(await CertificatesCardTwoHeaderOne.getText()).toEqual('Certified Biometrics Professional');
expect(await CertificatesCardTwoHeaderTwo.getText()).toEqual('Certified Software Development Professional');
expect(await CertificatesCardTwoHeaderThree.getText()).toEqual('Microsoft Server Virtualization with Windows Server Hyper-V and System Center');
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 1730);').then(function() {
browser.sleep(5000);
});
/*browser.executeScript('window.scrollTo(0, 1995);').then(function() { remove
browser.sleep(2500);
});*/
//Institutions
expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All');
expect(await InstitutionsCardOneHeader.getText()).toEqual('University of San Diego');
/*await InstitutionsCardOneAtAGlance.click().then(function() {
browser.sleep(2500)
});
expect(await InstitutionsBackOfCardOneHeader.getText()).toEqual('University of San Diego');
expect(await InstitutionsBackOfCard4YearHeader.getText()).toEqual('4 Year');
expect(await InstitutionsBackOfCard4YearData.getText()).toEqual('Private nonprofit');
expect(await InstitutionsBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students');
expect(await InstitutionsBackOfCardUndergradData.getText()).toEqual('5,677');
expect(await InstitutionsBackOfCardLocationHeader.getText()).toContain('Location');
expect(await InstitutionsBackOfCardLocationData.getText()).toEqual('City');
expect(await InstitutionsBackOfCardClassroomHeader.getText()).toContain('Classrooms');
expect(await InstitutionsBackOfCardClassroomData.getText()).toEqual('Medium');*/
expect(await InstitutionsCardTwoHeader.getText()).toEqual('National University');
expect(await InstitutionsCardThreeHeader.getText()).toEqual('Point Loma Nazarene University');
await InstitutionsRightScroll.click().then(function() {
browser.sleep(2500);
});
expect(await InstitutionsCardTwoHeaderOne.getText()).toEqual('University of California-San Diego');
expect(await InstitutionsCardTwoHeaderTwo.getText()).toEqual('San Diego State University');
expect(await InstitutionsCardTwoHeaderThree.getText()).toEqual('California State University-San Marcos');
/*browser.actions().mouseMove(FindOpportunitiesWidgetTitle).perform().then(function() {
browser.sleep(1000);
});*/
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 2182);').then(function() {
browser.sleep(2500);
});
/*browser.executeScript('window.scrollTo(0, 2470);').then(function() { remove
browser.sleep(2500);
});*/
//Top Resources
expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All');
expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist');
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
await TopResourcesRightScroll.click().then(function() {
browser.sleep(2500);
});
expect(await TopResourcesCardTwoHeaderOne.getText()).toEqual('Computer and Information Research Scientists');
expect(await TopResourcesCardTwoHeaderTwo.getText()).toEqual('Computer and Information Research Scientists');
expect(await TopResourcesCardTwoHeaderThree.getText()).toEqual('Arduino download link for Thinkabitlab');
await TopResourcesLeftScroll.click().then(function() {
browser.sleep(2500);
});
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
await TopResourcesCardThreeSaveIcon.click().then(function() {
browser.sleep(2500);
});
/*browser.actions().mouseMove(TasksWidgetTitle).perform().then(function() {
browser.sleep(1000);
});*/
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 2522);').then(function() {
browser.sleep(2500);
});
/*browser.executeScript('window.scrollTo(0, 2947);').then(function() { remove
browser.sleep(2500);
});*/
//Find Opportunities
expect(await FindOpportunitiesWidgetTitle.getText()).toEqual('Find Opportunities');
expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 50 mile radius of 92123.');
expect(await JobsTotalsLink.getText()).toContain('Jobs');
//expect(await JobsTotalsLink.getText()).toContain('85');//stored value needed
expect(await InternshipsTotalsLink.getText()).toContain('Internships');
//expect(await InternshipsTotalsLink.getText()).toContain('0');//stored value needed
expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');//value sometimes is disabled
//expect(await ApprenticeshipsTotalsLink.getText()).toContain('0');//stored value needed
await FindOpportunitiesChangeLocationLink.click().then(function() {
browser.sleep(1000);
});
expect(await ChangeLocationDivTitle.getText()).toEqual('Change Location');
expect(await ChangeLocationDivSubTitle.getText()).toEqual("Let's search the location you're most interested in.");
await ChnageLocationEnterZipCodeTextBox.sendKeys('85013');
browser.sleep(1000);
element(by.cssContainingText('option', '1000')).click().then(function() {
browser.sleep(1000);
});
await ChangeLocationApplyButton.click().then(function() {
browser.sleep(1000);
});
expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 1000 mile radius of you.');
await JobsTotalsLink.click().then(function() {
browser.sleep(2500);
});
expect(await JobListingsDivHeader.getText()).toContain('Job Listings:');//stored value needed
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
/*await InternshipsTotalsLink.click().then(function() {
browser.sleep(2500);
});
expect(await InternshipsListingsDivHeader.getText()).toContain('Internships: ');//stored value needed
await XCloseLink.click().then(function() {
browser.sleep(1000);
});*/
expect(await JobsTotalsLink.getText()).toEqual('Jobs'); //remove
//expect(await JobsTotalsLink.getText()).toContain('68');//stored value needed
expect(await InternshipsTotalsLink.getText()).toEqual('Internships');
//expect(await InternshipsTotalsLink.getText()).toContain('0');//stored value needed
expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');
//expect(await Totals.getText()).toContain('3');//stored value needed
//Submit A Resource
expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource');
expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources");
expect(await TotalInJourneys.getText()).toContain('Total in Journeys');
expect(await TotalInJourneys.getText()).toContain('1');
await MySubmittedResourcesLink.click().then(function() {
browser.sleep(1000);
});
expect(await MySubmittedResourcesWidgetTitle.getText()).toContain('My Submitted Resources');
expect(await MyResourceTitle.getText()).toEqual('Test Doc');
await EllipsisResource.click().then(function() {
browser.sleep(1000);
});
expect(await MyResourceFollowIcon.getText()).toEqual('Follow');
expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More');
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await ForThisMapPoint.getText()).toContain('For this map point');
expect(await ForThisMapPoint.getText()).toContain('0');
expect(await SubmitResourceWidgetSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.');
await SubmitAResourceWidgetButton.click().then(function() {
browser.sleep(1000);
});
expect(await SubmitAResourceDivTitle.getText()).toEqual('Submit a Resource');
await SubmitAResourceDivCancelButton.click().then(function() {
browser.sleep(1000);
});
/*browser.actions().mouseMove(KnowledgeWidgetTitle).perform().then(function() {
browser.sleep(1000);
});*/
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 2860);').then(function() {
browser.sleep(2500);
});
/*browser.executeScript('window.scrollTo(0, 3225);').then(function() {
browser.sleep(25000);
});*/
//Knowledge
expect(await KnowledgeWidgetTitle.getText()).toEqual('Knowledge View All');
expect(await KnowledgeImportanceHeader.getText()).toEqual('Importance');
expect(await KnowledgeDescriptionOne.getText()).toEqual('Computers and Electronics');
expect(await KnowledgeImportanceStatOne.getText()).toEqual('90%');
expect(await KnowledgeDescriptionTwo.getText()).toEqual('Mathematics');
expect(await KnowledgeImportanceStatTwo.getText()).toEqual('82%');
expect(await KnowledgeDescriptionThree.getText()).toEqual('English Language');
expect(await KnowledgeImportanceStatThree.getText()).toEqual('79%');
//Skills
expect(await SkillsWidgetTitle.getText()).toEqual('Skills View All');
expect(await SkillsImportanceHeader.getText()).toEqual('Importance');
expect(await SkillsDescriptionOne.getText()).toEqual('Complex Problem Solving');
expect(await SkillsImportanceStatOne.getText()).toEqual('72%');
expect(await SkillsDescriptionTwo.getText()).toEqual('Critical Thinking');
expect(await SkillsImportanceStatTwo.getText()).toEqual('69%');
expect(await SkillsDescriptionThree.getText()).toEqual('Systems Analysis');
expect(await SkillsImportanceStatThree.getText()).toEqual('69%');
//Ability
expect(await AbilityWidgetTitle.getText()).toEqual('Ability View All');
expect(await AbilityImportanceHeader.getText()).toEqual('Importance');
expect(await AbilityDescriptionOne.getText()).toEqual('Deductive Reasoning');
expect(await AbilityImportanceStatOne.getText()).toEqual('72%');
expect(await AbilityDescriptionTwo.getText()).toEqual('Inductive Reasoning');
expect(await AbilityImportanceStatTwo.getText()).toEqual('72%');
expect(await AbilityDescriptionThree.getText()).toEqual('Problem Sensitivity');
expect(await AbilityImportanceStatThree.getText()).toEqual('69%');
//Tasks
expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All');
expect(await TasksCategoryHeader.getText()).toEqual('Category');
expect(await TasksImportanceHeader.getText()).toEqual('Importance');
browser.actions().mouseMove(TasksDescriptionOne).perform().then(function() {
browser.sleep(2500);
});
expect(await TasksDescriptionOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.');
expect(await TasksCategoryStatOne.getText()).toEqual('Core');
expect(await TasksImportanceStatOne.getText()).toEqual('82%');
expect(await TasksDescriptionTwo.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.');
expect(await TasksCategoryStatTwo.getText()).toEqual('Core');
expect(await TasksImportanceStatTwo.getText()).toEqual('71%');
expect(await TasksDescriptionThree.getText()).toEqual('Evaluate project plans and proposals to assess feasibility issues.');
expect(await TasksCategoryStatThree.getText()).toEqual('Core');
expect(await TasksImportanceStatThree.getText()).toEqual('70%');
//Work Activities
expect(await WorkActivitiesWidgetTitle.getText()).toEqual('Work Activities View All');
expect(await WorkActivitiesImportanceHeader.getText()).toEqual('Importance');
expect(await WorkActivitiesDescriptionOne.getText()).toEqual('Interacting With Computers');
expect(await WorkActivitiesImportanceStatOne.getText()).toEqual('92%');
expect(await WorkActivitiesDescriptionTwo.getText()).toEqual('Getting Information');
expect(await WorkActivitiesImportanceStatTwo.getText()).toEqual('90%');
expect(await WorkActivitiesDescriptionThree.getText()).toEqual('Processing Information');
expect(await WorkActivitiesImportanceStatThree.getText()).toEqual('87%');
//Technology
expect(await TechnologyWidgetTitle.getText()).toEqual('Technology View All');
expect(await TechnologyDescriptionOne.getText()).toEqual('Development environment software');
expect(await TechnologyStatOne.getText()).toEqual('Ada');
expect(await TechnologyDescriptionTwo.getText()).toEqual('Analytical or scientific software');
expect(await TechnologyStatTwo.getText()).toEqual('Advanced numerical software');
expect(await TechnologyDescriptionThree.getText()).toEqual('Data base management system software');
expect(await TechnologyStatThree.getText()).toEqual('Apache Cassandra ');
expect(await TechnologyDescriptionFour.getText()).toEqual('Operating system software');
expect(await TechnologyStatFour.getText()).toEqual('Bash ');
//Resolution 1366 x 768
browser.executeScript('window.scrollTo(0, 3311);').then(function() {
browser.sleep(5000);
});
//Nearby Places
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places');
expect(await NearbyPlacesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists');
await NearbyPlacesCardOneEllipsisIcon.click().then(function() {
browser.sleep(2500);
});
expect(await NearbyPlacesBackOfCardOneHeader.getText()).toEqual('Computer and Information Research Scientists');
await NearbyPlacesBackOfCardOneXIcon.click().then(function() {
browser.sleep(2500);
});
expect(await NearbyPlacesCardTwoHeader.getText()).toEqual('Computer and Information Systems Managers');
expect(await NearbyPlacesCardThreeHeader.getText()).toEqual('Computer Network Architects');
await NearbyPlacesRightScroll.click().then(function() {
browser.sleep(2500);
});
expect(await NearbyPlacesCardTwoHeaderOne.getText()).toEqual('Computer Network Support Specialists');
expect(await NearbyPlacesCardTwoHeaderTwo.getText()).toEqual('Computer Occupations, All Other');
expect(await NearbyPlacesCardTwoHeaderThree.getText()).toEqual('Computer Programmers');
await NearbyPlacesLeftScroll.click().then(function() {
browser.sleep(2500);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
}
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'));
browser.waitForAngular();
browser.sleep(1000);
await ProfileImage.click();
browser.sleep(1000);
browser.waitForAngular();
browser.getCurrentUrl();
await SignOutButton.click().then(function() {
browser.sleep(2500);
});
});
}