From af8969d548044d7a37c81c3a16bd08a0231609c3 Mon Sep 17 00:00:00 2001 From: Juan Huerta Date: Thu, 11 Feb 2021 16:05:20 -0800 Subject: [PATCH] Added NotAvailable Occupation check --- studentDashboard_config.js | 34 ++ studentDashboard_spec.js | 1084 ++++++++++++++++++++++++++++++++++++ 2 files changed, 1118 insertions(+) create mode 100644 studentDashboard_config.js create mode 100644 studentDashboard_spec.js diff --git a/studentDashboard_config.js b/studentDashboard_config.js new file mode 100644 index 0000000..86c246a --- /dev/null +++ b/studentDashboard_config.js @@ -0,0 +1,34 @@ +//studentDashboard_config.js + +exports.config = { + framework: 'jasmine', + seleniumAddress: 'http://localhost:4444/wd/hub', + specs: ['studentDashboard_spec.js'], + + jasmineNodeOpts: { + defaultTimeoutInterval: 360000 + }, + + capabilities: { + browserName: 'chrome' + }, + + onPrepare: function() { + browser.sleep(2500); + browser.driver.manage().window().maximize(); + }, + + params: { + login: 'https://app-qa.journeysmap.com/Journey/index.html#/login' + } + + /*multiCapabilities: [{ + browserName: 'chrome' + }, { + browserName: 'firefox' + }]/*, { + browserName: 'internet explorer' + }], { + browserName: 'safari' + }]*/ +} \ No newline at end of file diff --git a/studentDashboard_spec.js b/studentDashboard_spec.js new file mode 100644 index 0000000..8ccf680 --- /dev/null +++ b/studentDashboard_spec.js @@ -0,0 +1,1084 @@ +//studentDashboard_spec.js + +describe('My Journeys Widget script', function () { + //login-journeysmap landing page + var UserNameTextBox = element(by.css('#txtU')); + var PasswordTextBox = element(by.css('#txtP')); + + //Open browser + browser.get(browser.params.login); + + it('should have a title', async function () { + await expect(browser.getTitle()).toEqual('Login'); + }); + + //Sign In + SignIn(UserNameTextBox, PasswordTextBox); + + it('should have a title', async function () { + await expect(browser.getTitle()).toEqual('JA Student Dashboard'); + }); + + function SignIn(UserNameTextBox, PasswordTextBox) { + it('SignIn, should sign into journeysmap.com', async function () { + var PageGreetingText = element(by.css('td > div > div:nth-child(1)')); + var NextButton = element(by.css('.btn')); + var JourneysDashboardGreeting = element(by.css('.nav-item:nth-child(1)')); + + expect(await PageGreetingText.getText()).toEqual('Login and start exploring.'); + browser.sleep(1500); + await browser.driver.getCurrentUrl().then(async function(actualURL) { + if(actualURL.indexOf('https://app-qa.journeysmap.com/Journey/index.html#/login') !== -1) { + await UserNameTextBox.sendKeys('HAL9000@Automated11220211734').then(function() { + browser.sleep(1500); + }); + } else { + await UserNameTextBox.sendKeys('HAL9000@Automated12120211427').then(function() { + browser.sleep(1500); + }); + } + }); + await PasswordTextBox.sendKeys('J@!234').then(function() { + browser.sleep(1500); + }); + await NextButton.click().then(function() { + browser.sleep(5000); + }); + expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Hal 9000'); + }); + } + + /*StudentDashboard(); + InterestResultsPage(); + SkillsMatcherResultsPage();*/ + ExploreCareersPage(); + //PostTestPage(); + + //Sign Out*/ + SignOut(); +}); + +function StudentDashboard() { + it(': StudentDashboard, should log into JA student dashboard and verify landing page.', async function () { + var PageTitle = element(by.css('.jaTxtH1')); + var PageSubTitle = element(by.css('.jaTxtH2:nth-child(1)')); + var ProgressBarStatusText = element(by.css('.progress > .ng-binding')); + var InstructionText = element(by.css('.col-xs-offset-1:nth-child(5)')); + var PreTestTile = element(by.css('#typicalDashboardButton')); + var InterestSurveyTile = element(by.css('.col-sm-3:nth-child(2)')); + var SkillsMatcherTile = element(by.css('.col-xs-5:nth-child(3)')); + var ExploreCareersTile = element(by.css('.col-xs-5:nth-child(4)')); + var PostTestTile = element(by.css('.col-xs-5:nth-child(5)')); + var CopyrightLinkText = element(by.linkText('©2021 EdGate Holdings, Inc.')); + var TwitterFooterIcon = element(by.css('.fa-twitter')); + var YouTubeFooterIcon = element(by.css('.fa-youtube')); + var FaceBookFooterIcon = element(by.css('.fa-facebook')); + var InstagramFooterIcon = element(by.css('.fa-instagram')); + var LinkedInFooterIcon = element(by.css('.fa-linkedin')); + var TermsAndConditionsText = element(by.linkText('Terms & Conditions')); + + expect(await PageTitle.getText()).toEqual('Student Dashboard'); + expect(await PageSubTitle.getText()).toEqual("Welcome to your journey. We can't wait to see what you explore."); + expect(await ProgressBarStatusText.getText()).toEqual('4/5'); + expect(await InstructionText.getText()).toEqual('Take your Post-Test.'); + expect(await PreTestTile.getText()).toContain('PRE-TEST'); + expect(await PreTestTile.getText()).toContain('Completed'); + expect(await InterestSurveyTile.getText()).toContain('INTEREST SURVEY'); + expect(await InterestSurveyTile.getText()).toContain('View Results'); + expect(await SkillsMatcherTile.getText()).toContain('SKILLS MATCHER'); + expect(await SkillsMatcherTile.getText()).toContain('View Results'); + expect(await ExploreCareersTile.getText()).toContain('EXPLORE CAREERS'); + expect(await ExploreCareersTile.getText()).toContain('Role Selected:'); + expect(await ExploreCareersTile.getText()).toContain('Home Health Aide'); + expect(await PostTestTile.getText()).toContain('POST-TEST'); + expect(await CopyrightLinkText.getText()).toEqual('©2021 EdGate Holdings, Inc.'); + expect(TwitterFooterIcon.isPresent()).toBe(true); + expect(YouTubeFooterIcon.isPresent()).toBe(true); + expect(FaceBookFooterIcon.isPresent()).toBe(true); + expect(InstagramFooterIcon.isPresent()).toBe(true); + expect(LinkedInFooterIcon.isPresent()).toBe(true); + expect(await TermsAndConditionsText.getText()).toEqual('Terms & Conditions'); + }); +} + +function InterestResultsPage() { + it(': InterestResultsPage, should navigate to Interest Survey Results page.', async function () { + var InterestSurveyTile = element(by.css('.col-xs-5:nth-child(2) .jaWidgetLaunchCompleted')); + var PageTitle = element(by.css('.jaTxtH1')); + var PageSubTitle = element(by.css('div:nth-child(1) > .jaTxtH2')); + var InterestSkillIconOne = element(by.css('.fa-pencil-ruler')); + var InterestSkillTitleOne = element(by.css('.ng-scope:nth-child(1) > .row > .col-sm-6:nth-child(1) .jaTxtH2:nth-child(1)')); + var InterestSkillScoreOne = element(by.css('.ng-scope:nth-child(1) > .row > .col-sm-6:nth-child(1) .jaTxtH2:nth-child(2)')); + var InterestSkillDescriptionOne = element(by.css('.ng-scope:nth-child(1) > .row > .col-sm-6:nth-child(1) > .jaTxt')); + var InterestSkillIconTwo = element(by.css('.fa-palette')); + var InterestSkillTitleTwo = element(by.css('.ng-scope:nth-child(1) > .row > .col-sm-6:nth-child(2) .jaTxtH2:nth-child(1)')); + var InterestSkillScoreTwo = element(by.css('.ng-scope:nth-child(1) > .row > .col-sm-6:nth-child(2) .jaTxtH2:nth-child(2)')); + var InterestSkillDescriptionTwo = element(by.css('.ng-scope:nth-child(1) > .row > .col-sm-6:nth-child(2) > .jaTxt')); + var InterestSkillIconThree = element(by.css('.fa-user-friends')); + var InterestSkillTitleThree = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) .jaTxtH2:nth-child(1)')); + var InterestSkillScoreThree = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) .jaTxtH2:nth-child(2)')); + var InterestSkillDescriptionThree = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) > .jaTxt')); + var InterestSkillIconFour = element(by.css('.fa-eye')); + var InterestSkillTitleFour = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) .jaTxtH2:nth-child(1)')); + var InterestSkillScoreFour = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) .jaTxtH2:nth-child(2)')); + var InterestSkillDescriptionFour = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) > .jaTxt')); + var InterestSkillIconFive = element(by.css('.fa-balance-scale')); + var InterestSkillTitleFive = element(by.css('.ng-scope:nth-child(3) .col-sm-6:nth-child(1) .jaTxtH2:nth-child(1)')); + var InterestSkillScoreFive = element(by.css('.ng-scope:nth-child(3) .col-sm-6:nth-child(1) .jaTxtH2:nth-child(2)')); + var InterestSkillDescriptionFive = element(by.css('.ng-scope:nth-child(3) .col-sm-6:nth-child(1) > .jaTxt')); + var InterestSkillIconSix = element(by.css('.fa-globe-americas')); + var InterestSkillTitleSix = element(by.css('.ng-scope:nth-child(3) .col-sm-6:nth-child(2) .jaTxtH2:nth-child(1)')); + var InterestSkillScoreSix = element(by.css('.ng-scope:nth-child(3) .col-sm-6:nth-child(2) .jaTxtH2:nth-child(2)')); + var InterestSkillDescriptionSix = element(by.css('.ng-scope:nth-child(3) .col-sm-6:nth-child(2) > .jaTxt')); + var InterestSurveyDownloadIcon = element(by.css('.fa-download')); + var InterestSurveyShareIcon = element(by.css('.fa-share-alt')); + var ShareDIVTitle = element(by.css('.jrnys_lead-body-copy')); + var ShareDIVFromHandle = element(by.css('tr:nth-child(1) > td:nth-child(1)')); + var ShareDIVFromTextBox = element(by.css('tr:nth-child(1) .form-control')); + var ShareDIVToHandle = element(by.css('tr:nth-child(2) > td:nth-child(1)')); + var ShareDIVToTextBoxOne = element(by.css('tr:nth-child(2) .form-control')); + var ShareDIVToTextBoxTwo = element(by.css('tr:nth-child(3) .form-control')); + var ShareDIVToTextBoxThree = element(by.css('tr:nth-child(4) .form-control')); + var ShareDIVToTextBoxFour = element(by.css('tr:nth-child(5) .form-control')); + var ShareDIVToTextBoxFive = element(by.css('tr:nth-child(6) .form-control')); + var ShareDIVSendButton = element(by.css('td > .btn-info')); + var ConfirmationDIVFailedIcon = element(by.css('.sa-right')); + var ConfirmationDIVSuccessfulIcon = element(by.css('.sa-placeholder')) + var ConfirmationDIVTitle = element(by.css('h2')); + var ConfirmationDIVSubText = element(by.css('p:nth-child(7)')); + var ConfirmationDIVOKButton = element(by.css('.confirm')); + var ShareDIVCancelButton = element(by.css('.btn-alt-info')); + var ReturnToDashboardLink = element(by.css('.jaButton > div:nth-child(2)')); + + await InterestSurveyTile.click().then(function() { + browser.sleep(5000); + }); + await expect(PageTitle.getText()).toEqual('Interest Survey Results'); + expect(await PageSubTitle.getText()).toEqual('Checkout your scores.'); + await browser.driver.getCurrentUrl().then(async function(actualURL) { + if(actualURL.indexOf('https://app-qa.journeysmap.com/Journey/index.html#/jaInterestSurvey/results') !== -1) { + expect(InterestSkillIconOne.isPresent()).toBe(true); + expect(await InterestSkillTitleOne.getText()).toEqual('Conventional'); + expect(await InterestSkillScoreOne.getText()).toEqual('Score: 36'); + expect(await InterestSkillDescriptionOne.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); + expect(InterestSkillIconTwo.isPresent()).toBe(true); + expect(await InterestSkillTitleTwo.getText()).toEqual('Artistic'); + expect(await InterestSkillScoreTwo.getText()).toEqual('Score: 28'); + expect(await InterestSkillDescriptionTwo.getText()).toEqual('People who are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative who rely on feelings, imagination, inspiration and who are spontaneous and open-minded. They prefer to work with ideas, abstractions, and concepts. They also enjoy work that is literary, verbal, visual and aesthetic. They typically excel in art, music, dance, drawing, painting, sculpting, drafting, writing, drama, communicating, design, fashion.'); + expect(InterestSkillIconThree.isPresent()).toBe(true); + expect(await InterestSkillTitleThree.getText()).toEqual('Social'); + expect(await InterestSkillScoreThree.getText()).toEqual('Score: 26'); + expect(await InterestSkillDescriptionThree.getText()).toEqual('People who are kind, generous, cooperative, patient, caring, helpful, empathetic, tactful, and friendly. They prefer tasks that involve socializing, helping others, teaching, teamwork, social interaction, relationship building, humanitarian, educational, philanthropic, interpersonal, and service-oriented work.'); + expect(InterestSkillIconFour.isPresent()).toBe(true); + expect(await InterestSkillTitleFour.getText()).toEqual('Investigative'); + expect(await InterestSkillScoreFour.getText()).toEqual('Score: 24'); + expect(await InterestSkillDescriptionFour.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); + expect(InterestSkillIconFive.isPresent()).toBe(true); + expect(await InterestSkillTitleFive.getText()).toEqual('Realistic'); + expect(await InterestSkillScoreFive.getText()).toEqual('Score: 22'); + expect(await InterestSkillDescriptionFive.getText()).toEqual('People who are independent, stable, persistent, genuine, practical, and thrifty. They tend to be no-nonsense and down-to-earth while enjoying physical, athletic, or mechanical activity. They prefer things rather than ideas or people such as being outdoors, using tools, operating machines, interacting with animals, and working with their hands. They also value the natural, concrete, and tangible.'); + expect(InterestSkillIconSix.isPresent()).toBe(true); + expect(await InterestSkillTitleSix.getText()).toEqual('Enterprising'); + expect(await InterestSkillScoreSix.getText()).toEqual('Score: 14'); + expect(await InterestSkillDescriptionSix.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); + } else { + expect(await InterestSkillTitleOne.getText()).toEqual('Artistic'); + expect(await InterestSkillScoreOne.getText()).toEqual('Score: 36'); + expect(await InterestSkillDescriptionOne.getText()).toEqual('People who are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative who rely on feelings, imagination, inspiration and who are spontaneous and open-minded. They prefer to work with ideas, abstractions, and concepts. They also enjoy work that is literary, verbal, visual and aesthetic. They typically excel in art, music, dance, drawing, painting, sculpting, drafting, writing, drama, communicating, design, fashion.'); + expect(InterestSkillIconTwo.isPresent()).toBe(true); + expect(await InterestSkillTitleTwo.getText()).toEqual('Enterprising'); + expect(await InterestSkillScoreTwo.getText()).toEqual('Score: 28'); + expect(await InterestSkillDescriptionTwo.getText()).toEqual('People who are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational. They prefer work that involves leadership, business, politics, and public speaking. They enjoy being in charge, taking risks, debating and competing.'); + expect(InterestSkillIconThree.isPresent()).toBe(true); + expect(await InterestSkillTitleThree.getText()).toEqual('Realistic'); + expect(await InterestSkillScoreThree.getText()).toEqual('Score: 26'); + expect(await InterestSkillDescriptionThree.getText()).toEqual('People who are independent, stable, persistent, genuine, practical, and thrifty. They tend to be no-nonsense and down-to-earth while enjoying physical, athletic, or mechanical activity. They prefer things rather than ideas or people such as being outdoors, using tools, operating machines, interacting with animals, and working with their hands. They also value the natural, concrete, and tangible.'); + expect(InterestSkillIconFour.isPresent()).toBe(true); + expect(await InterestSkillTitleFour.getText()).toEqual('Investigative'); + expect(await InterestSkillScoreFour.getText()).toEqual('Score: 22'); + expect(await InterestSkillDescriptionFour.getText()).toEqual('People who are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical. They prefer tasks that are scholarly, scientific, technical, or medical and activities that involve thought, observation, investigation, exploration, and discovery. They like to solve problems, perform experiments, and conduct research.'); + expect(InterestSkillIconFive.isPresent()).toBe(true); + expect(await InterestSkillTitleFive.getText()).toEqual('Social'); + expect(await InterestSkillScoreFive.getText()).toEqual('Score: 22'); + expect(await InterestSkillDescriptionFive.getText()).toEqual('People who are kind, generous, cooperative, patient, caring, helpful, empathetic, tactful, and friendly. They prefer tasks that involve socializing, helping others, teaching, teamwork, social interaction, relationship building, humanitarian, educational, philanthropic, interpersonal, and service-oriented work.'); + expect(InterestSkillIconSix.isPresent()).toBe(true); + expect(await InterestSkillTitleSix.getText()).toEqual('Conventional'); + expect(await InterestSkillScoreSix.getText()).toEqual('Score: 22'); + expect(await InterestSkillDescriptionSix.getText()).toEqual('People who are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented. They are individuals who value precision and accuracy. They excel in practical tasks, quantitative measurements, structured environments and people who follow the rules. They prefer work that involves accounting, statistics, mathematics, numerical activities, and office settings.'); + } + }); + expect(InterestSurveyDownloadIcon.isPresent()).toBe(true); + await InterestSurveyShareIcon.click().then(function() { + browser.sleep(5000); + }); + expect(await ShareDIVTitle.getText()).toEqual('Email Your Results'); + expect(await ShareDIVFromHandle.getText()).toEqual('From:'); + await browser.driver.getCurrentUrl().then(async function(actualURL) { + if(actualURL.indexOf('https://app-qa.journeysmap.com/Journey/index.html#/jaInterestSurvey/results') !== -1) { + expect(await ShareDIVFromTextBox.getAttribute('value')).toEqual('Hal 9000 Automated11220211734'); + } else { + expect(await ShareDIVFromTextBox.getAttribute('value')).toEqual('Hal 9000 Automated12120211427'); + } + }); + expect(await ShareDIVToHandle.getText()).toEqual('To:'); + expect(await ShareDIVToTextBoxOne.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxTwo.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxThree.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxFour.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxFive.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVSendButton.getText()).toEqual('Send'); + expect(await ShareDIVCancelButton.getText()).toEqual('Cancel'); + await ShareDIVSendButton.click().then(function() { + browser.sleep(5000); + }); + expect(ConfirmationDIVFailedIcon.isPresent()).toBe(true); + expect(await ConfirmationDIVTitle.getText()).toEqual('No Email'); + expect(await ConfirmationDIVSubText.getText()).toEqual('Please provide at least one email address to send.'); + expect(await ConfirmationDIVOKButton.getText()).toEqual('OK'); + await ConfirmationDIVOKButton.click().then(function() { + browser.sleep(5000); + }); + await ShareDIVToTextBoxOne.sendKeys('jhuerta@edmin.com').then(function() { + browser.sleep(1500); + }); + await ShareDIVSendButton.click().then(function() { + browser.sleep(5000); + }); + expect(ConfirmationDIVSuccessfulIcon.isPresent()).toBe(true); + expect(await ConfirmationDIVTitle.getText()).toEqual('Your interest survey results are in flight!'); + expect(await ConfirmationDIVSubText.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); + expect(await ConfirmationDIVOKButton.getText()).toEqual('OK'); + await ConfirmationDIVOKButton.click().then(function() { + browser.sleep(5000); + }); + await ReturnToDashboardLink.click().then(function() { + browser.sleep(5000); + }); + }); +} + +function SkillsMatcherResultsPage() { + it(': SkillsMatcherResultsPage, should navigate to Skills Matcher Results page.', async function () { + var SkillsMatcherTile = element(by.css('.col-xs-5:nth-child(3) .dashboardButtonTitle')); + var PageTitle = element(by.css('.jaTxtH1')); + var PageSubTitle = element(by.css('.row > .jaTxtH2')); + var SkillsMatcherIconOne = element(by.css('.fa-trophy')); + var SkillsMatcherResultOne = element(by.css('.ng-scope:nth-child(2) > .row .jaTxtH2 > .ng-binding')); + var SkillsMatcherTitleOne = element(by.css('.ng-scope:nth-child(2) > .row > .col-md-4:nth-child(1) > .jaTxtH3')); + var SkillsMatcherDescriptionOne = element(by.css('.ng-scope:nth-child(2) > .row > .col-md-4:nth-child(1) > .jaTxt')); + var SkillsMatcherTitleOneB = element(by.css('.ng-scope:nth-child(2) > .row > .col-md-4:nth-child(2) > .jaTxtH3')); + var SkillsMatcherDescriptionOneB = element(by.css('.ng-scope:nth-child(2) > .row > .col-md-4:nth-child(2) > .jaTxt')); + var SkillsMatcherTitleOneC = element(by.css('.ng-scope:nth-child(2) > .row > .col-md-4:nth-child(3) > .jaTxtH3')); + var SkillsMatcherDescriptionOneC = element(by.css('.ng-scope:nth-child(2) > .row > .col-md-4:nth-child(3) > .jaTxt')); + var SkillsMatcherIconTwo = element(by.css('.fa-medal')); + var SkillsMatcherResultTwo = element(by.css('.ng-scope:nth-child(3) .jaTxtH2 > .ng-binding')); + var SkillsMatcherTitleTwo = element(by.css('.ng-scope:nth-child(3) .col-md-4:nth-child(1) > .jaTxtH3')); + var SkillsMatcherDescriptionTwo = element(by.css('.ng-scope:nth-child(3) .col-md-4:nth-child(1) > .jaTxt')); + var SkillsMatcherTitleTwoB = element(by.css('.ng-scope:nth-child(3) .col-md-4:nth-child(2) > .jaTxtH3')); + var SkillsMatcherDescriptionTwoB = element(by.css('.ng-scope:nth-child(3) .col-md-4:nth-child(2) > .jaTxt')); + var SkillsMatcherTitleTwoC = element(by.css('.ng-scope:nth-child(3) .col-md-4:nth-child(3) > .jaTxtH3')); + var SkillsMatcherDescriptionTwoC = element(by.css('.ng-scope:nth-child(3) .col-md-4:nth-child(3) > .jaTxt')); + var SkillsMatcherIconThree = element(by.css('.fa-award')); + var SkillsMatcherResultThree = element(by.css('.ng-scope:nth-child(4) .jaTxtH2 > .ng-binding')); + var SkillsMatcherTitleThree = element(by.css('.ng-scope:nth-child(4) .col-md-4:nth-child(1) > .jaTxtH3')); + var SkillsMatcherDescriptionThree = element(by.css('.ng-scope:nth-child(4) .col-md-4:nth-child(1) > .jaTxt')); + var SkillsMatcherTitleThreeB = element(by.css('.ng-scope:nth-child(4) .col-md-4:nth-child(2) > .jaTxtH3')); + var SkillsMatcherDescriptionThreeB = element(by.css('.ng-scope:nth-child(4) .col-md-4:nth-child(2) > .jaTxt')); + var SkillsMatcherTitleThreeC = element(by.css('.ng-scope:nth-child(4) .col-md-4:nth-child(3) > .jaTxtH3')); + var SkillsMatcherDescriptionThreeC = element(by.css('.ng-scope:nth-child(4) .col-md-4:nth-child(3) > .jaTxt')); + var ViewAllLink = element(by.linkText('View All')); + var ViewAllDIVBestFitIcon = element(by.css('.col-xs-2 > .fa-trophy')); + var ViewAllDIVBestFitHeader = element(by.css('.row:nth-child(1) .jrnys_lead-body-copy')); + var ViewAllDIVBestFitTitleOne = element(by.css('.row:nth-child(1) .ng-binding:nth-child(2) > .ng-binding')); + var ViewAllDIVBestFitDescriptionOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2)')); + var ViewAllDIVBestFitTitleTwo = element(by.css('.row:nth-child(1) .ng-binding:nth-child(3) > .ng-binding')); + var ViewAllDIVBestFitDescriptionTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3)')); + var ViewAllDIVBestFitTitleThree = element(by.css('.row:nth-child(1) .ng-binding:nth-child(4) > .ng-binding')); + var ViewAllDIVBestFitDescriptionThree = element(by.css('.row:nth-child(1) .ng-binding:nth-child(4)')); + var ViewAllDIVBestFitTitleFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5) > .ng-binding')); + var ViewAllDIVBestFitDescriptionFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5)')); + var ViewAllDIVBestFitTitleFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6) > .ng-binding')); + var ViewAllDIVBestFitDescriptionFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6)')); + var ViewAllDIVBestFitTitleSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7) > .ng-binding')); + var ViewAllDIVBestFitDescriptionSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7)')); + var ViewAllDIVBestFitTitleSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8) > .ng-binding')); + var ViewAllDIVBestFitDescriptionSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8)')); + var ViewAllDIVBestFitTitleEight = element(by.css('.row:nth-child(1) .ng-binding:nth-child(9) > .ng-binding')); + var ViewAllDIVBestFitDescriptionEight = element(by.css('.row:nth-child(1) .ng-binding:nth-child(9)')); + var ViewAllDIVBestFitTitleNine = element(by.css('.row:nth-child(1) .ng-binding:nth-child(10) > .ng-binding')); + var ViewAllDIVBestFitDescriptionNine = element(by.css('.row:nth-child(1) .ng-binding:nth-child(10)')); + var ViewAllDIVBestFitTitleTen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(11) > .ng-binding')); + var ViewAllDIVBestFitDescriptionTen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(11)')); + var ViewAllDIVBestFitTitleEleven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(12) > .ng-binding')); + var ViewAllDIVBestFitDescriptionEleven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(12)')); + var ViewAllDIVBestFitTitleTwelve = element(by.css('.row:nth-child(1) .ng-binding:nth-child(13) > .ng-binding')); + var ViewAllDIVBestFitDescriptionTwelve = element(by.css('.row:nth-child(1) .ng-binding:nth-child(13)')); + var ViewAllDIVBestFitTitleThirteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(14) > .ng-binding')); + var ViewAllDIVBestFitDescriptionThirteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(14)')); + var ViewAllDIVBestFitTitleFourteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(15) > .ng-binding')); + var ViewAllDIVBestFitDescriptionFourteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(15)')); + var ViewAllDIVBestFitTitleFifteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(16) > .ng-binding')); + var ViewAllDIVBestFitDescriptionFifteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(16)')); + var ViewAllDIVBestFitTitleSixteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(17) > .ng-binding')); + var ViewAllDIVBestFitDescriptionSixteen = element(by.css('.row:nth-child(1) .ng-binding:nth-child(17)')); + var ViewAllDIVGreatFitIcon = element(by.css('.col-xs-2 > .fa-medal')); + var ViewAllDIVGreatFitHeader = element(by.css('.row:nth-child(2) .jrnys_lead-body-copy')); + var ViewAllDIVGreatFitTitleOne = element(by.css('.row:nth-child(2) .ng-binding:nth-child(2) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionOne = element(by.css('.row:nth-child(2) .ng-binding:nth-child(2)')); + var ViewAllDIVGreatFitTitleTwo = element(by.css('.row:nth-child(2) .ng-binding:nth-child(3) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionTwo = element(by.css('.row:nth-child(2) > .col-xs-10 > .ng-binding:nth-child(3)')); + var ViewAllDIVGreatFitTitleThree = element(by.css('.row:nth-child(2) .ng-binding:nth-child(4) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionThree = element(by.css('.row:nth-child(2) .ng-binding:nth-child(4)')); + var ViewAllDIVGreatFitTitleFour = element(by.css('.row:nth-child(2) .ng-binding:nth-child(5) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionFour = element(by.css('.row:nth-child(2) .ng-binding:nth-child(5)')); + var ViewAllDIVGreatFitTitleFive = element(by.css('.row:nth-child(2) .ng-binding:nth-child(6) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionFive = element(by.css('.row:nth-child(2) .ng-binding:nth-child(6)')); + var ViewAllDIVGreatFitTitleSix = element(by.css('.row:nth-child(2) .ng-binding:nth-child(7) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionSix = element(by.css('.row:nth-child(2) .ng-binding:nth-child(7)')); + var ViewAllDIVGreatFitTitleSeven = element(by.css('.row:nth-child(2) .ng-binding:nth-child(8) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionSeven = element(by.css('.row:nth-child(2) .ng-binding:nth-child(8)')); + var ViewAllDIVGreatFitTitleEight = element(by.css('.row:nth-child(2) .ng-binding:nth-child(9) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionEight = element(by.css('.row:nth-child(2) .ng-binding:nth-child(9)')); + var ViewAllDIVGreatFitTitleNine = element(by.css('.row:nth-child(2) .ng-binding:nth-child(10) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionNine = element(by.css('.row:nth-child(2) .ng-binding:nth-child(10)')); + var ViewAllDIVGreatFitTitleTen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(11) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionTen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(11)')); + var ViewAllDIVGreatFitTitleEleven = element(by.css('.row:nth-child(2) .ng-binding:nth-child(12) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionEleven = element(by.css('.row:nth-child(2) .ng-binding:nth-child(12)')); + var ViewAllDIVGreatFitTitleTwelve = element(by.css('.row:nth-child(2) .ng-binding:nth-child(13) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionTwelve = element(by.css('.row:nth-child(2) .ng-binding:nth-child(13)')); + var ViewAllDIVGreatFitTitleThirteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(14) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionThirteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(14)')); + var ViewAllDIVGreatFitTitleFourteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(15) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionFourteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(15)')); + var ViewAllDIVGreatFitTitleFifteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(16) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionFifteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(16)')); + var ViewAllDIVGreatFitTitleSixteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(17) > .ng-binding')); + var ViewAllDIVGreatFitDescriptionSixteen = element(by.css('.row:nth-child(2) .ng-binding:nth-child(17)')); + var ViewAllDIVGoodFitIcon = element(by.css('.col-xs-2 > .fa-award')); + var ViewAllDIVGoodFitHeader = element(by.css('.row:nth-child(3) .jrnys_lead-body-copy')); + var ViewAllDIVGoodFitTitleOne = element(by.css('.row:nth-child(3) .ng-binding:nth-child(2) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionOne = element(by.css('.row:nth-child(3) .ng-binding:nth-child(2)')); + var ViewAllDIVGoodFitTitleTwo = element(by.css('.row:nth-child(3) .ng-binding:nth-child(3) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionTwo = element(by.css('.row:nth-child(3) .ng-binding:nth-child(3)')); + var ViewAllDIVGoodFitTitleThree = element(by.css('.row:nth-child(3) .ng-binding:nth-child(4) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionThree = element(by.css('.row:nth-child(3) .ng-binding:nth-child(4)')); + var ViewAllDIVGoodFitTitleFour = element(by.css('.row:nth-child(3) .ng-binding:nth-child(5) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionFour = element(by.css('.row:nth-child(3) .ng-binding:nth-child(5)')); + var ViewAllDIVGoodFitTitleFive = element(by.css('.row:nth-child(3) .ng-binding:nth-child(6) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionFive = element(by.css('.row:nth-child(3) .ng-binding:nth-child(6)')); + var ViewAllDIVGoodFitTitleSix = element(by.css('.row:nth-child(3) .ng-binding:nth-child(7) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionSix = element(by.css('.row:nth-child(3) .ng-binding:nth-child(7)')); + var ViewAllDIVGoodFitTitleSeven = element(by.css('.row:nth-child(3) .ng-binding:nth-child(8) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionSeven = element(by.css('.row:nth-child(3) .ng-binding:nth-child(8)')); + var ViewAllDIVGoodFitTitleEight = element(by.css('.row:nth-child(3) .ng-binding:nth-child(9) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionEight = element(by.css('.row:nth-child(3) .ng-binding:nth-child(9)')); + var ViewAllDIVGoodFitTitleNine = element(by.css('.row:nth-child(3) .ng-binding:nth-child(10) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionNine = element(by.css('.row:nth-child(3) .ng-binding:nth-child(10)')); + var ViewAllDIVGoodFitTitleTen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(11) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionTen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(11)')); + var ViewAllDIVGoodFitTitleEleven = element(by.css('.row:nth-child(3) .ng-binding:nth-child(12) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionEleven = element(by.css('.row:nth-child(3) .ng-binding:nth-child(12)')); + var ViewAllDIVGoodFitTitleTwelve = element(by.css('.row:nth-child(3) .ng-binding:nth-child(13) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionTwelve = element(by.css('.row:nth-child(3) .ng-binding:nth-child(13)')); + var ViewAllDIVGoodFitTitleThirteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(14) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionThirteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(14)')); + var ViewAllDIVGoodFitTitleFourteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(15) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionFourteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(15)')); + var ViewAllDIVGoodFitTitleFifteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(16) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionFifteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(16)')); + var ViewAllDIVGoodFitTitleSixteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(17) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionSixteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(17)')); + var ViewAllDIVGoodFitTitleSeventeen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(18) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionSeventeen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(18)')); + var ViewAllDIVGoodFitTitleEighteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(19) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionEighteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(19)')); + var ViewAllDIVGoodFitTitleNineteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(20) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionNineteen = element(by.css('.row:nth-child(3) .ng-binding:nth-child(20)')); + var ViewAllDIVGoodFitTitleTwenty = element(by.css('.row:nth-child(3) .ng-binding:nth-child(21) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionTwenty = element(by.css('.row:nth-child(3) .ng-binding:nth-child(21)')); + var ViewAllDIVGoodFitTitleTwentyOne = element(by.css('.row:nth-child(3) .ng-binding:nth-child(22) > .ng-binding')); + var ViewAllDIVGoodFitDescriptionTwentyOne = element(by.css('.row:nth-child(3) .ng-binding:nth-child(22)')); + var ViewAllDIVCloseIcon = element(by.css('.close')) + var SkillsMatcherDownloadIcon = element(by.css('.fa-download')); + var SkillsMatcherShareIcon = element(by.css('.fa-share-alt')); + var ShareDIVTitle = element(by.css('.jrnys_lead-body-copy')); + var ShareDIVFromHandle = element(by.css('tr:nth-child(1) > td:nth-child(1)')); + var ShareDIVFromTextBox = element(by.css('tr:nth-child(1) .form-control')); + var ShareDIVToHandle = element(by.css('tr:nth-child(2) > td:nth-child(1)')); + var ShareDIVToTextBoxOne = element(by.css('tr:nth-child(2) .form-control')); + var ShareDIVToTextBoxTwo = element(by.css('tr:nth-child(3) .form-control')); + var ShareDIVToTextBoxThree = element(by.css('tr:nth-child(4) .form-control')); + var ShareDIVToTextBoxFour = element(by.css('tr:nth-child(5) .form-control')); + var ShareDIVToTextBoxFive = element(by.css('tr:nth-child(6) .form-control')); + var ShareDIVSendButton = element(by.css('td > .btn-info')); + var ConfirmationDIVFailedIcon = element(by.css('.sa-right')); + var ConfirmationDIVSuccessfulIcon = element(by.css('.sa-placeholder')) + var ConfirmationDIVTitle = element(by.css('h2')); + var ConfirmationDIVSubText = element(by.css('p:nth-child(7)')); + var ConfirmationDIVOKButton = element(by.css('.confirm')); + var ShareDIVCancelButton = element(by.css('.btn-alt-info')); + var ReturnToDashboardLink = element(by.css('.jaButton > div:nth-child(2)')); + + await SkillsMatcherTile.click().then(function() { + browser.sleep(5000); + }); + await expect(PageTitle.getText()).toEqual('Skills Matcher Results'); + expect(await PageSubTitle.getText()).toEqual('Check out your top traits, below! View All'); + await browser.driver.getCurrentUrl().then(async function(actualURL) { + if(actualURL.indexOf('https://app-qa.journeysmap.com/Journey/index.html#/jaSkillProfiler/result') !== -1) { + expect(SkillsMatcherIconOne.isPresent()).toBe(true); + expect(await SkillsMatcherResultOne.getText()).toEqual('BEST FIT'); + expect(await SkillsMatcherTitleOne.getText()).toEqual('Administration and Management'); + expect(await SkillsMatcherDescriptionOne.getText()).toEqual('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); + expect(await SkillsMatcherTitleOneB.getText()).toEqual('Complex Problem Solving'); + expect(await SkillsMatcherDescriptionOneB.getText()).toEqual('Noticing a problem and figuring out the best way to solve it.'); + expect(await SkillsMatcherTitleOneC.getText()).toEqual('Management of Financial Resources'); + expect(await SkillsMatcherDescriptionOneC.getText()).toEqual('Making spending decisions and keeping track of what is spent.'); + expect(SkillsMatcherIconTwo.isPresent()).toBe(true); + expect(await SkillsMatcherResultTwo.getText()).toEqual('GREAT FIT'); + expect(await SkillsMatcherTitleTwo.getText()).toEqual('Building and Construction'); + expect(await SkillsMatcherDescriptionTwo.getText()).toEqual('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); + expect(await SkillsMatcherTitleTwoB.getText()).toEqual('Clerical'); + expect(await SkillsMatcherDescriptionTwoB.getText()).toEqual('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); + expect(await SkillsMatcherTitleTwoC.getText()).toEqual('Economics and Accounting'); + expect(await SkillsMatcherDescriptionTwoC.getText()).toEqual('Knowledge of economic and accounting principles and practices, the financial markets, banking and the analysis and reporting of financial data.'); + expect(SkillsMatcherIconThree.isPresent()).toBe(true); + expect(await SkillsMatcherResultThree.getText()).toEqual('GOOD FIT'); + expect(await SkillsMatcherTitleThree.getText()).toEqual('Biology'); + expect(await SkillsMatcherDescriptionThree.getText()).toEqual('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); + expect(await SkillsMatcherTitleThreeB.getText()).toEqual('Body Coordination'); + expect(await SkillsMatcherDescriptionThreeB.getText()).toEqual('Moving your arms, legs, and mid-section together while your whole body is moving.'); + expect(await SkillsMatcherTitleThreeC.getText()).toEqual('Chemistry'); + expect(await SkillsMatcherDescriptionThreeC.getText()).toEqual('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); + await ViewAllLink.click().then(function() { + browser.sleep(2500); + }); + expect(ViewAllDIVBestFitIcon.isPresent()).toBe(true); + expect(await ViewAllDIVBestFitHeader.getText()).toEqual('BEST FIT'); + expect(await ViewAllDIVBestFitTitleOne.getText()).toEqual('Administration and Management'); + expect(await ViewAllDIVBestFitDescriptionOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); + expect(await ViewAllDIVBestFitTitleTwo.getText()).toEqual('Complex Problem Solving'); + expect(await ViewAllDIVBestFitDescriptionTwo.getText()).toContain('Noticing a problem and figuring out the best way to solve it.'); + expect(await ViewAllDIVBestFitTitleThree.getText()).toEqual('Management of Financial Resources'); + expect(await ViewAllDIVBestFitDescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); + expect(await ViewAllDIVBestFitTitleFour.getText()).toEqual('Operations Analysis'); + expect(await ViewAllDIVBestFitDescriptionFour.getText()).toContain('Figuring out what a product or service needs to be able to do.'); + expect(await ViewAllDIVBestFitTitleFive.getText()).toEqual('Public Safety and Security'); + expect(await ViewAllDIVBestFitDescriptionFive.getText()).toContain('Knowledge of relevant equipment, policies, procedures, and strategies to promote effective local, state, or national security operations for the protection of people, data, property, and institutions.'); + expect(await ViewAllDIVBestFitTitleSix.getText()).toEqual('Sales and Marketing'); + expect(await ViewAllDIVBestFitDescriptionSix.getText()).toContain('Knowledge of principles and methods for showing, promoting, and selling products or services. This includes marketing strategy and tactics, product demonstration, sales techniques, and sales control systems.'); + expect(await ViewAllDIVBestFitTitleSeven.getText()).toEqual('Science'); + expect(await ViewAllDIVBestFitDescriptionSeven.getText()).toContain('Using scientific rules and strategies to solve problems.'); + expect(await ViewAllDIVBestFitTitleEight.getText()).toEqual('Speaking'); + expect(await ViewAllDIVBestFitDescriptionEight.getText()).toContain('Talking to others.'); + browser.actions().mouseMove(ViewAllDIVGreatFitTitleEleven).perform().then(function() { + browser.sleep(2500); + }); + expect(ViewAllDIVGreatFitIcon.isPresent()).toBe(true); + expect(await ViewAllDIVGreatFitHeader.getText()).toEqual('GREAT FIT'); + expect(await ViewAllDIVGreatFitTitleOne.getText()).toEqual('Building and Construction'); + expect(await ViewAllDIVGreatFitDescriptionOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); + expect(await ViewAllDIVGreatFitTitleTwo.getText()).toEqual('Clerical'); + expect(await ViewAllDIVGreatFitDescriptionTwo.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); + expect(await ViewAllDIVGreatFitTitleThree.getText()).toEqual('Economics and Accounting'); + expect(await ViewAllDIVGreatFitDescriptionThree.getText()).toContain('Knowledge of economic and accounting principles and practices, the financial markets, banking and the analysis and reporting of financial data.'); + expect(await ViewAllDIVGreatFitTitleFour.getText()).toEqual('Fine Arts'); + expect(await ViewAllDIVGreatFitDescriptionFour.getText()).toContain('Knowledge of the theory and techniques required to compose, produce, and perform works of music, dance, visual arts, drama, and sculpture.'); + expect(await ViewAllDIVGreatFitTitleFive.getText()).toEqual('Foreign Language'); + expect(await ViewAllDIVGreatFitDescriptionFive.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); + expect(await ViewAllDIVGreatFitTitleSix.getText()).toEqual('Helping People'); + expect(await ViewAllDIVGreatFitDescriptionSix.getText()).toContain('Looking for ways to help people.'); + expect(await ViewAllDIVGreatFitTitleSeven.getText()).toEqual('Mechanical'); + expect(await ViewAllDIVGreatFitDescriptionSeven.getText()).toContain('Knowledge of machines and tools, including their designs, uses, repair, and maintenance.'); + expect(await ViewAllDIVGreatFitTitleEight.getText()).toEqual('Production and Processing'); + expect(await ViewAllDIVGreatFitDescriptionEight.getText()).toContain('Knowledge of raw materials, production processes, quality control, costs, and other techniques for maximizing the effective manufacture and distribution of goods.'); + expect(await ViewAllDIVGreatFitTitleNine.getText()).toEqual('Programming'); + expect(await ViewAllDIVGreatFitDescriptionNine.getText()).toContain('Writing computer programs.'); + expect(await ViewAllDIVGreatFitTitleTen.getText()).toEqual('Psychology'); + expect(await ViewAllDIVGreatFitDescriptionTen.getText()).toContain('Knowledge of human behavior and performance; individual differences in ability, personality, and interests; learning and motivation; psychological research methods; and the assessment and treatment of behavioral and affective disorders.'); + expect(await ViewAllDIVGreatFitTitleEleven.getText()).toEqual('Repairing'); + expect(await ViewAllDIVGreatFitDescriptionEleven.getText()).toContain('Repairing machines or systems using the right tools.'); + expect(await ViewAllDIVGreatFitTitleTwelve.getText()).toEqual('Sociology and Anthropology'); + expect(await ViewAllDIVGreatFitDescriptionTwelve.getText()).toContain('Knowledge of group behavior and dynamics, societal trends and influences, human migrations, ethnicity, cultures and their history and origins.'); + expect(await ViewAllDIVGreatFitTitleThirteen.getText()).toEqual('Systems Analysis'); + expect(await ViewAllDIVGreatFitDescriptionThirteen.getText()).toContain('Figuring out how a system should work and how changes in the future will affect it.'); + expect(await ViewAllDIVGreatFitTitleFourteen.getText()).toEqual('Teaching and Course Design'); + expect(await ViewAllDIVGreatFitDescriptionFourteen.getText()).toContain('Knowledge of principles and methods for curriculum and training design, teaching and instruction for individuals and groups, and the measurement of training effects.'); + expect(await ViewAllDIVGreatFitTitleFifteen.getText()).toEqual('Telecommunications'); + expect(await ViewAllDIVGreatFitDescriptionFifteen.getText()).toContain('Knowledge of transmission, broadcasting, switching, control, and operation of telecommunications systems.'); + expect(await ViewAllDIVGreatFitTitleSixteen.getText()).toEqual('Therapy and Counseling'); + expect(await ViewAllDIVGreatFitDescriptionSixteen.getText()).toContain('Knowledge of principles, methods, and procedures for diagnosis, treatment, and rehabilitation of physical and mental dysfunctions, and for career counseling and guidance.'); + browser.actions().mouseMove(ViewAllDIVGoodFitTitleEleven).perform().then(function() { + browser.sleep(2500); + }); + expect(ViewAllDIVGoodFitIcon.isPresent()).toBe(true); + expect(await ViewAllDIVGoodFitHeader.getText()).toEqual('GOOD FIT'); + expect(await ViewAllDIVGoodFitTitleOne.getText()).toEqual('Biology'); + expect(await ViewAllDIVGoodFitDescriptionOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); + expect(await ViewAllDIVGoodFitTitleTwo.getText()).toEqual('Body Coordination'); + expect(await ViewAllDIVGoodFitDescriptionTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); + expect(await ViewAllDIVGoodFitTitleThree.getText()).toEqual('Chemistry'); + expect(await ViewAllDIVGoodFitDescriptionThree.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); + expect(await ViewAllDIVGoodFitTitleFour.getText()).toEqual('Computers and Electronics'); + expect(await ViewAllDIVGoodFitDescriptionFour.getText()).toContain('Knowledge of circuit boards, processors, chips, electronic equipment, and computer hardware and software, including applications and programming.'); + expect(await ViewAllDIVGoodFitTitleFive.getText()).toEqual('Customer and Personal Service'); + expect(await ViewAllDIVGoodFitDescriptionFive.getText()).toContain('Knowledge of principles and processes for providing customer and personal services. This includes customer needs assessment, meeting quality standards for services, and evaluation of customer satisfaction.'); + expect(await ViewAllDIVGoodFitTitleSix.getText()).toEqual('Instructing'); + expect(await ViewAllDIVGoodFitDescriptionSix.getText()).toContain('Teaching people how to do something.'); + expect(await ViewAllDIVGoodFitTitleSeven.getText()).toEqual('Mathematics'); + expect(await ViewAllDIVGoodFitDescriptionSeven.getText()).toContain('Using math to solve problems.'); + expect(await ViewAllDIVGoodFitTitleEight.getText()).toEqual('Medicine and Dentistry'); + expect(await ViewAllDIVGoodFitDescriptionEight.getText()).toContain('Knowledge of the information and techniques needed to diagnose and treat human injuries, diseases, and deformities. This includes symptoms, treatment alternatives, drug properties and interactions, and preventive health-care measures.'); + expect(await ViewAllDIVGoodFitTitleNine.getText()).toEqual('Memorization'); + expect(await ViewAllDIVGoodFitDescriptionNine.getText()).toContain('Remembering words, numbers, pictures, or steps.'); + expect(await ViewAllDIVGoodFitTitleTen.getText()).toEqual('Monitoring'); + expect(await ViewAllDIVGoodFitDescriptionTen.getText()).toContain('Keeping track of how well people and/or groups are doing in order to make improvements.'); + expect(await ViewAllDIVGoodFitTitleEleven.getText()).toEqual('Negotiation'); + expect(await ViewAllDIVGoodFitDescriptionEleven.getText()).toContain('Bringing people together to solve differences.'); + expect(await ViewAllDIVGoodFitTitleTwelve.getText()).toEqual('Personnel and Human Resources'); + expect(await ViewAllDIVGoodFitDescriptionTwelve.getText()).toContain('Knowledge of principles and procedures for personnel recruitment, selection, training, compensation and benefits, labor relations and negotiation, and personnel information systems.'); + expect(await ViewAllDIVGoodFitTitleThirteen.getText()).toEqual('Quality Control Analysis'); + expect(await ViewAllDIVGoodFitDescriptionThirteen.getText()).toContain('Testing how well a product or service works.'); + expect(await ViewAllDIVGoodFitTitleFourteen.getText()).toEqual('Time Management'); + expect(await ViewAllDIVGoodFitDescriptionFourteen.getText()).toContain('Managing your time and the time of other people.'); + expect(await ViewAllDIVGoodFitTitleFifteen.getText()).toEqual('Troubleshooting'); + expect(await ViewAllDIVGoodFitDescriptionFifteen.getText()).toContain('Figuring out what is causing equipment, machines, wiring, or computer programs to not work.'); + expect(await ViewAllDIVGoodFitTitleSixteen.getText()).toEqual('Writing'); + expect(await ViewAllDIVGoodFitDescriptionSixteen.getText()).toContain('Writing things for co-workers or customers.'); + } else { + expect(SkillsMatcherIconOne.isPresent()).toBe(true); + expect(await SkillsMatcherResultOne.getText()).toEqual('BEST FIT'); + expect(await SkillsMatcherTitleOne.getText()).toEqual('Administration and Management'); + expect(await SkillsMatcherDescriptionOne.getText()).toEqual('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); + expect(await SkillsMatcherTitleOneB.getText()).toEqual('Building and Construction'); + expect(await SkillsMatcherDescriptionOneB.getText()).toEqual('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); + expect(await SkillsMatcherTitleOneC.getText()).toEqual('Chemistry'); + expect(await SkillsMatcherDescriptionOneC.getText()).toEqual('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); + expect(SkillsMatcherIconTwo.isPresent()).toBe(true); + expect(await SkillsMatcherResultTwo.getText()).toEqual('GREAT FIT'); + expect(await SkillsMatcherTitleTwo.getText()).toEqual('Customer and Personal Service'); + expect(await SkillsMatcherDescriptionTwo.getText()).toEqual('Knowledge of principles and processes for providing customer and personal services. This includes customer needs assessment, meeting quality standards for services, and evaluation of customer satisfaction.'); + expect(await SkillsMatcherTitleTwoB.getText()).toEqual('Economics and Accounting'); + expect(await SkillsMatcherDescriptionTwoB.getText()).toEqual('Knowledge of economic and accounting principles and practices, the financial markets, banking and the analysis and reporting of financial data.'); + expect(await SkillsMatcherTitleTwoC.getText()).toEqual('Speaking'); + expect(await SkillsMatcherDescriptionTwoC.getText()).toEqual('Talking to others.'); + expect(SkillsMatcherIconThree.isPresent()).toBe(true); + expect(await SkillsMatcherResultThree.getText()).toEqual('GOOD FIT'); + expect(await SkillsMatcherTitleThree.getText()).toEqual('Biology'); + expect(await SkillsMatcherDescriptionThree.getText()).toEqual('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); + expect(await SkillsMatcherTitleThreeB.getText()).toEqual('Body Coordination'); + expect(await SkillsMatcherDescriptionThreeB.getText()).toEqual('Moving your arms, legs, and mid-section together while your whole body is moving.'); + expect(await SkillsMatcherTitleThreeC.getText()).toEqual('Clerical'); + expect(await SkillsMatcherDescriptionThreeC.getText()).toEqual('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); + await ViewAllLink.click().then(function() { + browser.sleep(2500); + }); + expect(ViewAllDIVBestFitIcon.isPresent()).toBe(true); + expect(await ViewAllDIVBestFitHeader.getText()).toEqual('BEST FIT'); + expect(await ViewAllDIVBestFitTitleOne.getText()).toEqual('Administration and Management'); + expect(await ViewAllDIVBestFitDescriptionOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.'); + expect(await ViewAllDIVBestFitTitleTwo.getText()).toEqual('Building and Construction'); + expect(await ViewAllDIVBestFitDescriptionTwo.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.'); + expect(await ViewAllDIVBestFitTitleThree.getText()).toEqual('Chemistry'); + expect(await ViewAllDIVBestFitDescriptionThree.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.'); + expect(await ViewAllDIVBestFitTitleFour.getText()).toEqual('Complex Problem Solving'); + expect(await ViewAllDIVBestFitDescriptionFour.getText()).toContain('Noticing a problem and figuring out the best way to solve it.'); + expect(await ViewAllDIVBestFitTitleFive.getText()).toEqual('Foreign Language'); + expect(await ViewAllDIVBestFitDescriptionFive.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.'); + expect(await ViewAllDIVBestFitTitleSix.getText()).toEqual('Mathematics'); + expect(await ViewAllDIVBestFitDescriptionSix.getText()).toContain('Using math to solve problems.'); + expect(await ViewAllDIVBestFitTitleSeven.getText()).toEqual('Negotiation'); + expect(await ViewAllDIVBestFitDescriptionSeven.getText()).toContain('Bringing people together to solve differences.'); + expect(await ViewAllDIVBestFitTitleEight.getText()).toEqual('Personnel and Human Resources'); + expect(await ViewAllDIVBestFitDescriptionEight.getText()).toContain('Knowledge of principles and procedures for personnel recruitment, selection, training, compensation and benefits, labor relations and negotiation, and personnel information systems.'); + browser.actions().mouseMove(ViewAllDIVGoodFitTitleSeven).perform().then(function() { + browser.sleep(2500); + }); + expect(await ViewAllDIVBestFitTitleNine.getText()).toEqual('Production and Processing'); + expect(await ViewAllDIVBestFitDescriptionNine.getText()).toContain('Knowledge of raw materials, production processes, quality control, costs, and other techniques for maximizing the effective manufacture and distribution of goods.'); + expect(await ViewAllDIVBestFitTitleTen.getText()).toEqual('Programming'); + expect(await ViewAllDIVBestFitDescriptionTen.getText()).toContain('Writing computer programs.'); + expect(await ViewAllDIVBestFitTitleEleven.getText()).toEqual('Psychology'); + expect(await ViewAllDIVBestFitDescriptionEleven.getText()).toContain('Knowledge of human behavior and performance; individual differences in ability, personality, and interests; learning and motivation; psychological research methods; and the assessment and treatment of behavioral and affective disorders.'); + expect(await ViewAllDIVBestFitTitleTwelve.getText()).toEqual('Quality Control Analysis'); + expect(await ViewAllDIVBestFitDescriptionTwelve.getText()).toContain('Testing how well a product or service works.'); + expect(await ViewAllDIVBestFitTitleThirteen.getText()).toEqual('Teaching and Course Design'); + expect(await ViewAllDIVBestFitDescriptionThirteen.getText()).toContain('Knowledge of principles and methods for curriculum and training design, teaching and instruction for individuals and groups, and the measurement of training effects.'); + expect(await ViewAllDIVBestFitTitleFourteen.getText()).toEqual('Telecommunications'); + expect(await ViewAllDIVBestFitDescriptionFourteen.getText()).toContain('Knowledge of transmission, broadcasting, switching, control, and operation of telecommunications systems.'); + expect(await ViewAllDIVBestFitTitleFifteen.getText()).toEqual('Therapy and Counseling'); + expect(await ViewAllDIVBestFitDescriptionFifteen.getText()).toContain('Knowledge of principles, methods, and procedures for diagnosis, treatment, and rehabilitation of physical and mental dysfunctions, and for career counseling and guidance.'); + expect(await ViewAllDIVBestFitTitleSixteen.getText()).toEqual('Writing'); + expect(await ViewAllDIVBestFitDescriptionSixteen.getText()).toContain('Writing things for co-workers or customers.'); + expect(ViewAllDIVGreatFitIcon.isPresent()).toBe(true); + expect(await ViewAllDIVGreatFitHeader.getText()).toEqual('GREAT FIT'); + expect(await ViewAllDIVGreatFitTitleOne.getText()).toEqual('Customer and Personal Service'); + expect(await ViewAllDIVGreatFitDescriptionOne.getText()).toContain('Knowledge of principles and processes for providing customer and personal services. This includes customer needs assessment, meeting quality standards for services, and evaluation of customer satisfaction.'); + expect(await ViewAllDIVGreatFitTitleTwo.getText()).toEqual('Economics and Accounting'); + expect(await ViewAllDIVGreatFitDescriptionTwo.getText()).toContain('Knowledge of economic and accounting principles and practices, the financial markets, banking and the analysis and reporting of financial data.'); + expect(await ViewAllDIVGreatFitTitleThree.getText()).toEqual('Speaking'); + expect(await ViewAllDIVGreatFitDescriptionThree.getText()).toContain('Talking to others.'); + expect(ViewAllDIVGoodFitIcon.isPresent()).toBe(true); + expect(await ViewAllDIVGoodFitHeader.getText()).toEqual('GOOD FIT'); + expect(await ViewAllDIVGoodFitTitleOne.getText()).toEqual('Biology'); + expect(await ViewAllDIVGoodFitDescriptionOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); + expect(await ViewAllDIVGoodFitTitleTwo.getText()).toEqual('Body Coordination'); + expect(await ViewAllDIVGoodFitDescriptionTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); + expect(await ViewAllDIVGoodFitTitleThree.getText()).toEqual('Clerical'); + expect(await ViewAllDIVGoodFitDescriptionThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.'); + expect(await ViewAllDIVGoodFitTitleFour.getText()).toEqual('Computers and Electronics'); + expect(await ViewAllDIVGoodFitDescriptionFour.getText()).toContain('Knowledge of circuit boards, processors, chips, electronic equipment, and computer hardware and software, including applications and programming.'); + expect(await ViewAllDIVGoodFitTitleFive.getText()).toEqual('Fine Arts'); + expect(await ViewAllDIVGoodFitDescriptionFive.getText()).toContain('Knowledge of the theory and techniques required to compose, produce, and perform works of music, dance, visual arts, drama, and sculpture.'); + expect(await ViewAllDIVGoodFitTitleSix.getText()).toEqual('Helping People'); + expect(await ViewAllDIVGoodFitDescriptionSix.getText()).toContain('Looking for ways to help people.'); + expect(await ViewAllDIVGoodFitTitleSeven.getText()).toEqual('Instructing'); + expect(await ViewAllDIVGoodFitDescriptionSeven.getText()).toContain('Teaching people how to do something.'); + expect(await ViewAllDIVGoodFitTitleEight.getText()).toEqual('Management of Financial Resources'); + expect(await ViewAllDIVGoodFitDescriptionEight.getText()).toContain('Making spending decisions and keeping track of what is spent.'); + expect(await ViewAllDIVGoodFitTitleNine.getText()).toEqual('Mechanical'); + expect(await ViewAllDIVGoodFitDescriptionNine.getText()).toContain('Knowledge of machines and tools, including their designs, uses, repair, and maintenance.'); + expect(await ViewAllDIVGoodFitTitleTen.getText()).toEqual('Medicine and Dentistry'); + expect(await ViewAllDIVGoodFitDescriptionTen.getText()).toContain('Knowledge of the information and techniques needed to diagnose and treat human injuries, diseases, and deformities. This includes symptoms, treatment alternatives, drug properties and interactions, and preventive health-care measures.'); + expect(await ViewAllDIVGoodFitTitleEleven.getText()).toEqual('Memorization'); + expect(await ViewAllDIVGoodFitDescriptionEleven.getText()).toContain('Remembering words, numbers, pictures, or steps.'); + expect(await ViewAllDIVGoodFitTitleTwelve.getText()).toEqual('Monitoring'); + expect(await ViewAllDIVGoodFitDescriptionTwelve.getText()).toContain('Keeping track of how well people and/or groups are doing in order to make improvements.'); + expect(await ViewAllDIVGoodFitTitleThirteen.getText()).toEqual('Operations Analysis'); + expect(await ViewAllDIVGoodFitDescriptionThirteen.getText()).toContain('Figuring out what a product or service needs to be able to do.'); + expect(await ViewAllDIVGoodFitTitleFourteen.getText()).toEqual('Public Safety and Security'); + expect(await ViewAllDIVGoodFitDescriptionFourteen.getText()).toContain('Knowledge of relevant equipment, policies, procedures, and strategies to promote effective local, state, or national security operations for the protection of people, data, property, and institutions.'); + expect(await ViewAllDIVGoodFitTitleFifteen.getText()).toEqual('Repairing'); + expect(await ViewAllDIVGoodFitDescriptionFifteen.getText()).toContain('Repairing machines or systems using the right tools.'); + expect(await ViewAllDIVGoodFitTitleSixteen.getText()).toEqual('Sales and Marketing'); + expect(await ViewAllDIVGoodFitDescriptionSixteen.getText()).toContain('Knowledge of principles and methods for showing, promoting, and selling products or services. This includes marketing strategy and tactics, product demonstration, sales techniques, and sales control systems.'); + expect(await ViewAllDIVGoodFitTitleSeventeen.getText()).toEqual('Science'); + expect(await ViewAllDIVGoodFitDescriptionSeventeen.getText()).toContain('Using scientific rules and strategies to solve problems.'); + expect(await ViewAllDIVGoodFitTitleEighteen.getText()).toEqual('Sociology and Anthropology'); + expect(await ViewAllDIVGoodFitDescriptionEighteen.getText()).toContain('Knowledge of group behavior and dynamics, societal trends and influences, human migrations, ethnicity, cultures and their history and origins.'); + expect(await ViewAllDIVGoodFitTitleNineteen.getText()).toEqual('Systems Analysis'); + expect(await ViewAllDIVGoodFitDescriptionNineteen.getText()).toContain('Figuring out how a system should work and how changes in the future will affect it.'); + expect(await ViewAllDIVGoodFitTitleTwenty.getText()).toEqual('Time Management'); + expect(await ViewAllDIVGoodFitDescriptionTwenty.getText()).toContain('Managing your time and the time of other people.'); + expect(await ViewAllDIVGoodFitTitleTwentyOne.getText()).toEqual('Troubleshooting'); + expect(await ViewAllDIVGoodFitDescriptionTwentyOne.getText()).toContain('Figuring out what is causing equipment, machines, wiring, or computer programs to not work.'); + } + }); + await ViewAllDIVCloseIcon.click().then(function() { + browser.sleep(5000); + }); + expect(SkillsMatcherDownloadIcon.isPresent()).toBe(true); + await SkillsMatcherShareIcon.click().then(function() { + browser.sleep(5000); + }); + expect(await ShareDIVTitle.getText()).toEqual('Email Your Results'); + expect(await ShareDIVFromHandle.getText()).toEqual('From:'); + await browser.driver.getCurrentUrl().then(async function(actualURL) { + if(actualURL.indexOf('https://app-qa.journeysmap.com/Journey/index.html#/jaSkillProfiler/result') !== -1) { + expect(await ShareDIVFromTextBox.getAttribute('value')).toEqual('Hal 9000 Automated11220211734'); + } else { + expect(await ShareDIVFromTextBox.getAttribute('value')).toEqual('Hal 9000 Automated12120211427'); + } + }); + expect(await ShareDIVToHandle.getText()).toEqual('To:'); + expect(await ShareDIVToTextBoxOne.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxTwo.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxThree.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxFour.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVToTextBoxFive.getAttribute('placeholder')).toEqual('Enter Email Address'); + expect(await ShareDIVSendButton.getText()).toEqual('Send'); + expect(await ShareDIVCancelButton.getText()).toEqual('Cancel'); + await ShareDIVToTextBoxOne.sendKeys('jhuerta@edmin.com').then(function() { + browser.sleep(1500); + }); + await ShareDIVSendButton.click().then(function() { + browser.sleep(5000); + }); + expect(ConfirmationDIVSuccessfulIcon.isPresent()).toBe(true); + expect(await ConfirmationDIVTitle.getText()).toEqual('Your Skills Matcher results are in flight!'); + expect(await ConfirmationDIVSubText.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); + expect(await ConfirmationDIVOKButton.getText()).toEqual('OK'); + await ConfirmationDIVOKButton.click().then(function() { + browser.sleep(5000); + }); + await ReturnToDashboardLink.click().then(function() { + browser.sleep(5000); + }); + }); +} + +function ExploreCareersPage() { + it(': ExploreCareersPage, should navigate to Explore Careers page.', async function () { + var ExploreCareersTile = element(by.css('.col-xs-5:nth-child(4)')); + var PageTitle = element(by.css('.jaTxtH1')); + var SearchOccupationTextBox = element(by.css('.col-sm-10 .form-control')); + var SearchOccupationSearchIcon = element(by.css('.col-sm-10 .glyphicon-search')); + var GameDesigner = element(by.css('#\\32 7e6015e-3fc9-4fda-8e16-39bc8e8f4e2e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var GameDesignerAvailableText = element(by.css('#\\32 7e6015e-3fc9-4fda-8e16-39bc8e8f4e2e > #territoryCardContainer div:nth-child(4) > div:nth-child(2)')); + var CameraOperator = element(by.css('#f41af2c4-3bda-4a59-acfb-b91c5ffb0eb0 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var CameraOperatorAvailableText = element(by.css('#f41af2c4-3bda-4a59-acfb-b91c5ffb0eb0 > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var FisherAndRelatedFishingWorkerAngler = element(by.css('#\\37 6bca173-92f2-4eea-9944-5cc53cf08e0c > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var FisherAndRelatedFishingWorkerAnglerAvailableText = element(by.css('#\\37 6bca173-92f2-4eea-9944-5cc53cf08e0c > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var VolunteerCoordinator = element(by.css('#a36a63c5-d59b-4adf-b5aa-d5cf09cc0118 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var VolunteerCoordinatorAvailableText = element(by.css('#a36a63c5-d59b-4adf-b5aa-d5cf09cc0118 > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var Musician = element(by.css('#\\31 1abf9d6-85d0-41f7-8c9c-29e35f829f6f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var MusicianAvailableText = element(by.css('#\\31 1abf9d6-85d0-41f7-8c9c-29e35f829f6f > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var AssociationProgramSpecialist = element(by.css('#\\30 065492b-2149-43a8-92e2-c493f6c2059f > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var AssociationProgramSpecialistAvailableText = element(by.css('#\\30 065492b-2149-43a8-92e2-c493f6c2059f > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var SearchOccupationDeleteIcon = element(by.css('.col-sm-10 .glyphicon-remove')); + var FilterIcon = element(by.css('.col-sm-10 .fas')); + var AvailableFilterButton = element(by.css('div:nth-child(3) > .jaButton:nth-child(2)')); + var SkillsFilterButton = element(by.css('div:nth-child(3) > .jaButton:nth-child(3)')); + var InterestFilterButton = element(by.css('div:nth-child(3) > .jaButton:nth-child(4)')); + var SelectedOccupationTitle = element(by.css('.ng-scope > div > .jaTxtH3')); + var SelectedOccupationText = element(by.css('.jaTxtH4')); + var DeselectButton = element(by.css('.jaButtonSecondary:nth-child(1)')); + var DeselectImage = element(by.css('div > div > div > img')); + var CareerSelectionDIVTitle = element(by.css('.jaTxt > div:nth-child(1)')); + var CareerSelectionDIVSubText = element(by.css('.jaTxt > div:nth-child(2)')); + var CareerSelectionDIVOccupationTitle = element(by.css('.ng-binding:nth-child(4)')); + var CareerSelectionDIVSubTextTwo = element(by.css('.jaTxt')); + var CareerSelectionDIVCancelButton = element(by.css('div:nth-child(1) > .jaButtonSecondary')); + var CareerSelectionDIVSaveButton = element(by.css('.jaButtonPrimary:nth-child(1)')); + var ViewButton = element(by.css('div:nth-child(2) > .jaButtonPrimary')); + var CareerExplorationSubTitle = element(by.css('div:nth-child(2) > .row > .jaTxtH3')); + var CareerExplorationSubTitleTwo = element(by.css('div:nth-child(2) > .row > span:nth-child(2)')); + var Administration = element(by.css('#\\36 8159fab-1474-4de6-8681-af5154a69989 > #territoryCardContainer .ng-binding')); + var AdministrationExploreButton = element(by.css('#\\36 8159fab-1474-4de6-8681-af5154a69989 > #territoryCardContainer .jaButton')); + var Agriculture = element(by.css('#\\39 de01f87-de7b-4100-a165-12db81aa8e40 > #territoryCardContainer .ng-binding')); + var AgricultureExploreButton = element(by.css('#\\39 de01f87-de7b-4100-a165-12db81aa8e40 > #territoryCardContainer .jaButton')); + var Architecture = element(by.css('#\\37 5fd4b3a-2a29-4269-9b81-2e7071272ab6 > #territoryCardContainer .ng-binding')); + var ArchitectureExploreButton = element(by.css('#\\37 5fd4b3a-2a29-4269-9b81-2e7071272ab6 > #territoryCardContainer .jaButton')); + var Arts = element(by.css('#d83725bb-bcb8-4a1a-bd4c-69b5499a5144 > #territoryCardContainer .ng-binding')); + var ArtsExploreButton = element(by.css('#d83725bb-bcb8-4a1a-bd4c-69b5499a5144 > #territoryCardContainer .jaButton')); + var Education = element(by.css('#\\34 9b1ed5c-1b17-422e-9b3c-822924cda714 > #territoryCardContainer .ng-binding')); + var EducationExploreButton = element(by.css('#\\34 9b1ed5c-1b17-422e-9b3c-822924cda714 > #territoryCardContainer .jaButton')); + var Finance = element(by.css('#\\36 87abde6-4039-4fdd-8445-dff6e6f070ed > #territoryCardContainer .ng-binding')); + var FinanceExploreButton = element(by.css('#\\36 87abde6-4039-4fdd-8445-dff6e6f070ed > #territoryCardContainer .jaButton')); + var HomeHealthAide = element(by.css('#\\30 b0456b6-29c2-43ab-a37d-07a75c5f5e60 > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var HomeHealthAideAvailableText = element(by.css('#\\30 b0456b6-29c2-43ab-a37d-07a75c5f5e60 > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var HomeHealthAideLearnMoreButton = element(by.css('#\\30 b0456b6-29c2-43ab-a37d-07a75c5f5e60 > #territoryCardContainer .jaButton')); + var HomeHealthAideLearnMoreImage = element(by.css('.panel-default > div:nth-child(1) > img')); + var HomeHealthAideLearnMorePageTitle = element(by.css('.panel-default > div > div > div > .jrnys_lead-body-copy')); + var HomeHealthAideLearnMoreAccountNumber = element(by.css('div:nth-child(1) > div > div > .ng-binding:nth-child(2)')); + var HomeHealthAideLearnMoreDescription = element(by.css('.panel-default > div > .ng-binding')); + var HomeHealthAideLearnMoreSelectCareerButton = element(by.css('.ng-isolate-scope:nth-child(2) > div:nth-child(1) > .jaButton')); + var SelectCareerDIVCancelButton = element(by.css('.jaButtonSecondary')); + var SelectCareerDIVSaveButton = element(by.css('div > div > .jaButtonPrimary')); + var MentalHealthCounselor = element(by.css('#\\35 ef3ad93-8a83-4ffd-bbb1-0b6906dc8c1e > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var MentalHealthCounselorAvailableText = element(by.css('#\\35 ef3ad93-8a83-4ffd-bbb1-0b6906dc8c1e > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var LicensedVocationalNurseLVN = element(by.css('#\\35 022b4b2-6427-4954-9738-556dfe281e7d > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var LicensedVocationalNurseLVNAvailableText = element(by.css('#\\35 022b4b2-6427-4954-9738-556dfe281e7d > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var Pediatrician = element(by.css('#f4ed4f89-de77-4cd6-a14d-871dbc635dbf > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var PediatricianAvailableText = element(by.css('#f4ed4f89-de77-4cd6-a14d-871dbc635dbf > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var DesignerCommercialAndIndustrial = element(by.css('#\\37 7cc5d74-76c9-4a6a-89fa-2a3123ae69ad > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var DesignerCommercialAndIndustrialAvailableText = element(by.css('#\\37 7cc5d74-76c9-4a6a-89fa-2a3123ae69ad > #territoryCardContainer div:nth-child(4) > div:nth-child(1)')); + var AviationInspector = element(by.css('#f6427544-7710-4b29-a761-31c1e0689fcc > #territoryCardContainer .territoryCardTitleText > .ng-binding')); + var AviationInspectorAvailableText = element(by.css('#f6427544-7710-4b29-a761-31c1e0689fcc > #territoryCardContainer div:nth-child(4) > div:nth-child(2)')); + var NotAvailableButton = element(by.css('.ng-isolate-scope:nth-child(2) .jaButtonDisabled')); + var ReturnToCareerExplorationLink = element(by.css('.jaButton > div:nth-child(2)')); + var ReturnToDashboardLink = element(by.css('.jaButton > div:nth-child(2)')); + + await ExploreCareersTile.click().then(function() { + browser.sleep(5000); + }); + expect(await PageTitle.getText()).toEqual('Career Exploration'); + expect(await SearchOccupationTextBox.getAttribute('placeholder')).toEqual('Search Occupations'); + expect(await SelectedOccupationTitle.getText()).toEqual('Home Health Aide'); + expect(SelectedOccupationText.getCssValue('color')).toBe('rgba(121, 188, 231, 1)'); //blue + expect(await SelectedOccupationText.getText()).toEqual('SELECTED'); + expect(DeselectButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await DeselectButton.getText()).toEqual('DESELECT'); + expect(ViewButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ViewButton.getText()).toEqual('VIEW'); + expect(FilterIcon.isPresent()).toBe(true); + expect(AvailableFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await AvailableFilterButton.getText()).toEqual('AVAILABLE'); + expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await SkillsFilterButton.getText()).toEqual('SKILLS'); + expect(InterestFilterButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await InterestFilterButton.getText()).toEqual('INTERESTS'); + expect(await CareerExplorationSubTitle.getText()).toEqual('Clusters'); + expect(await CareerExplorationSubTitleTwo.getText()).toEqual('To start your career exploration, select a cluster below.'); + expect(await Administration.getText()).toEqual('Administration'); + expect(AdministrationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AdministrationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Agriculture.getText()).toEqual('Agriculture'); + expect(AgricultureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AgricultureExploreButton.getText()).toEqual('EXPLORE'); + expect(await Architecture.getText()).toEqual('Architecture'); + expect(ArchitectureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArchitectureExploreButton.getText()).toEqual('EXPLORE'); + browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { + browser.sleep(1000); + }); + expect(await Arts.getText()).toEqual('Arts'); + expect(ArtsExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArtsExploreButton.getText()).toEqual('EXPLORE'); + expect(await Education.getText()).toEqual('Education'); + expect(EducationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await EducationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Finance.getText()).toEqual('Finance'); + expect(FinanceExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await FinanceExploreButton.getText()).toEqual('EXPLORE'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(1000); + }); + await DeselectButton.click().then(function() { + browser.sleep(2500); + }); + expect(DeselectImage.isPresent()).toBe(true); + expect(await CareerSelectionDIVTitle.getText()).toEqual('Delete Role'); + expect(await CareerSelectionDIVSubText.getText()).toEqual('Are you sure you want to delete your role?'); + expect(await CareerSelectionDIVOccupationTitle.getText()).toEqual('Home Health Aide'); + expect(await CareerSelectionDIVSubTextTwo.getText()).toContain('Once you delete your selection it is made available to other users.'); + expect(CareerSelectionDIVCancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await CareerSelectionDIVCancelButton.getText()).toEqual('CANCEL'); + expect(CareerSelectionDIVSaveButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await CareerSelectionDIVSaveButton.getText()).toEqual('OK'); + await CareerSelectionDIVSaveButton.click().then(function() { + browser.sleep(2500); + }); + expect(SelectedOccupationTitle.isPresent()).toBe(false); + expect(SelectedOccupationText.isPresent()).toBe(false); + expect(DeselectButton.isPresent()).toBe(false); + expect(ViewButton.isPresent()).toBe(false); + expect(await CareerExplorationSubTitle.getText()).toEqual('Clusters'); + expect(await CareerExplorationSubTitleTwo.getText()).toEqual('To start your career exploration, select a cluster below.'); + expect(await Administration.getText()).toEqual('Administration'); + expect(AdministrationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AdministrationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Agriculture.getText()).toEqual('Agriculture'); + expect(AgricultureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AgricultureExploreButton.getText()).toEqual('EXPLORE'); + expect(await Architecture.getText()).toEqual('Architecture'); + expect(ArchitectureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArchitectureExploreButton.getText()).toEqual('EXPLORE'); + browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { + browser.sleep(1000); + }); + expect(await Arts.getText()).toEqual('Arts'); + expect(ArtsExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArtsExploreButton.getText()).toEqual('EXPLORE'); + expect(await Education.getText()).toEqual('Education'); + expect(EducationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await EducationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Finance.getText()).toEqual('Finance'); + expect(FinanceExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await FinanceExploreButton.getText()).toEqual('EXPLORE'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(1000); + }); + await SearchOccupationTextBox.sendKeys('Video Game Programmer').then(function() { + browser.sleep(1500); + }); + await SearchOccupationSearchIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await CareerExplorationSubTitle.getText()).toEqual('Occupations'); + expect(await CareerExplorationSubTitleTwo.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); + expect(await GameDesigner.getText()).toEqual('Game Designer'); + expect(await GameDesignerAvailableText.getText()).toEqual('NOT AVAILABLE'); + expect(await CameraOperator.getText()).toEqual('Camera Operator'); + expect(await CameraOperatorAvailableText.getText()).toEqual('AVAILABLE'); + expect(await FisherAndRelatedFishingWorkerAngler.getText()).toEqual('Fisher and Related Fishing Worker (Angler)'); + expect(await FisherAndRelatedFishingWorkerAnglerAvailableText.getText()).toEqual('AVAILABLE'); + browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { + browser.sleep(1000); + }); + expect(await VolunteerCoordinator.getText()).toEqual('Volunteer Coordinator'); + expect(await VolunteerCoordinatorAvailableText.getText()).toEqual('AVAILABLE'); + expect(await Musician.getText()).toEqual('Musician'); + expect(await MusicianAvailableText.getText()).toEqual('AVAILABLE'); + expect(await AssociationProgramSpecialist.getText()).toEqual('Association Program Specialist'); + expect(await AssociationProgramSpecialistAvailableText.getText()).toEqual('AVAILABLE'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(1000); + }); + await SearchOccupationDeleteIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await CareerExplorationSubTitle.getText()).toEqual('Clusters'); + expect(await CareerExplorationSubTitleTwo.getText()).toEqual('To start your career exploration, select a cluster below.'); + expect(await Administration.getText()).toEqual('Administration'); + expect(AdministrationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AdministrationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Agriculture.getText()).toEqual('Agriculture'); + expect(AgricultureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AgricultureExploreButton.getText()).toEqual('EXPLORE'); + expect(await Architecture.getText()).toEqual('Architecture'); + expect(ArchitectureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArchitectureExploreButton.getText()).toEqual('EXPLORE'); + await SearchOccupationTextBox.sendKeys('Home Health Aide').then(function() { + browser.sleep(2500); + }); + await SearchOccupationSearchIcon.click().then(function() { + browser.sleep(1500); + }); + expect(await CareerExplorationSubTitle.getText()).toEqual('Occupations'); + expect(await CareerExplorationSubTitleTwo.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); + expect(await HomeHealthAide.getText()).toEqual('Home Health Aide'); + expect(await HomeHealthAideAvailableText.getText()).toEqual('AVAILABLE'); + expect(HomeHealthAideLearnMoreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await HomeHealthAideLearnMoreButton.getText()).toEqual('LEARN MORE'); + expect(await MentalHealthCounselor.getText()).toEqual('Mental Health Counselor'); + expect(await MentalHealthCounselorAvailableText.getText()).toEqual('AVAILABLE'); + expect(await LicensedVocationalNurseLVN.getText()).toEqual('Licensed Vocational Nurse (LVN)'); + expect(await LicensedVocationalNurseLVNAvailableText.getText()).toEqual('AVAILABLE'); + browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { + browser.sleep(1000); + }); + expect(await Pediatrician.getText()).toEqual('Pediatrician'); + expect(await PediatricianAvailableText.getText()).toEqual('AVAILABLE'); + expect(await DesignerCommercialAndIndustrial.getText()).toEqual('Designer-Commercial & Industrial'); + expect(await DesignerCommercialAndIndustrialAvailableText.getText()).toEqual('AVAILABLE'); + expect(await AviationInspector.getText()).toEqual('Aviation Inspector'); + expect(await AviationInspectorAvailableText.getText()).toEqual('NOT AVAILABLE'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(1000); + }); + await HomeHealthAideLearnMoreButton.click().then(function() { + browser.sleep(5000); + }); + expect(await PageTitle.getText()).toEqual('Learn More'); + expect(HomeHealthAideLearnMoreImage.isPresent()).toBe(true); + expect(await HomeHealthAideLearnMorePageTitle.getText()).toEqual('Home Health Aide'); + expect(await HomeHealthAideLearnMoreAccountNumber.getText()).toEqual('Account Number: 10100'); + expect(await HomeHealthAideLearnMoreDescription.getText()).toEqual("Provide routine individualized healthcare such as changing bandages and dressing wounds, and applying topical medications to the elderly, convalescents, or persons with disabilities at the patient's home or in a care facility. Monitor or report changes in health status. May also provide personal care such as bathing, dressing, and grooming of patient."); + expect(HomeHealthAideLearnMoreSelectCareerButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await HomeHealthAideLearnMoreSelectCareerButton.getText()).toEqual('SELECT CAREER'); + await HomeHealthAideLearnMoreSelectCareerButton.click().then(function() { + browser.sleep(2500); + }); + expect(DeselectImage.isPresent()).toBe(true); + expect(await CareerSelectionDIVTitle.getText()).toEqual('Congrats!'); + expect(await CareerSelectionDIVSubText.getText()).toEqual('You have successfully selected the role of'); + expect(await CareerSelectionDIVOccupationTitle.getText()).toEqual('Home Health Aide'); + expect(await CareerSelectionDIVSubTextTwo.getText()).toContain('You may only hold one role at a time. If you select a new career you will be unslected from this role.'); + expect(SelectCareerDIVCancelButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await SelectCareerDIVCancelButton.getText()).toEqual('CANCEL'); + expect(SelectCareerDIVSaveButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await SelectCareerDIVSaveButton.getText()).toEqual('OK'); + await SelectCareerDIVSaveButton.click().then(function() { + browser.sleep(1500); + }); + expect(await NotAvailableButton.getText()).toEqual('NOT AVAILABLE'); + await ReturnToCareerExplorationLink.click().then(function() { + browser.sleep(1500); + }); + expect(await PageTitle.getText()).toEqual('Career Exploration'); + expect(await SearchOccupationTextBox.getAttribute('placeholder')).toEqual('Search Occupations'); + expect(await SelectedOccupationTitle.getText()).toEqual('Home Health Aide'); + expect(SelectedOccupationText.getCssValue('color')).toBe('rgba(121, 188, 231, 1)'); //blue + expect(await SelectedOccupationText.getText()).toEqual('SELECTED'); + expect(DeselectButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await DeselectButton.getText()).toEqual('DESELECT'); + expect(ViewButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ViewButton.getText()).toEqual('VIEW'); + expect(FilterIcon.isPresent()).toBe(true); + expect(await AvailableFilterButton.getText()).toEqual('AVAILABLE'); + expect(await SkillsFilterButton.getText()).toEqual('SKILLS'); + expect(await InterestFilterButton.getText()).toEqual('INTERESTS'); + expect(await CareerExplorationSubTitle.getText()).toEqual('Clusters'); + expect(await CareerExplorationSubTitleTwo.getText()).toEqual('To start your career exploration, select a cluster below.'); + expect(await Administration.getText()).toEqual('Administration'); + expect(AdministrationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AdministrationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Agriculture.getText()).toEqual('Agriculture'); + expect(AgricultureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await AgricultureExploreButton.getText()).toEqual('EXPLORE'); + expect(await Architecture.getText()).toEqual('Architecture'); + expect(ArchitectureExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArchitectureExploreButton.getText()).toEqual('EXPLORE'); + browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { + browser.sleep(1000); + }); + expect(await Arts.getText()).toEqual('Arts'); + expect(ArtsExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await ArtsExploreButton.getText()).toEqual('EXPLORE'); + expect(await Education.getText()).toEqual('Education'); + expect(EducationExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await EducationExploreButton.getText()).toEqual('EXPLORE'); + expect(await Finance.getText()).toEqual('Finance'); + expect(FinanceExploreButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await FinanceExploreButton.getText()).toEqual('EXPLORE'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(1000); + }); + await ReturnToDashboardLink.click().then(function() { + browser.sleep(5000); + }); + }); +} + +function PostTestPage() { + it(': PostTestPage, should navigate to Post Test page.', async function () { + var PostTestTile = element(by.css('.col-xs-5:nth-child(5)')); + var PageTitle = element(by.css('.jaTxtH1')); + var PageSubTitle = element(by.css('.jaTxtH2:nth-child(1)')); + var ProgressBarStatusText = element(by.css('.progress > .ng-binding')); + var InstructionText = element(by.css('.col-xs-offset-1:nth-child(5)')); + var QuestionNumber = element(by.css('.jaDialogueHeaderVertical')); + var QuestionText = element(by.css('.jaDialogueContentVerticalCtr')); + var AnswerBubbleOne = element(by.css('.col-xs-2:nth-child(1) .jaSelectionText')); + var AnswerBubbleTwo = element(by.css('.col-xs-2:nth-child(2) .jaSelectionText')); + var AnswerBubbleThree = element(by.css('.col-xs-2:nth-child(3) .jaSelectionText')); + var AnswerBubbleFour = element(by.css('.col-xs-2:nth-child(4) .jaSelectionText')); + var CancelTestButton = element(by.css('.jaButton:nth-child(2)')); + var CancelDIVImage = element(by.css('div > img')); + var CancelDIVGreeting = element(by.css('.jaTxt > .ng-binding')); + var CancelDIVText = element(by.css('.jaTxt > div:nth-child(2)')); + var CancelDIVCancelTestButton = element(by.css('div > .jaButtonSecondary:nth-child(1)')); + var CancelDIVKeepTestingButton = element(by.css('.jaButtonPrimary')); + + await PostTestTile.click().then(function() { + browser.sleep(5000); + }); + expect(await PageTitle.getText()).toEqual('Post Test'); + expect(await PageSubTitle.getText()).toEqual('Answer the questions below.'); + expect(await ProgressBarStatusText.getText()).toEqual('1/18'); + expect(await QuestionNumber.getText()).toEqual('1.'); + expect(await QuestionText.getText()).toEqual('Career planning is done'); + expect(await AnswerBubbleOne.getText()).toEqual('After high school'); + expect(await AnswerBubbleTwo.getText()).toEqual('In college'); + expect(await AnswerBubbleThree.getText()).toEqual('Throughout a lifetime'); + expect(await AnswerBubbleFour.getText()).toEqual('Once in a lifetime'); + expect(CancelTestButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await CancelTestButton.getText()).toEqual('CANCEL TEST'); + await CancelTestButton.click().then(function() { + browser.sleep(5000); + }); + expect(CancelDIVImage.isPresent()).toBe(true); + expect(await CancelDIVGreeting.getText()).toEqual('Hal 9000,'); + expect(await CancelDIVText.getText()).toEqual('Are you sure you want to leave?'); + expect(CancelDIVCancelTestButton.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white + expect(await CancelDIVCancelTestButton.getText()).toEqual('CANCEL TEST'); + expect(CancelDIVKeepTestingButton.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple + expect(await CancelDIVKeepTestingButton.getText()).toEqual('KEEP TESTING'); + await CancelDIVCancelTestButton.click().then(function() { + browser.sleep(5000); + }); + expect(await PageTitle.getText()).toEqual('Student Dashboard'); + expect(await PageSubTitle.getText()).toEqual("Welcome to your journey. We can't wait to see what you explore."); + expect(await ProgressBarStatusText.getText()).toEqual('4/5'); + expect(await InstructionText.getText()).toEqual('Take your Post-Test.'); + }); +} + +function SignOut() { + it(': SignOut; should log out of journeys page.', async function () { + var ProfileImage = element(by.css('.roundCenterBackgroundImage')); + var SignOutButton = element(by.css('.dropDownFAEdits > .btn')); + + await ProfileImage.click().then(function() { + browser.sleep(1000); + }); + expect(await SignOutButton.getText()).toEqual('Logout'); + await SignOutButton.click().then(function() { + browser.sleep(2500); + }); + browser.get(browser.params.login); + browser.sleep(2500); + }); +} \ No newline at end of file