Updated Map Interaction

This commit is contained in:
2019-11-18 16:21:11 -08:00
parent 72b0f1f1b2
commit 3d530236b3

View File

@@ -679,7 +679,7 @@ function InterestSurveyResultsClusters() {
browser.sleep(2500); browser.sleep(2500);
}); });
await LearnMoreButton.click().then(function() { await LearnMoreButton.click().then(function() {
browser.sleep(10000); browser.sleep(25000);
}); });
/*await JourneymanIcon.click().then(function() { /*await JourneymanIcon.click().then(function() {
browser.sleep(2500); browser.sleep(2500);
@@ -1366,7 +1366,10 @@ function TopCareerWidget() {
var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1')); var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1'));
var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy')); var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy'));
var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding')); var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding'));
var MyResourceTitle = element(by.css('.row > .row > .col-xs-9 > .ng-binding'));
var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)')); var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)'));
var MyResourceFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span'));
var MyResourceLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)'));
var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1')); var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1'));
var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12')); var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12'));
var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text')); var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text'));
@@ -1500,7 +1503,7 @@ function TopCareerWidget() {
}); });
//Certificates //Certificates
expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates'); expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates');
expect(await CertificatesCardHeader.getText()).toEqual('Certified Associate LabVIEW Developer'); expect(await CertificatesCardHeader.getText()).toEqual('Certified LabVIEW Architect');
expect(await CertificatesCardSubHeader.getText()).toEqual('Business Analysis'); expect(await CertificatesCardSubHeader.getText()).toEqual('Business Analysis');
await CertificatesRightScroll.click(); await CertificatesRightScroll.click();
browser.sleep(2500); browser.sleep(2500);
@@ -1580,9 +1583,12 @@ function TopCareerWidget() {
browser.sleep(1000); browser.sleep(1000);
}); });
expect(await MySubmittedResourcesWidgetTitle.getText()).toContain('My Submitted Resources'); expect(await MySubmittedResourcesWidgetTitle.getText()).toContain('My Submitted Resources');
expect(await MyResourceTitle.getText()).toEqual('Test Doc');
await EllipsisResource.click().then(function() { await EllipsisResource.click().then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });
expect(await MyResourceFollowIcon.getText()).toEqual('Follow');
expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More');
await XCloseLink.click().then(function() { await XCloseLink.click().then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });
@@ -3071,7 +3077,7 @@ function MyJourneysPage() {
} }
function MapInteraction() { function MapInteraction() {
it('should navigate to map and iteract with it', async function () { it('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'));
@@ -3127,6 +3133,14 @@ function MapInteraction() {
var ItemTitleReadMore = element(by.css('.col-lg-12 > .ng-binding')); var ItemTitleReadMore = element(by.css('.col-lg-12 > .ng-binding'));
var ItemDescriptionReadMore = element(by.css('.col-lg-12:nth-child(3)')); var ItemDescriptionReadMore = element(by.css('.col-lg-12:nth-child(3)'));
var ItemDetailCloseLink = element(by.css('.fa-times')); var ItemDetailCloseLink = element(by.css('.fa-times'));
var CareerChoicesHeader = element(by.css('.ng-scope:nth-child(1) > .panel > .sidebarPanelHeading'));
var CareerChoicesStat = element(by.css('.ng-scope:nth-child(1) > .panel > .panel-body > .ng-binding'));
var SkillsHeader = element(by.css('.ng-scope:nth-child(2) > .panel > .sidebarPanelHeading'));
var SkillsStat = element(by.css('.ng-scope:nth-child(2) > .panel > .panel-body > .ng-binding'));
var AbilitiesHeader = element(by.css('.ng-scope:nth-child(3) > .panel > .sidebarPanelHeading'));
var AbilitiesStat = element(by.css('.ng-scope:nth-child(3) > .panel > .panel-body > .ng-binding'));
var KnowledgeChoicesHeader = element(by.css('.ng-scope:nth-child(4) > .panel > .sidebarPanelHeading'));
var KnowledgeChoicesStat = element(by.css('.ng-scope:nth-child(4) > .panel > .panel-body > .ng-binding'));
var SearchCareerFourViewOnMapIcon = element(by.css('#searchitem3 .fas')); var SearchCareerFourViewOnMapIcon = element(by.css('#searchitem3 .fas'));
var CollapseIcon = element(by.css('div > .fa-angle-left')); var CollapseIcon = element(by.css('div > .fa-angle-left'));
var MapZoomOutIcon = element(by.css('.glyphicon-minus')); var MapZoomOutIcon = element(by.css('.glyphicon-minus'));
@@ -3162,84 +3176,80 @@ function MapInteraction() {
expect(await ItemJobOpeningsStat.getText()).toEqual('22,400'); expect(await ItemJobOpeningsStat.getText()).toEqual('22,400');
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED'); expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
expect(await ItemEmployedStat.getText()).toEqual('287,200'); expect(await ItemEmployedStat.getText()).toEqual('287,200');
browser.actions().mouseMove(SearchCareerOneViewOnMapIcon).perform().then(function() {
browser.sleep(1000);
});
await SearchCareerOneViewOnMapIcon.click(); await SearchCareerOneViewOnMapIcon.click();
browser.sleep(5000); browser.sleep(5000);
expect(await ObjectPath.getText()).toEqual('IT > Programming & Software Development >'); expect(await ObjectPath.getText()).toEqual('IT > Programming & Software Development >');
expect(await ObjectTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers'); expect(await ObjectTitle.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.');
await BackToResultsLink.click(); await BackToResultsLink.click();
browser.sleep(10000); browser.sleep(5000);
await CollegeTabLink.click(); await CollegeTabLink.click();
browser.sleep(10000); browser.sleep(5000);
await CollegePath.click(); await CollegePath.click();
browser.sleep(2500); 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.)');
await MapZoomInIcon.click();
browser.sleep(5000);
await CertificationTabLink.click(); await CertificationTabLink.click();
browser.sleep(10000); browser.sleep(5000);
await CertificationPath.click(); await CertificationPath.click();
browser.sleep(2500); 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();
browser.sleep(10000); browser.sleep(5000);
await K12Path.click(); await K12Path.click();
browser.sleep(2500); 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();
browser.sleep(10000); browser.sleep(5000);
await MilitaryPath.click(); await MilitaryPath.click();
browser.sleep(2500); browser.sleep(2500);
expect(await MilitaryPath.getText()).toEqual('Calibration Technician > STEM >'); expect(await MilitaryPath.getText()).toEqual('Aircraft Hydraulic Systems > Administration >');
expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts'); expect(await MilitaryTitle.getText()).toEqual('Quality Control Systems Managers');
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();
browser.sleep(10000); browser.sleep(5000);
await CTEPath.click(); await CTEPath.click();
browser.sleep(2500); browser.sleep(2500);
expect(await CTEPath.getText()).toEqual('Information Technology > Programming & Software Development >'); expect(await CTEPath.getText()).toEqual('Programming & Software Development > Quality Assurance >');
expect(await CTETitle.getText()).toEqual('Quality Assurance'); expect(await CTETitle.getText()).toEqual('Summarize software quality assurance (QA) procedures.');
expect(await CTEDescription.getText()).toEqual('Perform quality assurance tasks as part of the software development cycle.'); expect(await CTEDescription.getText()).toEqual('Performance Element 1: Summarize software quality assurance (QA) procedures.');
await ArrowTabLink.click(); await ArrowTabLink.click();
browser.sleep(2500); browser.sleep(2500);
await CareerTabLink.click(); await CareerTabLink.click();
browser.sleep(10000); browser.sleep(5000);
await SearchCareerFour.click(); await SearchCareerFour.click();
browser.sleep(2500); browser.sleep(2500);
expect(await ItemDescription.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 cap...'); 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(); /*await ItemReadMoreLink.click();
browser.sleep(2500); browser.sleep(2500);
expect(await ItemTitleReadMore.getText()).toEqual('Computer Systems Analysts'); expect(await ItemTitleReadMore.getText()).toEqual('Computer Systems Analysts');
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 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.');
await ItemDetailCloseLink.click().then(function() { await ItemDetailCloseLink.click().then(function() {
browser.sleep(1000); browser.sleep(1000);
}); });*/
expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE'); expect(await CareerChoicesHeader.getText()).toEqual('CAREER CHOICES');
expect(await ItemDegree.getText()).toEqual('College (4 Year)'); expect(await CareerChoicesStat.getText()).toEqual('2');
expect(await ItemDegreeOneStat.getText()).toEqual('33%'); expect(await SkillsHeader.getText()).toEqual('SKILLS');
expect(await ItemDegreeTwo.getText()).toEqual("Associate's degree"); expect(await SkillsStat.getText()).toEqual('35');
expect(await ItemDegreeTwoStat.getText()).toEqual('29%'); expect(await AbilitiesHeader.getText()).toEqual('ABILITIES');
expect(await ItemDegreeThree.getText()).toEqual("Master's degree"); expect(await AbilitiesStat.getText()).toEqual('52');
expect(await ItemDegreeThreeStat.getText()).toEqual('14%'); expect(await KnowledgeChoicesHeader.getText()).toEqual('KNOWLEDGE CHOICES');
expect(await ItemSalaryHeader.getText()).toEqual('AVERAGE ANNUAL SALARY'); expect(await KnowledgeChoicesStat.getText()).toEqual('33');
expect(await ItemSalaryStat.getText()).toEqual('$88,270');
expect(await ItemGrowthHeader.getText()).toEqual('PROJECTED GROWTH');
expect(await ItemGrowthStat.getText()).toEqual('ABOUT AVERAGE');
expect(await ItemGrowthStatTwo.getText()).toEqual('9.1');
expect(await ItemGrowthStatThree.getText()).toEqual('%');
expect(await ItemJobOpeningsHeader.getText()).toEqual('PROJECTED JOB OPENINGS');
expect(await ItemJobOpeningsStat.getText()).toEqual('44,900');
expect(await ItemEmployedHeader.getText()).toEqual('CURRENTLY EMPLOYED');
expect(await ItemEmployedStat.getText()).toEqual('600,500');
await SearchCareerFourViewOnMapIcon.click(); await SearchCareerFourViewOnMapIcon.click();
browser.sleep(5000); browser.sleep(5000);
expect(await ObjectPath.getText()).toEqual('IT > Interactive Media >'); expect(await ObjectPath.getText()).toEqual('Career > Cyber Security >');
expect(await ObjectTitle.getText()).toEqual('Computer Systems Analysts'); expect(await ObjectTitle.getText()).toEqual('Software Development (DEV)');
expect(await ItemDescription.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 cap...'); 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 CollapseIcon.click(); await CollapseIcon.click();
browser.sleep(2500); browser.sleep(2500);
await MapZoomOutIcon.click(); await MapZoomOutIcon.click();
@@ -3250,10 +3260,6 @@ function MapInteraction() {
browser.sleep(1000); browser.sleep(1000);
await MapZoomOutIcon.click(); await MapZoomOutIcon.click();
browser.sleep(1000); browser.sleep(1000);
await MapZoomOutIcon.click();
browser.sleep(1000);
await MapZoomOutIcon.click();
browser.sleep(1000);
await HideJourneyButton.click(); await HideJourneyButton.click();
browser.sleep(2500); browser.sleep(2500);
await MapZoomInIcon.click(); await MapZoomInIcon.click();
@@ -3586,9 +3592,9 @@ function OccupationsOfInterest() {
var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a')); var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a'));
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500); browser.sleep(5000);
}); });
browser.waitForAngular(); //browser.waitForAngular();
/*browser.executeScript('window.scrollTo(0, 2350);').then(function() { /*browser.executeScript('window.scrollTo(0, 2350);').then(function() {
browser.sleep(2500); browser.sleep(2500);
});*/ });*/