//createJourney_spec.js describe('Create Journey Script', function () { //app-journeysmap landing page var UserNameTextBox = element(by.css('#txtU')); var PasswordTextBox = element(by.css('#txtP')); //Open browser //browser.driver.manage().window().setSize(1600, 800); browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() { browser.sleep(1000); }); it('should have a title', async function () { await expect(browser.getTitle()).toEqual('Login'); }); //Sign In SignIn(UserNameTextBox, PasswordTextBox); 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(2500); await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() { browser.sleep(2500); }); await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { browser.sleep(2500); }); await NextButton.click().then(function() { browser.sleep(5000); browser.waitForAngular(); browser.getCurrentUrl(); }); expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); } //<<<>>> CreateJourney(); //Sign Out SignOut(); }); function CreateJourney() { it(': CreateJourney, should create a Journey to Top Interest Survey Result', async function () { 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')); var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding')); var JourneyResultTitleOne = element(by.css('#journeyitem0 .side-bar-child-text')); var JourneyResultTitleTwo = element(by.css('#journeyitem1 .side-bar-child-text')); var JourneyResultTitleThree = element(by.css('#journeyitem2 .side-bar-child-text')); var JourneySaveIcon = element(by.css('#journeyitem0 .mapActionBarActive > .fas')); 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 JourneyStopDIVRemoveCardTwoButton = element(by.css('#addWaypointsModalAddedWaypointsCarousel > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > waypoint-card > div > div > div.waypointNotAdded > div')); var JourneyStopDIVAddToJourneyButton = element(by.css('.btn:nth-child(2)')); var JournyeStopDIVGotItDIVText = element(by.css('.tooltip-inner')); var JourneyStopDIVGotItButtonOne = element(by.css('.journeyViewToolTipWaypointAddedConfirm > .btn')); var JourneyStopDIVGotItButtonTwo = element(by.css('.btn-lg')); var JourneyDetailsIcon = element(by.css('#journeyitem0 .journey-info-circle')); var ActionTitleBar = element(by.css('.ng-binding:nth-child(2)')); 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) .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) .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) .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 TwelvethGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_6 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var TwelvethGradeWayPointCluster = 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 JourneyEndWayPointTopLevel = element(by.css('#journeyViewToolTip_11 .ng-binding:nth-child(1)')); var JourneyEndWayPointCluster = element(by.css('#journeyViewToolTip_11 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt')); var JourneyEndWayPointPathway = element(by.css('#journeyViewToolTip_11 .side-bar-journey-detail-child-txt:nth-child(5)')); var UpOneLevelLink = element(by.linkText('Up One Level')); 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 WayPointTwo = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding')); var WayPointThree = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding')); var WayPointFour = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding')); var WayPointFive = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding')); var WayPointSix = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding')); var SelectWayPointTwoEllipsis = element(by.css('.itemWaypoint:nth-child(2) > .dropdown > .fas')); var ActionBarSaveIconOne = element(by.css('.mapActionBarActive:nth-child(2) > .fas')); var Select12thGradeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(7) > .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 ActionTitleBarTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); //duplicate row 721 var CertificationResultsTab = element(by.css('#tab-item-6 > .ng-binding'));//#tab-item-2 > .ng-binding')); var ThirdResultViewOnMapIconIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(6) > .fas'));//#tab-content-2 #searchitem2 div:nth-child(6) > .fas')); var MapZoomInIcon = element(by.css('.glyphicon-plus')); var ThirdResultAddIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon'));//#tab-content-2 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon')); var FifteenthWayPoint = element(by.css('.itemWaypoint:nth-child(10) > .itemTextContainer > .ng-binding')); var ActionBarSaveIconTwo = element(by.css('.fa-save')); var MapZoomOutIcon = element(by.css('.glyphicon-minus')); var SelectCollegeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(9) > .dropdown > .fas')); var ReOrderLink = element(by.linkText('Re-order')); var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding:nth-child(1)')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); //short cut to create journey var Results = element(by.css('div:nth-child(6) .fa-chart-bar')); var SecondAtAGlanceIcon = element(by.xpath('//territory-card-action-bar/div/button')); var Select = element(by.xpath('//territory-card-action-bar/div/button')); var Journey = element(by.xpath('//action-journey/span')); await Results.click().then(function() { browser.sleep(5000); }); browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { browser.sleep(2500); }); await Select.click().then(function() { browser.sleep(5000); }); browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { browser.sleep(2500); }); await Select.click().then(function() { browser.sleep(5000); }); browser.actions().mouseMove(Journey).perform().then(function() { browser.sleep(2500); }); await Journey.click().then(function() { browser.sleep(5000); });//end /*short cut to retrieve journey var MyJourneys = element(by.css('#nbMyJourneys .span-navbar-hover')); var Journey = element(by.xpath('//div[2]/div/div/span')); var ViewOnMap = element(by.css('.col-md-4 > .btn-info')); await MyJourneys.click().then(function() { browser.sleep(2500); }); await Journey.click().then(function() { browser.sleep(2500); }); await ViewOnMap.click().then(function() { browser.sleep(2500); });//end*/ expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey'); await JourneyInfoIcon.click().then(function() { browser.sleep(1000); }); 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 JourneyResultTitleOne.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.'); 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 JourneyStopDIVRemoveCardTwoButton.click().then(function() { browser.sleep(2500); }); expect(await JourneyStopDIVAddedStopOne.getText()).toEqual('Strategic Meeting Management Certification'); 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 TwelvethGradeWayPointTopLevel.getText()).toEqual('HS'); expect(await TwelvethGradeWayPointCluster.getText()).toEqual('12'); expect(await CollegeStopWayPointTopLevel.getText()).toEqual('College'); browser.actions().mouseMove(JourneyEndWayPointPathway).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('Core'); expect(await AddedStopWayPointClusterOne.getText()).toEqual('Other Certifications'); expect(await AddedStopWayPointPathwayOne.getText()).toEqual('Strategic Meeting Management Certification'); 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 JourneyEndWayPointTopLevel.getText()).toEqual('Administration'); expect(await JourneyEndWayPointCluster.getText()).toEqual('Management'); expect(await JourneyEndWayPointPathway.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('A3'); 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 ActionTitleBar.getText()).toEqual('Journey Edit'); expect(await EditWayPointHeaderOne.getText()).toEqual('1'); expect(await EditWayPointHeaderTwo.getText()).toEqual('2'); expect(await EditWayPointHeaderThree.getText()).toEqual('3'); expect(await EditWayPointHeaderFour.getText()).toEqual('4'); expect(await EditWayPointHeaderFive.getText()).toEqual('5'); expect(await EditWayPointHeaderSix.getText()).toEqual('6'); expect(await EditWayPointHeaderSeven.getText()).toEqual('7'); expect(await EditWayPointHeaderEight.getText()).toEqual('8'); 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 Expressions and Equations from this journey?'); await RemoveThisWaypointButton.click().then(function() { browser.sleep(5000); }); expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); expect(await WayPointOne.getText()).toEqual('Geometry'); expect(await WayPointTwo.getText()).toEqual('Mathematical Practices'); expect(await WayPointThree.getText()).toEqual('The Number System'); expect(await WayPointFour.getText()).toEqual('Statistics and Probability'); expect(await WayPointFive.getText()).toEqual('Functions'); await ActionBarSaveIconOne.click().then(function() { browser.sleep(2500); }); expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); 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 ActionTitleBar.getText()).toEqual('Journey Edit'); browser.actions().mouseMove(FourteenthWayPoint).perform().then(function() { browser.sleep(1000); }); expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); expect(await FourteenthWayPoint.getText()).toEqual('Administrative Services Managers'); await Select12thGradeWayPointEllipsis.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 ActionTitleBar.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 ActionTitleBarTwo.getText()).toEqual('Search Results'); await CertificationResultsTab.click().then(function() { browser.sleep(5000); }); 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 SixthGradeWayPoint.getText()).toEqual('6'); expect(await SeventhGradeWayPoint.getText()).toEqual('7'); expect(await EightGradeWayPoint.getText()).toEqual('8'); expect(await NinethGradeWayPoint.getText()).toEqual('9'); expect(await TenthGradeWayPoint.getText()).toEqual('10'); expect(await EleventhGradeWayPoint.getText()).toEqual('11'); browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { browser.sleep(1000); }); expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); expect(await ThirteenthWayPoint.getText()).toEqual('National Chief Engineer'); expect(await FourteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); await ActionBarSaveIconTwo.click().then(function() { browser.sleep(2500); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000); }); await MapZoomOutIcon.click().then(function() { browser.sleep(1000) }); /*browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { browser.sleep(1000); });*/ /*await EditJourneyLink.click().then(function() { browser.sleep(2500) }); await SelectCollegeWayPointEllipsis.click().then(function() { browser.sleep(2500) }); await ReOrderLink.click().then(function() { browser.sleep(2500) }); browser.actions().dragAndDrop(GrabCollegeWayPoint, ThirteenthWayPoint).mouseUp().perform(); browser.sleep(2500) expect(await SixthGradeWayPoint.getText()).toEqual('6'); expect(await SeventhGradeWayPoint.getText()).toEqual('7'); expect(await EightGradeWayPoint.getText()).toEqual('8'); expect(await NinethGradeWayPoint.getText()).toEqual('9'); expect(await TenthGradeWayPoint.getText()).toEqual('10'); expect(await EleventhGradeWayPoint.getText()).toEqual('11'); browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { browser.sleep(1000); }); expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); expect(await FourteenthWayPoint.getText()).toEqual('National Chief Engineer'); expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); await ActionBarSaveIconOne.click().then(function() { browser.sleep(2500); });*/ await DashboardHeaderLink.click().then(function() { browser.sleep(5000); }); 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); }); }); }