Updated to work on prod

This commit is contained in:
2020-10-07 17:27:06 -07:00
parent 631785d7d5
commit bb1d7eaaf9
6 changed files with 639 additions and 218 deletions

View File

@@ -23,7 +23,7 @@ describe('Interest Survey Results Widget Script', function () {
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
browser.sleep(2500);
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
browser.sleep(2500);
});
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
@@ -73,7 +73,7 @@ function InterestSurveyResultsWidget() {
var InterestRetakeIcon = element(by.css('div:nth-child(3) > .hideIconLabels'));
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 612);').then(function() {
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
expect(await InterestSurveyWidgetTitle.getText()).toEqual('Interest Survey Results');
@@ -119,21 +119,22 @@ function InterestSurveyResultsWidget() {
function InterestSurveyResultsWidgetRetake() {
it(': InterestSurveyResultsWidgetRetake, retake interest survey', async function () {
var InterestSurveyRetake = element(by.css('div:nth-child(3) > .fa-tasks'));
var ActiveLanguageButton = element(by.css('.btn-primary'));
var InactiveLanguageButton = element(by.css('.btn-info > .ng-scope'));
var EnglishLanguageButton = element(by.css('.btn-xs:nth-child(1)'));
var SpanishLanguageButton = element(by.css('.btn:nth-child(2)'));
var DislikeEmoji = element(by.id('emoji_0_0'));
var MehEmoji = element(by.id('emoji_0_1'));
var UnsureEmoji = element(by.id('emoji_0_2'));
var LikeItEmoji = element(by.id('emoji_0_3'));
var LoveItEmoji = element(by.id('emoji_0_4'));
var CancelTestButton = element(by.css('.btn-md'));
var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
var DashboardHeaderLink = element(by.css('.navbar-brand > img'));
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.xpath('//div[3]/div/div[2]/span'));
var AdministrativeServicesManagers = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
var AirTrafficControllers = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 612);').then(function() {
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
//Retake Interest Survey
@@ -141,9 +142,12 @@ function InterestSurveyResultsWidgetRetake() {
browser.sleep(5000);
});
browser.waitForAngular();
expect(await ActiveLanguageButton.getText()).toEqual('English');
expect(await InactiveLanguageButton.getText()).toEqual('Español');
await DislikeEmoji.click();
expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
expect(await EnglishLanguageButton.getText()).toEqual('English');
expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
expect(await SpanishLanguageButton.getText()).toEqual('Español');
expect(await CancelTestButton.getText()).toEqual('Cancel Test');
await LikeItEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await LoveItEmoji.click();
@@ -275,7 +279,7 @@ function InterestSurveyResultsWidgetEdit() {
var EC = protractor.ExpectedConditions;
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 610);').then(function() {
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
await InterestEditLink.click().then(function() {
@@ -327,7 +331,7 @@ function InterestSurveyResultsWidgetEdit() {
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers');
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 612);').then(function() {
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
await InterestResultsLink.click().then(function() {
@@ -385,155 +389,170 @@ function InterestSurveyResultsWidgetResults() {
it(': InterestSurveyResultsWidgetResults, should verify the Interest Survey Clusters widget and jump to learn more page', async function () {
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
var CareerExplorationPageTitle = element(by.css('.col-sm-12'));
var CareerExplorationSearchTextBox = element(by.css('.ng-touched'));
var SkillsFilterButtonInactive = element(by.css('.filter-category-off:nth-child(3)'));
var SkillsFilterButtonActive = element(by.css('div:nth-child(3) > .filter-category:nth-child(3)'));
var SkillsFilterButton = element(by.css('.filter-category-off:nth-child(3)'));
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
var WidgetDescription = element(by.css('.row > span:nth-child(2)'));
var HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HealthScience = element(by.css('#\\33 7735fc5-77f8-4a3c-8814-51c377b7affd > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var FinanceSelectButton = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .btn'));
var FinancialAndInvestmentPlanning = element(by.css('#\\32 f8e3d00-1d7a-46f6-bf4e-c907540ab958 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var InsuranceServices = element(by.css('#e42868e2-b210-40c6-a842-b6acddc27f68 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BankingAndRelatedServices = element(by.css('#a3dbe29e-e930-4cc2-8856-c21ec7ff61ee > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagement = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagementSelectButton = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .btn'));
var FraudExaminersInvestigatorsAndAnalyst = element(by.css('.territoryCardTitleText > .ng-binding'));
var FraudExaminersInvestigatorsAndAnalystLearnMoreIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText'));
var FraudExaminersInvestigatorsAndAnalystMapIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText'));
var FraudExaminersInvestigatorsAndAnalystJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)'));
var FraudExaminersInvestigatorsAndAnalystVideoIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText'));
var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var NextLink = element(by.linkText('Next'));
var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HealthScience = element(by.css('#\\33 7735fc5-77f8-4a3c-8814-51c377b7affd > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var FinanceSelectButton = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .btn'));
var FinancialAndInvestmentPlanning = element(by.css('#\\32 f8e3d00-1d7a-46f6-bf4e-c907540ab958 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var InsuranceServices = element(by.css('#e42868e2-b210-40c6-a842-b6acddc27f68 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BankingAndRelatedServices = element(by.css('#a3dbe29e-e930-4cc2-8856-c21ec7ff61ee > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagement = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagementSelectButton = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .btn'));
var FraudExaminersInvestigatorsAndAnalyst = element(by.css('.territoryCardTitleText > .ng-binding'));
var FraudExaminersInvestigatorsAndAnalystLearnMoreIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText'));
var FraudExaminersInvestigatorsAndAnalystMapIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText'));
var FraudExaminersInvestigatorsAndAnalystJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)'));
var FraudExaminersInvestigatorsAndAnalystVideoIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText'));
var PreviousLinkText = element(by.linkText('Previous'));
var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)'));
var NextLinkText = element(by.linkText('Next'));
var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)'));
var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var InformationTechnology = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var Manufacturing = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var PreviousLink = element(by.linkText('Previous'));
var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var PathwaysLink = element(by.linkText('Pathways'));
var ClustersLink = element(by.linkText('Clusters'));
var BusinessManagementAndAdministrationSelectButton = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .btn'));
var Management = element(by.css('#c9fa7441-b908-4d75-b918-f15be99d7a18 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var ManagementSelectButton = element(by.css('#c9fa7441-b908-4d75-b918-f15be99d7a18 > #territoryCardContainer .btn'));
var HydroelectricProductionManagers = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HydroelectricProductionManagersAtAGlanceIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer div > div > div > .territoryCardItemText'));
var HydroelectricProductionManagersAtGlanceTitle = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer #territoryCardTitleHeader > .territoryCardTitleText'));
var HydroelectricProductionManagersAtAGlanceDescription = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .territoryCardDescriptionText'));
var HydroelectricProductionManagersAtAGlanceXCloseIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .glyphicon'));
var HydroelectricProductionManagersFitMatchIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .ng-scope div:nth-child(1) > .territoryCardItemText'));
var HydroelectricProductionManagersEllipsis = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas'));
var HydroelectricProductionManagersEllipsisTitle = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText'));
var HydroelectricProductionManagersEllipsisFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
var HydroelectricProductionManagersEllipsisLearnMoreIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisMapIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisJourneymanIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisVideoIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisAtAGlanceIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
var EC = protractor.ExpectedConditions;
var HydroelectricProductionManagersJourneyInfoIcon = element(by.css('span > .journey-info-circle'));
var IndustrialProductionManagers = element(by.css('#\\31 7fcdfd2-02ce-4816-95c6-ff7831fd520a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var FirstLineSupervisorsOfProductionAndOperatingWorkers = element(by.css('#\\32 85eaa19-0bb5-4460-a739-44fe976d6f7a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CostEstimators = element(by.css('#\\32 ac6e68d-b85d-49d6-8be9-b2dc3b9ed93f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var RegulatoryAffairsManagers = element(by.css('#\\32 d1bd8ed-49cc-4311-a396-d83f0bf17dfa > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var MedicalAndHealthServicesManagers = element(by.css('#\\33 9b9fe6d-efc3-4f9b-906e-0d24b9b3687d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagementAndAccounting = element(by.css('#\\39 b2ccae4-d5eb-4c45-a571-8f4e824db568 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessAnalysis = element(by.css('#d173d81b-a137-4f2d-b450-bca47abf7be3 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var Marketing = element(by.css('#\\33 4f87def-1317-483b-ba52-61b98f0c52cb > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HumanResources = element(by.css('#b67c622c-f398-4b54-8fbd-cb62da07d96a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeAndInformationSuport = element(by.css('#b3c703ca-a10f-4565-a1eb-8923555ded60 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeServicesManagersAtAGlanceIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div > div > div > div > .territoryCardItemText'));
var AdministrativeServicesManagersAtAGlanceTitle = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div:nth-child(2) .territoryCardTitleText'));
var AdministrativeServicesManagersAtAGlanceDescription = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardDescriptionText'));
var AdministrativeServicesManagersAtAGlanceXCloseIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div:nth-child(2) > #territoryCardTitleHeader .glyphicon'));
var AdministrativeServicesManagersAtAGlanceBestMatchIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .ng-scope > div > div:nth-child(1) > .territoryCardItemText'));
var AdministrativeServicesManagersEllipsis = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas'));
var AdministrativeServicesManagersEllipsisTitle = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div:nth-child(3) .territoryCardTitleText'));
var AdministrativeServicesManagersEllipsisFollowIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer > .territoryCardItemText'));
var AdministrativeServicesManagersEllipsisLearnMoreIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
var AdministrativeServicesManagersEllipsisMapIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
var AdministrativeServicesManagersEllipsisJourneymanIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
var AdministrativeServicesManagersEllipsisVideoIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText'));
var AdministrativeServicesManagersEllipsisAtAGlanceIcon= element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
var EC = protractor.ExpectedConditions;
var AdministrativeServicesManagersJourneyInfoIcon = element(by.css('span > .journey-info-circle'));
var AdministrativeAndInformationSuport = element(by.css('#b3c703ca-a10f-4565-a1eb-8923555ded60 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
/*var btn = element(by.css('div:nth-child(6) .fa-chart-bar'));
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
await btn.click().then(function() {
browser.sleep(2500);
});*/
await ExploreCareersButton.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
expect(await Finance.getText()).toEqual('Finance');
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
await NextLink.click().then(function() {
browser.sleep(2500);
});
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
expect(await HealthScience.getText()).toEqual('Health Science');
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await InformationTechnology.getText()).toEqual('Information Technology');
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
await NextLink.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 100);').then(function() {
browser.sleep(2500);
});
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
expect(await Manufacturing.getText()).toEqual('Manufacturing');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await HumanServices.getText()).toEqual('Human Services');
await PreviousLink.click().then(function() {
browser.sleep(2500);
});
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
expect(await HealthScience.getText()).toEqual('Health Science');
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
expect(await InformationTechnology.getText()).toEqual('Information Technology');
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
await PreviousLink.click().then(function() {
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
expect(await Finance.getText()).toEqual('Finance');
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
browser.executeScript('window.scrollTo(0, 100);').then(function() {
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await NextLinkText.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
expect(await PreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await PreviousLinkText.click().then(function() {
browser.sleep(1000);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
expect(await HumanServices.getText()).toEqual('Human Services');
expect(await HealthScience.getText()).toEqual('Health Science');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
expect(await Finance.getText()).toEqual('Finance');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
//Selected Finances
await FinanceSelectButton.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning');
expect(await InsuranceServices.getText()).toEqual('Insurance Services');
expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management');
expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management');
expect(await InsuranceServices.getText()).toEqual('Insurance Services');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
//Selected Business Financial Management
await BusinessFinancialManagementSelectButton.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 100);').then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
expect(await FraudExaminersInvestigatorsAndAnalyst.getText()).toEqual('Fraud Examiners, Investigators and Analysts');
@@ -541,77 +560,119 @@ function InterestSurveyResultsWidgetResults() {
expect(await FraudExaminersInvestigatorsAndAnalystMapIcon.getText()).toEqual('Map');
expect(await FraudExaminersInvestigatorsAndAnalystJourneymanIcon.getText()).toEqual('Journey');
expect(await FraudExaminersInvestigatorsAndAnalystVideoIcon.getText()).toEqual('Video');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
await PathwaysLink.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 100);').then(function() {
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning');
expect(await InsuranceServices.getText()).toEqual('Insurance Services');
expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services');
expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management');
expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await InsuranceServices.getText()).toEqual('Insurance Services');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(2500);
});
await ClustersLink.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
expect(await HumanServices.getText()).toEqual('Human Services');
expect(await HealthScience.getText()).toEqual('Health Science');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
expect(await Finance.getText()).toEqual('Finance');
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await BusinessManagementAndAdministrationSelectButton.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 100);').then(function() {
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
expect(await Management.getText()).toEqual('Management');
expect(await BusinessFinancialManagementAndAccounting.getText()).toEqual('Business Financial Management and Accounting');
expect(await BusinessAnalysis.getText()).toEqual('Business Analysis');
expect(await Marketing.getText()).toEqual('Marketing');
expect(await HumanResources.getText()).toEqual('Human Resources');
expect(await BusinessFinancialManagementAndAccounting.getText()).toEqual('Business Financial Management and Accounting');
expect(await AdministrativeAndInformationSuport.getText()).toEqual('Administrative and Information Support');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await HumanResources.getText()).toEqual('Human Resources');
expect(await Management.getText()).toEqual('Management');
expect(await BusinessAnalysis.getText()).toEqual('Business Analysis');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
await ManagementSelectButton.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 100);').then(function() {
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
expect(await HydroelectricProductionManagers.getText()).toEqual('Hydroelectric Production Managers');
expect(await IndustrialProductionManagers.getText()).toEqual('Industrial Production Managers');
expect(await FirstLineSupervisorsOfProductionAndOperatingWorkers.getText()).toEqual('First-Line Supervisors of Production and Operating Workers');
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(2500);
});
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
await AdministrativeServicesManagersAtAGlanceIcon.click().then(function() {
expect(await CostEstimators.getText()).toEqual('Cost Estimators');
expect(await RegulatoryAffairsManagers.getText()).toEqual('Regulatory Affairs Managers');
expect(await MedicalAndHealthServicesManagers.getText()).toEqual('Medical and Health Services Managers');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await HydroelectricProductionManagersAtAGlanceIcon.click().then(function() {
browser.sleep(2500);
});
expect(await AdministrativeServicesManagersAtAGlanceTitle.getText()).toEqual('Administrative Services Managers');
expect(await AdministrativeServicesManagersAtAGlanceDescription.getText()).toEqual('Plan, direct, or coordinate one or more administrative services of an organization, such as records and information management, mail distribution, facilities planning and maintenance, custodial operations, and other office support services.');
await AdministrativeServicesManagersAtAGlanceXCloseIcon.click().then(function() {
expect(await HydroelectricProductionManagersAtGlanceTitle.getText()).toEqual('Hydroelectric Production Managers');
expect(await HydroelectricProductionManagersAtAGlanceDescription.getText()).toEqual('Manage operations at hydroelectric power generation facilities. Maintain and monitor hydroelectric plant equipment for efficient and safe plant operations.');
await HydroelectricProductionManagersAtAGlanceXCloseIcon.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 100);').then(function() {
//expect(await HydroelectricProductionManagersFitMatchIcon.getText()).toContain('Best Fit'); EDM-1726
await HydroelectricProductionManagersEllipsis.click().then(function() {
browser.sleep(2500);
});
//expect(await AdministrativeServicesManagersAtAGlanceBestMatchIcon.getText()).toContain('Best Fit'); EDM-1726
await AdministrativeServicesManagersEllipsis.click().then(function() {
browser.sleep(2500);
});
expect(await AdministrativeServicesManagersEllipsisTitle.getText()).toEqual('Administrative Services Managers');
expect(await AdministrativeServicesManagersEllipsisFollowIcon.getText()).toEqual('Follow');
expect(await AdministrativeServicesManagersEllipsisLearnMoreIcon.getText()).toEqual('Learn More');
expect(await AdministrativeServicesManagersEllipsisMapIcon.getText()).toEqual('Map');
expect(await AdministrativeServicesManagersEllipsisJourneymanIcon.getText()).toEqual('Journey');
expect(await AdministrativeServicesManagersEllipsisVideoIcon.getText()).toEqual('Video');
expect(await AdministrativeServicesManagersEllipsisAtAGlanceIcon.getText()).toEqual('At A Glance');
await AdministrativeServicesManagersEllipsisJourneymanIcon.click().then(function() {
expect(await HydroelectricProductionManagersEllipsisTitle.getText()).toEqual('Hydroelectric Production Managers');
expect(await HydroelectricProductionManagersEllipsisFollowIcon.getText()).toEqual('Follow');
expect(await HydroelectricProductionManagersEllipsisLearnMoreIcon.getText()).toEqual('Learn More');
expect(await HydroelectricProductionManagersEllipsisMapIcon.getText()).toEqual('Map');
expect(await HydroelectricProductionManagersEllipsisJourneymanIcon.getText()).toEqual('Journey');
expect(await HydroelectricProductionManagersEllipsisVideoIcon.getText()).toEqual('Video');
expect(await HydroelectricProductionManagersEllipsisAtAGlanceIcon.getText()).toEqual('At A Glance');
await HydroelectricProductionManagersEllipsisJourneymanIcon.click().then(function() {
browser.sleep(5000);
});
browser.waitForAngular();
browser.wait(EC.elementToBeClickable(AdministrativeServicesManagersJourneyInfoIcon));
browser.wait(EC.elementToBeClickable(HydroelectricProductionManagersJourneyInfoIcon));
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -640,7 +701,7 @@ function InterestSurveyResultsCreateJourney() {
var JourneyStopDIVTitleCardThree = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .waypointCardTitle'));
var JourneyStopDIVSubText = element(by.css('#addWaypointsModalAddedWaypointsCarousel .ng-scope'));
var JourneyStopDIVSkipLink = element(by.css('.btn-inverse'));
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
var DashboardHeaderLink = element(by.css('.navbar-brand > img'));
expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey');
await JourneyInfoIcon.click().then(function() {
@@ -659,9 +720,9 @@ function InterestSurveyResultsCreateJourney() {
await StartYourJourneyButton.click();
browser.waitForAngular();
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
expect(await JourneyResultTitleOne.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.');
expect(await JourneyResultTitleTwo.getText()).toEqual('9 to Administrative Services Managers through Business Administration Minor');
expect(await JourneyResultTitleThree.getText()).toEqual('9 to Administrative Services Managers through Master of Business Administration (MBA)');
expect(await JourneyResultTitleOne.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await JourneyResultTitleTwo.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration Minor');
expect(await JourneyResultTitleThree.getText()).toEqual('9 to Hydroelectric Production Managers through Global Supply Chain Management Graduate Certificate');
browser.actions().mouseMove(JourneySaveIcon).perform().then(function() {
browser.sleep(1000);
});
@@ -671,16 +732,16 @@ function InterestSurveyResultsCreateJourney() {
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 JourneyStopDIVTitleCardOne.getText()).toEqual('Distributed Generation Certified Professional');
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Business Administration Minor');
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Global Supply Chain Management Graduate Certificate');
expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.');
expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip');
await JourneyStopDIVSkipLink.click().then(function() {
browser.sleep(5000);
});
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
expect(await JourneyResultTitleOne.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.');
expect(await JourneyResultTitleOne.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
await DashboardHeaderLink.click().then(function() {
browser.sleep(5000);
});
@@ -691,10 +752,10 @@ function InterestSurveyResultsCreateJourney() {
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 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(.,'9 to Administrative Services Managers through Business Administration B.A./B.S.')]"));
var MyJourneysSelectCreatedJourney = element(by.xpath("//span[contains(.,'9 to Hydroelectric Production Managers through Business Administration B.A./B.S.')]"));
var NinethGradeBubble = element(by.css('#mCSB_1_container > .firstWaypoint .lblClass'));
var TenthGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(2) .lblClass'));
var EleventhGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(3) .lblClass'));
@@ -730,27 +791,27 @@ function DeleteCreatedJourney() {
var JourneyExitWayPointPathway = element(by.css('.disableJourneyItem: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'));
var MySavedJourneysTitleOne = element(by.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]"));
var MySavedJourneysTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]"));
var MySavedJourneysTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]"));
var MySavedJourneysTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]"));
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('9 to Administrative Services Managers through Business Administration B.A./B.S.');
expect(await MyJourneysSelectCreatedJourney.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await NinethGradeBubble.getText()).toEqual('9');
expect(await TenthGradeBubble.getText()).toEqual('10');
expect(await EleventhGradeBubble.getText()).toEqual('11');
expect(await TwelvethGradeBubble.getText()).toEqual('12');
expect(await BusinessAdministrationBABSBubble.getText()).toEqual('Business');
expect(await AdministrativeServiceManagersBubble.getText()).toEqual('Administrativ');
expect(await AdministrativeServiceManagersBubble.getText()).toEqual('Hydroelectric');
await MyJourneysSelectCreatedJourney.click().then(function() {
browser.sleep(2500);
});
expect(await MyJourneysTitleRow.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.');
expect(await MyJourneysTitleRow.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('9');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
@@ -771,7 +832,7 @@ function DeleteCreatedJourney() {
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Administrative Services Managers');
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Hydroelectric Production Managers');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
@@ -783,7 +844,7 @@ function DeleteCreatedJourney() {
browser.sleep(5000);
});
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey View');
expect(await ActionTitleBar.getText()).toEqual('9 to Administrative Services Managers through Business Administration B.A./B.S.');
expect(await ActionTitleBar.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await EditJourneyLink.getText()).toEqual('Edit Journey');
expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('HS');
expect(await JourneyEntryWayPointCluster.getText()).toEqual('9');
@@ -798,7 +859,7 @@ function DeleteCreatedJourney() {
expect(await CollegeStopWayPointPathway.getText()).toEqual('Business Administration B.A./B.S.');
expect(await JourneyExitWayPointTopLevel.getText()).toEqual('Administration');
expect(await JourneyExitWayPointCluster.getText()).toEqual('Management');
expect(await JourneyExitWayPointPathway.getText()).toEqual('Administrative Services Managers');
expect(await JourneyExitWayPointPathway.getText()).toEqual('Hydroelectric Production Managers');
await MyJourneysHeaderLink.click().then(function() {
browser.sleep(2500);
});