1178 lines
93 KiB
JavaScript
1178 lines
93 KiB
JavaScript
//createJourney_spec.js
|
|
|
|
//const { EventEmitter } = require("selenium-webdriver");
|
|
|
|
describe('Create Journey Script', function () {
|
|
//app-journeysmap landing page
|
|
var UserNameTextBox = element(by.css('#txtU'));
|
|
var PasswordTextBox = element(by.css('#txtP'));
|
|
|
|
//Open browser
|
|
browser.get(browser.params.login);
|
|
|
|
it('should have a title', async function () {
|
|
await expect(browser.getTitle()).toEqual('Login');
|
|
});
|
|
|
|
//Sign In
|
|
SignIn(UserNameTextBox, PasswordTextBox);
|
|
|
|
it('should have a title', async function () {
|
|
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
});
|
|
|
|
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
it('SignIn, should sign into journeysmap.com', async function () {
|
|
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
var NextButton = element(by.css('.btn'));
|
|
var JourneysGreeting = element(by.css('.dropdown'));
|
|
|
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
browser.sleep(1500);
|
|
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
await NextButton.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
browser.waitForAngular();
|
|
browser.getCurrentUrl();
|
|
});
|
|
}
|
|
|
|
//<<<<DASHBOARD>>>>
|
|
CreateJourney();
|
|
DeleteCreatedJourney();
|
|
|
|
//Sign Out
|
|
SignOut();
|
|
});
|
|
|
|
function CreateJourney() {
|
|
it(': CreateJourney, should create a Journey to Top Interest Survey Result', async function () {
|
|
//Select Journey Occupation Card
|
|
var AdministrativeLawJudgesAdjudicatorsAndHearingOffices = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
var AdministrativeServiceManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
var AdministrativeServiceManagersJourneyIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(3) .ng-scope:nth-child(1) > .ng-scope:nth-child(1) > .ng-scope:nth-child(1)'));
|
|
var AirTrafficControllers = element(by.css('#\\30 2c1f459-be14-4ea7-8229-404af8ccb881 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
var MultipleClusterDIVTitle = element(by.css('.ng-scope > .territoryCardTitleText'));
|
|
var BusinessManagementAndAdministration = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
var BusinessManagementAndAdministrationSelectButton = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .btn'));
|
|
var GovernmentAndPublicAdministration = element(by.css('.col-xs-4:nth-child(2) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
var HealthScience = element(by.css('.col-xs-4:nth-child(3) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
//Create Your Journey Page
|
|
var JourneySideBarHeaderOne = element(by.css('.side-bar-child-text > span'));
|
|
var JourneyInfoIcon = element(by.css('span > .journey-info-circle'));
|
|
var JourneyInfoDivTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
|
var JourneyInfoDivSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
|
var JourneyInfoDivXCloseLink = element(by.css('.fa-times'));
|
|
var JourneyEntryPoint = element(by.css('.journeyInput'));
|
|
var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding'));
|
|
var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable'));
|
|
//Journey Search Results
|
|
var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding'));
|
|
var JourneysResultsTabDefault = element(by.css('#tab-item-0 > .ng-binding'));
|
|
var JourneyResultTitleOne = element(by.css('#journeyitem0 .side-bar-child-text'));
|
|
var JourneyDetailsIcon = element(by.css('#tab-content-0 #journeyitem0 > div > div:nth-child(1) > .map-action-bar-icon-text'));
|
|
var JourneySaveIcon = element(by.css('#tab-content-0 #journeyitem0 .mapActionBarActive > .map-action-bar-icon-text'));
|
|
var JourneyResultTitleTwo = element(by.css('#journeyitem1 .side-bar-child-text'));
|
|
var JourneyResultTitleThree = element(by.css('#journeyitem2 .side-bar-child-text'));
|
|
var JourneysResultsTabTwo = element(by.css('#tab-item-1 > .ng-binding'));
|
|
var JourneysResultsTabThree = element(by.css('#tab-item-2 > .ng-binding'));
|
|
var JourneysResultsTabFour = element(by.css('#tab-item-3 > .ng-binding'));
|
|
var MyResultsFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(2)'));
|
|
var FilterDIVTitle = element(by.css('.modal-content > .ng-scope > .ng-binding'));
|
|
var MyResultsDIVSubTitle = element(by.css('tr:nth-child(1) > td'));
|
|
var MyResultsDIVInterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(2) > .mapCheckbox > input'));
|
|
var MyResultsDIVInterestSurveyResults = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)'));
|
|
var MyResultsDIVSkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > .mapCheckbox > input'));
|
|
var MyResultsDIVSkillsAssessmentResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)'));
|
|
var JobPrepFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(3)'));
|
|
var JobPrepDIVSubTitle = element(by.css('tr:nth-child(5) > td'));
|
|
var JobPrepDIVMayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(6) input'));
|
|
var JobPrepDIVMayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(2)'));
|
|
var JobPrepDIVHighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(7) input'));
|
|
var JobPrepDIVHighSchoolDiploma = element(by.css('.ng-scope:nth-child(7) > .ng-binding'));
|
|
var JobPrepDIVVocationalTrainingOrAssociatesDegreeCheckBox = element(by.css('.ng-scope:nth-child(8) input'));
|
|
var JobPrepDIVVocationalTrainingOrAssociatesDegree = element(by.css('.ng-scope:nth-child(8) > .ng-binding'));
|
|
var JobPrepDIV4YearBachelorDegreeCheckBox = element(by.css('.ng-scope:nth-child(9) input'));
|
|
var JobPrepDIV4YearBachelorDegree = element(by.css('.ng-scope:nth-child(9) > .ng-binding'));
|
|
var JobPrepDIVGraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(10) input'));
|
|
var JobPrepDIVGraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(10) > .ng-binding'));
|
|
var FitFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(4)'));
|
|
var FitDIVSubTitle = element(by.css('tr:nth-child(11) > td'));
|
|
var FitDIVBestCheckBox = element(by.css('.ng-scope:nth-child(12) input'));
|
|
var FitDIVBest = element(by.css('.ng-scope:nth-child(12) > .ng-binding'));
|
|
var FitDIVGreatCheckBox = element(by.css('.ng-scope:nth-child(13) input'));
|
|
var FitDIVGreat = element(by.css('.ng-scope:nth-child(13) > .ng-binding'));
|
|
var FitDIVGoodCheckBox = element(by.css('.ng-scope:nth-child(14) input'));
|
|
var FitDIVGood = element(by.css('.ng-scope:nth-child(14) > .ng-binding'));
|
|
var CategoryFilterButton = element(by.css('#tab-content-4 .filter-category:nth-child(5)'));
|
|
var CategoryDIVSubTitle = element(by.css('tr:nth-child(15) > td'));
|
|
var CategoryDIVBrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(16) input'));
|
|
var CategoryDIVBrightOutlook = element(by.css('.ng-scope:nth-child(16) > .ng-binding'));
|
|
var CategoryDIVGreenCheckBox = element(by.css('.ng-scope:nth-child(17) input'));
|
|
var CategoryDIVGreen = element(by.css('.ng-scope:nth-child(17) > .ng-binding'));
|
|
var CategoryDIVApprenticeshipCheckBox = element(by.css('.ng-scope:nth-child(18) input'));
|
|
var CategoryDIVApprenticeship = element(by.css('.ng-scope:nth-child(18) > .ng-binding'));
|
|
var CategoryDIVFollowingCheckBox = element(by.css('.ng-scope:nth-child(19) input'));
|
|
var CategoryDIVFollowing = element(by.css('.ng-scope:nth-child(19) > .ng-binding'));
|
|
var CareerFiltersDIVFilterButton = element(by.css('td > .btn-info'));
|
|
var CareersFilterDIVCancelButton = element(by.css('.btn-alt-info'));
|
|
var ResultsTabTwo = element(by.css('#tab-item-5 > .ng-binding'));
|
|
var TabTwoResultsPathOne = element(by.css('#tab-content-5 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabTwoResultsChildOne = element(by.css('#tab-content-5 #searchitem0 .side-bar-child-text'));
|
|
var TabTwoResultsPathTwo = element(by.css('#tab-content-5 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabTwoResultsChildTwo = element(by.css('#tab-content-5 #searchitem1 .side-bar-child-text'));
|
|
var TabTwoResultsPathThree = element(by.css('#tab-content-5 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabTwoResultsChildThree = element(by.css('#tab-content-5 #searchitem2 .side-bar-child-text'));
|
|
var TabTwoResultsPathFour = element(by.css('#tab-content-5 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabTwoResultsChildFour = element(by.css('#tab-content-5 #searchitem3 .side-bar-child-text'));
|
|
var ResultsTabThree = element(by.css('#tab-item-6 > .ng-binding'));
|
|
var TabThreeResultsPathOne = element(by.css('#tab-content-6 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabThreeResultsChildOne = element(by.css('#tab-content-6 #searchitem0 .side-bar-child-text'));
|
|
var TabThreeResultsPathTwo = element(by.css('#tab-content-6 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabThreeResultsChildTwo = element(by.css('#tab-content-6 #searchitem1 .side-bar-child-text'));
|
|
var TabThreeResultsPathThree = element(by.css('#tab-content-6 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabThreeResultsChildThree = element(by.css('#tab-content-6 #searchitem2 .side-bar-child-text'));
|
|
var TabThreeResultsPathFour = element(by.css('#tab-content-6 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabThreeResultsChildFour = element(by.css('#tab-content-6 #searchitem3 .side-bar-child-text'));
|
|
var ResultsTabFour = element(by.css('#tab-item-7 > .ng-binding'));
|
|
var TabFourResultsPathOne = element(by.css('#tab-content-7 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFourResultsChildOne = element(by.css('#tab-content-7 #searchitem0 .side-bar-child-text'));
|
|
var TabFourResultsPathTwo = element(by.css('#tab-content-7 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFourResultsChildTwo = element(by.css('#tab-content-7 #searchitem1 .side-bar-child-text'));
|
|
var TabFourResultsPathThree = element(by.css('#tab-content-7 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFourResultsChildThree = element(by.css('#tab-content-7 #searchitem2 .side-bar-child-text'));
|
|
var TabFourResultsPathFour = element(by.css('#tab-content-7 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFourResultsChildFour = element(by.css('#tab-content-7 #searchitem2 .side-bar-child-text'));
|
|
var ResultsTabFive = element(by.css('#tab-item-8 > .ng-binding'));
|
|
var TabFiveResultsPathOne = element(by.css('#tab-content-8 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFiveResultsChildOne = element(by.css('#tab-content-8 #searchitem0 .side-bar-child-text'));
|
|
var TabFiveResultsPathTwo = element(by.css('#tab-content-8 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFiveResultsChildTwo = element(by.css('#tab-content-8 #searchitem1 .side-bar-child-text'));
|
|
var TabFiveResultsPathThree = element(by.css('#tab-content-8 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFiveResultsChildThree = element(by.css('#tab-content-8 #searchitem2 .side-bar-child-text'));
|
|
var TabFiveResultsPathFour = element(by.css('#tab-content-8 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabFiveResultsChildFour = element(by.css('#tab-content-8 #searchitem3 .side-bar-child-text'));
|
|
var ResultsTabSix = element(by.css('#tab-item-9 > .ng-binding'));
|
|
var TabSixResultsPathOne = element(by.css('#tab-content-9 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabSixResultsChildOne = element(by.css('#tab-content-9 #searchitem0 .side-bar-child-text'));
|
|
var TabSixResultsPathTwo = element(by.css('#tab-content-9 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabSixResultsChildTwo = element(by.css('#tab-content-9 #searchitem1 .side-bar-child-text'));
|
|
var TabSixResultsPathThree = element(by.css('#tab-content-9 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabSixResultsChildThree = element(by.css('#tab-content-9 #searchitem2 .side-bar-child-text'));
|
|
var TabSixResultsPathFour = element(by.css('#tab-content-9 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var TabSixResultsChildFour = element(by.css('#tab-content-9 #searchitem3 .side-bar-child-text'));
|
|
var ResultsTabLeftArrow = element(by.css('.ng-scope:nth-child(2) > md-icon'));
|
|
var DefaultResultsTab = element(by.css('#tab-item-4 > .ng-binding'));
|
|
var DefaultTabResultsPathOne = element(by.css('#tab-content-4 #searchitem0 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var DefaultTabResultsChildOne = element(by.css('#tab-content-4 #searchitem0 .side-bar-child-text'));
|
|
var DefaultTabResultsPathTwo = element(by.css('#tab-content-4 #searchitem1 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var DefaultTabResultsChildTwo = element(by.css('#tab-content-4 #searchitem1 .side-bar-child-text'));
|
|
var DefaultTabResultsPathThree = element(by.css('#tab-content-4 #searchitem2 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var DefaultTabResultsChildThree = element(by.css('#tab-content-4 #searchitem2 .side-bar-child-text'));
|
|
var DefaultTabResultsPathFour = element(by.css('#tab-content-4 #searchitem3 > #sideBarTabItemHeader > div > .side-bar-ancestory-txt'));
|
|
var DefaultTabResultsChildFour = element(by.css('#tab-content-4 #searchitem3 .side-bar-child-text'));
|
|
//Journey stop DIV
|
|
var JourneyStopDIVTitle = element(by.css('.row:nth-child(1) > .col-md-12:nth-child(1)'));
|
|
var JourneyStopDIVCertificateCheckBox = element(by.css('#awm0 > .md-container'));
|
|
var JourneyStopDIVCertificateTitle = element(by.css('#awm0 .ng-binding'));
|
|
var JourneyStopDIVDegreeCheckBox = element(by.css('#awm1 > .md-container'));
|
|
var JourneyStopDIVDegreeTitle = element(by.css('#awm1 .ng-binding'));
|
|
var JourneyStopDIVTitleCardOne = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .waypointCardTitle'));
|
|
var JourneyStopDIVAddButtonCardOne = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .btn'));
|
|
var JourneyStopDIVTitleCardTwo = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .waypointCardTitle'));
|
|
var JourneyStopDIVAtAGlanceIcon = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .territoryCardItemText'));
|
|
var JourneyStopDIVBackOfCardTitle = element(by.css('div:nth-child(1) > #territoryCardTitleHeader > .territoryCardTitleText'));
|
|
var JourneyStopDIVBackOfCardSubText = element(by.css('div:nth-child(1) > div > .territoryCardDescriptionText'));
|
|
var JourneyStopDIVBackOfCardXCloseIcon = element(by.css('div:nth-child(1) > #territoryCardTitleHeader .glyphicon'));
|
|
var JourneyStopDIVAddButtonCardTwo = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .btn'));
|
|
var JourneyStopDIVTitleCardThree = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .waypointCardTitle'));
|
|
var JourneyStopDIVAddButtonCardThree = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .btn'));
|
|
var JourneyStopDIVSubText = element(by.css('#addWaypointsModalAddedWaypointsCarousel .ng-scope'));
|
|
var JourneyStopDIVSkipLink = element(by.css('.btn-inverse'));
|
|
var JourneyStopDIVSearchTextBox = element(by.css('#addWaypointsModalSearchInput'));
|
|
var JourneyStopDIVSearchIcon = element(by.css('div:nth-child(1) > .cursorPointer > .glyphicon-search'));
|
|
var JourneyStopDIVSearchResultText = element(by.css('.carousel-inner > .ng-scope:nth-child(2)'));
|
|
var JourneyStopDIVXIcon = element(by.css('div:nth-child(1) > .cursorPointer > .glyphicon-remove'));
|
|
var JourneyStopDIVRightArrowIcon = element(by.css('#allWaypointsCarousel > .right > .glyphicon'));
|
|
var JourneyStopDIVTitleCardFour = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(1) .waypointCardTitle'));
|
|
var JourneyStopDIVAddButtonCardFour = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(1) .btn'));
|
|
var JourneyStopDIVTitleCardFive = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(2) .waypointCardTitle'));
|
|
var JourneyStopDIVTitleCardSix = element(by.css('.item:nth-child(5) > .ng-scope:nth-child(3) .waypointCardTitle'));
|
|
var JourneyStopDIVLeftArrowIcon = element(by.css('#allWaypointsCarousel > .left > .glyphicon'));
|
|
var JourneyStopDIVAddedStopOne = element(by.css('.waypointCardTitle > .ng-binding'));
|
|
var JourneyStopDIVAddedStopTwo = element(by.css('.col-xs-6:nth-child(2) .waypointCardTitle > .ng-binding'));
|
|
var JourneyStopDIVAddedStopThree = element(by.css('.item:nth-child(3) .waypointCardTitle:nth-child(1) > .ng-binding:nth-child(1)'));
|
|
var JourneyStopDIVAddedStopFour = element(by.css('.item:nth-child(3) > .col-xs-6:nth-child(2) .waypointCardTitle:nth-child(1) > .ng-binding:nth-child(1)'));
|
|
var JourneyStopDIVBottomPanelLeftArrowIcon = element(by.css('#addWaypointsModalAddedWaypointsCarousel > .left > .glyphicon'));
|
|
var JourneyStopDIVRemoveCardOneButton = element(by.css('.item:nth-child(2) > .col-xs-6:nth-child(1) .waypointNotAdded > .ng-binding'));
|
|
var JourneyStopDIVAddToJourneyButton = element(by.css('.btn:nth-child(2)'));
|
|
//Saved Journey
|
|
var JournyeStopDIVGotItDIVText = element(by.css('.tooltip-inner'));
|
|
var JourneyStopDIVGotItButtonOne = element(by.css('.journeyViewToolTipWaypointAddedConfirm > .btn'));
|
|
var JourneyStopDIVGotItButtonTwo = element(by.css('.btn-lg'));
|
|
var ActionTitleBar = element(by.css('#sideBarTabJourneyItemHeader > .side-bar-child-text'));
|
|
//Edit Journey
|
|
var EditJourneyLink = element(by.linkText('Edit Journey'));
|
|
var JourneyEntryWayPointTopLevel = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var JourneyEntryWayPointCluster = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var SeventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var SeventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var EightGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var EightGradeWayPointCluster = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var NinethGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var NinethGradeWayPointCluster = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var ArtsEducation = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var LibraryMedia = element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var Mathematics = element(by.css('.ng-scope:nth-child(4) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var MathematicalPractices = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var AlgebraI = element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var StatisticsAndProbability = element(by.css('.ng-scope:nth-child(4) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var AlgebraII = element(by.css('.ng-scope:nth-child(5) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var Precalculus = element(by.css('.ng-scope:nth-child(6) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var MathematicsIII = element(by.css('.ng-scope:nth-child(7) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var MathematicsII = element(by.css('.ng-scope:nth-child(8) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var CalculusStandards = element(by.css('.ng-scope:nth-child(9) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var MathematicsI = element(by.css('.ng-scope:nth-child(10) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var AdvancedPlacementProbabilityAndStatisticsStandards = element(by.css('.ng-scope:nth-child(11) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var Geometry = element(by.css('.ng-scope:nth-child(12) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var UsingProbabilityToMakeDecisions = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var ExpressingGeometricPropertiesWithEquations= element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var Circles = element(by.css('.ng-scope:nth-child(4) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var FindArcLengthsandAreasOfSectorsOfCircles = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var DeriveUsingSimilarity = element(by.css('.disableJourneyItem:nth-child(6)'));
|
|
var UnderstandAndApplyTheoremsAboutCircles = element(by.css('.ng-scope:nth-child(3) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var ModelingWithGeometry = element(by.css('.ng-scope:nth-child(5) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var Congruence = element(by.css('.ng-scope:nth-child(6) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var ConditionalProbabilityAndTheRulesOfProbability = element(by.css('.ng-scope:nth-child(7) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var SimilarityRightTrianglesAndTrigonometry = element(by.css('.ng-scope:nth-child(8) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var GeometricMeasurementAndDimensions = element(by.css('.ng-scope:nth-child(9) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var SocialStudies = element(by.css('.ng-scope:nth-child(5) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var Science = element(by.css('.ng-scope:nth-child(6) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var TechnologyEducation = element(by.css('.ng-scope:nth-child(7) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var LanguageArts = element(by.css('.ng-scope:nth-child(8) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var HealthAndPE = element(by.css('.ng-scope:nth-child(9) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var WorldLanguages = element(by.css('.ng-scope:nth-child(10) > div > div:nth-child(1) .side-bar-journey-detail-child-txt:nth-child(6)'));
|
|
var TenthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_4 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var TenthGradeWayPointCluster = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var EleventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_5 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var EleventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_5 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var TwelfthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_6 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var TwelfthGradeWayPointCluster = element(by.css('#journeyViewToolTip_6 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var CollegeStopWayPointTopLevel = element(by.css('#journeyViewToolTip_7 .ng-binding:nth-child(1)'));
|
|
var CollegeStopWayPointCluster = element(by.css('#journeyViewToolTip_7 > .ng-isolate-scope .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var CollegeStopWayPointPathway = element(by.css('#journeyViewToolTip_7 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelOne = element(by.css('#journeyViewToolTip_8 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterOne = element(by.css('#journeyViewToolTip_8 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayOne = element(by.css('#journeyViewToolTip_8 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelTwo = element(by.css('#journeyViewToolTip_9 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterTwo = element(by.css('#journeyViewToolTip_9 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayTwo = element(by.css('#journeyViewToolTip_9 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelThree = element(by.css('#journeyViewToolTip_10 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterThree = element(by.css('#journeyViewToolTip_10 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayThree = element(by.css('#journeyViewToolTip_10 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelFour = element(by.css('#journeyViewToolTip_11 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterFour = element(by.css('#journeyViewToolTip_11 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayFour = element(by.css('#journeyViewToolTip_11 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var JourneyNewEndWayPointTopLevel = element(by.css('#journeyViewToolTip_12 .ng-binding:nth-child(1)'));
|
|
var JourneyNewEndWayPointCluster = element(by.css('#journeyViewToolTip_12 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var JourneyNewEndWayPointPathway = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var UpOneLevelLink = element(by.linkText('Up One Level'));
|
|
var CertifiedLegalManagerEllipsis = element(by.css('.itemWaypoint:nth-child(11) > .dropdown > .fas'));
|
|
var InsertAStop = element(by.linkText('Insert a Stop'));
|
|
var EditSearchText = element(by.css('.sidebarNoResults:nth-child(1)'));
|
|
var MapSearchTextBox = element(by.css('#searchBox'));
|
|
var MagnifyingGlassIcon = element(by.css('.glyphicon-search'));
|
|
var JourneysEditTitleHeader = element(by.css('div:nth-child(1) > div:nth-child(2) > .ng-binding'))
|
|
var EditWayPointHeaderOne = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderTwo = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointEllipsisTwo = element(by.css('.itemWaypoint:nth-child(2) > .dropdown > .fas'));
|
|
var DeleteLink = element(by.linkText('Delete'));
|
|
var DeleteDIVText = element(by.css('.modal-content > .ng-scope div:nth-child(1)'));
|
|
var RemoveThisWaypointButton = element(by.css('.btn:nth-child(3)'));
|
|
var EditWayPointHeaderThree = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderFour = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderFive = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderSix = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderSeven = element(by.css('.itemWaypoint:nth-child(7) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderEight = element(by.css('.itemWaypoint:nth-child(8) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderNine = element(by.css('.itemWaypoint:nth-child(9) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderTen = element(by.css('.itemWaypoint:nth-child(10) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderEleven = element(by.css('.itemWaypoint:nth-child(11) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderTwelve = element(by.css('.itemWaypoint:nth-child(12) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointHeaderThirteen = element(by.css('.itemWaypoint:nth-child(13) > .itemTextContainer > .ng-binding'));
|
|
var EditWayPointSaveIcon = element(by.css('.mapActionBarActive:nth-child(2) > .fas'));
|
|
var MapZoomInIcon = element(by.css('.glyphicon-plus'));
|
|
var JourneyExitWayPoint = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var CollegeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(8) > .dropdown > .fas'));
|
|
var ReOrderLink = element(by.linkText('Re-order'));
|
|
var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding'));
|
|
var ThirdResultViewOnMapIconIcon = element(by.css('#searchitem2 div:nth-child(6) > .fas'));
|
|
var ThirdResultAddIcon = element(by.css('#searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon'));
|
|
var MapZoomOutIcon = element(by.css('.glyphicon-minus'));
|
|
|
|
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOffices.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
|
|
expect(await AdministrativeServiceManagers.getText()).toEqual('Administrative Services Managers');
|
|
expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers');
|
|
await AdministrativeServiceManagersJourneyIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MultipleClusterDIVTitle.getText()).toEqual('Administrative Services Managers is found in a few different clusters. Select the cluster below that you would like to create a Journey:');
|
|
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
await BusinessManagementAndAdministrationSelectButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey');
|
|
await JourneyInfoIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyInfoDivTitle.getText()).toEqual('Create Your Journey');
|
|
expect(await JourneyInfoDivSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.');
|
|
await JourneyInfoDivXCloseLink.click().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await JourneyEntryPoint.click();
|
|
browser.waitForAngular();
|
|
await JourneyEntryPoint.sendKeys('6');
|
|
await SelectEntryPointDropDown.click();
|
|
browser.waitForAngular();
|
|
await StartYourJourneyButton.click();
|
|
browser.waitForAngular();
|
|
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
|
|
expect(await JourneysResultsTabDefault.getText()).toEqual('College');
|
|
expect(await JourneysResultsTabTwo.getText()).toEqual('Certification');
|
|
expect(await JourneysResultsTabThree.getText()).toEqual('K-12');
|
|
expect(await JourneysResultsTabFour.getText()).toEqual('Military');
|
|
expect(await JourneyResultTitleOne.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
expect(await JourneyDetailsIcon.getText()).toEqual('Journey Details');
|
|
expect(await JourneySaveIcon.getText()).toEqual('Save');
|
|
expect(await JourneyResultTitleTwo.getText()).toEqual('6 to Administrative Services Managers through Business Administration Minor');
|
|
expect(await JourneyResultTitleThree.getText()).toEqual('6 to Administrative Services Managers through Master of Business Administration (MBA)');
|
|
browser.actions().mouseMove(JourneySaveIcon).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await JourneySaveIcon.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneyStopDIVTitle.getText()).toEqual('Now that you have saved a journey, feel free to add any additional degree(s) and certification(s) to your journey by selecting from below!');
|
|
expect(await JourneyStopDIVCertificateTitle.getText()).toEqual('Certification');
|
|
expect(await JourneyStopDIVDegreeTitle.getText()).toEqual('Degree Program');
|
|
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Certified Legal Manager');
|
|
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Certified Medical Office Manager');
|
|
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Strategic Meeting Management Certification');
|
|
expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.');
|
|
expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip');
|
|
await JourneyStopDIVSearchTextBox.sendKeys('Potato').then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await JourneyStopDIVSearchIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVSearchResultText.getText()).toEqual('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.');
|
|
await JourneyStopDIVXIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Certified Legal Manager');
|
|
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Certified Medical Office Manager');
|
|
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Strategic Meeting Management Certification');
|
|
await JourneyStopDIVAddButtonCardThree.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVAddedStopOne.getText()).toEqual('Strategic Meeting Management Certification');
|
|
await JourneyStopDIVCertificateCheckBox.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Business Administration Minor');
|
|
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Master of Business Administration (MBA)');
|
|
await JourneyStopDIVAtAGlanceIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVBackOfCardTitle.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await JourneyStopDIVBackOfCardSubText.getText()).toEqual('The MBA is an integrated graduate program focused on leadership, innovation and sustainability. Students master essential technical skills through the Value Chain of Business courses and gain in-depth understanding of the global context of business in the Foundations of Competitiveness courses. In addition, students take a series of Applied Skills and Leadership courses that are integrated based on a set of managerial competencies, skills and perspectives. A highlight of the MBA program is the International Experience, which requires that all MBA students participate in either a 10-14 day study abroad program or a Portland Metro-based international business experience during their MBA experience. The MBA is designed to accommodate students with business and non-business undergraduate degrees and is best suited for those who have gained at least two years of industry experience prior to their admission date.');
|
|
await JourneyStopDIVBackOfCardXCloseIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await JourneyStopDIVAddButtonCardTwo.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVAddedStopOne.getText()).toEqual('Strategic Meeting Management Certification');
|
|
expect(await JourneyStopDIVAddedStopTwo.getText()).toEqual('Master of Business Administration (MBA)');
|
|
await JourneyStopDIVCertificateCheckBox.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Certified Legal Manager');
|
|
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Certified Medical Office Manager');
|
|
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Strategic Meeting Management Certification');
|
|
await JourneyStopDIVRightArrowIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVTitleCardFour.getText()).toEqual('Certified Practice Manager');
|
|
expect(await JourneyStopDIVTitleCardFive.getText()).toEqual('Court and Judicial Security Manager');
|
|
expect(await JourneyStopDIVTitleCardSix.getText()).toEqual('Certified Web Professional - Server Administrator');
|
|
await JourneyStopDIVAddButtonCardFour.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVAddedStopThree.getText()).toEqual('Certified Practice Manager');
|
|
await JourneyStopDIVLeftArrowIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Certified Legal Manager');
|
|
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Certified Medical Office Manager');
|
|
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Strategic Meeting Management Certification');
|
|
await JourneyStopDIVAddButtonCardOne.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVAddedStopThree.getText()).toEqual('Certified Practice Manager');
|
|
expect(await JourneyStopDIVAddedStopFour.getText()).toEqual('Certified Legal Manager');
|
|
await JourneyStopDIVBottomPanelLeftArrowIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVAddedStopOne.getText()).toEqual('Strategic Meeting Management Certification');
|
|
expect(await JourneyStopDIVAddedStopTwo.getText()).toEqual('Master of Business Administration (MBA)');
|
|
await JourneyStopDIVRemoveCardOneButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneyStopDIVAddedStopOne.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await JourneyStopDIVAddedStopTwo.getText()).toEqual('Certified Practice Manager');
|
|
await JourneyStopDIVAddToJourneyButton.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JournyeStopDIVGotItDIVText.getText()).toEqual('You can find your added stop(s) here');
|
|
expect(await JourneyStopDIVGotItButtonOne.getText()).toEqual('Got it!');
|
|
await JourneyStopDIVGotItButtonOne.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JournyeStopDIVGotItDIVText.getText()).toEqual('You can edit your added stop by selecting edit here');
|
|
expect(await JourneyStopDIVGotItButtonTwo.getText()).toEqual('Got it!');
|
|
await JourneyStopDIVGotItButtonTwo.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
|
|
expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
expect(await EditJourneyLink.getText()).toEqual('Edit Journey');
|
|
expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await JourneyEntryWayPointCluster.getText()).toEqual('6');
|
|
expect(await SeventhGradeWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await SeventhGradeWayPointCluster.getText()).toEqual('7');
|
|
expect(await EightGradeWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await EightGradeWayPointCluster.getText()).toEqual('8');
|
|
expect(await NinethGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await NinethGradeWayPointCluster.getText()).toEqual('9');
|
|
expect(await TenthGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await TenthGradeWayPointCluster.getText()).toEqual('10');
|
|
expect(await EleventhGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await EleventhGradeWayPointCluster.getText()).toEqual('11');
|
|
expect(await TwelfthGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await TwelfthGradeWayPointCluster.getText()).toEqual('12');
|
|
expect(await CollegeStopWayPointTopLevel.getText()).toEqual('College');
|
|
browser.actions().mouseMove(AddedStopWayPointPathwayFour).perform().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration');
|
|
expect(await CollegeStopWayPointPathway.getText()).toEqual('Business Administration B.A./B.S.');
|
|
expect(await AddedStopWayPointTopLevelOne.getText()).toContain('College');
|
|
expect(await AddedStopWayPointClusterOne.getText()).toEqual('Administration');
|
|
expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Core');
|
|
expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications');
|
|
expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Practice Manager');
|
|
expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('Advanced');
|
|
expect(await AddedStopWayPointClusterThree.getText()).toEqual('Other Certifications');
|
|
expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Certified Legal Manager');
|
|
expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('Administration');
|
|
expect(await AddedStopWayPointClusterFour.getText()).toEqual('Management');
|
|
expect(await AddedStopWayPointPathwayFour.getText()).toEqual('Administrative Services Managers');
|
|
await NinethGradeWayPointCluster.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await ArtsEducation.getText()).toEqual('Arts Education');
|
|
expect(await LibraryMedia.getText()).toEqual('Library Media');
|
|
expect(await Mathematics.getText()).toEqual('Mathematics');
|
|
expect(await SocialStudies.getText()).toEqual('Social Studies');
|
|
expect(await Science.getText()).toEqual('Science');
|
|
expect(await TechnologyEducation.getText()).toEqual('Technology Education');
|
|
expect(await LanguageArts.getText()).toEqual('Language Arts');
|
|
expect(await HealthAndPE.getText()).toEqual('Health and PE');
|
|
expect(await WorldLanguages.getText()).toEqual('World Languages');
|
|
await Mathematics.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await MathematicalPractices.getText()).toEqual('Mathematical Practices');
|
|
expect(await AlgebraI.getText()).toEqual('Algebra I');
|
|
expect(await StatisticsAndProbability.getText()).toEqual('Statistics and Probability');
|
|
expect(await AlgebraII.getText()).toEqual('Algebra II');
|
|
expect(await Precalculus.getText()).toEqual('Precalculus');
|
|
expect(await MathematicsIII.getText()).toEqual('Mathematics III');
|
|
expect(await MathematicsII.getText()).toEqual('Mathematics II');
|
|
expect(await CalculusStandards.getText()).toEqual('Calculus Standards');
|
|
expect(await MathematicsI.getText()).toEqual('Mathematics I');
|
|
expect(await AdvancedPlacementProbabilityAndStatisticsStandards.getText()).toEqual('Advanced Placement Probability and Statistics Standards');
|
|
browser.actions().mouseMove(Geometry).perform().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await Geometry.getText()).toEqual('Geometry');
|
|
await Geometry.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await UsingProbabilityToMakeDecisions.getText()).toEqual('Statistics and Probability: Using Probability to Make Decisions');
|
|
browser.actions().mouseMove(GeometricMeasurementAndDimensions).perform().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await ExpressingGeometricPropertiesWithEquations.getText()).toEqual('Geometry: Expressing Geometric Properties with Equations');
|
|
expect(await Circles.getText()).toEqual('Geometry: Circles');
|
|
expect(await ModelingWithGeometry.getText()).toEqual('Geometry: Modeling with Geometry');
|
|
expect(await Congruence.getText()).toEqual('Geometry: Congruence');
|
|
expect(await ConditionalProbabilityAndTheRulesOfProbability.getText()).toEqual('Statistics and Probability: Conditional Probability and the Rules of Probability');
|
|
expect(await SimilarityRightTrianglesAndTrigonometry.getText()).toEqual('Geometry: Similarity, Right Triangles, and Trigonometry');
|
|
expect(await GeometricMeasurementAndDimensions.getText()).toEqual('Geometry: Geometric Measurement and Dimension');
|
|
await Circles.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await FindArcLengthsandAreasOfSectorsOfCircles.getText()).toEqual('Find arc lengths and areas of sectors of circles. [Radian introduced only as unit of measure]');
|
|
expect(await UnderstandAndApplyTheoremsAboutCircles.getText()).toEqual('Understand and apply theorems about circles.');
|
|
await FindArcLengthsandAreasOfSectorsOfCircles.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await DeriveUsingSimilarity.getText()).toEqual('Derive using similarity the fact that the length of the arc intercepted by an angle is proportional to the radius, and define the radian measure of the angle as the constant of proportionality; derive the formula for the area of a sector. Convert between degrees and radians. CA');
|
|
await UpOneLevelLink.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
await UpOneLevelLink.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
await EditJourneyLink.click().then(function() {
|
|
browser.sleep(5000)
|
|
});
|
|
expect(await JourneysEditTitleHeader.getText()).toEqual('Journey Edit');
|
|
expect(await EditWayPointHeaderOne.getText()).toEqual('Statistics and Probability: Using Probability to Make Decisions');
|
|
expect(await EditWayPointHeaderTwo.getText()).toEqual('Geometry: Expressing Geometric Properties with Equations');
|
|
expect(await EditWayPointHeaderThree.getText()).toEqual('Geometry: Circles');
|
|
expect(await EditWayPointHeaderFour.getText()).toEqual('Geometry: Modeling with Geometry');
|
|
expect(await EditWayPointHeaderFive.getText()).toEqual('Geometry: Congruence');
|
|
expect(await EditWayPointHeaderSix.getText()).toEqual('Statistics and Probability: Conditional Probability and the Rules of Probability');
|
|
expect(await EditWayPointHeaderSeven.getText()).toEqual('Geometry: Similarity, Right Triangles, and Trigonometry');
|
|
expect(await EditWayPointHeaderEight.getText()).toEqual('Geometry: Geometric Measurement and Dimension');
|
|
await EditWayPointEllipsisTwo.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
browser.actions().mouseMove(DeleteLink).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await DeleteLink.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await DeleteDIVText.getText()).toEqual('Are you sure you want to remove Geometry: Expressing Geometric Properties with Equations from this journey?');
|
|
await RemoveThisWaypointButton.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneysEditTitleHeader.getText()).toEqual('Journey Edit');
|
|
expect(await EditWayPointHeaderOne.getText()).toEqual('Statistics and Probability: Using Probability to Make Decisions');
|
|
expect(await EditWayPointHeaderTwo.getText()).toEqual('Geometry: Circles');
|
|
expect(await EditWayPointHeaderThree.getText()).toEqual('Geometry: Modeling with Geometry');
|
|
expect(await EditWayPointHeaderFour.getText()).toEqual('Geometry: Congruence');
|
|
expect(await EditWayPointHeaderFive.getText()).toEqual('Statistics and Probability: Conditional Probability and the Rules of Probability');
|
|
expect(await EditWayPointHeaderSix.getText()).toEqual('Geometry: Similarity, Right Triangles, and Trigonometry');
|
|
expect(await EditWayPointHeaderSeven.getText()).toEqual('Geometry: Geometric Measurement and Dimension');
|
|
await EditWayPointSaveIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
await UpOneLevelLink.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
await UpOneLevelLink.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
await UpOneLevelLink.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
await EditJourneyLink.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneysEditTitleHeader.getText()).toEqual('Journey Edit');
|
|
browser.actions().mouseMove(EditWayPointHeaderTwelve).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await CertifiedLegalManagerEllipsis.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
browser.actions().mouseMove(InsertAStop).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await InsertAStop.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Add Stop');
|
|
expect(await EditSearchText.getText()).toEqual('Use the search bar above to find a stop to add to your journey, or pick one from the map.');
|
|
await MapSearchTextBox.sendKeys('Engineer').then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MagnifyingGlassIcon.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneysActionTitleHeader.getText()).toEqual('Search Results');
|
|
expect(await DefaultResultsTab.getText()).toEqual('Career');
|
|
expect(await MyResultsFilterButton.getText()).toEqual('My Results');
|
|
expect(await JobPrepFilterButton.getText()).toEqual('Job Prep');
|
|
expect(await FitFilterButton.getText()).toEqual('Fit');
|
|
expect(await CategoryFilterButton.getText()).toEqual('Category');
|
|
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
|
|
expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other');
|
|
expect(await DefaultTabResultsPathTwo.getText()).toEqual('Healthcare > Health Informatics >');
|
|
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other');
|
|
expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >');
|
|
expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other');
|
|
expect(await DefaultTabResultsPathFour.getText()).toEqual('Agriculture > Natural Resources Systems >');
|
|
expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other');
|
|
expect(await ResultsTabTwo.getText()).toEqual('College');
|
|
await ResultsTabTwo.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await TabTwoResultsPathOne.getText()).toEqual('STEM > Bachelor of Science in Mechanical Engineering Degree Requirements >');
|
|
expect(await TabTwoResultsChildOne.getText()).toEqual('Introduction to Electrical Engineering Lab');
|
|
expect(await TabTwoResultsPathTwo.getText()).toEqual('STEM > Civil Engineering B.S. (BSCE) >');
|
|
expect(await TabTwoResultsChildTwo.getText()).toEqual('Civil and Environmental Engineering Computations');
|
|
expect(await TabTwoResultsPathThree.getText()).toEqual('STEM > Environmental Engineering B.S.(BSENVE) >');
|
|
expect(await TabTwoResultsChildThree.getText()).toEqual('Civil and Environmental Engineering Computations');
|
|
expect(await TabTwoResultsPathFour.getText()).toEqual('STEM > Bachelor of Science in Mechanical Engineering Degree Requirements >');
|
|
expect(await TabTwoResultsChildFour.getText()).toEqual('Engineering Measurement and Instrumentation Systems Lab');
|
|
expect(await ResultsTabThree.getText()).toEqual('Certification');
|
|
await ResultsTabThree.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await TabThreeResultsPathOne.getText()).toEqual('Advanced > Other Certifications >');
|
|
expect(await TabThreeResultsChildOne.getText()).toEqual('Structural Engineer');
|
|
expect(await TabThreeResultsPathTwo.getText()).toEqual('Advanced > International Fluid Power Society >');
|
|
expect(await TabThreeResultsChildTwo.getText()).toEqual('Fluid Power Engineer');
|
|
expect(await TabThreeResultsPathThree.getText()).toEqual('Business Financial Mgmt & Acctg > Advanced >');
|
|
expect(await TabThreeResultsChildThree.getText()).toEqual('Association of Energy Engineers');
|
|
expect(await TabThreeResultsPathFour.getText()).toEqual('Management > Advanced >');
|
|
expect(await TabThreeResultsChildFour.getText()).toEqual('Association of Energy Engineers');
|
|
expect(await ResultsTabFour.getText()).toEqual('K-12');
|
|
await ResultsTabFour.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await TabFourResultsPathOne.getText()).toEqual('1 > Science >');
|
|
expect(await TabFourResultsChildOne.getText()).toEqual('ENGINEERING DESIGN');
|
|
expect(await TabFourResultsPathTwo.getText()).toEqual('Science > ENGINEERING DESIGN >');
|
|
expect(await TabFourResultsChildTwo.getText()).toEqual('Engineering Design');
|
|
expect(await TabFourResultsPathThree.getText()).toEqual('Science > ENGINEERING DESIGN >');
|
|
expect(await TabFourResultsChildThree.getText()).toEqual('Engineering Design');
|
|
expect(await TabFourResultsPathFour.getText()).toEqual('Science > ENGINEERING DESIGN >');
|
|
expect(await TabFourResultsChildFour.getText()).toEqual('Engineering Design');
|
|
expect(await ResultsTabFive.getText()).toEqual('Military');
|
|
await ResultsTabFive.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await TabFiveResultsPathOne.getText()).toEqual('Precision Measurement Equipment Laboratory > Manufacturing >');
|
|
expect(await TabFiveResultsChildOne.getText()).toEqual('Mechanical Engineering Technicians');
|
|
expect(await TabFiveResultsPathTwo.getText()).toEqual('Construction Engineering Supervisor > Architecture >');
|
|
expect(await TabFiveResultsChildTwo.getText()).toEqual('Civil Engineering Technicians');
|
|
expect(await TabFiveResultsPathThree.getText()).toEqual('Bridge Crewmember > Architecture >');
|
|
expect(await TabFiveResultsChildThree.getText()).toEqual('Civil Engineering Technicians');
|
|
expect(await TabFiveResultsPathFour.getText()).toEqual('Technical Engineer > Architecture >');
|
|
expect(await TabFiveResultsChildFour.getText()).toEqual('Civil Engineering Technicians');
|
|
expect(await ResultsTabSix.getText()).toEqual('CTE');
|
|
await ResultsTabSix.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await TabSixResultsPathOne.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >');
|
|
expect(await TabSixResultsChildOne.getText()).toEqual('Identify engine systems and components.');
|
|
expect(await TabSixResultsPathTwo.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >');
|
|
expect(await TabSixResultsChildTwo.getText()).toEqual('Analyze and troubleshoot engines.');
|
|
expect(await TabSixResultsPathThree.getText()).toEqual('Demonstrate Installation Tools > Demonstrate generating technical documentation. >');
|
|
expect(await TabSixResultsChildThree.getText()).toEqual('Demonstrate the ability to document engineering changes.');
|
|
expect(await TabSixResultsPathFour.getText()).toEqual('Decision Making Information > Enhance usability of computer system operations. >');
|
|
expect(await TabSixResultsChildFour.getText()).toEqual('Explain usability engineering methods.');
|
|
await ResultsTabLeftArrow.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await DefaultResultsTab.getText()).toEqual('Career');
|
|
await DefaultResultsTab.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
|
|
expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other');
|
|
expect(await DefaultTabResultsPathTwo.getText()).toEqual('Healthcare > Health Informatics >');
|
|
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other');
|
|
expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >');
|
|
expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other');
|
|
expect(await DefaultTabResultsPathFour.getText()).toEqual('Agriculture > Natural Resources Systems >');
|
|
expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other');
|
|
expect(await MyResultsFilterButton.getText()).toEqual('My Results');
|
|
expect(await JobPrepFilterButton.getText()).toEqual('Job Prep');
|
|
expect(await FitFilterButton.getText()).toEqual('Fit');
|
|
expect(await CategoryFilterButton.getText()).toEqual('Category');
|
|
await MyResultsFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await FilterDIVTitle.getText()).toEqual('Career Filter');
|
|
expect(await MyResultsDIVSubTitle.getText()).toEqual('My Results');
|
|
await MyResultsDIVInterestSurveyResultsCheckBox.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyResultsDIVInterestSurveyResults.getText()).toEqual('Interest Survey Results (12)');
|
|
expect(await MyResultsDIVSkillsAssessmentResults.getText()).toEqual('Skills Matcher Results (14)');
|
|
await CareerFiltersDIVFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
|
|
expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathTwo.getText()).toEqual('Public Administration > Planning >');
|
|
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >');
|
|
expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >');
|
|
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers');
|
|
await JobPrepFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await FilterDIVTitle.getText()).toEqual('Career Filter');
|
|
expect(await JobPrepDIVSubTitle.getText()).toEqual('Job Prep');
|
|
expect(await JobPrepDIVMayRequireHighSchoolDiplomaOrGED.getText()).toEqual('May Require High School Diploma or GED (11)');
|
|
expect(await JobPrepDIVHighSchoolDiploma.getText()).toEqual('High School Diploma (52)');
|
|
await JobPrepDIVVocationalTrainingOrAssociatesDegreeCheckBox.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JobPrepDIVVocationalTrainingOrAssociatesDegree.getText()).toEqual('Vocational Training or Associates Degree (104)');
|
|
expect(await JobPrepDIV4YearBachelorDegree.getText()).toEqual('4 Year Bachelor Degree (98)');
|
|
expect(await JobPrepDIVGraduateSchoolOrProfessionalDegree.getText()).toEqual('Graduate School or Professional Degree (65)');
|
|
await CareerFiltersDIVFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await DefaultTabResultsPathOne.getText()).toEqual('Marketing > Professional Sales & Marketing >');
|
|
expect(await DefaultTabResultsChildOne.getText()).toEqual('Sales Engineers');
|
|
expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Engineering & Technology >');
|
|
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Fire-Prevention and Protection Engineers');
|
|
expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >');
|
|
expect(await DefaultTabResultsChildThree.getText()).toEqual('Industrial Engineers');
|
|
expect(await DefaultTabResultsPathFour.getText()).toEqual('Agriculture > Agribusiness Systems >');
|
|
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products');
|
|
await FitFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await FitDIVSubTitle.getText()).toEqual('Fit');
|
|
await FitDIVBestCheckBox.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await FitDIVBest.getText()).toEqual('Best (12)');
|
|
await FitDIVGreatCheckBox.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await FitDIVGreat.getText()).toEqual('Great (11)');
|
|
expect(await FitDIVGood.getText()).toEqual('Good (3)');
|
|
await CareerFiltersDIVFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
|
|
expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathTwo.getText()).toEqual('Public Administration > Planning >');
|
|
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >');
|
|
expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >');
|
|
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers');
|
|
await CategoryFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await CategoryDIVSubTitle.getText()).toEqual('Category');
|
|
expect(await CategoryDIVBrightOutlook.getText()).toEqual('Bright Outlook (34)');
|
|
await CategoryDIVGreenCheckBox.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await CategoryDIVGreen.getText()).toEqual('Green (79)');
|
|
expect(await CategoryDIVApprenticeship.getText()).toEqual('Apprenticeship (52)');
|
|
await CategoryDIVFollowingCheckBox.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await CategoryDIVFollowing.getText()).toEqual('Following (0)');
|
|
await CareerFiltersDIVFilterButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
|
|
expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathTwo.getText()).toEqual('Public Administration > Planning >');
|
|
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >');
|
|
expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >');
|
|
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers');
|
|
browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await ThirdResultViewOnMapIconIcon.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
await MapZoomInIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomInIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await ThirdResultAddIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await EditWayPointHeaderOne.getText()).toEqual('6');
|
|
expect(await EditWayPointHeaderTwo.getText()).toEqual('7');
|
|
expect(await EditWayPointHeaderThree.getText()).toEqual('8');
|
|
expect(await EditWayPointHeaderFour.getText()).toEqual('9');
|
|
expect(await EditWayPointHeaderFive.getText()).toEqual('10');
|
|
expect(await EditWayPointHeaderSix.getText()).toEqual('11');
|
|
expect(await EditWayPointHeaderSeven.getText()).toEqual('12');
|
|
expect(await EditWayPointHeaderEight.getText()).toEqual('Business Administration B.A./B.S.');
|
|
expect(await EditWayPointHeaderNine.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await EditWayPointHeaderTen.getText()).toEqual('Certified Practice Manager');
|
|
expect(await EditWayPointHeaderEleven.getText()).toEqual('Certified Legal Manager');
|
|
expect(await EditWayPointHeaderTwelve.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await EditWayPointHeaderThirteen.getText()).toEqual('Administrative Services Managers');
|
|
await EditWayPointSaveIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomOutIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MapZoomInIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
browser.actions().mouseMove(JourneyExitWayPoint).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await EditJourneyLink.click().then(function() {
|
|
browser.sleep(2500)
|
|
});
|
|
browser.actions().mouseMove(EditWayPointHeaderThirteen).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await CollegeWayPointEllipsis.click().then(function() {
|
|
browser.sleep(2500)
|
|
});
|
|
browser.actions().mouseMove(ReOrderLink).perform().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await ReOrderLink.click().then(function() {
|
|
browser.sleep(2500)
|
|
});
|
|
browser.actions().mouseDown(GrabCollegeWayPoint).mouseMove(EditWayPointHeaderTwelve).mouseUp(EditWayPointHeaderTwelve).perform();
|
|
browser.sleep(2500);
|
|
expect(await EditWayPointHeaderOne.getText()).toEqual('6');
|
|
expect(await EditWayPointHeaderTwo.getText()).toEqual('7');
|
|
expect(await EditWayPointHeaderThree.getText()).toEqual('8');
|
|
expect(await EditWayPointHeaderFour.getText()).toEqual('9');
|
|
expect(await EditWayPointHeaderFive.getText()).toEqual('10');
|
|
expect(await EditWayPointHeaderSix.getText()).toEqual('11');
|
|
expect(await EditWayPointHeaderSeven.getText()).toEqual('12');
|
|
expect(await EditWayPointHeaderEight.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await EditWayPointHeaderNine.getText()).toEqual('Certified Practice Manager');
|
|
expect(await EditWayPointHeaderTen.getText()).toEqual('Certified Legal Manager');
|
|
expect(await EditWayPointHeaderEleven.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await EditWayPointHeaderTwelve.getText()).toEqual('Business Administration B.A./B.S.');
|
|
expect(await EditWayPointHeaderThirteen.getText()).toEqual('Administrative Services Managers');
|
|
await EditWayPointSaveIcon.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey View');
|
|
expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await JourneyEntryWayPointCluster.getText()).toEqual('6');
|
|
expect(await SeventhGradeWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await SeventhGradeWayPointCluster.getText()).toEqual('7');
|
|
expect(await EightGradeWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await EightGradeWayPointCluster.getText()).toEqual('8');
|
|
expect(await NinethGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await NinethGradeWayPointCluster.getText()).toEqual('9');
|
|
expect(await TenthGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await TenthGradeWayPointCluster.getText()).toEqual('10');
|
|
expect(await EleventhGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await EleventhGradeWayPointCluster.getText()).toEqual('11');
|
|
expect(await TwelfthGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await TwelfthGradeWayPointCluster.getText()).toEqual('12');
|
|
expect(await CollegeStopWayPointTopLevel.getText()).toEqual('College');
|
|
browser.actions().mouseMove(JourneyNewEndWayPointPathway).perform().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration');
|
|
expect(await CollegeStopWayPointPathway.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await AddedStopWayPointTopLevelOne.getText()).toContain('Core');
|
|
expect(await AddedStopWayPointClusterOne.getText()).toEqual('Other Certifications');
|
|
expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Certified Practice Manager');
|
|
expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced');
|
|
expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications');
|
|
expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager');
|
|
expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('IT');
|
|
expect(await AddedStopWayPointClusterThree.getText()).toEqual('Programming & Software Development');
|
|
expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College');
|
|
expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration');
|
|
expect(await AddedStopWayPointPathwayFour.getText()).toEqual('Business Administration B.A./B.S.');
|
|
expect(await JourneyNewEndWayPointTopLevel.getText()).toEqual('Administration');
|
|
expect(await JourneyNewEndWayPointCluster.getText()).toEqual('Management');
|
|
expect(await JourneyNewEndWayPointPathway.getText()).toEqual('Administrative Services Managers');
|
|
browser.waitForAngular();
|
|
browser.getCurrentUrl();
|
|
});
|
|
}
|
|
|
|
function DeleteCreatedJourney() {
|
|
it(': DeleteCreatedJourney, should navigate to My Journeys and delete recently created Journey', async function () {
|
|
var MyJourneysHeaderLink = element(by.css('#nbMyJourneys span'));
|
|
var MyJourneysPageTitle = element(by.css('.jrnys_lead-body-copy'));
|
|
var MyJourneysPageSubText = element(by.css('.col-md-10 .ng-scope:nth-child(1)'));
|
|
var MyJourneysSelectCreatedJourney = element(by.xpath('//span[contains(.,"6 to Administrative Services Managers through Business Administration B.A./B.S.")]'));
|
|
var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info'));
|
|
var MyJourneysTitleRow = element(by.css('.col-md-12 > .ng-binding'));
|
|
var MyJourneysWayPointTitleRow = element(by.css('.select-waypointTitle'));
|
|
var MyJourneysRightArrow = element(by.css('.glyphicon-menu-right'));
|
|
var MyJourneysRemoveJourneyButton = element(by.css('#saveJourneyButton'));
|
|
var MyJourneysDIVTite = element(by.css('h2'));
|
|
var MyJourneysDIVSubText = element(by.css('p:nth-child(7)'));
|
|
var MyJourneysDIVCancelButton = element(by.css('.cancel'));
|
|
var MyJourneysDIVOKButton = element(by.css('.confirm'));
|
|
var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info'));
|
|
var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding'));
|
|
var ActionTitleBar = element(by.css('#journey-view-single > .side-bar-child-text'));
|
|
var EditJourneyLink = element(by.linkText('Edit Journey'));
|
|
var JourneyEntryWayPointTopLevel = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var JourneyEntryWayPointCluster = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var SeventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var SeventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var EightGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var EightGradeWayPointCluster = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var NinethGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var NinethGradeWayPointCluster = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var TenthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_4 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var TenthGradeWayPointCluster = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var EleventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_5 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var EleventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_5 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var TwelfthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_6 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var TwelfthGradeWayPointCluster = element(by.css('#journeyViewToolTip_6 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var CollegeStopWayPointTopLevel = element(by.css('#journeyViewToolTip_7 .ng-binding:nth-child(1)'));
|
|
var CollegeStopWayPointCluster = element(by.css('#journeyViewToolTip_7 > .ng-isolate-scope .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var CollegeStopWayPointPathway = element(by.css('#journeyViewToolTip_7 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelOne = element(by.css('#journeyViewToolTip_8 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterOne = element(by.css('#journeyViewToolTip_8 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayOne = element(by.css('#journeyViewToolTip_8 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelTwo = element(by.css('#journeyViewToolTip_9 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterTwo = element(by.css('#journeyViewToolTip_9 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayTwo = element(by.css('#journeyViewToolTip_9 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelThree = element(by.css('#journeyViewToolTip_10 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterThree = element(by.css('#journeyViewToolTip_10 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayThree = element(by.css('#journeyViewToolTip_10 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var AddedStopWayPointTopLevelFour = element(by.css('#journeyViewToolTip_11 .ng-binding:nth-child(1)'));
|
|
var AddedStopWayPointClusterFour = element(by.css('#journeyViewToolTip_11 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var AddedStopWayPointPathwayFour = element(by.css('#journeyViewToolTip_11 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var JourneyNewEndWayPointTopLevel = element(by.css('#journeyViewToolTip_12 .ng-binding:nth-child(1)'));
|
|
var JourneyNewEndWayPointCluster = element(by.css('#journeyViewToolTip_12 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
var JourneyNewEndWayPointPathway = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
var MyJourneysHowAmIDoingButton = element(by.css('.btn-success'));
|
|
var MyJourneysSubText = element(by.css('.details-resourceRowTitle'));
|
|
var JourneysGreeting = element(by.css('.dropdown'));
|
|
var QA_MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer'));
|
|
var PROD_MySavedJourneysTitleOne = element(by.css('#\\30 d40fce9-6c74-4889-9de2-c89cfcd55d0d .cursorPointer'));
|
|
var QA_MySavedJourneysTitleTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer'));
|
|
var PROD_MySavedJourneysTitleTwo = element(by.css('#f16005c8-54b9-4add-9760-8e4127e14c1f .cursorPointer'));
|
|
var QA_MySavedJourneysTitleThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer'));
|
|
var PROD_MySavedJourneysTitleThree = element(by.css('#c56fb102-fef6-488f-b970-c89aa9d86aeb .cursorPointer'));
|
|
var QA_MySavedJourneysTitleFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer'));
|
|
var PROD_MySavedJourneysTitleFour = element(by.css('#\\35 2fa1577-63a9-4f8f-9ca4-317a54226ed7 .cursorPointer'));
|
|
|
|
await MyJourneysHeaderLink.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyJourneysPageTitle.getText()).toEqual('My Saved Journeys');
|
|
expect(await MyJourneysPageSubText.getText()).toEqual('Select a Journey to show it on the map');
|
|
expect(await MyJourneysSelectCreatedJourney.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
await MyJourneysSelectCreatedJourney.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyJourneysTitleRow.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('6');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('7');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('8');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('9');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('10');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('11');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('12');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Master of Business Administration (MBA)');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Certified Practice Manager');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Certified Legal Manager');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Architectural and Engineering Managers');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Business Administration B.A./B.S.');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Administrative Services Managers');
|
|
await MyJourneysRightArrow.click().then(function() {
|
|
browser.sleep(1500);
|
|
});
|
|
expect(await MyJourneysRemoveJourneyButton.getText()).toEqual('Remove Journey');
|
|
expect(await MyJourneysViewOnMap.getText()).toEqual('View On Map');
|
|
expect(await MyJourneysHowAmIDoingButton.getText()).toEqual('How am I doing?');
|
|
expect(await MyJourneysSubText.getText()).toEqual('Try these resources');
|
|
await MyJourneysViewOnMap.click().then(function() {
|
|
browser.sleep(5000);
|
|
});
|
|
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey View');
|
|
expect(await ActionTitleBar.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
|
|
expect(await EditJourneyLink.getText()).toEqual('Edit Journey');
|
|
expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await JourneyEntryWayPointCluster.getText()).toEqual('6');
|
|
expect(await SeventhGradeWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await SeventhGradeWayPointCluster.getText()).toEqual('7');
|
|
expect(await EightGradeWayPointTopLevel.getText()).toEqual('K-8');
|
|
expect(await EightGradeWayPointCluster.getText()).toEqual('8');
|
|
expect(await NinethGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await NinethGradeWayPointCluster.getText()).toEqual('9');
|
|
expect(await TenthGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await TenthGradeWayPointCluster.getText()).toEqual('10');
|
|
expect(await EleventhGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await EleventhGradeWayPointCluster.getText()).toEqual('11');
|
|
expect(await TwelfthGradeWayPointTopLevel.getText()).toEqual('HS');
|
|
expect(await TwelfthGradeWayPointCluster.getText()).toEqual('12');
|
|
expect(await CollegeStopWayPointTopLevel.getText()).toEqual('College');
|
|
browser.actions().mouseMove(JourneyNewEndWayPointPathway).perform().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration');
|
|
expect(await CollegeStopWayPointPathway.getText()).toEqual('Master of Business Administration (MBA)');
|
|
expect(await AddedStopWayPointTopLevelOne.getText()).toContain('Core');
|
|
expect(await AddedStopWayPointClusterOne.getText()).toEqual('Other Certifications');
|
|
expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Certified Practice Manager');
|
|
expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced');
|
|
expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications');
|
|
expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager');
|
|
expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('IT');
|
|
expect(await AddedStopWayPointClusterThree.getText()).toEqual('Programming & Software Development');
|
|
expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers');
|
|
expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College');
|
|
expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration');
|
|
expect(await AddedStopWayPointPathwayFour.getText()).toEqual('Business Administration B.A./B.S.');
|
|
expect(await JourneyNewEndWayPointTopLevel.getText()).toEqual('Administration');
|
|
expect(await JourneyNewEndWayPointCluster.getText()).toEqual('Management');
|
|
expect(await JourneyNewEndWayPointPathway.getText()).toEqual('Administrative Services Managers');
|
|
await MyJourneysHeaderLink.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MyJourneysSelectCreatedJourney.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MyJourneysHowAmIDoingButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyJourneysDIVTite.getText()).toEqual('Oops!');
|
|
expect(await MyJourneysDIVSubText.getText()).toEqual("Sorry, we can't give you a quiz for this.");
|
|
expect(await MyJourneysDIVOKButton.getText()).toEqual('OK');
|
|
await MyJourneysDIVOKButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MyJourneysRemoveJourneyButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyJourneysDIVTite.getText()).toEqual('Are you sure?');
|
|
expect(await MyJourneysDIVSubText.getText()).toEqual('You will not be able to recover this journey!');
|
|
expect(await MyJourneysDIVCancelButton.getText()).toEqual('Cancel');
|
|
expect(await MyJourneysDIVOKButton.getText()).toEqual('Yes, delete it!');
|
|
await MyJourneysDIVOKButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
expect(await MyJourneysDIVTite.getText()).toEqual('Deleted!');
|
|
expect(await MyJourneysDIVSubText.getText()).toEqual('Your journey has been deleted.');
|
|
await MyJourneysDIVOKButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await MyJourneysHeaderLink.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
await JourneysGreeting.getText().then(async function(actualText) {
|
|
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
expect(await QA_MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
expect(await QA_MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College');
|
|
expect(await QA_MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
expect(await QA_MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
|
|
} else {
|
|
expect(await PROD_MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
expect(await PROD_MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College');
|
|
expect(await PROD_MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
expect(await PROD_MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
|
|
}
|
|
});
|
|
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'));
|
|
|
|
await ProfileImage.click().then(function() {
|
|
browser.sleep(1000);
|
|
});
|
|
await SignOutButton.click().then(function() {
|
|
browser.sleep(2500);
|
|
});
|
|
});
|
|
} |