Updated script to run on prod

This commit is contained in:
2020-11-04 16:07:36 -08:00
parent af2729a2ef
commit 8b9c07a926
2 changed files with 70 additions and 55 deletions

View File

@@ -20,7 +20,7 @@ exports.config = {
params: { params: {
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login', login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
userName: 'QA_AutomatedRegression' username: 'QA_AutomatedRegression'
} }
/*multiCapabilities: [{ /*multiCapabilities: [{

View File

@@ -25,7 +25,7 @@ describe('Create Journey Script', function () {
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.'); expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
browser.sleep(2500); browser.sleep(2500);
await UserNameTextBox.sendKeys(browser.params.userName).then(function() { await UserNameTextBox.sendKeys(browser.params.username).then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() { await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
@@ -36,7 +36,8 @@ describe('Create Journey Script', function () {
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
}); });
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); expect(await JourneysGreeting.getText()).toContain('Hi, ');
expect(await JourneysGreeting.getText()).toContain('_Automated');
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
}); });
@@ -625,13 +626,13 @@ function CreateJourney() {
expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); expect(await JobPrepFilterButton.getText()).toEqual('Job Prep');
expect(await FitFilterButton.getText()).toEqual('Fit'); expect(await FitFilterButton.getText()).toEqual('Fit');
expect(await CategoryFilterButton.getText()).toEqual('Category'); expect(await CategoryFilterButton.getText()).toEqual('Category');
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); expect(await DefaultTabResultsPathOne.getText()).toEqual('STEM > Engineering & Technology >');
expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other'); expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other');
expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Engineering & Technology >'); expect(await DefaultTabResultsPathTwo.getText()).toEqual('Architecture > Design/Pre-Construction >');
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other'); expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other');
expect(await DefaultTabResultsPathThree.getText()).toEqual('Healthcare > Health Informatics >'); expect(await DefaultTabResultsPathThree.getText()).toEqual('Healthcare > Health Informatics >');
expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other'); expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other');
expect(await DefaultTabResultsPathFour.getText()).toEqual('STEM > Engineering & Technology >'); expect(await DefaultTabResultsPathFour.getText()).toEqual('Architecture > Construction >');
expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other'); expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other');
expect(await ResultsTabTwo.getText()).toEqual('College'); expect(await ResultsTabTwo.getText()).toEqual('College');
await ResultsTabTwo.click().then(function() { await ResultsTabTwo.click().then(function() {
@@ -639,9 +640,9 @@ function CreateJourney() {
}); });
expect(await TabTwoResultsPathOne.getText()).toEqual('STEM > Bachelor of Science in Mechanical Engineering Degree Requirements >'); 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 TabTwoResultsChildOne.getText()).toEqual('Introduction to Electrical Engineering Lab');
expect(await TabTwoResultsPathTwo.getText()).toEqual('STEM > Environmental Engineering B.S.(BSENVE) >'); expect(await TabTwoResultsPathTwo.getText()).toEqual('STEM > Civil Engineering B.S. (BSCE) >');
expect(await TabTwoResultsChildTwo.getText()).toEqual('Civil and Environmental Engineering Computations'); expect(await TabTwoResultsChildTwo.getText()).toEqual('Civil and Environmental Engineering Computations');
expect(await TabTwoResultsPathThree.getText()).toEqual('STEM > Civil Engineering B.S. (BSCE) >'); expect(await TabTwoResultsPathThree.getText()).toEqual('STEM > Environmental Engineering B.S.(BSENVE) >');
expect(await TabTwoResultsChildThree.getText()).toEqual('Civil and Environmental Engineering Computations'); 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 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 TabTwoResultsChildFour.getText()).toEqual('Engineering Measurement and Instrumentation Systems Lab');
@@ -651,18 +652,18 @@ function CreateJourney() {
}); });
expect(await TabThreeResultsPathOne.getText()).toEqual('Advanced > Other Certifications >'); expect(await TabThreeResultsPathOne.getText()).toEqual('Advanced > Other Certifications >');
expect(await TabThreeResultsChildOne.getText()).toEqual('Structural Engineer'); expect(await TabThreeResultsChildOne.getText()).toEqual('Structural Engineer');
expect(await TabThreeResultsPathTwo.getText()).toEqual('Core > Other Certifications >'); expect(await TabThreeResultsPathTwo.getText()).toEqual('Financial & Investment Planning > Advanced >');
expect(await TabThreeResultsChildTwo.getText()).toEqual('Certified Video Engineer'); expect(await TabThreeResultsChildTwo.getText()).toEqual('Association of Energy Engineers');
expect(await TabThreeResultsPathThree.getText()).toEqual('Core > Other Certifications >'); expect(await TabThreeResultsPathThree.getText()).toEqual('Production > Advanced >');
expect(await TabThreeResultsChildThree.getText()).toEqual('Certified Video Engineer'); expect(await TabThreeResultsChildThree.getText()).toEqual('Association of Energy Engineers');
expect(await TabThreeResultsPathFour.getText()).toEqual('Core > Other Certifications >'); expect(await TabThreeResultsPathFour.getText()).toEqual('Manufacturing Process Development > Advanced >');
expect(await TabThreeResultsChildFour.getText()).toEqual('Certified Video Engineer'); expect(await TabThreeResultsChildFour.getText()).toEqual('Association of Energy Engineers');
expect(await ResultsTabFour.getText()).toEqual('K-12'); expect(await ResultsTabFour.getText()).toEqual('K-12');
await ResultsTabFour.click().then(function() { await ResultsTabFour.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await TabFourResultsPathOne.getText()).toEqual('Science > ENGINEERING DESIGN >'); expect(await TabFourResultsPathOne.getText()).toEqual('5 > Science >');
expect(await TabFourResultsChildOne.getText()).toEqual('Engineering Design'); expect(await TabFourResultsChildOne.getText()).toEqual('ENGINEERING DESIGN');
expect(await TabFourResultsPathTwo.getText()).toEqual('Science > ENGINEERING DESIGN >'); expect(await TabFourResultsPathTwo.getText()).toEqual('Science > ENGINEERING DESIGN >');
expect(await TabFourResultsChildTwo.getText()).toEqual('Engineering Design'); expect(await TabFourResultsChildTwo.getText()).toEqual('Engineering Design');
expect(await TabFourResultsPathThree.getText()).toEqual('Science > ENGINEERING DESIGN >'); expect(await TabFourResultsPathThree.getText()).toEqual('Science > ENGINEERING DESIGN >');
@@ -673,24 +674,24 @@ function CreateJourney() {
await ResultsTabFive.click().then(function() { await ResultsTabFive.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await TabFiveResultsPathOne.getText()).toEqual('Engineering Aid > Architecture >'); expect(await TabFiveResultsPathOne.getText()).toEqual('Engineering Aid > Architecture >');//Engineer Senior Sergeant > Architecture >');
expect(await TabFiveResultsChildOne.getText()).toEqual('Civil Engineering Technicians'); expect(await TabFiveResultsChildOne.getText()).toEqual('Civil Engineering Technicians');
expect(await TabFiveResultsPathTwo.getText()).toEqual('Construction Engineering Supervisor > Architecture >'); expect(await TabFiveResultsPathTwo.getText()).toEqual('Construction Engineering Supervisor > Architecture >');//General Engineering Supervisor > Architecture >');
expect(await TabFiveResultsChildTwo.getText()).toEqual('Civil Engineering Technicians'); expect(await TabFiveResultsChildTwo.getText()).toEqual('Civil Engineering Technicians');
expect(await TabFiveResultsPathThree.getText()).toEqual('Technical Engineer > Architecture >'); expect(await TabFiveResultsPathThree.getText()).toEqual('General Engineering Supervisor > Architecture >');//Special Forces Engineer Sergeant > Architecture >');
expect(await TabFiveResultsChildThree.getText()).toEqual('Civil Engineering Technicians'); expect(await TabFiveResultsChildThree.getText()).toEqual('Civil Engineering Technicians');
expect(await TabFiveResultsPathFour.getText()).toEqual('General Engineering Supervisor > Architecture >'); expect(await TabFiveResultsPathFour.getText()).toEqual('Engineer Senior Sergeant > Architecture >');
expect(await TabFiveResultsChildFour.getText()).toEqual('Civil Engineering Technicians'); expect(await TabFiveResultsChildFour.getText()).toEqual('Civil Engineering Technicians');
expect(await ResultsTabSix.getText()).toEqual('CTE'); expect(await ResultsTabSix.getText()).toEqual('CTE');
await ResultsTabSix.click().then(function() { await ResultsTabSix.click().then(function() {
browser.sleep(5000); 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 TabSixResultsPathOne.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >');//Demonstrate Installation Tools > Demonstrate generating technical documentation. >');
expect(await TabSixResultsChildOne.getText()).toEqual('Identify engine systems and components.'); expect(await TabSixResultsChildOne.getText()).toEqual('Identify engine systems and components.');//Demonstrate the ability to document engineering changes.');
expect(await TabSixResultsPathTwo.getText()).toEqual('Decision Making Information > Enhance usability of computer system operations. >'); expect(await TabSixResultsPathTwo.getText()).toEqual('Demonstrate Installation Tools > Demonstrate generating technical documentation. >');
expect(await TabSixResultsChildTwo.getText()).toEqual('Explain usability engineering methods.'); expect(await TabSixResultsChildTwo.getText()).toEqual('Demonstrate the ability to document engineering changes.');
expect(await TabSixResultsPathThree.getText()).toEqual('Demonstrate Installation Tools > Demonstrate generating technical documentation. >'); expect(await TabSixResultsPathThree.getText()).toEqual('Decision Making Information > Enhance usability of computer system operations. >');
expect(await TabSixResultsChildThree.getText()).toEqual('Demonstrate the ability to document engineering changes.'); expect(await TabSixResultsChildThree.getText()).toEqual('Explain usability engineering methods.');
expect(await TabSixResultsPathFour.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >'); expect(await TabSixResultsPathFour.getText()).toEqual('Service and Repair Equipment > Service and repair the components of internal combustion engines using procedures for troubleshooting and evaluating performance. >');
expect(await TabSixResultsChildFour.getText()).toEqual('Analyze and troubleshoot engines.'); expect(await TabSixResultsChildFour.getText()).toEqual('Analyze and troubleshoot engines.');
await ResultsTabLeftArrow.click().then(function() { await ResultsTabLeftArrow.click().then(function() {
@@ -700,13 +701,13 @@ function CreateJourney() {
await DefaultResultsTab.click().then(function() { await DefaultResultsTab.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); expect(await DefaultTabResultsPathOne.getText()).toEqual('STEM > Engineering & Technology >');
expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other'); expect(await DefaultTabResultsChildOne.getText()).toEqual('Engineers, All Other');
expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Engineering & Technology >'); expect(await DefaultTabResultsPathTwo.getText()).toEqual('Architecture > Design/Pre-Construction >');
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other'); expect(await DefaultTabResultsChildTwo.getText()).toEqual('Engineers, All Other');
expect(await DefaultTabResultsPathThree.getText()).toEqual('Healthcare > Health Informatics >'); expect(await DefaultTabResultsPathThree.getText()).toEqual('Healthcare > Health Informatics >');
expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other'); expect(await DefaultTabResultsChildThree.getText()).toEqual('Engineers, All Other');
expect(await DefaultTabResultsPathFour.getText()).toEqual('STEM > Engineering & Technology >'); expect(await DefaultTabResultsPathFour.getText()).toEqual('Architecture > Construction >');
expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other'); expect(await DefaultTabResultsChildFour.getText()).toEqual('Engineering Technicians, Except Drafters, All Other');
expect(await MyResultsFilterButton.getText()).toEqual('My Results'); expect(await MyResultsFilterButton.getText()).toEqual('My Results');
expect(await JobPrepFilterButton.getText()).toEqual('Job Prep'); expect(await JobPrepFilterButton.getText()).toEqual('Job Prep');
@@ -727,12 +728,12 @@ function CreateJourney() {
}); });
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Science & Math >'); expect(await DefaultTabResultsPathTwo.getText()).toEqual('IT > Programming & Software Development >');
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >'); expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Science & Math >');
expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); expect(await DefaultTabResultsPathFour.getText()).toEqual('Public Administration > Planning >');
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers'); expect(await DefaultTabResultsChildFour.getText()).toEqual('Architectural and Engineering Managers');
await JobPrepFilterButton.click().then(function() { await JobPrepFilterButton.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
@@ -756,7 +757,7 @@ function CreateJourney() {
expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >'); expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Engineering & Technology >');
expect(await DefaultTabResultsChildThree.getText()).toEqual('Industrial Engineers'); expect(await DefaultTabResultsChildThree.getText()).toEqual('Industrial Engineers');
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >');
expect(await DefaultTabResultsChildFour.getText()).toEqual('Search Marketing Strategists'); expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products');
await FitFilterButton.click().then(function() { await FitFilterButton.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
@@ -775,12 +776,12 @@ function CreateJourney() {
}); });
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Science & Math >'); expect(await DefaultTabResultsPathTwo.getText()).toEqual('IT > Programming & Software Development >');
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >'); expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Science & Math >');
expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); expect(await DefaultTabResultsPathFour.getText()).toEqual('Public Administration > Planning >');
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers'); expect(await DefaultTabResultsChildFour.getText()).toEqual('Architectural and Engineering Managers');
await CategoryFilterButton.click().then(function() { await CategoryFilterButton.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
@@ -800,12 +801,12 @@ function CreateJourney() {
}); });
expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >'); expect(await DefaultTabResultsPathOne.getText()).toEqual('Architecture > Design/Pre-Construction >');
expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildOne.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathTwo.getText()).toEqual('STEM > Science & Math >'); expect(await DefaultTabResultsPathTwo.getText()).toEqual('IT > Programming & Software Development >');
expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildTwo.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathThree.getText()).toEqual('IT > Programming & Software Development >'); expect(await DefaultTabResultsPathThree.getText()).toEqual('STEM > Science & Math >');
expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers'); expect(await DefaultTabResultsChildThree.getText()).toEqual('Architectural and Engineering Managers');
expect(await DefaultTabResultsPathFour.getText()).toEqual('Marketing > Professional Sales & Marketing >'); expect(await DefaultTabResultsPathFour.getText()).toEqual('Public Administration > Planning >');
expect(await DefaultTabResultsChildFour.getText()).toEqual('Sales Engineers'); expect(await DefaultTabResultsChildFour.getText()).toEqual('Architectural and Engineering Managers');
browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() { browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });
@@ -925,8 +926,8 @@ function CreateJourney() {
expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced'); expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced');
expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications'); expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications');
expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager'); expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager');
expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('IT'); expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('STEM');
expect(await AddedStopWayPointClusterThree.getText()).toEqual('Programming & Software Development'); expect(await AddedStopWayPointClusterThree.getText()).toEqual('Science & Math');
expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers'); expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers');
expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College'); expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College');
expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration'); expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration');
@@ -941,7 +942,7 @@ function CreateJourney() {
function DeleteCreatedJourney() { function DeleteCreatedJourney() {
it(': DeleteCreatedJourney, should navigate to My Journeys and delete recently created Journey', async function () { it(': DeleteCreatedJourney, should navigate to My Journeys and delete recently created Journey', async function () {
var MyJourneysHeaderLink = element(by.css('#nbMyJourneys .span-navbar-hover')); var MyJourneysHeaderLink = element(by.css('#nbMyJourneys span'));
var MyJourneysPageTitle = element(by.css('.jrnys_lead-body-copy')); var MyJourneysPageTitle = element(by.css('.jrnys_lead-body-copy'));
var MyJourneysPageSubText = element(by.css('.col-md-10 .ng-scope:nth-child(1)')); 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 MyJourneysSelectCreatedJourney = element(by.xpath('//span[contains(.,"6 to Administrative Services Managers through Business Administration B.A./B.S.")]'));
@@ -992,10 +993,15 @@ function DeleteCreatedJourney() {
var JourneyNewEndWayPointPathway = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)')); var JourneyNewEndWayPointPathway = element(by.css('#journeyViewToolTip_12 .side-bar-journey-detail-child-txt:nth-child(5)'));
var MyJourneysHowAmIDoingButton = element(by.css('.btn-success')); var MyJourneysHowAmIDoingButton = element(by.css('.btn-success'));
var MyJourneysSubText = element(by.css('.details-resourceRowTitle')); var MyJourneysSubText = element(by.css('.details-resourceRowTitle'));
var MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer')); var JourneysGreeting = element(by.css('.dropdown'));
var MySavedJourneysTitleTwo = element(by.css('#\\30 ac99d25-0cc4-4d8e-b8e4-785f8129d85e .cursorPointer')); var QA_MySavedJourneysTitleOne = element(by.css('#ee7b663d-2f15-43cc-867c-556c7fc493a5 .cursorPointer'));
var MySavedJourneysTitleThree = element(by.css('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 .cursorPointer')); var PROD_MySavedJourneysTitleOne = element(by.css('#\\30 d40fce9-6c74-4889-9de2-c89cfcd55d0d .cursorPointer'));
var MySavedJourneysTitleFour = element(by.css('#\\30 9731631-9cb7-449b-8a51-58d7e730e31b .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() { await MyJourneysHeaderLink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
@@ -1095,8 +1101,8 @@ function DeleteCreatedJourney() {
expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced'); expect(await AddedStopWayPointTopLevelTwo.getText()).toEqual('Advanced');
expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications'); expect(await AddedStopWayPointClusterTwo.getText()).toEqual('Other Certifications');
expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager'); expect(await AddedStopWayPointPathwayTwo.getText()).toEqual('Certified Legal Manager');
expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('IT'); expect(await AddedStopWayPointTopLevelThree.getText()).toEqual('STEM');
expect(await AddedStopWayPointClusterThree.getText()).toEqual('Programming & Software Development'); expect(await AddedStopWayPointClusterThree.getText()).toEqual('Science & Math');
expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers'); expect(await AddedStopWayPointPathwayThree.getText()).toEqual('Architectural and Engineering Managers');
expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College'); expect(await AddedStopWayPointTopLevelFour.getText()).toEqual('College');
expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration'); expect(await AddedStopWayPointClusterFour.getText()).toEqual('Administration');
@@ -1137,10 +1143,19 @@ function DeleteCreatedJourney() {
await MyJourneysHeaderLink.click().then(function() { await MyJourneysHeaderLink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
expect(await MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); await JourneysGreeting.getText().then(async function(actualText) {
expect(await MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); if(actualText.indexOf('Qa_Automated') !== -1) {
expect(await MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); expect(await QA_MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
expect(await MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); 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.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
}); });