New Sign In page, cleaned up create/edit journey

This commit is contained in:
2020-01-23 13:16:01 -08:00
parent 8c7eced2c5
commit 07e8da7b61

View File

@@ -2,41 +2,40 @@
describe('Journeysmap script', function () { describe('Journeysmap script', function () {
//app-journeysmap landing page //app-journeysmap landing page
var UserNameTextBox = element(by.css('.form-space-medium')); var UserNameTextBox = element(by.id('txtUsername'));
var PasswordTextBox = element(by.css('.form-space-large')); var PasswordTextBox = element(by.id('txtPassword'));
var SignInButton = element(by.css('.btn-block')); var ContinueArrow = element(by.css('.jm-next-circle'));
//Open browser //Open browser
//browser.driver.manage().window().setSize(1600, 800); //browser.driver.manage().window().setSize(1600, 800);
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/signin'); browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login');
it('should have a title', async function () { it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Journeys'); await expect(browser.getTitle()).toEqual('Journeys');
}); });
//Sign In //Sign In
SignIn(UserNameTextBox, PasswordTextBox, SignInButton); SignIn(UserNameTextBox, PasswordTextBox, ContinueArrow);
it('should have a title', async function () { it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Journeys'); await expect(browser.getTitle()).toEqual('Journeys');
}); });
function SignIn(UserNameTextBox, PasswordTextBox, SignInButton) { function SignIn(UserNameTextBox, PasswordTextBox, ContinueArrow) {
it('should sign into journeysmap.com', async function () { it('should sign into journeysmap.com', async function () {
var PageGreatingText = element(by.css('.col-xs-10 > div:nth-child(1)'));
var PageSubText = element(by.css('.ng-scope:nth-child(4)'));
var JourneysGreeting = element(by.css('.dropdown')); var JourneysGreeting = element(by.css('.dropdown'));
//var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
expect(await PageGreatingText.getText()).toEqual('Login and start exploring.');
expect(await PageSubText.getText()).toEqual('Forgot your password? click here.');
await UserNameTextBox.sendKeys('QA_AutomatedRegression'); await UserNameTextBox.sendKeys('QA_AutomatedRegression');
await PasswordTextBox.sendKeys('3Dm1nAuto'); await PasswordTextBox.sendKeys('3Dm1nAuto');
await SignInButton.click().then(function() { await ContinueArrow.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
}); });
/*expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
await DashboardHeaderLink.click().then(function() {
browser.sleep(5000);
});*/
//browser.refresh();//Role Model doesn't always load properly EDM-1603 //browser.refresh();//Role Model doesn't always load properly EDM-1603
//browser.driver.navigate().refresh(); //browser.driver.navigate().refresh();
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
@@ -169,7 +168,7 @@ function ProfileWidget() {
browser.sleep(2500); browser.sleep(2500);
}); });
await ProfileWidgetExpandCollapseIcon.click().then(function() { await ProfileWidgetExpandCollapseIcon.click().then(function() {
browser.sleep(2500); browser.sleep(5000);
}); });
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
@@ -750,7 +749,7 @@ function InterestSurveyResultsCreateJourney() {
var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding:nth-child(1)')); var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding:nth-child(1)'));
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
//short cut to create journey /*short cut to create journey
var Results = element(by.css('div:nth-child(6) .fa-chart-bar')); var Results = element(by.css('div:nth-child(6) .fa-chart-bar'));
var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]'));
var Select = element(by.xpath('//territory-card-action-bar/div/button')); var Select = element(by.xpath('//territory-card-action-bar/div/button'));
@@ -951,24 +950,41 @@ function InterestSurveyResultsCreateJourney() {
browser.sleep(1000); browser.sleep(1000);
}); });
expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); expect(await TwelvethGradeWayPoint.getText()).toEqual('12');
expect(await ThirteenthWayPoint.getText()).toEqual('National Chief Engineer/Assistant Engineer UFIV'); expect(await ThirteenthWayPoint.getText()).toEqual('Certified Audio Engineer');
expect(await FourteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); expect(await FourteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.');
expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers');
await ActionBarSaveIconTwo.click().then(function() { await ActionBarSaveIconTwo.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
await MapZoomOutIcon.click(); await MapZoomOutIcon.click().then(function() {
await MapZoomOutIcon.click(); browser.sleep(1000);
await MapZoomOutIcon.click(); });
await MapZoomOutIcon.click(); await MapZoomOutIcon.click().then(function() {
await MapZoomOutIcon.click(); browser.sleep(1000);
await MapZoomOutIcon.click(); });
await MapZoomOutIcon.click(); await MapZoomOutIcon.click().then(function() {
browser.sleep(1000);
});
await MapZoomOutIcon.click().then(function() {
browser.sleep(1000);
});
await MapZoomOutIcon.click().then(function() {
browser.sleep(1000);
});
await MapZoomOutIcon.click().then(function() {
browser.sleep(1000);
});
await MapZoomOutIcon.click().then(function() {
browser.sleep(1000);
});
await MapZoomOutIcon.click().then(function() { await MapZoomOutIcon.click().then(function() {
browser.sleep(1000) browser.sleep(1000)
}); });
browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { /*browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() {
browser.sleep(1000); browser.sleep(1000);
});*/
await EditJourneyLink.click().then(function() {
browser.sleep(2500)
}); });
await SelectCollegeWayPointEllipsis.click().then(function() { await SelectCollegeWayPointEllipsis.click().then(function() {
browser.sleep(2500) browser.sleep(2500)
@@ -989,7 +1005,7 @@ function InterestSurveyResultsCreateJourney() {
}); });
expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); expect(await TwelvethGradeWayPoint.getText()).toEqual('12');
expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.');
expect(await FourteenthWayPoint.getText()).toEqual('National Chief Engineer/Assistant Engineer UFIV'); expect(await FourteenthWayPoint.getText()).toEqual('Certified Audio Engineer');
expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers');
await ActionBarSaveIconOne.click().then(function() { await ActionBarSaveIconOne.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
@@ -3495,7 +3511,7 @@ function MyJourneysPage() {
var PersistOnMapRadioButton = element(by.name('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 input')); var PersistOnMapRadioButton = element(by.name('#e0049880-9613-4fd5-9ed2-eb468cdc2e55 input'));
await MyJourneysHeaderLink.click().then(function() { await MyJourneysHeaderLink.click().then(function() {
browser.sleep(5000); browser.sleep(10000);
}); });
await expect(PageTitle.getText()).toEqual('My Saved Journeys'); await expect(PageTitle.getText()).toEqual('My Saved Journeys');
expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map'); expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map');
@@ -3611,31 +3627,7 @@ function MapInteraction() {
it(': MapInteraction, should navigate to map and interact with it', async function () { it(': MapInteraction, should navigate to map and interact with it', async function () {
var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover')); var MapHeaderLink = element(by.css('.ng-scope:nth-child(2) .span-navbar-hover'));
var MapSearchTextBox = element(by.css('#searchBox')); var MapSearchTextBox = element(by.css('#searchBox'));
var MapSearchIcon = element(by.css('.glyphicon-search')); var MapSearchIcon = element(by.css('.glyphicon-search'));
var SearchCareerOne = element(by.css('#searchitem0 .side-bar-child-text'));
var ItemPath = element(by.css('#searchitem0 .ng-scope > div > .side-bar-ancestory-txt'));
var ItemTitle = element(by.css('#searchitem0 .side-bar-child-text'));
var ItemDescription = element(by.css('.sidebarDescription'));
var ItemDegreeHeader = element(by.css('.ng-scope > .panel-heading'));
var ItemDegree = element(by.css('.panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
var ItemDegreeOneStat = element(by.css('.ng-scope > .panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(2)'));
var ItemDegreeTwo = element(by.css('.panel-body > .ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
var ItemDegreeTwoStat = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)'));
var ItemDegreeThree = element(by.css('.panel-body > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
var ItemDegreeThreeStat = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)'));
var ItemSalaryHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading'));
var ItemSalaryStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding'));
var ItemGrowthHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading'));
var ItemGrowthStat = element(by.css('.panel-body > .ng-binding:nth-child(2)'));
var ItemGrowthStatTwo = element(by.css('.ng-scope > .panel > .panel-body > .ng-scope:nth-child(3)'));
var ItemJobOpeningsHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading'));
var ItemJobOpeningsStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding'));
var ItemEmployedHeader = element(by.css('.ng-scope:nth-child(5) .sidebarPanelHeading'));
var ItemEmployedStat = element(by.css('.ng-scope:nth-child(5) .panel-body > .ng-binding'));
var SearchCareerOneViewOnMapIcon = element(by.css('#searchitem0 .fas'));
var ObjectPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)'));
var ObjectTitle = element(by.css('.side-bar-child-text:nth-child(2)'));
var BackToResultsLink = element(by.css('div:nth-child(2) > .sidebarBackTxt'));
var CollegeTabLink = element(by.css('#tab-item-1 > .ng-binding')); var CollegeTabLink = element(by.css('#tab-item-1 > .ng-binding'));
var CollegePath = element(by.css('#tab-content-1 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt')); var CollegePath = element(by.css('#tab-content-1 #searchitem0 .ng-scope > div > .side-bar-ancestory-txt'));
var CollegeTitle = element(by.css('#tab-content-1 #searchitem0 .side-bar-child-text:nth-child(2)')); var CollegeTitle = element(by.css('#tab-content-1 #searchitem0 .side-bar-child-text:nth-child(2)'));
@@ -3659,24 +3651,43 @@ function MapInteraction() {
var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon')); var ArrowTabLink = element(by.css('.ng-scope:nth-child(2) > md-icon'));
var CareerTabLink = element(by.css('#tab-item-0 > .ng-binding')); var CareerTabLink = element(by.css('#tab-item-0 > .ng-binding'));
var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text')); var SearchCareerFour = element(by.css('#searchitem3 .side-bar-child-text'));
var ItemReadMoreLink = element(by.css('.sidebarLinkTxt')); var ItemFourPath = element(by.css('.sidebarDescriptionAncestorTxt:nth-child(1)'));
var ItemTitleReadMore = element(by.css('.col-lg-12 > .ng-binding')); var ItemFourTitle = element(by.css('.side-bar-child-text:nth-child(2)'));
var ItemDescriptionReadMore = element(by.css('.col-lg-12:nth-child(3)')); var ItemFourCareerChoicesHeader = element(by.css('.ng-scope:nth-child(1) > .panel > .sidebarPanelHeading'));
var ItemDetailCloseLink = element(by.css('.fa-times')); var ItemFourCareerChoicesStat = element(by.css('.ng-scope:nth-child(1) > .panel > .panel-body > .ng-binding'));
var CareerChoicesHeader = element(by.css('.ng-scope:nth-child(1) > .panel > .sidebarPanelHeading')); var ItemFourSkillsHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading'));
var CareerChoicesStat = element(by.css('.ng-scope:nth-child(1) > .panel > .panel-body > .ng-binding')); var ItemFourSkillsStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding'));
var SkillsHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading')); var ItemFourAbilitiesHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading'));
var SkillsStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding')); var ItemFourAbilitiesStat = element(by.css('.ng-scope:nth-child(3) > .panel > .panel-body > .ng-binding'));
var AbilitiesHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading')); var ItemFourKnowledgeChoicesHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading'));
var AbilitiesStat = element(by.css('.ng-scope:nth-child(3) > .panel > .panel-body > .ng-binding')); var ItemFourKnowledgeChoicesStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding'));
var KnowledgeChoicesHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading')); var ItemFourViewOnMapIcon = element(by.css('#searchitem3 .fas'));
var KnowledgeChoicesStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding')); var CollapseIconDetailPanel = element(by.css('.btn-info .fa-angle-left'));
var SearchCareerFourViewOnMapIcon = element(by.css('#searchitem3 .fas'));
var CollapseIcon = element(by.css('div > .fa-angle-left'));
var MapZoomOutIcon = element(by.css('.glyphicon-minus')); var MapZoomOutIcon = element(by.css('.glyphicon-minus'));
var HideJourneyButton = element(by.css('#persistJourneyButton > .ng-binding')); var HideJourneyButton = element(by.css('#persistJourneyButton > .ng-binding'));
var MapZoomInIcon = element(by.css('.glyphicon-plus')); var MapZoomInIcon = element(by.css('.glyphicon-plus'));
var ExpandIcon = element(by.css('div:nth-child(2) > .back-btn-mod')); var ExpandIconDetailPanel = element(by.css('div:nth-child(2) > .back-btn-mod'));
var BackLink = element(by.css('div:nth-child(2) > .sidebarBackTxt'));
var ItemOnePath = element(by.css('#searchitem0 .ng-scope > div > .side-bar-ancestory-txt'));
var ItemOneTitle = element(by.css('#searchitem0 .side-bar-child-text'));
var ItemDescription = element(by.css('.sidebarDescription'));
var ItemOneDegreeHeader = element(by.css('.ng-scope > .panel-heading'));
var ItemOneDegree = element(by.css('.panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
var ItemOneDegreeOneStat = element(by.css('.ng-scope > .panel-body > .ng-scope:nth-child(1) > .ng-binding:nth-child(2)'));
var ItemOneDegreeTwo = element(by.css('.panel-body > .ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
var ItemOneDegreeTwoStat = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)'));
var ItemOneDegreeThree = element(by.css('.panel-body > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
var ItemOneDegreeThreeStat = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)'));
var ItemOneSalaryHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading'));
var ItemOneSalaryStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding'));
var ItemOneGrowthHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading'));
var ItemOneGrowthStat = element(by.css('.panel-body > .ng-binding:nth-child(2)'));
var ItemOneGrowthStatTwo = element(by.css('.ng-scope > .panel > .panel-body > .ng-scope:nth-child(3)'));
var ItemOneJobOpeningsHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading'));
var ItemOneJobOpeningsStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding'));
var ItemOneEmployedHeader = element(by.css('.ng-scope:nth-child(5) .sidebarPanelHeading'));
var ItemOneEmployedStat = element(by.css('.ng-scope:nth-child(5) .panel-body > .ng-binding'));
var ItemOneViewOnMapIcon = element(by.css('#searchitem0 .fas'));
var MapSearchClearIcon = element(by.css('.glyphicon-remove')); var MapSearchClearIcon = element(by.css('.glyphicon-remove'));
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
@@ -3684,158 +3695,153 @@ function MapInteraction() {
browser.sleep(5000); browser.sleep(5000);
}); });
await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst'); await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst');
await MapSearchIcon.click(); await MapSearchIcon.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
/*await SearchCareerOne.click(); });
browser.sleep(2500); await CollegeTabLink.click().then(function() {
expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >'); browser.sleep(2500);
expect(await ItemTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers'); });
expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.'); await CollegePath.click().then(function() {
expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE'); browser.sleep(2500);
expect(await ItemDegree.getText()).toEqual('College (4 Year)'); });
expect(await ItemDegreeOneStat.getText()).toEqual('70%'); await MapZoomInIcon.click().then(function() {
expect(await ItemDegreeTwo.getText()).toEqual("Associate's degree"); browser.sleep(2500);
expect(await ItemDegreeTwoStat.getText()).toEqual('15%'); });
expect(await ItemDegreeThree.getText()).toEqual('Professional degree certificate'); await MapZoomInIcon.click().then(function() {
expect(await ItemDegreeThreeStat.getText()).toEqual('7%');
expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY');
expect(await ItemSalaryStat.getText()).toEqual('$88,510');
expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH');
expect(await ItemGrowthStat.getText()).toEqual('9.3');
expect(await ItemGrowthStatTwo.getText()).toEqual('%');
expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS');
expect(await ItemJobOpeningsStat.getText()).toEqual('22,400');
browser.actions().mouseMove(SearchCareerOneViewOnMapIcon).perform().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
expect(await ItemEmployedStat.getText()).toEqual('287,200');*/
await CollegeTabLink.click();
browser.sleep(2500);
await CollegePath.click();
browser.sleep(2500);
await MapZoomInIcon.click();
browser.sleep(2500);
await MapZoomInIcon.click();
browser.sleep(2500);
expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >'); expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >');
expect(await CollegeTitle.getText()).toEqual('Publishing Software'); expect(await CollegeTitle.getText()).toEqual('Publishing Software');
expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)'); expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)');
browser.sleep(2500); browser.sleep(2500);
await CertificationTabLink.click(); await CertificationTabLink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
await CertificationPath.click(); });
browser.sleep(2500); await CertificationPath.click().then(function() {
browser.sleep(2500);
});
expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >'); expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >');
expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst'); expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst');
expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.'); expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.');
await K12TabLink.click(); await K12TabLink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
await K12Path.click(); });
browser.sleep(2500); await K12Path.click().then(function() {
browser.sleep(2500);
});
expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >'); expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >');
expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.');
expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.'); expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.');
await MilitaryTabLink.click(); await MilitaryTabLink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
await MilitaryPath.click(); });
browser.sleep(2500); await MilitaryPath.click().then(function() {
expect(await MilitaryPath.getText()).toEqual('Aircraft Hydraulic Systems > Administration >'); browser.sleep(2500);
expect(await MilitaryTitle.getText()).toEqual('Quality Control Systems Managers'); });
expect(await MilitaryPath.getText()).toEqual('Calibration Technician > STEM >');
expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts');
expect(await MilitaryDescription.getText()).toEqual('No details for this location.'); expect(await MilitaryDescription.getText()).toEqual('No details for this location.');
await CTETabLlink.click(); await CTETabLlink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
await CTEPath.click(); });
browser.sleep(2500); await CTEPath.click().then(function() {
expect(await CTEPath.getText()).toEqual('Programming & Software Development > Quality Assurance >'); browser.sleep(5000);
expect(await CTETitle.getText()).toEqual('Summarize software quality assurance (QA) procedures.'); });
expect(await CTEDescription.getText()).toEqual('Performance Element 1: Summarize software quality assurance (QA) procedures.'); expect(await CTEPath.getText()).toEqual('Information Technology > Programming & Software Development >');
await ArrowTabLink.click(); expect(await CTETitle.getText()).toEqual('Quality Assurance');
browser.sleep(2500); expect(await CTEDescription.getText()).toEqual('Perform quality assurance tasks as part of the software development cycle.');
await CareerTabLink.click(); await ArrowTabLink.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
await SearchCareerFour.click(); });
browser.sleep(2500); await CareerTabLink.click().then(function() {
browser.sleep(2500);
});
await SearchCareerFour.click().then(function() {
browser.sleep(2500);
});
expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."');
/*await ItemReadMoreLink.click(); expect(await ItemFourCareerChoicesHeader.getText()).toEqual('CAREER CHOICES');
expect(await ItemFourCareerChoicesStat.getText()).toEqual('2');
expect(await ItemFourSkillsHeader.getText()).toEqual('SKILLS');
expect(await ItemFourSkillsStat.getText()).toEqual('35');
expect(await ItemFourAbilitiesHeader.getText()).toEqual('ABILITIES');
expect(await ItemFourAbilitiesStat.getText()).toEqual('52');
expect(await ItemFourKnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES');
expect(await ItemFourKnowledgeChoicesStat.getText()).toEqual('33');
browser.actions().mouseMove(ItemFourViewOnMapIcon).perform().then(function() {
browser.sleep(2500);
});
await ItemFourViewOnMapIcon.click();
browser.sleep(2500); browser.sleep(2500);
expect(await ItemTitleReadMore.getText()).toEqual('Computer Systems Analysts'); expect(await ItemFourPath.getText()).toEqual('Career > Cyber Security >');
expect(await ItemDescriptionReadMore.getText()).toEqual('Analyze science, engineering, business, and other data processing problems to implement and improve computer systems. Analyze user requirements, procedures, and problems to automate or improve existing systems and review computer system capabilities, workflow, and scheduling limitations. May analyze or recommend commercially available software.'); expect(await ItemFourTitle.getText()).toEqual('Software Development (DEV)');
await ItemDetailCloseLink.click().then(function() { expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."');
expect(await ItemFourCareerChoicesHeader.getText()).toEqual('CAREER CHOICES');
expect(await ItemFourCareerChoicesStat.getText()).toEqual('2');
expect(await ItemFourSkillsHeader.getText()).toEqual('SKILLS');
expect(await ItemFourSkillsStat.getText()).toEqual('35');
expect(await ItemFourAbilitiesHeader.getText()).toEqual('ABILITIES');
expect(await ItemFourAbilitiesStat.getText()).toEqual('52');
expect(await ItemFourKnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES');
expect(await ItemFourKnowledgeChoicesStat.getText()).toEqual('33');
await CollapseIconDetailPanel.click().then(function() {
browser.sleep(2500);
});
await MapZoomOutIcon.click().then(function() {
browser.sleep(1000); browser.sleep(1000);
});*/ });
expect(await CareerChoicesHeader.getText()).toEqual('CAREER CHOICES'); await MapZoomOutIcon.click().then(function() {
expect(await CareerChoicesStat.getText()).toEqual('2'); browser.sleep(1000);
expect(await SkillsHeader.getText()).toEqual('SKILLS'); });
expect(await SkillsStat.getText()).toEqual('35'); await MapZoomOutIcon.click().then(function() {
expect(await AbilitiesHeader.getText()).toEqual('ABILITIES'); browser.sleep(1000);
expect(await AbilitiesStat.getText()).toEqual('52'); });
expect(await KnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); await HideJourneyButton.click().then(function() {
expect(await KnowledgeChoicesStat.getText()).toEqual('33');
browser.actions().mouseMove(SearchCareerFourViewOnMapIcon).perform().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
await SearchCareerFourViewOnMapIcon.click(); await MapZoomOutIcon.click().then(function() {
browser.sleep(2500); browser.sleep(1000);
expect(await ObjectPath.getText()).toEqual('Career > Cyber Security >'); });
expect(await ObjectTitle.getText()).toEqual('Software Development (DEV)'); await MapZoomInIcon.click().then(function() {
expect(await ItemDescription.getText()).toEqual('"Develops and writes/codes new (or modifies existing) computer applications, software, or specialized utility programs following software assurance best practices."'); browser.sleep(1000);
expect(await CareerChoicesHeader.getText()).toEqual('CAREER CHOICES'); });
expect(await CareerChoicesStat.getText()).toEqual('2'); await MapZoomInIcon.click().then(function() {
expect(await SkillsHeader.getText()).toEqual('SKILLS'); browser.sleep(1000);
expect(await SkillsStat.getText()).toEqual('35'); });
expect(await AbilitiesHeader.getText()).toEqual('ABILITIES'); await HideJourneyButton.click().then(function() {
expect(await AbilitiesStat.getText()).toEqual('52'); browser.sleep(2500);
expect(await KnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES'); });
expect(await KnowledgeChoicesStat.getText()).toEqual('33'); await ExpandIconDetailPanel.click().then(function() {
await CollapseIcon.click(); browser.sleep(2500);
browser.sleep(2500); });
await MapZoomOutIcon.click(); await BackLink.click().then(function() {
browser.sleep(1000); browser.sleep(2500);
await MapZoomOutIcon.click(); });
browser.sleep(1000); await ItemOneTitle.click().then(function() {
await MapZoomOutIcon.click(); browser.sleep(2500);
browser.sleep(1000); });
await HideJourneyButton.click(); expect(await ItemOnePath.getText()).toEqual('20IT > Programming & Software Development >');
browser.sleep(2500); expect(await ItemOneTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers');
await MapZoomOutIcon.click();
browser.sleep(1000);
await MapZoomInIcon.click();
browser.sleep(1000);
await MapZoomInIcon.click();
browser.sleep(1000);
await HideJourneyButton.click();
browser.sleep(2500);
await ExpandIcon.click();
browser.sleep(5000);
await BackToResultsLink.click();
browser.sleep(2500);
/*expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >');
expect(await ItemTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers');*/
await SearchCareerOne.click();
browser.sleep(2500);
expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >');
expect(await ItemTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers');
expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.'); expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.');
expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE'); expect(await ItemOneDegreeHeader.getText()).toEqual('TYPICAL DEGREE');
expect(await ItemDegree.getText()).toEqual('College (4 Year)'); expect(await ItemOneDegree.getText()).toEqual('College (4 Year)');
expect(await ItemDegreeOneStat.getText()).toEqual('70%'); expect(await ItemOneDegreeOneStat.getText()).toEqual('70%');
expect(await ItemDegreeTwo.getText()).toEqual("Associate's degree"); expect(await ItemOneDegreeTwo.getText()).toEqual("Associate's degree");
expect(await ItemDegreeTwoStat.getText()).toEqual('15%'); expect(await ItemOneDegreeTwoStat.getText()).toEqual('15%');
expect(await ItemDegreeThree.getText()).toEqual('Professional degree certificate'); expect(await ItemOneDegreeThree.getText()).toEqual('Professional degree certificate');
expect(await ItemDegreeThreeStat.getText()).toEqual('7%'); expect(await ItemOneDegreeThreeStat.getText()).toEqual('7%');
expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY'); expect(await ItemOneSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY');
expect(await ItemSalaryStat.getText()).toEqual('$88,510'); expect(await ItemOneSalaryStat.getText()).toEqual('$88,510');
expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH'); expect(await ItemOneGrowthHeader.getText()).toEqual('PROJECTED GROWTH');
expect(await ItemGrowthStat.getText()).toEqual('9.3'); expect(await ItemOneGrowthStat.getText()).toEqual('9.3');
expect(await ItemGrowthStatTwo.getText()).toEqual('%'); expect(await ItemOneGrowthStatTwo.getText()).toEqual('%');
expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS'); expect(await ItemOneJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS');
expect(await ItemJobOpeningsStat.getText()).toEqual('22,400'); expect(await ItemOneJobOpeningsStat.getText()).toEqual('22,400');
browser.actions().mouseMove(SearchCareerOneViewOnMapIcon).perform().then(function() { browser.actions().mouseMove(ItemOneViewOnMapIcon).perform().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED'); expect(await ItemOneEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
expect(await ItemEmployedStat.getText()).toEqual('287,200'); expect(await ItemOneEmployedStat.getText()).toEqual('287,200');
await MapSearchClearIcon.click(); await MapSearchClearIcon.click();
await DashboardHeaderLink.click().then(function() { await DashboardHeaderLink.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
@@ -3891,31 +3897,31 @@ function MyActivityJourneys() {
}); });
expect(await MySavedJourneysTitle.getText()).toEqual('My Saved Journeys'); expect(await MySavedJourneysTitle.getText()).toEqual('My Saved Journeys');
expect(await ViewOnMapText.getText()).toEqual('Select a Journey to show it on the map'); expect(await ViewOnMapText.getText()).toEqual('Select a Journey to show it on the map');
expect(await MySavedJourneyOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); expect(await MySavedJourneyOne.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
expect(await MySavedJourneyTwo.getText()).toEqual('8 to Airfield Operations Specialists through College'); expect(await MySavedJourneyTwo.getText()).toEqual('8 to Airfield Operations Specialists through College');
expect(await MySavedJourneyThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate'); expect(await MySavedJourneyThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
expect(await MySavedJournyeFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.'); expect(await MySavedJournyeFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
await BackLink.click().then(function() { await BackLink.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await JourneyTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); expect(await JourneyTitleOne.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
await JourneyLearnMoreLinkOne.click().then(function() { await JourneyLearnMoreLinkOne.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await JourneyLearnMoreTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.'); expect(await JourneyLearnMoreTitle.getText()).toEqual('6 to Administrative Services Managers through Business Administration B.A./B.S.');
await BackLink.click().then(function() { await BackLink.click().then(function() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await JourneyProgressStepsOne.getText()).toContain('4 steps (0 Complete)'); expect(await JourneyProgressStepsOne.getText()).toContain('10 steps (0 Complete)');
//expect(await JourneyTitleTwo.getText()).toEqual(''); //expect(await JourneyTitleTwo.getText()).toEqual('');
expect(await JourneyLearnMoreLinkTwo.getText()).toEqual('Learn More'); expect(await JourneyLearnMoreLinkTwo.getText()).toEqual('Learn More');
expect(await JourneyProgressStepsTwo.getText()).toContain('7 steps (0 Complete)'); expect(await JourneyProgressStepsTwo.getText()).toContain('4 steps (0 Complete)');
//expect(await JourneyTitleThree.getText()).toEqual(''); //expect(await JourneyTitleThree.getText()).toEqual('');
expect(await JourneyLearnMoreLinkThree.getText()).toEqual('Learn More'); expect(await JourneyLearnMoreLinkThree.getText()).toEqual('Learn More');
expect(await JourneyProgressStepsThree.getText()).toContain('5 steps (0 Complete)'); expect(await JourneyProgressStepsThree.getText()).toContain('7 steps (0 Complete)');
//expect(await JourneyTitleFour.getText()).toEqual(''); //expect(await JourneyTitleFour.getText()).toEqual('');
expect(await JourneyLearnMoreLinkFour.getText()).toEqual('Learn More'); expect(await JourneyLearnMoreLinkFour.getText()).toEqual('Learn More');
expect(await JourneyProgressStepsFour.getText()).toContain('13 steps (0 Complete)'); expect(await JourneyProgressStepsFour.getText()).toContain('5 steps (0 Complete)');
browser.executeScript('window.scrollTo(0, 235);').then(function() { browser.executeScript('window.scrollTo(0, 235);').then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });
@@ -4054,7 +4060,6 @@ function Logins() {
var ThursdayHeader = element(by.css('text:nth-child(12)')); var ThursdayHeader = element(by.css('text:nth-child(12)'));
var ThursdayData = element(by.css('rect:nth-child(5)')); var ThursdayData = element(by.css('rect:nth-child(5)'));
var FridayHeader = element(by.css('text:nth-child(13)')); var FridayHeader = element(by.css('text:nth-child(13)'));
var FridayData = element(by.css('rect:nth-child(6)'));
var SaturdayHeader = element(by.css('text:nth-child(14)')); var SaturdayHeader = element(by.css('text:nth-child(14)'));
var CalendarIcon = element(by.css('.fa-calendar')); var CalendarIcon = element(by.css('.fa-calendar'));
var CalendarLeftIcon = element(by.css('.glyphicon-chevron-left')); var CalendarLeftIcon = element(by.css('.glyphicon-chevron-left'));
@@ -4122,7 +4127,7 @@ function Logins() {
expect(await LastLoggedInHeader.getText()).toEqual('Last Logged In:'); expect(await LastLoggedInHeader.getText()).toEqual('Last Logged In:');
expect(await MonthOfHeader.getText()).not.toEqual('Month of November, 2019'); expect(await MonthOfHeader.getText()).not.toEqual('Month of November, 2019');
expect(await TotalLoginsHeader.getText()).toEqual('Total Logins:'); expect(await TotalLoginsHeader.getText()).toEqual('Total Logins:');
expect(await WeeklyCeilingLogin.getText()).toEqual('35'); expect(await WeeklyCeilingLogin.getText()).toEqual('50');
expect(await SundayHeader.getText()).toEqual('S'); expect(await SundayHeader.getText()).toEqual('S');
expect(await MondayHeader.getText()).toEqual('M'); expect(await MondayHeader.getText()).toEqual('M');
browser.actions().mouseMove(MondayData).perform().then(function() { browser.actions().mouseMove(MondayData).perform().then(function() {
@@ -4223,7 +4228,7 @@ function Logins() {
expect(await November29Header.getText()).toEqual('29'); expect(await November29Header.getText()).toEqual('29');
expect(await November30Header.getText()).toEqual('30'); expect(await November30Header.getText()).toEqual('30');
expect(await MonthlyTuesdayHeader.getText()).toContain('Wednesday'); expect(await MonthlyTuesdayHeader.getText()).toContain('Wednesday');
expect(await MonthlyTuesdayCeiling.getText()).toEqual('10'); expect(await MonthlyTuesdayCeiling.getText()).toEqual('24');
expect(await MonthlyTuesday12amHeader.getText()).toEqual('12a'); expect(await MonthlyTuesday12amHeader.getText()).toEqual('12a');
expect(await MonthlyTuesday3amHeader.getText()).toEqual('3a'); expect(await MonthlyTuesday3amHeader.getText()).toEqual('3a');
expect(await MonthlyTuesday6amHeader.getText()).toEqual('6a'); expect(await MonthlyTuesday6amHeader.getText()).toEqual('6a');
@@ -4724,14 +4729,14 @@ function OccupationMetrics() {
}); });
expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics'); expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics');
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest'); expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest');
expect(await OccupationsOfInterestStat.getText()).toContain('80'); expect(await OccupationsOfInterestStat.getText()).toContain('81');
expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary'); expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary');
expect(await AverageAnnualSalaryStat.getText()).toContain('$70,840'); expect(await AverageAnnualSalaryStat.getText()).toContain('$70,63');
expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings'); expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings');
expect(await AverageProjectedJobOpeningsStat.getText()).toContain('23,453'); expect(await AverageProjectedJobOpeningsStat.getText()).toContain('23,523');
expect(await TopClustersTitle.getText()).toContain('Top Clusters'); expect(await TopClustersTitle.getText()).toContain('Top Clusters');
expect(await TopClustersStatOne.getText()).toContain('Information Technology'); expect(await TopClustersStatOne.getText()).toContain('Health Science');
expect(await TopClustersStatTwo.getText()).toContain('Health Science'); expect(await TopClustersStatTwo.getText()).toContain('Information Technology');
expect(await TopClustersStatThree.getText()).toContain('Education & Training'); expect(await TopClustersStatThree.getText()).toContain('Education & Training');
expect(await AverageProjectedGrowthTitle.getText()).toContain('Average Projected Growth'); expect(await AverageProjectedGrowthTitle.getText()).toContain('Average Projected Growth');
expect(await AverageProjectedGrowthStat.getText()).toContain('LOWER THAN AVERAGE'); expect(await AverageProjectedGrowthStat.getText()).toContain('LOWER THAN AVERAGE');
@@ -4773,7 +4778,7 @@ function OccupationsOfInterest() {
browser.sleep(5000); browser.sleep(5000);
}); });
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations visited by Automated Regression'); expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations visited by Automated Regression');
expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Software Developers, Applications'); expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Computer and Information Systems Managers');
await OccupationsOfInterestFirstCard.click().then(function() { await OccupationsOfInterestFirstCard.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
}); });