Updated createJourney interestSurveyResultsWidget
This commit is contained in:
@@ -47,6 +47,7 @@ describe('Create Journey Script', function () {
|
||||
|
||||
//<<<<DASHBOARD>>>>
|
||||
CreateJourney();
|
||||
DeleteCreatedJourney();
|
||||
|
||||
//Sign Out
|
||||
SignOut();
|
||||
@@ -263,8 +264,8 @@ function CreateJourney() {
|
||||
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 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)'));
|
||||
@@ -316,27 +317,6 @@ function CreateJourney() {
|
||||
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'));
|
||||
//Delete Created Journey
|
||||
var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover'));
|
||||
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 MyJourneysHowAmIDoingButton = element(by.css('.btn-success'));
|
||||
var MyJourneysSubText = element(by.css('.details-resourceRowTitle'));
|
||||
var MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer'));
|
||||
var MySavedJourneysTitleTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer'));
|
||||
var MySavedJourneysTitleThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer'));
|
||||
var MySavedJourneysTitleFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer'));
|
||||
|
||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
||||
browser.sleep(5000);
|
||||
@@ -494,8 +474,8 @@ function CreateJourney() {
|
||||
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 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);
|
||||
@@ -934,8 +914,8 @@ function CreateJourney() {
|
||||
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 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);
|
||||
@@ -957,7 +937,69 @@ function CreateJourney() {
|
||||
expect(await JourneyNewEndWayPointTopLevel.getText()).toEqual('Administration');
|
||||
expect(await JourneyNewEndWayPointCluster.getText()).toEqual('Management');
|
||||
expect(await JourneyNewEndWayPointPathway.getText()).toEqual('Administrative Services Managers');
|
||||
//Delete Created Journey
|
||||
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-navbar-hover'));
|
||||
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 MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer'));
|
||||
var MySavedJourneysTitleTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer'));
|
||||
var MySavedJourneysTitleThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer'));
|
||||
var MySavedJourneysTitleFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .cursorPointer'));
|
||||
|
||||
await MyJourneysHeaderLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
@@ -1027,7 +1069,44 @@ function CreateJourney() {
|
||||
await MyJourneysViewOnMap.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
//add map checks
|
||||
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user