Updated to run on prod
This commit is contained in:
803
learnMorePage_spec.js
Normal file
803
learnMorePage_spec.js
Normal file
@@ -0,0 +1,803 @@
|
||||
//learnMorePage_spec.js
|
||||
|
||||
describe('Learn More Page 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('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.');
|
||||
await UserNameTextBox.sendKeys(browser.params.username);
|
||||
browser.sleep(1000);
|
||||
await PasswordTextBox.sendKeys('3Dm!nAuto');
|
||||
browser.sleep(1000);
|
||||
await NextButton.click().then(function() {
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
}
|
||||
|
||||
LearnMorePage();
|
||||
|
||||
//Sign Out*/
|
||||
SignOut();
|
||||
});
|
||||
|
||||
function LearnMorePage() {
|
||||
it(': LearnMorePage, 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 Progress = element(by.css('.ng-scope:nth-child(3) > a > .jrnys_support-text'));
|
||||
var Followers = element(by.css('.text-color-7a > .jrnys_support-text'));
|
||||
var Confidence = element(by.css('.ng-scope:nth-child(1) > a > .jrnys_support-text'));
|
||||
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.xpath('//occupation-wages/div/div[2]/div/div'));
|
||||
var WagesInfoIcon = element(by.css('.jrnys_lead-body-copy > .journey-info-circle'));
|
||||
var WagesWidgetBackOfCardTitle = element(by.css('tr > .jrnys_lead-body-copy'));
|
||||
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 WagesWidgetCloseBackOfCardIcon = 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.css('.btn:nth-child(2)'))
|
||||
var CollegePathwaysWidgetTitle = element(by.css('#liDegree .jrnys_lead-body-copy'));
|
||||
var ComputerApplicationsMinorCollegeWide = element(by.css('#\\36 3f93734-c4e9-48cd-8ff4-041e10760da5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerScienceBS = element(by.css('#a6e09aef-a938-4c2b-aa90-c6d6b2499de7 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerScienceMinor = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var CollegePathwaysRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon'));
|
||||
var ComputerScienceMS = element(by.css('#a8803504-ea19-4643-8569-b5fae3db34d9 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var CertificatesWidgetTitle = element(by.css('#liCertificate .jrnys_lead-body-copy'));
|
||||
var CertifiedLabVIEWArchitect = 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 CertifiedAssociateLabVIEWDeveloper = 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 AvayaCertifiedExpert = 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 CertifiedBiometricsProfessional = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var CertifiedSoftwareDevelopmentProfessional = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div'));
|
||||
var UniversityOfSanDiego = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||
var UniversityOfSanDiegoAtAGlanceIcon = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardItemText:nth-child(2)'));
|
||||
var UniversityOfSanDiegoBackOfCardTitle = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[1]/div[1]'));//css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding'));
|
||||
var UniversityOfSanDiegoBackOfCard4YearHeader = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[1]/td[2]/div[1]'));//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 UniversityOfSanDiegoBackOfCard4YearData = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[1]/td[2]/div[2]'));//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 UniversityOfSanDiegoBackOfCardUndergradHeader = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[3]/td[2]/div[1]'));//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 UniversityOfSanDiegoBackOfCardUndergradData = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[3]/td[2]/div[2]'));//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 UniversityOfSanDiegoBackOfCardLocationHeader = 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 UniversityOfSanDiegoBackOfCardLocationData = 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 UniversityOfSanDiegoBackOfCardClassroomHeader = 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 UniversityOfSanDiegoBackOfCardClassroomData = 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 UniversityOfSanDiegoBackOfCardXCloseIcon = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[1]/div[2]/span'));//css('#territoryCardTitleHeader > div:nth-child(2) > span'));
|
||||
var UniversityOfSanDiegoEllipsisIcon = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(2) .fas:nth-child(1)'));
|
||||
var UniversityOfSanDiegoBackOfCardTitleTwo = element(by.css('.territoryCardTitleText:nth-child(1)'));//xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[3]/div[1]/div[1]'));
|
||||
var UniversityOfSanDiegoBackOfCardFollowIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(1) > div.territoryCardItemText'));
|
||||
var UniversityOfSanDiegoBackOfCardLearnMoreIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(2) > div.territoryCardBackOfCardItemText'));
|
||||
var UniversityOfSanDiegoBackOfCardAtAGlanceIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText'));
|
||||
var NationalUniversity = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||
var PointLomaNazareneUniversity = 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 UniversityOfCaliforniaSanDiego = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||
var SanDiegoStateUniversity = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||
var CaliforniaStateUniversitySanMarcos = 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 JourneysGreeting = element(by.css('.dropdown'));
|
||||
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 TopResourcesCardFourHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(1) .hotTitles'));
|
||||
var TopResourcesCardFiveHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(2) .hotTitles'));
|
||||
var TopResourcesCardSixHeader = 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('.noPaddingCol > .jrnys_lead-body-copy'));
|
||||
var FindOpportunitiesSubText = element(by.css('.no-padding > .jrnys_body-copy'));
|
||||
var JobsTotalsLink = element(by.css('.col-sm-4:nth-child(1) .col-sm-9 .jrnys_stand-out-text'));
|
||||
var JobListingsDIVHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding'));
|
||||
var InternshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));//Null link
|
||||
var InternshipsListingsDIVHeader = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));
|
||||
var ApprenticeshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));//Null link
|
||||
var FindOpportunitiesChangeLocationLink = element(by.css('.jrnys_body-copy: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(1) > .jrnys_body-copy'));
|
||||
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(3) > .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 ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerAndInformationSystemsManagersEllipsisIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas'));
|
||||
var ComputerAndInformationSystemsManagersBackOfCardTitle = element(by.css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding'));
|
||||
var ComputerAndInformationSystemsManagersBackOfCardXIcon = element(by.css('#territoryCardTitleHeader > div:nth-child(2) > span'));
|
||||
var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerNetworkArchitects = element(by.css('#fb2fabe5-621b-477e-948c-64d1fef31b95 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerNetworkSupportSpecialists = element(by.css('#b645081d-8b86-44b2-8d68-155c064edced > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
||||
var ComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerProgrammers = element(by.css('#\\33 ce39f29-0e17-4472-8dba-682356e8df07 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var ComputerScienceTeachersPostsecondary = element(by.css('#e867c7f0-c5e9-43ac-9dd3-82dd4dd62660 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var DataWarehousingSpecialist = element(by.css('#\\34 9618b26-751c-4c6c-bb52-1773b0c84e68 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var DatabaseAdministrator = element(by.css('#\\31 25099b5-7514-4a28-8c5f-776a0edd13c2 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var DatabaseArchitects = element(by.css('#\\32 f5c1341-aaec-41f7-8d76-7fbe9c0497fa > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var GraphicDesigners = element(by.css('#cc7cc408-71ef-4390-b425-d03e24f8253a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var InformationSecurityAnalysts = element(by.css('#\\31 fe39d9e-c19d-45eb-bfef-f44e759a56d6 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var MultimediaArtistsAndAnimators = element(by.css('#\\32 a294540-b4cc-4886-a4de-edb17e7a748e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var NetworkAndComputerSystemsAdministrators = element(by.css('#ce3ef31a-9e4e-4ab8-a950-61b07731ad66 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var SoftwareDevelopersApplications = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var SoftwareDevelopersSystemsSoftware = element(by.css('#d1ab3735-cd9e-46aa-9046-76cd7122f4a8 > #territoryCardContainer .ng-binding'));
|
||||
var TelecommunicationsEngineeringSpecialists = element(by.css('#\\35 3a78dab-253e-4962-a9a7-282e9b23493c > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > span'));
|
||||
var MyResourcesOneHeader = element(by.css('.col-xs-4:nth-child(1) .hotTitles'));
|
||||
var MyResourcesOneSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)'));
|
||||
var MyResourcesTwoHeader = element(by.css('.col-xs-4:nth-child(2) .hotTitles'));
|
||||
|
||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await TopCareerLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
//At A Glance
|
||||
expect(await AtAGlanceHeader.getText()).toEqual('At A Glance');
|
||||
expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree');
|
||||
expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 1%');
|
||||
expect(await AtAGlanceStatOne.getText()).toContain('Doctoral degree - 1%');
|
||||
expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 1%");
|
||||
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');
|
||||
//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 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);
|
||||
});
|
||||
expect(await Progress.getText()).toContain('PROGRESS');
|
||||
expect(await Progress.getText()).toContain('COMPLETE');
|
||||
expect(await Followers.getText()).toEqual('FOLLOWERS');
|
||||
expect(await Confidence.getText()).toContain('YOUR CONFIDENCE');
|
||||
expect(await Confidence.getText()).toContain('IS VERY CONFIDENT');
|
||||
browser.executeScript('window.scrollTo(0, 780);').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()).toEqual('Wages');
|
||||
await WagesInfoIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await WagesWidgetBackOfCardTitle.getText()).toEqual('Wages');
|
||||
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 2019.');
|
||||
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 WagesWidgetCloseBackOfCardIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.executeScript('window.scrollTo(0, 780);');
|
||||
});
|
||||
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);
|
||||
browser.executeScript('window.scrollTo(0, 780);');
|
||||
});
|
||||
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');
|
||||
//College Pathways
|
||||
browser.executeScript('window.scrollTo(0, 1255);');
|
||||
expect(await CollegePathwaysWidgetTitle.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 CollegePathwaysRightScroll.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await ComputerScienceMS.getText()).toEqual('Computer Science M.S.');
|
||||
browser.executeScript('window.scrollTo(0, 1890);').then(function() {
|
||||
browser.sleep(2495);
|
||||
});
|
||||
//Certificates
|
||||
expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates');
|
||||
expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect');
|
||||
//expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); Bug?
|
||||
expect(await CertifiedAssociateLabVIEWDeveloper.getText()).toEqual('Certified Associate LabVIEW Developer');
|
||||
//expect(await CertificatesCardTwoSubHeader.getText()).toEqual('Business Analysis'); Bug?
|
||||
expect(await AvayaCertifiedExpert.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 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');
|
||||
browser.executeScript('window.scrollTo(0, 2525);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Institutions
|
||||
expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All');
|
||||
expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego');
|
||||
await UniversityOfSanDiegoAtAGlanceIcon.click().then(function() {
|
||||
browser.sleep(2500)
|
||||
});
|
||||
expect(await UniversityOfSanDiegoBackOfCardTitle.getText()).toEqual('University of San Diego');
|
||||
expect(await UniversityOfSanDiegoBackOfCard4YearHeader.getText()).toEqual('4 Year');
|
||||
expect(await UniversityOfSanDiegoBackOfCard4YearData.getText()).toEqual('Private nonprofit');
|
||||
expect(await UniversityOfSanDiegoBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students');
|
||||
expect(await UniversityOfSanDiegoBackOfCardUndergradData.getText()).toEqual('5,760');
|
||||
expect(await UniversityOfSanDiegoBackOfCardLocationHeader.getText()).toContain('Location');
|
||||
expect(await UniversityOfSanDiegoBackOfCardLocationData.getText()).toEqual('City');
|
||||
expect(await UniversityOfSanDiegoBackOfCardClassroomHeader.getText()).toContain('Classrooms');
|
||||
expect(await UniversityOfSanDiegoBackOfCardClassroomData.getText()).toEqual('Medium');
|
||||
await UniversityOfSanDiegoBackOfCardXCloseIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, 2525);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await UniversityOfSanDiegoEllipsisIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await UniversityOfSanDiegoBackOfCardTitleTwo.getText()).toEqual('University of San Diego');
|
||||
expect(await UniversityOfSanDiegoBackOfCardFollowIcon.getText()).toEqual('Follow');
|
||||
expect(await UniversityOfSanDiegoBackOfCardLearnMoreIcon.getText()).toEqual('Learn More');
|
||||
expect(await UniversityOfSanDiegoBackOfCardAtAGlanceIcon.getText()).toEqual('At A Glance');
|
||||
expect(await NationalUniversity.getText()).toEqual('National University');
|
||||
expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University');
|
||||
await InstitutionsRightScroll.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');
|
||||
expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos');
|
||||
browser.executeScript('window.scrollTo(0, 3160);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Top Resources
|
||||
expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All');
|
||||
await JourneysGreeting.getText().then(async function(actualText) {
|
||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
||||
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 TopResourcesCardFourHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
expect(await TopResourcesCardFiveHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
expect(await TopResourcesCardSixHeader.getText()).toEqual('Arduino download link for Thinkabitlab');
|
||||
await TopResourcesLeftScroll.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
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');
|
||||
} else {
|
||||
expect(await TopResourcesCardOneHeader.getText()).toEqual('How to Become a Research Scientist');
|
||||
expect(await TopResourcesCardTwoHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
||||
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
await TopResourcesRightScroll.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await TopResourcesCardFourHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
expect(await TopResourcesCardFiveHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
await TopResourcesLeftScroll.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await TopResourcesCardOneHeader.getText()).toEqual('How to Become a Research Scientist');
|
||||
expect(await TopResourcesCardTwoHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
||||
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
}
|
||||
});
|
||||
await TopResourcesCardThreeSaveIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, 3640);').then(function() {
|
||||
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()).toEqual('85');//stored value needed
|
||||
await JobsTotalsLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//expect(await JobListingsDIVHeader.getText()).toEqual('Job Listings: 85');
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await InternshipsTotalsLink.getText()).toContain('Internships');
|
||||
//expect(await InternshipsTotalsLink.getText()).toEqual('0');//stored value needed
|
||||
expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');//value sometimes is disabled
|
||||
//expect(await ApprenticeshipsTotalsLink.getText()).toEqual('0');//stored value needed
|
||||
await FindOpportunitiesChangeLocationLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
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(2500);
|
||||
});
|
||||
await ChangeLocationApplyButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
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()).toEqual('Job Listings: 85');//stored value needed
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
/*await InternshipsTotalsLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await InternshipsListingsDIVHeader.getText()).toEqual('Internships: ');//stored value needed
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
//expect(await JobsTotalsLink.getText()).toEqual('85');//stored value needed
|
||||
//expect(await JobsTotalsLink.getText()).toEqual('68');//stored value needed
|
||||
expect(await InternshipsTotalsLink.getText()).toContain('Internships');
|
||||
//expect(await InternshipsTotalsLink.getText()).toEqual('0');//stored value needed
|
||||
expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');
|
||||
//expect(await Totals.getText()).toEqual('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(2500);
|
||||
});
|
||||
expect(await MySubmittedResourcesWidgetTitle.getText()).toEqual('My Submitted Resources');
|
||||
await JourneysGreeting.getText().then(async function(actualText) {
|
||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
||||
expect(await MyResourceTitle.getText()).toEqual('Test Doc');
|
||||
} else {
|
||||
expect(await MyResourceTitle.getText()).toEqual('Recommended Careers Doc');
|
||||
}
|
||||
});
|
||||
await EllipsisResource.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await MyResourceFollowIcon.getText()).toEqual('Follow');
|
||||
expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More');
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
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(2500);
|
||||
});
|
||||
expect(await SubmitAResourceDIVTitle.getText()).toEqual('Submit a Resource');
|
||||
await SubmitAResourceDIVCancelButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, 4118);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//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('89%');
|
||||
expect(await KnowledgeDescriptionTwo.getText()).toEqual('Mathematics');
|
||||
expect(await KnowledgeImportanceStatTwo.getText()).toEqual('77%');
|
||||
expect(await KnowledgeDescriptionThree.getText()).toEqual('Engineering and Technology');
|
||||
expect(await KnowledgeImportanceStatThree.getText()).toEqual('74%');
|
||||
//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('75%');
|
||||
expect(await SkillsDescriptionTwo.getText()).toEqual('Critical Thinking');
|
||||
expect(await SkillsImportanceStatTwo.getText()).toEqual('75%');
|
||||
expect(await SkillsDescriptionThree.getText()).toEqual('Judgment and Decision Making');
|
||||
expect(await SkillsImportanceStatThree.getText()).toEqual('75%');
|
||||
//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('78%');
|
||||
expect(await AbilityDescriptionTwo.getText()).toEqual('Inductive Reasoning');
|
||||
expect(await AbilityImportanceStatTwo.getText()).toEqual('78%');
|
||||
expect(await AbilityDescriptionThree.getText()).toEqual('Oral Comprehension');
|
||||
expect(await AbilityImportanceStatThree.getText()).toEqual('75%');
|
||||
//Tasks
|
||||
expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All');
|
||||
expect(await TasksCategoryHeader.getText()).toEqual('Category');
|
||||
expect(await TasksImportanceHeader.getText()).toEqual('Importance');
|
||||
browser.executeScript('window.scrollTo(0, 4220);').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('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 TasksCategoryStatTwo.getText()).toEqual('Core');
|
||||
expect(await TasksImportanceStatTwo.getText()).toEqual('72%');
|
||||
expect(await TasksDescriptionThree.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.');
|
||||
expect(await TasksCategoryStatThree.getText()).toEqual('Core');
|
||||
expect(await TasksImportanceStatThree.getText()).toEqual('69%');
|
||||
//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('99%');
|
||||
expect(await WorkActivitiesDescriptionTwo.getText()).toEqual('Getting Information');
|
||||
expect(await WorkActivitiesImportanceStatTwo.getText()).toEqual('91%');
|
||||
expect(await WorkActivitiesDescriptionThree.getText()).toEqual('Making Decisions and Solving Problems');
|
||||
expect(await WorkActivitiesImportanceStatThree.getText()).toEqual('91%');
|
||||
//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 ');
|
||||
//Nearby Places
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places');
|
||||
expect(await ComputerAndInformationSystemsManagers.getText()).toEqual('Computer and Information Systems Managers');
|
||||
await ComputerAndInformationSystemsManagersEllipsisIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
/* CAN'T CAPTURE
|
||||
expect(await ComputerAndInformationSystemsManagersBackOfCardTitle.getText()).toEqual('2Computer and Information Systems Managers');
|
||||
await ComputerAndInformationSystemsManagersBackOfCardXIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});*/
|
||||
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');
|
||||
//Remove Saved Resource from My Resources widget on dashboard
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, 2362);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await MyResourcesOneHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
expect(await MyResourcesTwoHeader.getText()).toEqual('Test Doc');
|
||||
await MyResourcesOneSaveIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.refresh().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, 2362);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await MyResourcesOneHeader.getText()).toEqual('Test Doc');
|
||||
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);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user