diff --git a/studentDashboard_config.js b/studentDashboard_config.js deleted file mode 100644 index 86c246a..0000000 --- a/studentDashboard_config.js +++ /dev/null @@ -1,34 +0,0 @@ -//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 deleted file mode 100644 index 8ccf680..0000000 --- a/studentDashboard_spec.js +++ /dev/null @@ -1,1084 +0,0 @@ -//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 diff --git a/zoneAdmin_config.js b/zoneAdmin_config.js deleted file mode 100644 index ce3af65..0000000 --- a/zoneAdmin_config.js +++ /dev/null @@ -1,53 +0,0 @@ -//zoneAdmin_config.js - -var today = new Date(); -var mm = today.getMonth()+1; //January is 0 -var dd = today.getDate(); -var yyyy = today.getFullYear(); -var hour = today.getHours(); -var minute = today.getMinutes(); - -exports.config = { - framework: 'jasmine', - seleniumAddress: 'http://localhost:4444/wd/hub', - specs: ['zoneAdmin_spec.js'], - - jasmineNodeOpts: { - defaultTimeoutInterval: 360000 - }, - - capabilities: { - browserName: 'chrome' - }, - - onPrepare: function() { - browser.sleep(2500); - browser.driver.manage().window().maximize(); - }, - - params: { - login: 'https://app.journeysmap.com/Journey/index.html#/login', - username: 'jhmanager19', - password: 'Manager007', - school: 'Automated School ' + mm + dd + yyyy + hour + minute, - teacher: 'Automated' + mm + dd + yyyy + hour + minute, - email: 'Automated' + mm + dd + yyyy + hour + minute, - class: 'Automated Class ' + mm + dd + yyyy + hour + minute, - student: 'Automated' + mm + dd + yyyy + hour + minute, - simulation: 'Automated Simulation ' + mm + dd + yyyy + hour + minute, - //<<<>>> - simulationStartEndDate: '01/21/2021', - simulationStartDateTime: yyyy + '-0' + mm + '-' + dd + 'T08:00:00.000', - simulationEndDateTime: yyyy + '-0' + mm + '-' + dd + 'T22:00:00.000' - } - - /*multiCapabilities: [{ - browserName: 'chrome' - }, { - browserName: 'firefox' - }]/*, { - browserName: 'internet explorer' - }], { - browserName: 'safari' - }]*/ -} \ No newline at end of file diff --git a/zoneAdmin_spec.js b/zoneAdmin_spec.js deleted file mode 100644 index ef9f7be..0000000 --- a/zoneAdmin_spec.js +++ /dev/null @@ -1,2457 +0,0 @@ -//zoneAdmin_spec.js - -describe('Begin Career Exploration 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('Zone Management'); - }); - - 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 JourneysGreeting = element(by.css('.navbar-nav:nth-child(2) > .nav-item')); - - expect(await PageGreetingText.getText()).toEqual('Login and start exploring.'); - browser.sleep(1500); - await UserNameTextBox.sendKeys(browser.params.username).then(function() { - browser.sleep(1500); - }); - await PasswordTextBox.sendKeys(browser.params.password).then(function() { - browser.sleep(1500); - }); - await NextButton.click().then(function() { - browser.sleep(5000); - }); - browser.waitForAngularEnabled(false); - expect(await JourneysGreeting.getText()).toContain('Hi, '); - expect(await JourneysGreeting.getText()).toContain('Juanmanager'); - }); - } - - AdminDashboard(); - ManageSchools(); - ManageTeachers(); - ManageClasses(); - ManageStudents(); - AddStudentToClass(); - ManageSimulations(); - ManageReports(); - - //Sign Out*/ - SignOut(); -}); - -function AdminDashboard() { - it(': AdminDashboard, should verify Admin Dashboard landing page.', async function () { - var PageTitle = element(by.css('#title')); - var ManageSchoolsTile = element(by.css('.col-lg-2:nth-child(2) tr:nth-child(1) > td')); - var ManageTeachersTile = element(by.css('.col-lg-2:nth-child(3) tr:nth-child(1) > td')); - var ManageClassesTile = element(by.css('.col-lg-2:nth-child(4) tr:nth-child(1) > td')); - var ManageStudentsTile = element(by.css('.col-lg-2:nth-child(5) tr:nth-child(1) > td')); - var ManageSimulationsTile = element(by.css('.col-lg-2:nth-child(6) tr:nth-child(1) > td')); - var ManageReports = element(by.css('.col-lg-2:nth-child(7) tr:nth-child(1) > td')); - - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - expect(await ManageSchoolsTile.getText()).toContain('MANAGE'); - expect(await ManageSchoolsTile.getText()).toContain('SCHOOLS'); - expect(await ManageTeachersTile.getText()).toContain('MANAGE'); - expect(await ManageTeachersTile.getText()).toContain('TEACHERS'); - expect(await ManageClassesTile.getText()).toContain('MANAGE'); - expect(await ManageClassesTile.getText()).toContain('CLASSES'); - expect(await ManageStudentsTile.getText()).toContain('MANAGE'); - expect(await ManageStudentsTile.getText()).toContain('STUDENTS'); - expect(await ManageSimulationsTile.getText()).toContain('MANAGE'); - expect(await ManageSimulationsTile.getText()).toContain('SIMULATIONS'); - expect(await ManageReports.getText()).toContain('MANAGE'); - expect(await ManageReports.getText()).toContain('REPORTS'); - }); -} - -function ManageSchools() { - it(': ManageSchools, should interact with Manage Schools page and add a new school.', async function () { - var PageTitle = element(by.css('#title')); - var ManageSchoolsTile = element(by.css('.col-lg-2:nth-child(2) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var AddNewSchoolTab = element(by.linkText('ADD NEW SCHOOL')); - var SchoolNameLabel = element(by.css('label')); - var SchoolNameTextBox = element(by.name('SchoolName')); - var CastleParkSeniorHighSelection = element(by.xpath("//button[contains(.,'Castle Park Senior High (Chula Vista)')]")); - var StreetAddressLabel = element(by.css('.col-sm-6:nth-child(2)')); - var StreetAddressTextBox = element(by.name('Address')); - var CityLabel = element(by.css('.col-12:nth-child(3)')); - var CityTextBox = element(by.name('City')); - var StateLabel = element(by.css('.col-12:nth-child(4)')); - var StateTextBox = element(by.name('State')); - var ZipCodeLabel = element(by.css('.col-12:nth-child(5)')); - var ZipCodeTextBox = element(by.name('ZipCode')); - var IndicatesRequiredFieldsLabel = element(by.css('.ng-dirty > div:nth-child(2) > div:nth-child(1)')); - var EditExistingSchoolTab = element(by.linkText('EDIT EXISTING SCHOOL')); - var ExistingSearchTextBox = element(by.css('.form-control')); - var CastleParkSeniorHighSelectionTwo = element(by.xpath("//button[contains(.,'Castle Park Senior High School (Chula Vista)')]")); - var SchoolId = element(by.css('.col-12:nth-child(1)')); - var SchoolNameLabelTwo = element(by.css('.row:nth-child(2) > .col-12:nth-child(2)')); - var StreetAddressLabelTwo = element(by.css('.col-12:nth-child(3)')); - var CityLabelTwo = element(by.css('.col-12:nth-child(4)')); - var StateLabelTwo = element(by.css('.col-12:nth-child(5)')); - var ZipCodeLabelTwo = element(by.css('.col-12:nth-child(6)')); - var IndicatesRequiredFieldsLabelTwo = element(by.css('.ng-untouched > div:nth-child(3) > div:nth-child(1)')); - var AddedSchool = element(by.id('ngb-typeahead-4-0')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageSchoolsTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Schools'); - expect(AddNewSchoolTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewSchoolTab.getText()).toEqual('ADD NEW SCHOOL'); - expect(EditExistingSchoolTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingSchoolTab.getText()).toEqual('EDIT EXISTING SCHOOL'); - expect(await SchoolNameLabel.getText()).toEqual('School Name*'); - await SchoolNameTextBox.sendKeys('Castle Park').then(function() { - browser.sleep(1500); - }); - browser.actions().mouseMove(CastleParkSeniorHighSelection).perform().then(function() { - browser.sleep(1000); - }); - await CastleParkSeniorHighSelection.click().then(function() { - browser.sleep(2500); - }); - expect(await SchoolNameTextBox.getAttribute('value')).toEqual('Castle Park Senior High'); - expect(await StreetAddressLabel.getText()).toEqual('Street Address'); - expect(await StreetAddressTextBox.getAttribute('value')).toEqual('1395 Hilltop Dr.'); - expect(await CityLabel.getText()).toEqual('City*'); - expect(await CityTextBox.getAttribute('value')).toEqual('Chula Vista'); - expect(await StateLabel.getText()).toEqual('State*'); - expect(await StateTextBox.getAttribute('value')).toEqual('CA'); - expect(await ZipCodeLabel.getText()).toEqual('Zip Code*'); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('91911'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toContain('Failed to add school.'); - expect(alertDialog.getText()).toContain('A school with the same name and zip code combination already exists. Please ensure school is unique.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - await EditExistingSchoolTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewSchoolTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewSchoolTab.getText()).toEqual('ADD NEW SCHOOL'); - expect(EditExistingSchoolTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingSchoolTab.getText()).toEqual('EDIT EXISTING SCHOOL'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for and select a school to edit'); - await ExistingSearchTextBox.sendKeys('Castle').then(function() { - browser.sleep(1500); - }); - browser.actions().mouseMove(CastleParkSeniorHighSelectionTwo).perform().then(function() { - browser.sleep(1000); - }); - await CastleParkSeniorHighSelectionTwo.click().then(function() { - browser.sleep(2500); - }); - await browser.driver.getCurrentUrl().then(async function(actualURL) { - if(actualURL.indexOf('https://app-qa.journeysmap.com/UI/Zone/Admin') !== -1) { - expect(await SchoolId.getText()).toEqual('School Id: 1155'); - } else { - expect(await SchoolId.getText()).toEqual('School Id: 215'); - } - }); - expect(await SchoolNameLabelTwo.getText()).toEqual('School Name*'); - expect(await SchoolNameTextBox.getAttribute('value')).toEqual('Castle Park Senior High School'); - expect(await StreetAddressLabelTwo.getText()).toEqual('Street Address'); - expect(await StreetAddressTextBox.getAttribute('value')).toEqual('1395 Hilltop Dr.'); - expect(await CityLabelTwo.getText()).toEqual('City*'); - expect(await CityTextBox.getAttribute('value')).toEqual('Chula Vista'); - expect(await StateLabelTwo.getText()).toEqual('State*'); - expect(await StateTextBox.getAttribute('value')).toEqual('CA'); - expect(await ZipCodeLabelTwo.getText()).toEqual('Zip Code*'); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('91911'); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await CancelButton.click().then(function() { - browser.sleep(2500); - }); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for and select a school to edit'); - await AddNewSchoolTab.click().then(function() { - browser.sleep(2500); - }); - expect(await SchoolNameTextBox.getAttribute('value')).toEqual('Castle Park Senior High'); - await SchoolNameTextBox.clear().then(function() { - browser.sleep(1500); - }); - await SchoolNameTextBox.sendKeys(browser.params.school).then(function() { - browser.sleep(1500); - }); - expect(await StreetAddressLabel.getText()).toEqual('Street Address'); - expect(await StreetAddressTextBox.getAttribute('value')).toEqual('1395 Hilltop Dr.'); - await StreetAddressTextBox.clear().then(function() { - browser.sleep(1500); - }); - await StreetAddressTextBox.sendKeys('247 Automated Street').then(function() { - browser.sleep(1500); - }); - expect(await CityLabel.getText()).toEqual('City*'); - expect(await CityTextBox.getAttribute('value')).toEqual('Chula Vista'); - await CityTextBox.clear().then(function() { - browser.sleep(1500); - }); - await CityTextBox.sendKeys('The Matrix').then(function() { - browser.sleep(1500); - }); - expect(await StateLabel.getText()).toEqual('State*'); - expect(await StateTextBox.getAttribute('value')).toEqual('CA'); - await StateTextBox.clear().then(function() { - browser.sleep(1500); - }); - await StateTextBox.sendKeys('California').then(function() { - browser.sleep(1500); - }); - expect(await ZipCodeLabel.getText()).toEqual('Zip Code*'); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('91911'); - await ZipCodeTextBox.clear().then(function() { - browser.sleep(1500); - }); - await ZipCodeTextBox.sendKeys('404').then(function() { - browser.sleep(1500); - }); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('New school has been added successfully.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(await SchoolNameTextBox.getAttribute('value')).toEqual(''); - expect(await StreetAddressLabel.getText()).toEqual('Street Address'); - expect(await StreetAddressTextBox.getAttribute('value')).toEqual(''); - expect(await CityLabel.getText()).toEqual('City*'); - expect(await CityTextBox.getAttribute('value')).toEqual(''); - expect(await StateLabel.getText()).toEqual('State*'); - expect(await StateTextBox.getAttribute('value')).toEqual(''); - expect(await ZipCodeLabel.getText()).toEqual('Zip Code*'); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual(''); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - await EditExistingSchoolTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewSchoolTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewSchoolTab.getText()).toEqual('ADD NEW SCHOOL'); - expect(EditExistingSchoolTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingSchoolTab.getText()).toEqual('EDIT EXISTING SCHOOL'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for and select a school to edit'); - await ExistingSearchTextBox.click().then(function() { - browser.sleep(2500); - }); - await AddedSchool.click().then(function() { - browser.sleep(2500); - }); - expect(await SchoolId.getText()).toContain('School Id: '); - expect(await SchoolNameLabelTwo.getText()).toEqual('School Name*'); - expect(await SchoolNameTextBox.getAttribute('value')).toEqual(browser.params.school); - expect(await StreetAddressLabelTwo.getText()).toEqual('Street Address'); - expect(await StreetAddressTextBox.getAttribute('value')).toEqual('247 Automated Street'); - expect(await CityLabelTwo.getText()).toEqual('City*'); - expect(await CityTextBox.getAttribute('value')).toEqual('The Matrix'); - expect(await StateLabelTwo.getText()).toEqual('State*'); - expect(await StateTextBox.getAttribute('value')).toEqual('California'); - expect(await ZipCodeLabelTwo.getText()).toEqual('Zip Code*'); - expect(await ZipCodeTextBox.getAttribute('value')).toEqual('404'); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function ManageTeachers() { - it(': ManageTeachers, should interact with Manage Teachers page and add a new teacher.', async function () { - var ManageTeachersTile = element(by.css('.col-lg-2:nth-child(3) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var AddNewTeacherTab = element(by.linkText('ADD NEW TEACHER')); - var TeacherFirstNameLabel = element(by.css('.col-12:nth-child(1) > .col-12:nth-child(1)')); - var TeacherFirstNameTextBox = element(by.name('FirstName')); - var TeacherLastNameLabel = element(by.css('.col-12 > .col-12:nth-child(2)')); - var TeacherLastNameTextBox = element(by.name('LastName')); - var TeacherEmailLabel = element(by.css('.col-12:nth-child(3)')); - var TeacherEmailTextBox = element(by.name('Email')); - var IndicatesRequiredFieldsLabel = element(by.css('.ng-pristine > div:nth-child(3) > div:nth-child(1)')); - var IndicatesRequiredFieldsLabelTwo = element(by.css('div:nth-child(4) > div:nth-child(1)')); - var SchoolAssociationsLabel = element(by.css('.col-12:nth-child(2) > .col-12')); - var SchoolAssociationsTextBox = element(by.name('SelectedSchool')); - var AssociatedSchoolListOne = element(by.css('.list-group-item')); - var EditExistingTeacherTab = element(by.linkText('EDIT EXISTING TEACHER')); - var ExistingSearchTextBox = element(by.css('.form-control')); - var SelectedTeacher = element(by.xpath("//button[contains(.,'Ron Casper (rcasper@edmin.com)')]")); - var TeacherFirstNameLabelTwo = element(by.css('.col-12 > .col-12:nth-child(2)')); - var TeacherLastNameLabelTwo = element(by.css('.col-12:nth-child(3)')); - var TeacherEmailLabelTwo = element(by.css('.col-12:nth-child(4)')); - var TeacherId = element(by.css('.col-12:nth-child(1) > .col-12:nth-child(1)')); - var IndicatesRequiredFieldsLabelThree = element(by.css('.ng-invalid > div:nth-child(3) > div:nth-child(1)')); - var SelectNewSchoolAssociation = element(by.id('ngb-typeahead-7-0')); - var AssociatedSchoolListTwo = element(by.css('.list-group-item:nth-child(2)')); - var RemoveAssociatedSchoolOne = element(by.css('.list-group-item:nth-child(1) > .fa')); - var SelectNewSchoolAssociationTwo = element(by.id('ngb-typeahead-9-0')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageTeachersTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Teachers'); - expect(AddNewTeacherTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewTeacherTab.getText()).toEqual('ADD NEW TEACHER'); - expect(EditExistingTeacherTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingTeacherTab.getText()).toEqual('EDIT EXISTING TEACHER'); - expect(await TeacherFirstNameLabel.getText()).toEqual('Teacher First Name*'); - expect(await TeacherFirstNameTextBox.getAttribute('placeholder')).toEqual('First Name (min. 2 characters)'); - expect(await TeacherLastNameLabel.getText()).toEqual('Teacher Last Name*'); - expect(await TeacherLastNameTextBox.getAttribute('placeholder')).toEqual('Last Name (min. 2 characters)'); - expect(await TeacherEmailLabel.getText()).toEqual('Email*'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await SchoolAssociationsLabel.getText()).toEqual('School Associations*'); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await EditExistingTeacherTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewTeacherTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewTeacherTab.getText()).toEqual('ADD NEW TEACHER'); - expect(EditExistingTeacherTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingTeacherTab.getText()).toEqual('EDIT EXISTING TEACHER'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for a teacher by school, name, or email'); - await ExistingSearchTextBox.sendKeys('Casper').then(function() { - browser.sleep(1500); - }); - await SelectedTeacher.click().then(function() { - browser.sleep(2500); - }); - await browser.driver.getCurrentUrl().then(async function(actualURL) { - if(actualURL.indexOf('https://app-qa.journeysmap.com/UI/Zone/Admin') !== -1) { - expect(await TeacherId.getText()).toEqual('Teacher Id: 50307'); - } else { - expect(await TeacherId.getText()).toEqual('Teacher Id: 37583'); - } - }); - expect(await TeacherFirstNameLabelTwo.getText()).toEqual('Teacher First Name*'); - expect(await TeacherFirstNameTextBox.getAttribute('value')).toEqual('Ron'); - expect(await TeacherLastNameLabelTwo.getText()).toEqual('Teacher Last Name*'); - expect(await TeacherLastNameTextBox.getAttribute('value')).toEqual('Casper'); - expect(await TeacherEmailLabelTwo.getText()).toEqual('Email*'); - expect(await TeacherEmailTextBox.getAttribute('value')).toEqual('rcasper@edmin.com'); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - expect(await SchoolAssociationsLabel.getText()).toContain('School Associations*'); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - expect(await AssociatedSchoolListOne.getText()).toEqual(' School Of Hard Knocks (Phoenix)'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SchoolAssociationsTextBox.sendKeys(browser.params.school).then(function() { - browser.sleep(1500); - }); - await SelectNewSchoolAssociation.click().then(function() { - browser.sleep(2500); - }); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - expect(await AssociatedSchoolListOne.getText()).toEqual(' School Of Hard Knocks (Phoenix)'); - expect(await AssociatedSchoolListTwo.getText()).toEqual(' ' + browser.params.school + ' (The Matrix)'); - await RemoveAssociatedSchoolOne.click().then(function() { - browser.sleep(2500); - }); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - expect(await AssociatedSchoolListOne.getText()).toEqual(' ' + browser.params.school + ' (The Matrix)'); - await CancelButton.click().then(function() { - browser.sleep(2500); - }); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for a teacher by school, name, or email'); - await AddNewTeacherTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewTeacherTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewTeacherTab.getText()).toEqual('ADD NEW TEACHER'); - expect(EditExistingTeacherTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingTeacherTab.getText()).toEqual('EDIT EXISTING TEACHER'); - expect(await TeacherFirstNameLabel.getText()).toEqual('Teacher First Name*'); - expect(await TeacherFirstNameTextBox.getAttribute('placeholder')).toEqual('First Name (min. 2 characters)'); - await TeacherFirstNameTextBox.sendKeys('T-800').then(function() { - browser.sleep(1500); - }); - expect(await TeacherLastNameLabel.getText()).toEqual('Teacher Last Name*'); - expect(await TeacherLastNameTextBox.getAttribute('placeholder')).toEqual('Last Name (min. 2 characters)'); - await TeacherLastNameTextBox.sendKeys(browser.params.teacher).then(function() { - browser.sleep(1500); - }); - expect(await TeacherEmailLabel.getText()).toEqual('Email*'); - await TeacherEmailTextBox.sendKeys(browser.params.email + '@automation.com').then(function() { - browser.sleep(1500); - }); - expect(await IndicatesRequiredFieldsLabelThree.getText()).toEqual('* indicates require fields.'); - expect(await SchoolAssociationsLabel.getText()).toEqual('School Associations*'); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - await SchoolAssociationsTextBox.sendKeys(browser.params.school).then(function() { - browser.sleep(2500); - }); - await SelectNewSchoolAssociationTwo.click().then(function() { - browser.sleep(2500); - }); - expect(await AssociatedSchoolListOne.getText()).toEqual(' ' + browser.params.school + ' (The Matrix)'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('New teacher has been added successfully.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(await TeacherFirstNameLabel.getText()).toEqual('Teacher First Name*'); - expect(await TeacherFirstNameTextBox.getAttribute('placeholder')).toEqual('First Name (min. 2 characters)'); - expect(await TeacherLastNameLabel.getText()).toEqual('Teacher Last Name*'); - expect(await TeacherLastNameTextBox.getAttribute('placeholder')).toEqual('Last Name (min. 2 characters)'); - expect(await TeacherEmailLabel.getText()).toEqual('Email*'); - expect(await IndicatesRequiredFieldsLabelThree.getText()).toEqual('* indicates require fields.'); - expect(await SchoolAssociationsLabel.getText()).toEqual('School Associations*'); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function ManageClasses() { - it(': ManageClasses, should interact with Manage Classes page and add a new class.', async function () { - var ManageClassesTile = element(by.css('.col-lg-2:nth-child(4) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var AddNewClassesTab = element(by.linkText('ADD NEW CLASS')); - var SchoolNameLabel = element(by.css('.col-12:nth-child(1)')); - var SchoolNameTextBox = element(by.name('SelectedSchool')); - var TeacherNameLabel = element(by.css('.row:nth-child(4) > .col-12:nth-child(2)')); - var TeacherNameTextBox = element(by.name('SelectedTeacher')); - var ClassNameLabel = element(by.css('.col-12:nth-child(3)')); - var ClassNameTextBox = element(by.name('ClassName')); - var ClassPeriodLabel = element(by.css('.col-12:nth-child(4)')); - var ClassPeriodTextBox = element(by.name('Period')); - var AddToExistingSimulationLabel = element(by.css('.col-12:nth-child(5)')); - var AddToExistintSimulationTextBox = element(by.name('SelectedSimulation')); - var NumberOfStudentsLabel = element(by.css('.col-12:nth-child(6)')); - var NumberOfStudentsTextBox = element(by.name('ClassSize')); - var RemoveColumnHeader = element(by.css('.table-primary > td:nth-child(1)')); - var NameColumnHeader = element(by.css('td:nth-child(2)')); - var BirthDateColumnHeader = element(by.css('td:nth-child(3)')); - var SearchAndAddStudentTextBox = element(by.css('.input-group > .ng-untouched')); - var TotalStudentsLabel = element(by.css('td > span:nth-child(2)')); - var IndicatesRequiredFieldsLabel = element(by.css('div:nth-child(5) > div:nth-child(1)')); - var EditExistingClassesTab = element(by.linkText('EDIT EXISTING CLASS')); - var ExistingSearchTextBox = element(by.css('.form-control')); - var SelectExistingSchool = element(by.xpath("//button[contains(.,'Baseball Fundamentals P-6 (ZHW32UTZ, Fernando Tatis, Castle Park Senior High)')]")); - var SelectExistingSchoolPROD = element(by.xpath("//button[contains(.,'Baseball Fundamentals P-6 (RL9K9NMC, Fernando Tatis, Castle Park Senior High)')]")); - var ClassId = element(by.css('.col-12:nth-child(1)')); - var ConnectionCode = element(by.css('.col-sm-6:nth-child(2)')); - var SchoolNameText = element(by.css('.col-12:nth-child(3)')); - var TeacherNameLabelTwo = element(by.css('.col-12:nth-child(4)')); - var ClassNameLabelTwo = element(by.css('.col-12:nth-child(5)')); - var ClassPeriodLabelTwo = element(by.css('.col-12:nth-child(6)')); - var AddToExistingSimulationLabelTwo = element(by.css('.col-12:nth-child(7)')); - var EnrolledStudentRemoveIconOnePROD = element(by.css('tr:nth-child(1) > td > .fa')); - var NumberOfStudentsLabelTwo = element(by.css('.col-12:nth-child(8)')); - var EnrolledStudentNameOne = element(by.css('tbody > tr:nth-child(1) > td:nth-child(2)')); - var EnrolledStudentDOBOne = element(by.css('tbody > tr:nth-child(1) > td:nth-child(3)')); - var EnrolledStudentRemoveIconTwo = element(by.css('tr:nth-child(2) .fa')); - var EnrolledStudentNameTwo = element(by.css('tr:nth-child(2) > td:nth-child(2)')); - var EnrolledStudentDOBTwo = element(by.css('tr:nth-child(2) > td:nth-child(3)')); - var EnrolledStudentNameThree = element(by.css('tr:nth-child(3) > td:nth-child(2)')); - var EnrolledStudentDOBThree = element(by.css('tr:nth-child(3) > td:nth-child(3)')); - var EnrolledStudentNameFour = element(by.css('tr:nth-child(4) > td:nth-child(2)')); - var EnrolledStudentDOBFour = element(by.css('tr:nth-child(4) > td:nth-child(3)')); - var EnrolledStudentRemoveIconFive = element(by.css('tr:nth-child(5) .fa')); - var EnrolledStudentNameFive = element(by.css('tr:nth-child(5) > td:nth-child(2)')); - var EnrolledStudentDOBFive = element(by.css('tr:nth-child(5) > td:nth-child(3)')); - var EnrolledStudentNameSix = element(by.css('tr:nth-child(6) > td:nth-child(2)')); - var EnrolledStudentDOBSix = element(by.css('tr:nth-child(6) > td:nth-child(3)')); - var EnrolledStudentNameSeven = element(by.css('tr:nth-child(7) > td:nth-child(2)')); - var EnrolledStudentDOBSeven = element(by.css('tr:nth-child(7) > td:nth-child(3)')); - var EnrolledStudentNameEight = element(by.css('tr:nth-child(8) > td:nth-child(2)')); - var EnrolledStudentDOBEight = element(by.css('tr:nth-child(8) > td:nth-child(3)')); - var SearchAndAddStudentTextBoxTwo = element(by.css('.input-group:nth-child(1) > .form-control')); - var SelectStudentToAddToClass = element(by.xpath("//button[contains(.,'Tony Gwynn 2000-10-19')]")); - var IndicatesRequiredFieldsLabelTwo = element(by.css('div:nth-child(6) > div:nth-child(1)')); - var SelectNewlyCreatedSchool = element(by.id('ngb-typeahead-18-0')); - var SelectNewlyCreatedTeacher = element(by.id('ngb-typeahead-19-0')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageClassesTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Classes'); - expect(AddNewClassesTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewClassesTab.getText()).toEqual('ADD NEW CLASS'); - expect(EditExistingClassesTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingClassesTab.getText()).toEqual('EDIT EXISTING CLASS'); - expect(await SchoolNameLabel.getText()).toEqual('School Name*'); - expect(await SchoolNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a School'); - expect(await TeacherNameLabel.getText()).toEqual('Teacher Name*'); - expect(await TeacherNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a Teacher by Name or Email'); - expect(await ClassNameLabel.getText()).toEqual('Class Name*'); - expect(await ClassPeriodLabel.getText()).toEqual('Period*'); - expect(await AddToExistingSimulationLabel.getText()).toEqual('Add to Existing Simulation'); - expect(await AddToExistintSimulationTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await NumberOfStudentsLabel.getText()).toEqual('Number of Students*'); - expect(await NumberOfStudentsTextBox.getAttribute('value')).toEqual('0'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await NameColumnHeader.getText()).toEqual('Name'); - expect(await BirthDateColumnHeader.getText()).toEqual('Birthdate'); - expect(await SearchAndAddStudentTextBox.getAttribute('placeholder')).toEqual('Search and Select a School'); - expect(await TotalStudentsLabel.getText()).toEqual('0'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await EditExistingClassesTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewClassesTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewClassesTab.getText()).toEqual('ADD NEW CLASS'); - expect(EditExistingClassesTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingClassesTab.getText()).toEqual('EDIT EXISTING CLASS'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search and Select a Class by name, school, or teacher'); - await ExistingSearchTextBox.click().then(function() { - browser.sleep(2500); - }); - await ExistingSearchTextBox.sendKeys('Castle').then(function() { - browser.sleep(1500); - }); - await browser.driver.getCurrentUrl().then(async function(actualURL) { - if(actualURL.indexOf('https://app-qa.journeysmap.com/UI/Zone/Admin') !== -1) { - await SelectExistingSchool.click().then(function() { - browser.sleep(2500); - }); - expect(await ClassId.getText()).toEqual('Class Id: 34870'); - expect(await ConnectionCode.getText()).toEqual('Connection Code: ZHW32UTZ'); - } else { - await SelectExistingSchoolPROD.click().then(function() { - browser.sleep(2500); - }); - expect(await ClassId.getText()).toEqual('Class Id: 27915'); - expect(await ConnectionCode.getText()).toEqual('Connection Code: RL9K9NMC'); - } - }); - expect(await SchoolNameText.getText()).toContain('School Name*'); - expect(await SchoolNameText.getText()).toContain('Castle Park Senior High'); - expect(await TeacherNameLabelTwo.getText()).toEqual('Teacher Name*'); - expect(await TeacherNameTextBox.getAttribute('value')).toEqual('Fernando Tatis (FTatis@edmin.com)'); - expect(await ClassNameLabelTwo.getText()).toEqual('Class Name*'); - expect(await ClassNameTextBox.getAttribute('value')).toEqual('Baseball Fundamentals'); - expect(await ClassPeriodLabelTwo.getText()).toEqual('Period*'); - expect(await ClassPeriodTextBox.getAttribute('value')).toEqual('6'); - expect(await AddToExistingSimulationLabelTwo.getText()).toEqual('Add to Existing Simulation'); - expect(await AddToExistintSimulationTextBox.getAttribute('value')).toEqual('November 11 Simulation'); - expect(await NumberOfStudentsLabelTwo.getText()).toEqual('Number of Students*'); - expect(await NumberOfStudentsTextBox.getAttribute('value')).toEqual('15'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await NameColumnHeader.getText()).toEqual('Name'); - expect(await BirthDateColumnHeader.getText()).toEqual('Birthdate'); - expect(await SearchAndAddStudentTextBoxTwo.getAttribute('placeholder')).toEqual('Search and Add a student'); - expect(await EnrolledStudentNameOne.getText()).toEqual('Mike Clevinger'); - expect(await EnrolledStudentDOBOne.getText()).toEqual('2000-09-20'); - expect(await EnrolledStudentNameTwo.getText()).toEqual('Jake Cronenworth'); - expect(await EnrolledStudentDOBTwo.getText()).toEqual('2000-08-08'); - expect(await EnrolledStudentNameThree.getText()).toEqual('Eric Hosmer'); - expect(await EnrolledStudentDOBThree.getText()).toEqual('2010-09-09'); - expect(await EnrolledStudentNameFour.getText()).toEqual('Manny Machado'); - expect(await EnrolledStudentDOBFour.getText()).toEqual('2000-08-08'); - expect(await EnrolledStudentNameFive.getText()).toEqual('Wil Myers'); - expect(await EnrolledStudentDOBFive.getText()).toEqual('2000-11-11'); - expect(await EnrolledStudentNameSix.getText()).toEqual('Chris Paddack'); - expect(await EnrolledStudentDOBSix.getText()).toEqual('2000-10-31'); - expect(await EnrolledStudentNameSeven.getText()).toEqual('Tommy Pham'); - expect(await EnrolledStudentDOBSeven.getText()).toEqual('2000-06-06'); - expect(await EnrolledStudentNameEight.getText()).toEqual('Blake Snell'); - expect(await EnrolledStudentDOBEight.getText()).toEqual('2001-07-07'); - expect(await TotalStudentsLabel.getText()).toEqual('8'); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - await EnrolledStudentRemoveIconTwo.click().then(function() { - browser.sleep(2500); - }); - expect(await EnrolledStudentNameOne.getText()).toEqual('Mike Clevinger'); - expect(await EnrolledStudentDOBOne.getText()).toEqual('2000-09-20'); - expect(await EnrolledStudentNameTwo.getText()).toEqual('Eric Hosmer'); - expect(await EnrolledStudentDOBTwo.getText()).toEqual('2010-09-09'); - expect(await EnrolledStudentNameThree.getText()).toEqual('Manny Machado'); - expect(await EnrolledStudentDOBThree.getText()).toEqual('2000-08-08'); - expect(await EnrolledStudentNameFour.getText()).toEqual('Wil Myers'); - expect(await EnrolledStudentDOBFour.getText()).toEqual('2000-11-11'); - expect(await EnrolledStudentNameFive.getText()).toEqual('Chris Paddack'); - expect(await EnrolledStudentDOBFive.getText()).toEqual('2000-10-31'); - expect(await EnrolledStudentNameSix.getText()).toEqual('Tommy Pham'); - expect(await EnrolledStudentDOBSix.getText()).toEqual('2000-06-06'); - expect(await EnrolledStudentNameSeven.getText()).toEqual('Blake Snell'); - expect(await EnrolledStudentDOBSeven.getText()).toEqual('2001-07-07'); - expect(await TotalStudentsLabel.getText()).toEqual('7'); - await EnrolledStudentRemoveIconOnePROD.click().then(function() { - browser.sleep(2500); - }); - expect(await EnrolledStudentNameOne.getText()).toEqual('Eric Hosmer'); - expect(await EnrolledStudentDOBOne.getText()).toEqual('2010-09-09'); - expect(await EnrolledStudentNameTwo.getText()).toEqual('Manny Machado'); - expect(await EnrolledStudentDOBTwo.getText()).toEqual('2000-08-08'); - expect(await EnrolledStudentNameThree.getText()).toEqual('Wil Myers'); - expect(await EnrolledStudentDOBThree.getText()).toEqual('2000-11-11'); - expect(await EnrolledStudentNameFour.getText()).toEqual('Chris Paddack'); - expect(await EnrolledStudentDOBFour.getText()).toEqual('2000-10-31'); - expect(await EnrolledStudentNameFive.getText()).toEqual('Tommy Pham'); - expect(await EnrolledStudentDOBFive.getText()).toEqual('2000-06-06'); - expect(await EnrolledStudentNameSix.getText()).toEqual('Blake Snell'); - expect(await EnrolledStudentDOBSix.getText()).toEqual('2001-07-07'); - expect(await TotalStudentsLabel.getText()).toEqual('6'); - await SearchAndAddStudentTextBoxTwo.sendKeys('Gwynn').then(function() { - browser.sleep(1500); - }); - await SelectStudentToAddToClass.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toContain('Warning!'); - expect(alertDialog.getText()).toContain('This student currently is in an active simulation. Are you sure you want to transfer to this class?'); - browser.switchTo().alert().dismiss(); - browser.sleep(2500); - }); - await AddNewClassesTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewClassesTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewClassesTab.getText()).toEqual('ADD NEW CLASS'); - expect(EditExistingClassesTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingClassesTab.getText()).toEqual('EDIT EXISTING CLASS'); - expect(await SchoolNameLabel.getText()).toEqual('School Name*'); - expect(await SchoolNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a School'); - await SchoolNameTextBox.sendKeys(browser.params.school).then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedSchool.click().then(function() { - browser.sleep(2500); - }); - expect(await TeacherNameLabel.getText()).toEqual('Teacher Name*'); - expect(await TeacherNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a Teacher by Name or Email'); - await TeacherNameTextBox.sendKeys(browser.params.teacher).then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedTeacher.click().then(function() { - browser.sleep(2500); - }); - expect(await ClassNameLabel.getText()).toEqual('Class Name*'); - await ClassNameTextBox.sendKeys(browser.params.class).then(function() { - browser.sleep(1500); - }); - expect(await ClassPeriodLabel.getText()).toEqual('Period*'); - await ClassPeriodTextBox.sendKeys('5').then(function() { - browser.sleep(1500); - }); - expect(await AddToExistingSimulationLabel.getText()).toEqual('Add to Existing Simulation'); - expect(await AddToExistintSimulationTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await NumberOfStudentsLabel.getText()).toEqual('Number of Students*'); - expect(await NumberOfStudentsTextBox.getAttribute('value')).toEqual('0'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await NameColumnHeader.getText()).toEqual('Name'); - expect(await BirthDateColumnHeader.getText()).toEqual('Birthdate'); - expect(await SearchAndAddStudentTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await TotalStudentsLabel.getText()).toEqual('0'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('The Number of Students should be greater than 0.'); - browser.switchTo().alert().dismiss(); - browser.sleep(2500); - }); - await NumberOfStudentsTextBox.clear().then(function() { - browser.sleep(1500); - }); - await NumberOfStudentsTextBox.sendKeys('25').then(function() { - browser.sleep(1500); - }); - expect(await TotalStudentsLabel.getText()).toEqual('0'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toContain('The new class has been saved successfully. The Connection Code is '); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(await SchoolNameLabel.getText()).toEqual('School Name*'); - expect(await SchoolNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a School'); - expect(await TeacherNameLabel.getText()).toEqual('Teacher Name*'); - expect(await TeacherNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a Teacher by Name or Email'); - expect(await ClassNameLabel.getText()).toEqual('Class Name*'); - expect(await ClassPeriodLabel.getText()).toEqual('Period*'); - expect(await AddToExistingSimulationLabel.getText()).toEqual('Add to Existing Simulation'); - expect(await AddToExistintSimulationTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await NumberOfStudentsLabel.getText()).toEqual('Number of Students*'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await NameColumnHeader.getText()).toEqual('Name'); - expect(await BirthDateColumnHeader.getText()).toEqual('Birthdate'); - expect(await SearchAndAddStudentTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await TotalStudentsLabel.getText()).toEqual('0'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function ManageStudents() { - it(': ManageStudents, should interact with Manage Students page and add a new student.', async function () { - var ManageStudentsTile = element(by.css('.col-lg-2:nth-child(5) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var AddNewsStudentsTab = element(by.linkText('ADD NEW STUDENT')); - var StudentFirstNameLabel = element(by.css('.col-12:nth-child(1) > .col-12:nth-child(1)')); - var StudentFirstNameTextBox = element(by.name('FirstName')); - var StudentLastNameLabel = element(by.css('.col-12 > .col-12:nth-child(2)')); - var StudentLastNameTextBox = element(by.name('LastName')); - var StudentBirthdateLabel = element(by.css('.col-12:nth-child(3)')); - var StudentBirthdateTextBox = element(by.name('BirthDate')); - var StudentUsernameLabel = element(by.css('.col-12:nth-child(4)')); - var StudentUsernameTextBox = element(by.name('UN')); - var StudentPasswordLabel = element(by.css('.col-12:nth-child(5)')); - var StudentPasswordTextBox = element(by.name('PW')); - var IndicatesRequiredFieldsLabel = element(by.css('.ng-pristine > div:nth-child(3) > div > div:nth-child(1)')); - var EmailInstructions = element(by.css('.ng-pristine > div:nth-child(3) > div > div:nth-child(2)')); - var SchoolAssociationsLabel = element(by.css('.col-12:nth-child(2) > .col-12')); - var SchoolAssociationsTextBox = element(by.name('SelectedSchool')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var SelectNewSchoolAssociation = element(by.id('ngb-typeahead-22-0')); - var AssociatedSchoolListOne = element(by.css('.list-group-item')); - var IndicatesRequiredFieldsLabelTwo = element(by.css('.ng-invalid > div:nth-child(3) > div > div:nth-child(1)')); - var EmailInstructionsTwo = element(by.css('.ng-invalid > div:nth-child(3) > div > div:nth-child(2)')); - var ExistingSearchTextBox = element(by.css('.form-control')); - var EditExistingStudentsTab = element(by.linkText('EDIT EXISTING STUDENT')); - var SelectNewlyCreatedStudent = element(by.id('ngb-typeahead-23-0')); - var StudentId = element(by.css('.col-12:nth-child(1) > .col-12:nth-child(1)')); - var StudentFirstNameLabelTwo = element(by.css('.col-12 > .col-12:nth-child(2)')); - var StudentLastNameLabelTwo = element(by.css('.col-12:nth-child(3)')); - var StudentBirthdateLabelTwo = element(by.css('.col-12:nth-child(4)')); - var StudentUsernameLabelTwo = element(by.css('.col-12:nth-child(5)')); - var StudentPasswordLabelTwo = element(by.css('.col-12:nth-child(6)')); - var IndicatesRequiredFieldsLabelThree = element(by.css('div:nth-child(4) > div > div:nth-child(1)')); - var EmailInstructionsThree = element(by.css('div:nth-child(4) > div > div:nth-child(2)')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageStudentsTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Students'); - expect(AddNewsStudentsTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewsStudentsTab.getText()).toEqual('ADD NEW STUDENT'); - expect(EditExistingStudentsTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingStudentsTab.getText()).toEqual('EDIT EXISTING STUDENT'); - expect(await StudentFirstNameLabel.getText()).toEqual('Student First Name*'); - expect(await StudentFirstNameTextBox.getAttribute('placeholder')).toEqual('First Name (min. 2 characters)'); - expect(await StudentLastNameLabel.getText()).toEqual('Student Last Name*'); - expect(await StudentLastNameTextBox.getAttribute('placeholder')).toEqual('Last Name (min. 2 characters)'); - expect(await StudentBirthdateLabel.getText()).toEqual('Birthdate*'); - expect(await StudentUsernameLabel.getText()).toEqual('User Name*'); - expect(await StudentUsernameTextBox.getAttribute('placeholder')).toEqual('User Name (min. 4 characters)'); - expect(await StudentPasswordLabel.getText()).toEqual('Password*'); - expect(await StudentPasswordTextBox.getAttribute('placeholder')).toEqual('Password (min. 6 characters)'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await EmailInstructions.getText()).toEqual("Using an email address as a username is preferred. If you do, we will update the student's profile and save the email address for future notifications."); - expect(await SchoolAssociationsLabel.getText()).toEqual('School Associations*'); - expect(await SchoolAssociationsTextBox.getAttribute('placeholder')).toEqual('Search and Add a School'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await StudentFirstNameTextBox.sendKeys('HAL 9000').then(function() { - browser.sleep(1500); - }); - await StudentLastNameTextBox.sendKeys(browser.params.student).then(function() { - browser.sleep(1500); - }); - await StudentBirthdateTextBox.sendKeys('11112011').then(function() { - browser.sleep(1500); - }); - await StudentUsernameTextBox.sendKeys('HAL9000@' + browser.params.email).then(function() { - browser.sleep(1500); - }); - await StudentPasswordTextBox.sendKeys('J@!234').then(function() { - browser.sleep(1500); - }); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - expect(await EmailInstructionsTwo.getText()).toEqual("Using an email address as a username is preferred. If you do, we will update the student's profile and save the email address for future notifications."); - await SchoolAssociationsTextBox.sendKeys(browser.params.school).then(function() { - browser.sleep(2500); - }); - await SelectNewSchoolAssociation.click().then(function() { - browser.sleep(2500); - }); - expect(await AssociatedSchoolListOne.getText()).toEqual(' ' + browser.params.school + ' (The Matrix)'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('New student has been saved successfully.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - await EditExistingStudentsTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewsStudentsTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewsStudentsTab.getText()).toEqual('ADD NEW STUDENT'); - expect(EditExistingStudentsTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingStudentsTab.getText()).toEqual('EDIT EXISTING STUDENT'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for a Student by school or name'); - await ExistingSearchTextBox.click().then(function() { - browser.sleep(2500); - }); - await SelectNewlyCreatedStudent.click().then(function() { - browser.sleep(2500); - }); - expect(await StudentId.getText()).toContain('Student Id: '); - expect(await StudentFirstNameLabelTwo.getText()).toEqual('Student First Name*'); - expect(await StudentFirstNameTextBox.getAttribute('value')).toEqual('Hal 9000'); - expect(await StudentLastNameLabelTwo.getText()).toEqual('Student Last Name*'); - expect(await StudentLastNameTextBox.getAttribute('value')).toEqual(browser.params.student); - expect(await StudentBirthdateLabelTwo.getText()).toEqual('Birthdate*'); - expect(await StudentBirthdateTextBox.getAttribute('value')).toEqual('2011-11-11'); - expect(await StudentUsernameLabelTwo.getText()).toEqual('User Name*'); - expect(await StudentUsernameTextBox.getAttribute('value')).toEqual('HAL9000@' + browser.params.email); - expect(await StudentPasswordLabelTwo.getText()).toEqual('Password*'); - expect(await StudentPasswordTextBox.getAttribute('value')).toEqual('J@!234'); - expect(await IndicatesRequiredFieldsLabelThree.getText()).toEqual('* indicates require fields.'); - expect(await EmailInstructionsThree.getText()).toEqual("Using an email address as a username is preferred. If you do, we will update the student's profile and save the email address for future notifications."); - expect(await AssociatedSchoolListOne.getText()).toEqual(' ' + browser.params.school + ' (The Matrix)'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function AddStudentToClass() { - it(': AddStudentToClass, should add newly created student to newly created class', async function () { - var ManageClassesTile = element(by.css('.col-lg-2:nth-child(4) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var AddNewClassesTab = element(by.linkText('ADD NEW CLASS')); - var SchoolNameLabel = element(by.css('.col-12:nth-child(1)')); - var SchoolNameTextBox = element(by.name('SelectedSchool')); - var TeacherNameLabel = element(by.css('.row:nth-child(4) > .col-12:nth-child(2)')); - var TeacherNameTextBox = element(by.name('SelectedTeacher')); - var ClassNameLabel = element(by.css('.col-12:nth-child(3)')); - var ClassNameTextBox = element(by.name('ClassName')); - var ClassPeriodLabel = element(by.css('.col-12:nth-child(4)')); - var ClassPeriodTextBox = element(by.name('Period')); - var AddToExistingSimulationLabel = element(by.css('.col-12:nth-child(5)')); - var AddToExistintSimulationTextBox = element(by.name('SelectedSimulation')); - var NumberOfStudentsLabel = element(by.css('.col-12:nth-child(6)')); - var NumberOfStudentsTextBox = element(by.name('ClassSize')); - var RemoveColumnHeader = element(by.css('.table-primary > td:nth-child(1)')); - var NameColumnHeader = element(by.css('td:nth-child(2)')); - var BirthDateColumnHeader = element(by.css('td:nth-child(3)')); - var SearchAndAddStudentTextBox = element(by.css('.input-group > .ng-untouched')); - var TotalStudentsLabel = element(by.css('td > span:nth-child(2)')); - var IndicatesRequiredFieldsLabel = element(by.css('div:nth-child(5) > div:nth-child(1)')); - var EditExistingClassesTab = element(by.linkText('EDIT EXISTING CLASS')); - var ExistingSearchTextBox = element(by.css('.form-control')); - var SelectNewlyCreatedSchool = element(by.id('ngb-typeahead-29-0')); - var ClassId = element(by.css('.col-12:nth-child(1)')); - var ConnectionCode = element(by.css('.col-sm-6:nth-child(2)')); - var SchoolNameText = element(by.css('.col-12:nth-child(3)')); - var TeacherNameLabelTwo = element(by.css('.col-12:nth-child(4)')); - var ClassNameLabelTwo = element(by.css('.col-12:nth-child(5)')); - var ClassPeriodLabelTwo = element(by.css('.col-12:nth-child(6)')); - var AddToExistingSimulationLabelTwo = element(by.css('.col-12:nth-child(7)')); - var NumberOfStudentsLabelTwo = element(by.css('.col-12:nth-child(8)')); - var EnrolledStudentNameOne = element(by.css('tbody > tr:nth-child(1) > td:nth-child(2)')); - var EnrolledStudentDOBOne = element(by.css('tbody > tr:nth-child(1) > td:nth-child(3)')); - var SearchAndAddStudentTextBoxTwo = element(by.css('.input-group:nth-child(1) > .form-control')); - var IndicatesRequiredFieldsLabelTwo = element(by.css('div:nth-child(6) > div:nth-child(1)')); - var SelectNewlyCreatedStudent = element(by.id('ngb-typeahead-32-0')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageClassesTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Classes'); - expect(AddNewClassesTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewClassesTab.getText()).toEqual('ADD NEW CLASS'); - expect(EditExistingClassesTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingClassesTab.getText()).toEqual('EDIT EXISTING CLASS'); - expect(await SchoolNameLabel.getText()).toEqual('School Name*'); - expect(await SchoolNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a School'); - expect(await TeacherNameLabel.getText()).toEqual('Teacher Name*'); - expect(await TeacherNameTextBox.getAttribute('placeholder')).toEqual('Search and Select a Teacher by Name or Email'); - expect(await ClassNameLabel.getText()).toEqual('Class Name*'); - expect(await ClassPeriodLabel.getText()).toEqual('Period*'); - expect(await AddToExistingSimulationLabel.getText()).toEqual('Add to Existing Simulation'); - expect(await AddToExistintSimulationTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await NumberOfStudentsLabel.getText()).toEqual('Number of Students*'); - expect(await NumberOfStudentsTextBox.getAttribute('value')).toEqual('0'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await NameColumnHeader.getText()).toEqual('Name'); - expect(await BirthDateColumnHeader.getText()).toEqual('Birthdate'); - expect(await SearchAndAddStudentTextBox.getAttribute('placeholder')).toEqual('Search and Select a School'); - expect(await TotalStudentsLabel.getText()).toEqual('0'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await EditExistingClassesTab.click().then(function() { - browser.sleep(2500); - }); - expect(AddNewClassesTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewClassesTab.getText()).toEqual('ADD NEW CLASS'); - expect(EditExistingClassesTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingClassesTab.getText()).toEqual('EDIT EXISTING CLASS'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search and Select a Class by name, school, or teacher'); - await ExistingSearchTextBox.click().then(function() { - browser.sleep(2500); - }); - await ExistingSearchTextBox.sendKeys(browser.params.school).then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedSchool.click().then(function() { - browser.sleep(2500); - }); - //expect(await ClassId.getText()).toEqual('Class Id: 34835'); - //expect(await ConnectionCode.getText()).toEqual('Connection Code: IOOL2PR1'); - expect(await SchoolNameText.getText()).toContain('School Name*'); - expect(await SchoolNameText.getText()).toContain(browser.params.school); - expect(await TeacherNameLabelTwo.getText()).toEqual('Teacher Name*'); - expect(await TeacherNameTextBox.getAttribute('value')).toEqual('T-800 ' + browser.params.teacher + ' (' + browser.params.email + '@automation.com)'); - expect(await ClassNameLabelTwo.getText()).toEqual('Class Name*'); - expect(await ClassNameTextBox.getAttribute('value')).toEqual(browser.params.class); - expect(await ClassPeriodLabelTwo.getText()).toEqual('Period*'); - expect(await ClassPeriodTextBox.getAttribute('value')).toEqual('5'); - expect(await AddToExistingSimulationLabelTwo.getText()).toEqual('Add to Existing Simulation'); - expect(await AddToExistintSimulationTextBox.getAttribute('placeholder')).toEqual('Search and Select a Simulation'); - expect(await NumberOfStudentsLabelTwo.getText()).toEqual('Number of Students*'); - expect(await NumberOfStudentsTextBox.getAttribute('value')).toEqual('25'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await NameColumnHeader.getText()).toEqual('Name'); - expect(await BirthDateColumnHeader.getText()).toEqual('Birthdate'); - expect(await SearchAndAddStudentTextBoxTwo.getAttribute('placeholder')).toEqual('Search and Add a student'); - await SearchAndAddStudentTextBoxTwo.sendKeys(browser.params.student).then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedStudent.click().then(function() { - browser.sleep(2500); - }); - expect(await EnrolledStudentNameOne.getText()).toEqual('HAL 9000 ' + browser.params.student); - expect(await EnrolledStudentDOBOne.getText()).toEqual('2011-11-11'); - expect(await TotalStudentsLabel.getText()).toEqual('1'); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('Change to existing class has been saved successfully'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(AddNewClassesTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewClassesTab.getText()).toEqual('ADD NEW CLASS'); - expect(EditExistingClassesTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingClassesTab.getText()).toEqual('EDIT EXISTING CLASS'); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search and Select a Class by name, school, or teacher'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function ManageSimulations() { - it(': ManageSimulations, should interact with Manage Simulations page and add a new simulation.', async function () { - var ManageSimulationsTile = element(by.css('.col-lg-2:nth-child(6) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var AddNewSimulationsTab = element(by.linkText('ADD NEW SIMULATION')); - var SimulationNameLabel = element(by.css('.col-12:nth-child(1)')); - var SimulationNameTextBox = element(by.name('SimulationName')); - var SimulationStartDateLabel = element(by.css('.col-sm-6:nth-child(2)')); - var SimulationStartDateTextBox = element(by.css('.col-12:nth-child(2) > .input-group > .form-control:nth-child(1)')); - var SimulationStartDateTextBoxTwo = element(by.css('.input-group:nth-child(2) > .ng-untouched:nth-child(1)')); - var SimulationStartTimeTextBox = element(by.css('.col-12:nth-child(2) > .input-group > .ng-untouched')); - var SimulationEndDateLabel = element(by.css('.col-12:nth-child(3)')); - var SimulationEndDateTextBox = element(by.css('.input-group:nth-child(2) > .ng-untouched:nth-child(1)')); - var SimulationEndTimeTextBox = element(by.css('.input-group:nth-child(2) > .ng-untouched')); - var SimulationEndTimeTextBoxTwo = element(by.css('.col-12:nth-child(3) .ng-untouched')); - var MaximumStudentsLabel = element(by.css('.col-12:nth-child(4)')); - var MaximumStudentsTextBox = element(by.name('MaxStudents')); - var MaximumOccupationsLabel = element(by.css('.col-12:nth-child(5)')); - var MaximumOccupationsTextBox = element(by.name('MaxOccupations')); - var RemoveColumnHeader = element(by.css('.table-primary > td:nth-child(1)')); - var ClassColumnHeader = element(by.css('.table-primary > td:nth-child(2)')); - var SchoolColumnHeader = element(by.css('.table-primary > td:nth-child(3)')); - var ConnectionCodeColumnHeader = element(by.css('td:nth-child(4)')); - var ClassSizeColumnHeader = element(by.css('td:nth-child(5)')); - var EnrolledStudentsColumnHeader = element(by.css('td:nth-child(6)')); - var SearchAddClassByNameSchoolOrTeacherTextBox = element(by.css('.input-group:nth-child(1) > .form-control')); - var SelectNewlyCreatedClass = element(by.id('ngb-typeahead-34-0')); - var TotalLabel = element(by.css('tfoot td:nth-child(1)')); - var ClassSizeCount = element(by.css('tfoot td:nth-child(2)')); - var EnrolledStudentsCount = element(by.css('tfoot td:nth-child(3)')); - var ClassNameAdded = element(by.css('tbody td:nth-child(2)')); - var SchoolNameAdded = element(by.css('tbody td:nth-child(3)')); - var ConnectionCodeAdded = element(by.css('tbody td:nth-child(4)')); - var ClassSizeAdded = element(by.css('tbody td:nth-child(5)')); - var EnrolledStudentAdded = element(by.css('tbody td:nth-child(6)')); - var IndicatesRequiredFieldsLabel = element(by.css('.ng-dirty > div:nth-child(2) > div:nth-child(1)')); - var SimulationEndDateTextBoxTwo = element(by.css('.col-12:nth-child(3) .form-control:nth-child(1)')); - var SearchAddClassByNameSchoolOrTeacherTextBoxTwo = element(by.css('.ng-valid:nth-child(1)')); - var EditExistingSimulationsTab = element(by.linkText('EDIT EXISTING SIMULATION')); - var ExistingSearchTextBox = element(by.css('.form-control')); - var SelectNewlyCreatedSimulation = element(by.id('ngb-typeahead-35-0')); - var IndicatesRequiredFieldsLabelTwo = element(by.css('.ng-pristine > div:nth-child(3) > div:nth-child(1)')); - var CancelButton = element(by.css('.btn-outline-primary')); - var SaveButton = element(by.css('.btn:nth-child(2)')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageSimulationsTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Simulations'); - expect(AddNewSimulationsTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewSimulationsTab.getText()).toEqual('ADD NEW SIMULATION'); - expect(EditExistingSimulationsTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingSimulationsTab.getText()).toEqual('EDIT EXISTING SIMULATION'); - expect(await SimulationNameLabel.getText()).toEqual('Simulation Name*'); - await SimulationNameTextBox.sendKeys(browser.params.simulation).then(function() { - browser.sleep(1500); - }); - expect(await SimulationStartDateLabel.getText()).toEqual('Start Date/Time*'); - expect(await SimulationStartDateTextBox.getAttribute('placeholder')).toEqual('mm/dd/yyyy --:-- --'); - await SimulationStartDateTextBox.sendKeys(browser.params.simulationStartEndDate).then(function() { - browser.sleep(1500); - }); - await SimulationStartDateTextBox.sendKeys(protractor.Key.TAB).then(function() { - browser.sleep(1500); - }); - await SimulationStartTimeTextBox.sendKeys('0800AM').then(function() { - browser.sleep(1000); - }); - expect(await SimulationEndDateLabel.getText()).toEqual('End Date/Time*'); - expect(await SimulationEndDateTextBox.getAttribute('placeholder')).toEqual('mm/dd/yyyy --:-- --'); - await SimulationStartDateTextBox.sendKeys(protractor.Key.TAB).then(function() { - browser.sleep(1500); - }); - await SimulationEndDateTextBox.sendKeys(browser.params.simulationStartEndDate).then(function() { - browser.sleep(1500); - }); - await SimulationEndDateTextBox.sendKeys(protractor.Key.TAB).then(function() { - browser.sleep(1500); - }); - await SimulationEndTimeTextBox.sendKeys('1000PM').then(function() { - browser.sleep(1500); - }); - expect(await MaximumStudentsLabel.getText()).toEqual('Maximum Students*'); - expect(await MaximumStudentsTextBox.getAttribute('value')).toEqual('0'); - await MaximumStudentsTextBox.clear().then(function() { - browser.sleep(1500); - }); - await MaximumStudentsTextBox.sendKeys('25').then(function() { - browser.sleep(1500); - }); - expect(await MaximumOccupationsLabel.getText()).toEqual('Maximum Occupations'); - expect(await MaximumOccupationsTextBox.getAttribute('value')).toEqual('179'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await ClassColumnHeader.getText()).toEqual('Class'); - expect(await SchoolColumnHeader.getText()).toEqual('School'); - expect(await ConnectionCodeColumnHeader.getText()).toEqual('Connection Code'); - expect(await ClassSizeColumnHeader.getText()).toEqual('Class Size'); - expect(await EnrolledStudentsColumnHeader.getText()).toEqual('Enrolled Students'); - expect(await SearchAddClassByNameSchoolOrTeacherTextBox.getAttribute('placeholder')).toEqual('Search and Add a Class by name, school, or teacher'); - expect(await TotalLabel.getText()).toEqual('Total:'); - expect(await ClassSizeCount.getText()).toEqual('0'); - expect(await EnrolledStudentsCount.getText()).toEqual('0'); - await browser.driver.getCurrentUrl().then(async function(actualURL) { - if(actualURL.indexOf('https://app-qa.journeysmap.com/UI/Zone/Admin') !== -1) { - await SearchAddClassByNameSchoolOrTeacherTextBox.sendKeys('Automated Class142021').then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedClass.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('This class is already in New Year Simulation. Are you sure you want to move it to this simulation?'); - browser.switchTo().alert().dismiss(); - browser.sleep(2500); - }); - } else { - await SearchAddClassByNameSchoolOrTeacherTextBox.sendKeys('Baseball Fundamentals').then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedClass.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('This class is already in November 11 Simulation. Are you sure you want to move it to this simulation?'); - browser.switchTo().alert().dismiss(); - browser.sleep(2500); - }); - } - }); - await SearchAddClassByNameSchoolOrTeacherTextBox.sendKeys(browser.params.class).then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedClass.click().then(function() { - browser.sleep(2500); - }); - expect(await TotalLabel.getText()).toEqual('Total:'); - expect(await ClassSizeCount.getText()).toEqual('25'); - expect(await EnrolledStudentsCount.getText()).toEqual('1'); - expect(await ClassNameAdded.getText()).toEqual(browser.params.class + ' 5'); - expect(await SchoolNameAdded.getText()).toEqual(browser.params.school); - expect(await ClassSizeAdded.getText()).toEqual('25'); - expect(await EnrolledStudentAdded.getText()).toEqual('1'); - expect(await TotalLabel.getText()).toEqual('Total:'); - expect(await ClassSizeCount.getText()).toEqual('25'); - expect(await EnrolledStudentsCount.getText()).toEqual('1'); - expect(await IndicatesRequiredFieldsLabel.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await SaveButton.click().then(function() { - browser.sleep(2500); - var alertDialog = browser.switchTo().alert(); - expect(alertDialog.getText()).toEqual('New simulation has been saved successfully.'); - browser.switchTo().alert().accept(); - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Simulations'); - expect(AddNewSimulationsTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await AddNewSimulationsTab.getText()).toEqual('ADD NEW SIMULATION'); - expect(EditExistingSimulationsTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await EditExistingSimulationsTab.getText()).toEqual('EDIT EXISTING SIMULATION'); - expect(await SimulationNameLabel.getText()).toEqual('Simulation Name*'); - expect(await SimulationStartDateLabel.getText()).toEqual('Start Date/Time*'); - expect(await SimulationStartDateTextBox.getAttribute('placeholder')).toEqual('mm/dd/yyyy --:-- --'); - expect(await SimulationEndDateLabel.getText()).toEqual('End Date/Time*'); - expect(await SimulationEndDateTextBoxTwo.getAttribute('placeholder')).toEqual('mm/dd/yyyy --:-- --'); - expect(await MaximumStudentsLabel.getText()).toEqual('Maximum Students*'); - expect(await MaximumStudentsTextBox.getAttribute('value')).toEqual('0'); - expect(await MaximumOccupationsLabel.getText()).toEqual('Maximum Occupations'); - expect(await MaximumOccupationsTextBox.getAttribute('value')).toEqual('179'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await ClassColumnHeader.getText()).toEqual('Class'); - expect(await SchoolColumnHeader.getText()).toEqual('School'); - expect(await ConnectionCodeColumnHeader.getText()).toEqual('Connection Code'); - expect(await ClassSizeColumnHeader.getText()).toEqual('Class Size'); - expect(await EnrolledStudentsColumnHeader.getText()).toEqual('Enrolled Students'); - expect(await SearchAddClassByNameSchoolOrTeacherTextBoxTwo.getAttribute('placeholder')).toEqual('Search and Add a Class by name, school, or teacher'); - expect(await TotalLabel.getText()).toEqual('Total:'); - expect(await ClassSizeCount.getText()).toEqual('0'); - expect(await EnrolledStudentsCount.getText()).toEqual('0'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await EditExistingSimulationsTab.click().then(function() { - browser.sleep(2500); - }); - expect(await ExistingSearchTextBox.getAttribute('placeholder')).toEqual('Search for and select a simulation to edit'); - await ExistingSearchTextBox.sendKeys(browser.params.simulation).then(function() { - browser.sleep(1500); - }); - await SelectNewlyCreatedSimulation.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Simulations'); - expect(AddNewSimulationsTab.getCssValue('background-color')).toBe('rgba(138, 105, 131, 1)'); //purple: clickable - expect(await AddNewSimulationsTab.getText()).toEqual('ADD NEW SIMULATION'); - expect(EditExistingSimulationsTab.getCssValue('background-color')).toBe('rgba(255, 255, 255, 1)'); //white: active - expect(await EditExistingSimulationsTab.getText()).toEqual('EDIT EXISTING SIMULATION'); - expect(await SimulationNameLabel.getText()).toEqual('Simulation Name*'); - expect(await SimulationNameTextBox.getAttribute('value')).toEqual(browser.params.simulation); - expect(await SimulationStartDateLabel.getText()).toEqual('Start Date/Time*'); - expect(await SimulationStartDateTextBoxTwo.getAttribute('value')).toEqual(browser.params.simulationStartDateTime); - expect(await SimulationEndDateLabel.getText()).toEqual('End Date/Time*'); - expect(await SimulationEndTimeTextBoxTwo.getAttribute('value')).toEqual(browser.params.simulationEndDateTime); - expect(await MaximumStudentsLabel.getText()).toEqual('Maximum Students*'); - expect(await MaximumStudentsTextBox.getAttribute('value')).toEqual('25'); - expect(await MaximumOccupationsLabel.getText()).toEqual('Maximum Occupations'); - expect(await MaximumOccupationsTextBox.getAttribute('value')).toEqual('179'); - expect(await RemoveColumnHeader.getText()).toEqual('Remove'); - expect(await ClassColumnHeader.getText()).toEqual('Class'); - expect(await SchoolColumnHeader.getText()).toEqual('School'); - expect(await ConnectionCodeColumnHeader.getText()).toEqual('Connection Code'); - expect(await ClassSizeColumnHeader.getText()).toEqual('Class Size'); - expect(await EnrolledStudentsColumnHeader.getText()).toEqual('Enrolled Students'); - expect(await SearchAddClassByNameSchoolOrTeacherTextBox.getAttribute('placeholder')).toEqual('Search and Add a Class by name, school, or teacher'); - expect(await ClassNameAdded.getText()).toEqual(browser.params.class + ' P-5'); - expect(await SchoolNameAdded.getText()).toEqual(browser.params.school); - //expect(await ConnectionCodeAdded.getText()).toEqual('Q6XI4H7D'); - expect(await ClassSizeAdded.getText()).toEqual('25'); - expect(await EnrolledStudentsCount.getText()).toEqual('1'); - expect(await TotalLabel.getText()).toEqual('Total:'); - expect(await ClassSizeCount.getText()).toEqual('25'); - expect(await EnrolledStudentsCount.getText()).toEqual('1'); - expect(await IndicatesRequiredFieldsLabelTwo.getText()).toEqual('* indicates require fields.'); - expect(await CancelButton.getText()).toEqual('CANCEL'); - expect(await SaveButton.getText()).toEqual('SAVE'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function ManageReports() { - it(': ManageReports, should interact with Manage Reports page, select validate report.', async function () { - var ManageReportsTile = element(by.css('.col-lg-2:nth-child(7) tr:nth-child(1) > td')); - var PageTitle = element(by.css('#title')); - var PageSubTitle = element(by.css('.bg-secondary')); - var SelectASimulationLabel = element(by.css('.row > .col-12:nth-child(1)')); - var SelectASimulationTextBox = element(by.name('SelectedSimulation')); - var SelectSimulation = element(by.id('ngb-typeahead-37-0')); - var SelectASchoolLabel = element(by.css('.row:nth-child(2) > .col-12:nth-child(2)')); - var SelectASchoolTextBox = element(by.name('SelectedSchool')); - var SelectATeacherLabel = element(by.css('.col-12:nth-child(3)')); - var SelectATeacherTextBox = element(by.name('SelectedTeacher')); - var SelectAClassLabel = element(by.css('.col-12:nth-child(4)')); - var SelectAClassTextBox = element(by.name('SelectedClass')); - var StudentNameHeaderColumn = element(by.css('th:nth-child(1)')); - var StudentNameOne = element(by.css('td:nth-child(1)')); - var StudentNameTwo = element(by.css('tr:nth-child(2) > td:nth-child(1)')); - var StudentNameThree = element(by.css('tr:nth-child(3) > td:nth-child(1)')); - var StudentNameFour = element(by.css('tr:nth-child(4) > td:nth-child(1)')); - var StudentNameFive = element(by.css('tr:nth-child(5) > td:nth-child(1)')); - var StudentNameSix = element(by.css('tr:nth-child(6) > td:nth-child(1)')); - var StudentNameSeven = element(by.css('tr:nth-child(7) > td:nth-child(1)')); - var StudentNameEight = element(by.css('tr:nth-child(8) > td:nth-child(1)')); - var PreTestHeaderColumn = element(by.css('th:nth-child(2)')); - var PreTestOne = element(by.css('td:nth-child(2) > span')); - var PreTestCompleteLinkOne = element(by.css('tr:nth-child(1) a')); - var PrePostTestDIVTotalPointsLabel = element(by.css('td:nth-child(1) > div > div > div:nth-child(1)')); - var PrePostTestDIVTotalPointsData = element(by.css('td:nth-child(1) div:nth-child(2)')); - var PrePostTestDIVTitle = element(by.css('table > tr > td:nth-child(2)')); - var PrePostTestDIVTotalScoreLabel = element(by.css('td:nth-child(3) > div > div > div:nth-child(1)')); - var PrePostTestDIVTotalScoreData = element(by.css('td:nth-child(3) div:nth-child(2)')); - var PrePostTestDIVQuestionColumnHeader = element(by.css('.sticky-top:nth-child(2)')); - var PrePostTestDIVAnswerColumnHeader = element(by.css('.sticky-top:nth-child(3)')); - var PrePostTestDIVPointsColumnHeader = element(by.css('.sticky-top:nth-child(4)')); - var PrePostTestDIVQuestionNumberOne = element(by.css('.ng-star-inserted:nth-child(1) > td:nth-child(1)')); - var PrePostTestDIVQuestionOne = element(by.css('.ng-star-inserted:nth-child(1) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerOne = element(by.css('.ng-star-inserted:nth-child(1) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredOne = element(by.css('.ng-star-inserted:nth-child(1) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberTwo = element(by.css('.ng-star-inserted:nth-child(2) > td:nth-child(1)')); - var PrePostTestDIVQuestionTwo = element(by.css('.ng-star-inserted:nth-child(2) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerTwo = element(by.css('.ng-star-inserted:nth-child(2) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredTwo = element(by.css('.ng-star-inserted:nth-child(2) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberThree = element(by.css('.ng-star-inserted:nth-child(3) > td:nth-child(1)')); - var PrePostTestDIVQuestionThree = element(by.css('.ng-star-inserted:nth-child(3) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerThree = element(by.css('.ng-star-inserted:nth-child(3) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredThree = element(by.css('.ng-star-inserted:nth-child(3) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberFour = element(by.css('.ng-star-inserted:nth-child(4) > td:nth-child(1)')); - var PrePostTestDIVQuestionFour = element(by.css('.ng-star-inserted:nth-child(4) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerFour = element(by.css('.ng-star-inserted:nth-child(4) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredFour = element(by.css('.ng-star-inserted:nth-child(4) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberFive = element(by.css('.ng-star-inserted:nth-child(5) > td:nth-child(1)')); - var PrePostTestDIVQuestionFive = element(by.css('.ng-star-inserted:nth-child(5) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerFive = element(by.css('.ng-star-inserted:nth-child(5) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredFive = element(by.css('.ng-star-inserted:nth-child(5) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberSix = element(by.css('.ng-star-inserted:nth-child(6) > td:nth-child(1)')); - var PrePostTestDIVQuestionSix = element(by.css('.ng-star-inserted:nth-child(6) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerSix = element(by.css('.ng-star-inserted:nth-child(6) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredSix = element(by.css('.ng-star-inserted:nth-child(6) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberSeven = element(by.css('.ng-star-inserted:nth-child(7) > td:nth-child(1)')); - var PrePostTestDIVQuestionSeven = element(by.css('.ng-star-inserted:nth-child(7) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerSeven = element(by.css('.ng-star-inserted:nth-child(7) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredSeven = element(by.css('.ng-star-inserted:nth-child(7) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberEight = element(by.css('.ng-star-inserted:nth-child(8) > td:nth-child(1)')); - var PrePostTestDIVQuestionEight = element(by.css('.ng-star-inserted:nth-child(8) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerEight = element(by.css('.ng-star-inserted:nth-child(8) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredEight = element(by.css('.ng-star-inserted:nth-child(8) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberNine = element(by.css('.ng-star-inserted:nth-child(9) > td:nth-child(1)')); - var PrePostTestDIVQuestionNine = element(by.css('.ng-star-inserted:nth-child(9) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerNine = element(by.css('.ng-star-inserted:nth-child(9) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredNine = element(by.css('.ng-star-inserted:nth-child(9) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberTen = element(by.css('.ng-star-inserted:nth-child(10) > td:nth-child(1)')); - var PrePostTestDIVQuestionTen = element(by.css('.ng-star-inserted:nth-child(10) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerTen = element(by.css('.ng-star-inserted:nth-child(10) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredTen = element(by.css('.ng-star-inserted:nth-child(10) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberEleven = element(by.css('.ng-star-inserted:nth-child(11) > td:nth-child(1)')); - var PrePostTestDIVQuestionEleven = element(by.css('.ng-star-inserted:nth-child(11) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerEleven = element(by.css('.ng-star-inserted:nth-child(11) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredEleven = element(by.css('.ng-star-inserted:nth-child(11) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberTwelve = element(by.css('.ng-star-inserted:nth-child(12) > td:nth-child(1)')); - var PrePostTestDIVQuestionTwelve = element(by.css('.ng-star-inserted:nth-child(12) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerTwelve = element(by.css('.ng-star-inserted:nth-child(12) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredTwelve = element(by.css('.ng-star-inserted:nth-child(12) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberThirteen = element(by.css('.ng-star-inserted:nth-child(13) > td:nth-child(1)')); - var PrePostTestDIVQuestionThirteen = element(by.css('.ng-star-inserted:nth-child(13) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerThirteen = element(by.css('.ng-star-inserted:nth-child(13) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredThirteen = element(by.css('.ng-star-inserted:nth-child(13) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberFourteen = element(by.css('.ng-star-inserted:nth-child(14) > td:nth-child(1)')); - var PrePostTestDIVQuestionFourteen = element(by.css('.ng-star-inserted:nth-child(14) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerFourteen = element(by.css('.ng-star-inserted:nth-child(14) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredFourteen = element(by.css('.ng-star-inserted:nth-child(14) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberFifteen = element(by.css('.ng-star-inserted:nth-child(15) > td:nth-child(1)')); - var PrePostTestDIVQuestionFifteen = element(by.css('.ng-star-inserted:nth-child(15) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerFifteen = element(by.css('.ng-star-inserted:nth-child(15) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredFifteen = element(by.css('.ng-star-inserted:nth-child(15) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberSixteen = element(by.css('.ng-star-inserted:nth-child(16) > td:nth-child(1)')); - var PrePostTestDIVQuestionSixteen = element(by.css('.ng-star-inserted:nth-child(16) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerSixteen = element(by.css('.ng-star-inserted:nth-child(16) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredSixteen = element(by.css('.ng-star-inserted:nth-child(16) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberSeventeen = element(by.css('.ng-star-inserted:nth-child(17) > td:nth-child(1)')); - var PrePostTestDIVQuestionSeventeen = element(by.css('.ng-star-inserted:nth-child(17) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerSeventeen = element(by.css('.ng-star-inserted:nth-child(17) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredSeventeen = element(by.css('.ng-star-inserted:nth-child(17) > td:nth-child(4)')); - var PrePostTestDIVQuestionNumberEighteen = element(by.css('.ng-star-inserted:nth-child(18) > td:nth-child(1)')); - var PrePostTestDIVQuestionEighteen = element(by.css('.ng-star-inserted:nth-child(18) > td:nth-child(2)')); - var PrePostTestDIVSelectedAnswerEighteen = element(by.css('.ng-star-inserted:nth-child(18) > td:nth-child(3)')); - var PrePostTestDIVPointsScoredEighteen = element(by.css('.ng-star-inserted:nth-child(18) > td:nth-child(4)')); - var DIVOKButton = element(by.css('div > .btn-primary')); - var PreTestTwo = element(by.css('tr:nth-child(2) > td:nth-child(2) > span')); - var PreTestCompleteLinkTwo = element(by.css('tr:nth-child(2) a')); - var PreTestThree = element(by.css('tr:nth-child(3) > td:nth-child(2) > span')); - var PreTestCompleteLinkThree = element(by.css('tr:nth-child(3) > td:nth-child(2) a')); - var PreTestFour = element(by.css('tr:nth-child(4) > td:nth-child(2) > span')); - var PreTestFive = element(by.css('tr:nth-child(5) > td:nth-child(2) > span')); - var PreTestCompleteLinkFive = element(by.css('tr:nth-child(5) > td:nth-child(2) a')); - var PreTestSix = element(by.css('tr:nth-child(6) > td:nth-child(2) > span')); - var PreTestCompleteLinkSix = element(by.css('tr:nth-child(6) a')); - var PreTestSeven = element(by.css('tr:nth-child(7) > td:nth-child(2) > span')); - var PreTestCompleteLinkSeven = element(by.css('tr:nth-child(7) a')); - var PreTestEight = element(by.css('tr:nth-child(8) > td:nth-child(2) > span')); - var InterestSurveyHeaderColumn = element(by.css('th:nth-child(3)')); - var InterstSurveyOne = element(by.css('td:nth-child(3)')); - var InterstSurveyTwo = element(by.css('tr:nth-child(2) > td:nth-child(3)')); - var InterstSurveyThree = element(by.css('tr:nth-child(3) > td:nth-child(3)')); - var InterstSurveyFour = element(by.css('tr:nth-child(4) > td:nth-child(3)')); - var InterstSurveyFive = element(by.css('tr:nth-child(5) > td:nth-child(3)')); - var InterstSurveySix = element(by.css('tr:nth-child(6) > td:nth-child(3)')); - var InterstSurveySeven = element(by.css('tr:nth-child(7) > td:nth-child(3)')); - var InterstSurveyEight = element(by.css('tr:nth-child(8) > td:nth-child(3)')); - var SkillsQuizHeaderColumn = element(by.css('th:nth-child(4)')); - var SkillsQuizOne = element(by.css('td:nth-child(4)')); - var SkillsQuizTwo = element(by.css('tr:nth-child(2) > td:nth-child(4)')); - var SkillsQuizThree = element(by.css('tr:nth-child(3) > td:nth-child(4)')); - var SkillsQuizFour = element(by.css('tr:nth-child(4) > td:nth-child(4)')); - var SkillsQuizFive = element(by.css('tr:nth-child(5) > td:nth-child(4)')); - var SkillsQuizSix = element(by.css('tr:nth-child(6) > td:nth-child(4)')); - var SkillsQuizSeven = element(by.css('tr:nth-child(7) > td:nth-child(4)')); - var SkillsQuizEight = element(by.css('tr:nth-child(8) > td:nth-child(4)')); - var CareerSelectionHeaderColumn = element(by.css('th:nth-child(5)')); - var CareerSelectionOne = element(by.css('td:nth-child(5) > span')); - var CareerSelectionTwo = element(by.css('tr:nth-child(2) > td:nth-child(5) > span')); - var CareerSelectionThree = element(by.css('tr:nth-child(3) > td:nth-child(5) > span')); - var CareerSelectedLinkThree = element(by.css('tr:nth-child(3) > td:nth-child(5) a')); - var CareerSelectedDIVCareerSelectedTitle = element(by.css('.ng-star-inserted > div > div:nth-child(1)')); - var CareerSelectedDIVCareerSelectedLabel = element(by.css('.ng-star-inserted > div > div > div > div:nth-child(1)')); - var CareerSelectedDIVCareerSelectedData = element(by.css('.ng-star-inserted > div > div div:nth-child(2)')); - var CareerSelectedDIVCareerSelectedAccountNumberLabel = element(by.css('div:nth-child(1) > div > div > div:nth-child(3)')); - var CareerSelectedDIVCareerSelectedAccountNumberData = element(by.css('div:nth-child(1) > div:nth-child(4)')); - var CareerSelectionFour = element(by.css('tr:nth-child(4) > td:nth-child(5) > span')); - var CareerSelectionFive = element(by.css('tr:nth-child(5) > td:nth-child(5) > span')); - var CareerSelectedLinkFive = element(by.css('tr:nth-child(5) > td:nth-child(5) a')); - var CareerSelectionSix = element(by.css('tr:nth-child(6) > td:nth-child(5) > span')); - var CareerSelectionSeven = element(by.css('tr:nth-child(7) > td:nth-child(5) > span')); - var CareerSelectionEight = element(by.css('tr:nth-child(8) > td:nth-child(5) > span')); - var PostTestHeaderColumn = element(by.css('th:nth-child(6)')); - var PostTestOne = element(by.css('td:nth-child(6) > span')); - var PostTestTwo = element(by.css('tr:nth-child(2) > td:nth-child(6) > span')); - var PostTestThree = element(by.css('tr:nth-child(3) > td:nth-child(6) > span')); - var PostTestCompleteLinkThree = element(by.css('td:nth-child(6) a')); - var PostTestFour = element(by.css('tr:nth-child(4) > td:nth-child(6) > span')); - var PostTestFive = element(by.css('tr:nth-child(5) > td:nth-child(6) > span')); - var PostTestSix = element(by.css('tr:nth-child(6) > td:nth-child(6) > span')); - var PostTestSeven = element(by.css('tr:nth-child(7) > td:nth-child(6) > span')); - var PostTestEight = element(by.css('tr:nth-child(8) > td:nth-child(6) > span')); - var BackToAdminDashboardLinkText = element(by.linkText('BACK TO ADMIN DASHBOARD')); - - await ManageReportsTile.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Manage Reports'); - expect(await PageSubTitle.getText()).toEqual('Most Recent Simulation'); - expect(await SelectASimulationLabel.getText()).toEqual('Select a Simulation'); - expect(await SelectASimulationTextBox.getAttribute('value')).toEqual('JH LatestSimulation The second'); - expect(await SelectASchoolLabel.getText()).toContain('Select a School'); - expect(await SelectASchoolTextBox.getAttribute('value')).toEqual('0: '); - expect(await SelectATeacherLabel.getText()).toContain('Select a Teacher'); - expect(await SelectATeacherTextBox.getAttribute('value')).toEqual('0: '); - expect(await SelectAClassLabel.getText()).toContain('Select a Class'); - expect(await SelectAClassTextBox.getAttribute('value')).toEqual('0: '); - expect(await StudentNameHeaderColumn.getText()).toEqual('STUDENT NAME'); - expect(await PreTestHeaderColumn.getText()).toEqual('PRE TEST'); - expect(await InterestSurveyHeaderColumn.getText()).toEqual('INTEREST SURVEY'); - expect(await SkillsQuizHeaderColumn.getText()).toEqual('SKILLS QUIZ'); - expect(await CareerSelectionHeaderColumn.getText()).toEqual('CAREER SELECTION'); - expect(await PostTestHeaderColumn.getText()).toEqual('POST TEST'); - expect(await StudentNameOne.getText()).toEqual('Gavin Cuauhtemoc'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('Jessica Biel'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Justin Archers'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Complete'); - expect(await SkillsQuizThree.getText()).toEqual('Complete'); - expect(await CareerSelectionThree.getText()).toEqual('Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Ysobel Ixchel'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Complete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - //Sort by Name - await StudentNameHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameHeaderColumn.getText()).toEqual('STUDENT NAME'); - expect(await PreTestHeaderColumn.getText()).toEqual('PRE TEST'); - expect(await InterestSurveyHeaderColumn.getText()).toEqual('INTEREST SURVEY'); - expect(await SkillsQuizHeaderColumn.getText()).toEqual('SKILLS QUIZ'); - expect(await CareerSelectionHeaderColumn.getText()).toEqual('CAREER SELECTION'); - expect(await PostTestHeaderColumn.getText()).toEqual('POST TEST'); - expect(await StudentNameOne.getText()).toEqual('Gavin Cuauhtemoc'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('Jessica Biel'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Justin Archers'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Complete'); - expect(await SkillsQuizThree.getText()).toEqual('Complete'); - expect(await CareerSelectionThree.getText()).toEqual('Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Ysobel Ixchel'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Complete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - await StudentNameHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameHeaderColumn.getText()).toEqual('STUDENT NAME'); - expect(await PreTestHeaderColumn.getText()).toEqual('PRE TEST'); - expect(await InterestSurveyHeaderColumn.getText()).toEqual('INTEREST SURVEY'); - expect(await SkillsQuizHeaderColumn.getText()).toEqual('SKILLS QUIZ'); - expect(await CareerSelectionHeaderColumn.getText()).toEqual('CAREER SELECTION'); - expect(await PostTestHeaderColumn.getText()).toEqual('POST TEST'); - expect(await StudentNameOne.getText()).toEqual('Ysobel Ixchel'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('Justin Archers'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Jessica Biel'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Complete'); - expect(await SkillsQuizThree.getText()).toEqual('Complete'); - expect(await CareerSelectionThree.getText()).toEqual('Not Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Gavin Cuauhtemoc'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Complete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - await StudentNameHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameHeaderColumn.getText()).toEqual('STUDENT NAME'); - expect(await PreTestHeaderColumn.getText()).toEqual('PRE TEST'); - expect(await InterestSurveyHeaderColumn.getText()).toEqual('INTEREST SURVEY'); - expect(await SkillsQuizHeaderColumn.getText()).toEqual('SKILLS QUIZ'); - expect(await CareerSelectionHeaderColumn.getText()).toEqual('CAREER SELECTION'); - expect(await PostTestHeaderColumn.getText()).toEqual('POST TEST'); - expect(await StudentNameOne.getText()).toEqual('Gavin Cuauhtemoc'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('Jessica Biel'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Justin Archers'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Complete'); - expect(await SkillsQuizThree.getText()).toEqual('Complete'); - expect(await CareerSelectionThree.getText()).toEqual('Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Ysobel Ixchel'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Complete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - //Retrieve Existing Simulation Report - Automated Simulation 1520211510 - await SelectASimulationTextBox.click().then(function() { - browser.sleep(2500); - }); - await SelectASimulationTextBox.sendKeys(protractor.Key.CONTROL, "a").then(function() { - browser.sleep(1000); - }); - await SelectASimulationTextBox.sendKeys(protractor.Key.DELETE).then(function() { - browser.sleep(1000); - }); - await SelectASimulationTextBox.sendKeys('Automated Simulation 1520211510').then(function() { - browser.sleep(1500); - }); - await SelectSimulation.click().then(function() { - browser.sleep(2500); - }); - await SelectASchoolTextBox.click().then(function() { - browser.sleep(2500); - }); - element(by.cssContainingText('option', 'Automated School 1520211510 (The Matrix)')).click(); - await SelectATeacherTextBox.click().then(function() { - browser.sleep(2500); - }); - element(by.cssContainingText('option', 'T-800 Automated1520211510')).click(); - await SelectAClassTextBox.click().then(function() { - browser.sleep(2500); - }); - element(by.cssContainingText('option', 'Automated Class 1520211510 5')).click(); - await SelectAClassLabel.click().then(function() { - browser.sleep(5000); - }); - expect(await StudentNameOne.getText()).toEqual('Ash Alien'); - expect(await PreTestOne.getText()).toEqual('Complete'); - await PreTestCompleteLinkOne.click().then(function() { - browser.sleep(2500); - }); - expect(await PrePostTestDIVTotalPointsLabel.getText()).toEqual('Total Points'); - expect(await PrePostTestDIVTotalPointsData.getText()).toEqual('49'); - expect(await PrePostTestDIVTitle.getText()).toEqual('Pre Test'); - expect(await PrePostTestDIVTotalScoreLabel.getText()).toEqual('Score'); - expect(await PrePostTestDIVTotalScoreData.getText()).toEqual('98%'); - expect(await PrePostTestDIVQuestionColumnHeader.getText()).toEqual('Question'); - expect(await PrePostTestDIVAnswerColumnHeader.getText()).toEqual('Answer'); - expect(await PrePostTestDIVPointsColumnHeader.getText()).toEqual('Points'); - expect(await PrePostTestDIVQuestionNumberOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionOne.getText()).toEqual('Career planning is done'); - expect(await PrePostTestDIVSelectedAnswerOne.getText()).toEqual('Throughout a lifetime'); - expect(await PrePostTestDIVPointsScoredOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTwo.getText()).toEqual('2'); - expect(await PrePostTestDIVQuestionTwo.getText()).toEqual('What are the three main types of taxes?'); - expect(await PrePostTestDIVSelectedAnswerTwo.getText()).toEqual('Income, sales, and property'); - expect(await PrePostTestDIVPointsScoredTwo.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberThree.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionThree.getText()).toEqual('The total amount of income made over one year after all taxes and deductions have been subtracted is:'); - expect(await PrePostTestDIVSelectedAnswerThree.getText()).toEqual('Net annual income'); - expect(await PrePostTestDIVPointsScoredThree.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFour.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionFour.getText()).toEqual('When it comes to personal savings, what does PYF stand for?'); - expect(await PrePostTestDIVSelectedAnswerFour.getText()).toEqual('Pay Yourself First'); - expect(await PrePostTestDIVPointsScoredFour.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFive.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionFive.getText()).toEqual('Which of the following might be a bad credit score'); - expect(await PrePostTestDIVSelectedAnswerFive.getText()).toEqual('550'); - expect(await PrePostTestDIVPointsScoredFive.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSix.getText()).toEqual('6'); - expect(await PrePostTestDIVQuestionSix.getText()).toEqual('To protect yourself against risk which of the following are the best choices:'); - expect(await PrePostTestDIVSelectedAnswerSix.getText()).toEqual('Both A and B'); - expect(await PrePostTestDIVPointsScoredSix.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSeven.getText()).toEqual('7'); - expect(await PrePostTestDIVQuestionSeven.getText()).toEqual('A record of income and expenditures for a given periord of time is:'); - expect(await PrePostTestDIVSelectedAnswerSeven.getText()).toEqual('Budget'); - expect(await PrePostTestDIVPointsScoredSeven.getText()).toEqual('1'); - browser.actions().mouseMove(PrePostTestDIVQuestionNumberEighteen).perform().then(function() { - browser.sleep(1000); - }); - expect(await PrePostTestDIVQuestionNumberEight.getText()).toEqual('8'); - expect(await PrePostTestDIVQuestionEight.getText()).toEqual('When budgeting, the first categories to consider are those that meet your:'); - expect(await PrePostTestDIVSelectedAnswerEight.getText()).toEqual('Needs'); - expect(await PrePostTestDIVPointsScoredEight.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberNine.getText()).toEqual('9'); - expect(await PrePostTestDIVQuestionNine.getText()).toEqual('Which factor is one way you should base decisions on where to invest your money:'); - expect(await PrePostTestDIVSelectedAnswerNine.getText()).toEqual('Interest earned vs. risk'); - expect(await PrePostTestDIVPointsScoredNine.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTen.getText()).toEqual('10'); - expect(await PrePostTestDIVQuestionTen.getText()).toEqual('I use a budget'); - expect(await PrePostTestDIVSelectedAnswerTen.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredTen.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberEleven.getText()).toEqual('11'); - expect(await PrePostTestDIVQuestionEleven.getText()).toEqual('I save money for the future'); - expect(await PrePostTestDIVSelectedAnswerEleven.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredEleven.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberTwelve.getText()).toEqual('12'); - expect(await PrePostTestDIVQuestionTwelve.getText()).toEqual('Starting to set my career goals now is important to me'); - expect(await PrePostTestDIVSelectedAnswerTwelve.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredTwelve.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberThirteen.getText()).toEqual('13'); - expect(await PrePostTestDIVQuestionThirteen.getText()).toEqual('I understand why I should start saving for retirement as soon as possible'); - expect(await PrePostTestDIVSelectedAnswerThirteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredThirteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberFourteen.getText()).toEqual('14'); - expect(await PrePostTestDIVQuestionFourteen.getText()).toEqual('I understand the choices I have to make to benefit from having good credit'); - expect(await PrePostTestDIVSelectedAnswerFourteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFourteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberFifteen.getText()).toEqual('15'); - expect(await PrePostTestDIVQuestionFifteen.getText()).toEqual('I expect to further my education after high school'); - expect(await PrePostTestDIVSelectedAnswerFifteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFifteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSixteen.getText()).toEqual('16'); - expect(await PrePostTestDIVQuestionSixteen.getText()).toEqual('I understand how to reach my financial and career goals'); - expect(await PrePostTestDIVSelectedAnswerSixteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSixteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSeventeen.getText()).toEqual('17'); - expect(await PrePostTestDIVQuestionSeventeen.getText()).toEqual('I feel confident in my ability to manage my money'); - expect(await PrePostTestDIVSelectedAnswerSeventeen.getText()).toEqual('Agree'); - expect(await PrePostTestDIVPointsScoredSeventeen.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionNumberEighteen.getText()).toEqual('18'); - expect(await PrePostTestDIVQuestionEighteen.getText()).toEqual('I currently have or plan to open a savings account as soon as possible to support my financial goals'); - expect(await PrePostTestDIVSelectedAnswerEighteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredEighteen.getText()).toEqual('5'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - expect(await InterstSurveyOne.getText()).toEqual('Incomplete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestTwo.getText()).toEqual('Incomplete'); - expect(await InterstSurveyTwo.getText()).toEqual('Incomplete'); - expect(await SkillsQuizTwo.getText()).toEqual('Incomplete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestThree.getText()).toEqual('Complete'); - await PreTestCompleteLinkThree.click().then(function() { - browser.sleep(2500); - }); - expect(await PrePostTestDIVTotalPointsLabel.getText()).toEqual('Total Points'); - expect(await PrePostTestDIVTotalPointsData.getText()).toEqual('43'); - expect(await PrePostTestDIVTitle.getText()).toEqual('Pre Test'); - expect(await PrePostTestDIVTotalScoreLabel.getText()).toEqual('Score'); - expect(await PrePostTestDIVTotalScoreData.getText()).toEqual('86%'); - expect(await PrePostTestDIVQuestionColumnHeader.getText()).toEqual('Question'); - expect(await PrePostTestDIVAnswerColumnHeader.getText()).toEqual('Answer'); - expect(await PrePostTestDIVPointsColumnHeader.getText()).toEqual('Points'); - expect(await PrePostTestDIVQuestionNumberOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionOne.getText()).toEqual('Career planning is done'); - expect(await PrePostTestDIVSelectedAnswerOne.getText()).toEqual('Throughout a lifetime'); - expect(await PrePostTestDIVPointsScoredOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTwo.getText()).toEqual('2'); - expect(await PrePostTestDIVQuestionTwo.getText()).toEqual('What are the three main types of taxes?'); - expect(await PrePostTestDIVSelectedAnswerTwo.getText()).toEqual('Unemployment, sales, and property'); - expect(await PrePostTestDIVPointsScoredTwo.getText()).toEqual('0'); - expect(await PrePostTestDIVQuestionNumberThree.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionThree.getText()).toEqual('The total amount of income made over one year after all taxes and deductions have been subtracted is:'); - expect(await PrePostTestDIVSelectedAnswerThree.getText()).toEqual('Net annual income'); - expect(await PrePostTestDIVPointsScoredThree.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFour.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionFour.getText()).toEqual('When it comes to personal savings, what does PYF stand for?'); - expect(await PrePostTestDIVSelectedAnswerFour.getText()).toEqual('Prepare Your Finances'); - expect(await PrePostTestDIVPointsScoredFour.getText()).toEqual('0'); - expect(await PrePostTestDIVQuestionNumberFive.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionFive.getText()).toEqual('Which of the following might be a bad credit score'); - expect(await PrePostTestDIVSelectedAnswerFive.getText()).toEqual('550'); - expect(await PrePostTestDIVPointsScoredFive.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSix.getText()).toEqual('6'); - expect(await PrePostTestDIVQuestionSix.getText()).toEqual('To protect yourself against risk which of the following are the best choices:'); - expect(await PrePostTestDIVSelectedAnswerSix.getText()).toEqual('Invest all of your money in a single stock'); - expect(await PrePostTestDIVPointsScoredSix.getText()).toEqual('0'); - expect(await PrePostTestDIVQuestionNumberSeven.getText()).toEqual('7'); - expect(await PrePostTestDIVQuestionSeven.getText()).toEqual('A record of income and expenditures for a given periord of time is:'); - expect(await PrePostTestDIVSelectedAnswerSeven.getText()).toEqual('Interest'); - expect(await PrePostTestDIVPointsScoredSeven.getText()).toEqual('0'); - browser.actions().mouseMove(PrePostTestDIVQuestionNumberEighteen).perform().then(function() { - browser.sleep(1000); - }); - expect(await PrePostTestDIVQuestionNumberEight.getText()).toEqual('8'); - expect(await PrePostTestDIVQuestionEight.getText()).toEqual('When budgeting, the first categories to consider are those that meet your:'); - expect(await PrePostTestDIVSelectedAnswerEight.getText()).toEqual('Needs'); - expect(await PrePostTestDIVPointsScoredEight.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberNine.getText()).toEqual('9'); - expect(await PrePostTestDIVQuestionNine.getText()).toEqual('Which factor is one way you should base decisions on where to invest your money:'); - expect(await PrePostTestDIVSelectedAnswerNine.getText()).toEqual('Interest earned vs. risk'); - expect(await PrePostTestDIVPointsScoredNine.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTen.getText()).toEqual('10'); - expect(await PrePostTestDIVQuestionTen.getText()).toEqual('I use a budget'); - expect(await PrePostTestDIVSelectedAnswerTen.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredTen.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberEleven.getText()).toEqual('11'); - expect(await PrePostTestDIVQuestionEleven.getText()).toEqual('I save money for the future'); - expect(await PrePostTestDIVSelectedAnswerEleven.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredEleven.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberTwelve.getText()).toEqual('12'); - expect(await PrePostTestDIVQuestionTwelve.getText()).toEqual('Starting to set my career goals now is important to me'); - expect(await PrePostTestDIVSelectedAnswerTwelve.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredTwelve.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberThirteen.getText()).toEqual('13'); - expect(await PrePostTestDIVQuestionThirteen.getText()).toEqual('I understand why I should start saving for retirement as soon as possible'); - expect(await PrePostTestDIVSelectedAnswerThirteen.getText()).toEqual('Agree'); - expect(await PrePostTestDIVPointsScoredThirteen.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionNumberFourteen.getText()).toEqual('14'); - expect(await PrePostTestDIVQuestionFourteen.getText()).toEqual('I understand the choices I have to make to benefit from having good credit'); - expect(await PrePostTestDIVSelectedAnswerFourteen.getText()).toEqual('Slightly agree'); - expect(await PrePostTestDIVPointsScoredFourteen.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberFifteen.getText()).toEqual('15'); - expect(await PrePostTestDIVQuestionFifteen.getText()).toEqual('I expect to further my education after high school'); - expect(await PrePostTestDIVSelectedAnswerFifteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFifteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSixteen.getText()).toEqual('16'); - expect(await PrePostTestDIVQuestionSixteen.getText()).toEqual('I understand how to reach my financial and career goals'); - expect(await PrePostTestDIVSelectedAnswerSixteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSixteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSeventeen.getText()).toEqual('17'); - expect(await PrePostTestDIVQuestionSeventeen.getText()).toEqual('I feel confident in my ability to manage my money'); - expect(await PrePostTestDIVSelectedAnswerSeventeen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSeventeen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberEighteen.getText()).toEqual('18'); - expect(await PrePostTestDIVQuestionEighteen.getText()).toEqual('I currently have or plan to open a savings account as soon as possible to support my financial goals'); - expect(await PrePostTestDIVSelectedAnswerEighteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredEighteen.getText()).toEqual('5'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - await CareerSelectedLinkThree.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerSelectedDIVCareerSelectedTitle.getText()).toEqual('Career Selection'); - expect(await CareerSelectedDIVCareerSelectedLabel.getText()).toEqual('Career'); - expect(await CareerSelectedDIVCareerSelectedData.getText()).toEqual('Information Security Analyst'); - expect(await CareerSelectedDIVCareerSelectedAccountNumberLabel.getText()).toEqual('Account Number'); - expect(await CareerSelectedDIVCareerSelectedAccountNumberData.getText()).toEqual('10115'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - expect(await SkillsQuizThree.getText()).toEqual('Complete'); - expect(await CareerSelectionThree.getText()).toEqual('Selected'); - expect(await PostTestThree.getText()).toEqual('Complete'); - await PostTestCompleteLinkThree.click().then(function() { - browser.sleep(2500); - }); - expect(await PrePostTestDIVTotalPointsLabel.getText()).toEqual('Total Points'); - expect(await PrePostTestDIVTotalPointsData.getText()).toEqual('49'); - expect(await PrePostTestDIVTitle.getText()).toEqual('Post Test'); - expect(await PrePostTestDIVTotalScoreLabel.getText()).toEqual('Score'); - expect(await PrePostTestDIVTotalScoreData.getText()).toEqual('98%'); - expect(await PrePostTestDIVQuestionColumnHeader.getText()).toEqual('Question'); - expect(await PrePostTestDIVAnswerColumnHeader.getText()).toEqual('Answer'); - expect(await PrePostTestDIVPointsColumnHeader.getText()).toEqual('Points'); - expect(await PrePostTestDIVQuestionNumberOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionOne.getText()).toEqual('Career planning is done'); - expect(await PrePostTestDIVSelectedAnswerOne.getText()).toEqual('Throughout a lifetime'); - expect(await PrePostTestDIVPointsScoredOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTwo.getText()).toEqual('2'); - expect(await PrePostTestDIVQuestionTwo.getText()).toEqual('What are the three main types of taxes?'); - expect(await PrePostTestDIVSelectedAnswerTwo.getText()).toEqual('Federal income, unemployment, and state'); - expect(await PrePostTestDIVPointsScoredTwo.getText()).toEqual('0'); - expect(await PrePostTestDIVQuestionNumberThree.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionThree.getText()).toEqual('The total amount of income made over one year after all taxes and deductions have been subtracted is:'); - expect(await PrePostTestDIVSelectedAnswerThree.getText()).toEqual('Net annual income'); - expect(await PrePostTestDIVPointsScoredThree.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFour.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionFour.getText()).toEqual('When it comes to personal savings, what does PYF stand for?'); - expect(await PrePostTestDIVSelectedAnswerFour.getText()).toEqual('Pay Yourself First'); - expect(await PrePostTestDIVPointsScoredFour.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFive.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionFive.getText()).toEqual('Which of the following might be a bad credit score'); - expect(await PrePostTestDIVSelectedAnswerFive.getText()).toEqual('550'); - expect(await PrePostTestDIVPointsScoredFive.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSix.getText()).toEqual('6'); - expect(await PrePostTestDIVQuestionSix.getText()).toEqual('To protect yourself against risk which of the following are the best choices:'); - expect(await PrePostTestDIVSelectedAnswerSix.getText()).toEqual('Both A and B'); - expect(await PrePostTestDIVPointsScoredSix.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSeven.getText()).toEqual('7'); - expect(await PrePostTestDIVQuestionSeven.getText()).toEqual('A record of income and expenditures for a given periord of time is:'); - expect(await PrePostTestDIVSelectedAnswerSeven.getText()).toEqual('Budget'); - expect(await PrePostTestDIVPointsScoredSeven.getText()).toEqual('1'); - browser.actions().mouseMove(PrePostTestDIVQuestionNumberEighteen).perform().then(function() { - browser.sleep(1000); - }); - expect(await PrePostTestDIVQuestionNumberEight.getText()).toEqual('8'); - expect(await PrePostTestDIVQuestionEight.getText()).toEqual('When budgeting, the first categories to consider are those that meet your:'); - expect(await PrePostTestDIVSelectedAnswerEight.getText()).toEqual('Needs'); - expect(await PrePostTestDIVPointsScoredEight.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberNine.getText()).toEqual('9'); - expect(await PrePostTestDIVQuestionNine.getText()).toEqual('Which factor is one way you should base decisions on where to invest your money:'); - expect(await PrePostTestDIVSelectedAnswerNine.getText()).toEqual('Interest earned vs. risk'); - expect(await PrePostTestDIVPointsScoredNine.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTen.getText()).toEqual('10'); - expect(await PrePostTestDIVQuestionTen.getText()).toEqual('I plan to start using a personal budget'); - expect(await PrePostTestDIVSelectedAnswerTen.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredTen.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberEleven.getText()).toEqual('11'); - expect(await PrePostTestDIVQuestionEleven.getText()).toEqual('I save money for the future'); - expect(await PrePostTestDIVSelectedAnswerEleven.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredEleven.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberTwelve.getText()).toEqual('12'); - expect(await PrePostTestDIVQuestionTwelve.getText()).toEqual('Starting to set my career goals now is important to me'); - expect(await PrePostTestDIVSelectedAnswerTwelve.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredTwelve.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberThirteen.getText()).toEqual('13'); - expect(await PrePostTestDIVQuestionThirteen.getText()).toEqual('I understand why I should start saving for retirement as soon as possible'); - expect(await PrePostTestDIVSelectedAnswerThirteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredThirteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberFourteen.getText()).toEqual('14'); - expect(await PrePostTestDIVQuestionFourteen.getText()).toEqual('I understand the choices I have to make to benefit from having good credit'); - expect(await PrePostTestDIVSelectedAnswerFourteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFourteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberFifteen.getText()).toEqual('15'); - expect(await PrePostTestDIVQuestionFifteen.getText()).toEqual('I expect to further my education after high school'); - expect(await PrePostTestDIVSelectedAnswerFifteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFifteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSixteen.getText()).toEqual('16'); - expect(await PrePostTestDIVQuestionSixteen.getText()).toEqual('I understand how to reach my financial and career goals'); - expect(await PrePostTestDIVSelectedAnswerSixteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSixteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSeventeen.getText()).toEqual('17'); - expect(await PrePostTestDIVQuestionSeventeen.getText()).toEqual('I feel confident in my ability to manage my money'); - expect(await PrePostTestDIVSelectedAnswerSeventeen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSeventeen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberEighteen.getText()).toEqual('18'); - expect(await PrePostTestDIVQuestionEighteen.getText()).toEqual('I plan to open a savings account as soon as possible to support my financial goals'); - expect(await PrePostTestDIVSelectedAnswerEighteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredEighteen.getText()).toEqual('5'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - expect(await StudentNameFour.getText()).toEqual('Roy Batty'); - expect(await PreTestFour.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestFive.getText()).toEqual('Complete'); - await PreTestCompleteLinkFive.click().then(function() { - browser.sleep(2500); - }); - expect(await PrePostTestDIVTotalPointsLabel.getText()).toEqual('Total Points'); - expect(await PrePostTestDIVTotalPointsData.getText()).toEqual('49'); - expect(await PrePostTestDIVTitle.getText()).toEqual('Pre Test'); - expect(await PrePostTestDIVTotalScoreLabel.getText()).toEqual('Score'); - expect(await PrePostTestDIVTotalScoreData.getText()).toEqual('98%'); - expect(await PrePostTestDIVQuestionColumnHeader.getText()).toEqual('Question'); - expect(await PrePostTestDIVAnswerColumnHeader.getText()).toEqual('Answer'); - expect(await PrePostTestDIVPointsColumnHeader.getText()).toEqual('Points'); - expect(await PrePostTestDIVQuestionNumberOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionOne.getText()).toEqual('Career planning is done'); - expect(await PrePostTestDIVSelectedAnswerOne.getText()).toEqual('Throughout a lifetime'); - expect(await PrePostTestDIVPointsScoredOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTwo.getText()).toEqual('2'); - expect(await PrePostTestDIVQuestionTwo.getText()).toEqual('What are the three main types of taxes?'); - expect(await PrePostTestDIVSelectedAnswerTwo.getText()).toEqual('Income, sales, and property'); - expect(await PrePostTestDIVPointsScoredTwo.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberThree.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionThree.getText()).toEqual('The total amount of income made over one year after all taxes and deductions have been subtracted is:'); - expect(await PrePostTestDIVSelectedAnswerThree.getText()).toEqual('Gross annual income'); - expect(await PrePostTestDIVPointsScoredThree.getText()).toEqual('0'); - expect(await PrePostTestDIVQuestionNumberFour.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionFour.getText()).toEqual('When it comes to personal savings, what does PYF stand for?'); - expect(await PrePostTestDIVSelectedAnswerFour.getText()).toEqual('Pay Yourself First'); - expect(await PrePostTestDIVPointsScoredFour.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFive.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionFive.getText()).toEqual('Which of the following might be a bad credit score'); - expect(await PrePostTestDIVSelectedAnswerFive.getText()).toEqual('550'); - expect(await PrePostTestDIVPointsScoredFive.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSix.getText()).toEqual('6'); - expect(await PrePostTestDIVQuestionSix.getText()).toEqual('To protect yourself against risk which of the following are the best choices:'); - expect(await PrePostTestDIVSelectedAnswerSix.getText()).toEqual('Both A and B'); - expect(await PrePostTestDIVPointsScoredSix.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSeven.getText()).toEqual('7'); - expect(await PrePostTestDIVQuestionSeven.getText()).toEqual('A record of income and expenditures for a given periord of time is:'); - expect(await PrePostTestDIVSelectedAnswerSeven.getText()).toEqual('Budget'); - expect(await PrePostTestDIVPointsScoredSeven.getText()).toEqual('1'); - browser.actions().mouseMove(PrePostTestDIVQuestionNumberEighteen).perform().then(function() { - browser.sleep(1000); - }); - expect(await PrePostTestDIVQuestionNumberEight.getText()).toEqual('8'); - expect(await PrePostTestDIVQuestionEight.getText()).toEqual('When budgeting, the first categories to consider are those that meet your:'); - expect(await PrePostTestDIVSelectedAnswerEight.getText()).toEqual('Needs'); - expect(await PrePostTestDIVPointsScoredEight.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberNine.getText()).toEqual('9'); - expect(await PrePostTestDIVQuestionNine.getText()).toEqual('Which factor is one way you should base decisions on where to invest your money:'); - expect(await PrePostTestDIVSelectedAnswerNine.getText()).toEqual('Interest earned vs. risk'); - expect(await PrePostTestDIVPointsScoredNine.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTen.getText()).toEqual('10'); - expect(await PrePostTestDIVQuestionTen.getText()).toEqual('I use a budget'); - expect(await PrePostTestDIVSelectedAnswerTen.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredTen.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberEleven.getText()).toEqual('11'); - expect(await PrePostTestDIVQuestionEleven.getText()).toEqual('I save money for the future'); - expect(await PrePostTestDIVSelectedAnswerEleven.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredEleven.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberTwelve.getText()).toEqual('12'); - expect(await PrePostTestDIVQuestionTwelve.getText()).toEqual('Starting to set my career goals now is important to me'); - expect(await PrePostTestDIVSelectedAnswerTwelve.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredTwelve.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberThirteen.getText()).toEqual('13'); - expect(await PrePostTestDIVQuestionThirteen.getText()).toEqual('I understand why I should start saving for retirement as soon as possible'); - expect(await PrePostTestDIVSelectedAnswerThirteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredThirteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberFourteen.getText()).toEqual('14'); - expect(await PrePostTestDIVQuestionFourteen.getText()).toEqual('I understand the choices I have to make to benefit from having good credit'); - expect(await PrePostTestDIVSelectedAnswerFourteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFourteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberFifteen.getText()).toEqual('15'); - expect(await PrePostTestDIVQuestionFifteen.getText()).toEqual('I expect to further my education after high school'); - expect(await PrePostTestDIVSelectedAnswerFifteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFifteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSixteen.getText()).toEqual('16'); - expect(await PrePostTestDIVQuestionSixteen.getText()).toEqual('I understand how to reach my financial and career goals'); - expect(await PrePostTestDIVSelectedAnswerSixteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSixteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSeventeen.getText()).toEqual('17'); - expect(await PrePostTestDIVQuestionSeventeen.getText()).toEqual('I feel confident in my ability to manage my money'); - expect(await PrePostTestDIVSelectedAnswerSeventeen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSeventeen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberEighteen.getText()).toEqual('18'); - expect(await PrePostTestDIVQuestionEighteen.getText()).toEqual('I currently have or plan to open a savings account as soon as possible to support my financial goals'); - expect(await PrePostTestDIVSelectedAnswerEighteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredEighteen.getText()).toEqual('5'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - expect(await InterstSurveyFive.getText()).toEqual('Complete'); - expect(await SkillsQuizFive.getText()).toEqual('Complete'); - expect(await CareerSelectionFive.getText()).toEqual('Selected'); - await CareerSelectedLinkFive.click().then(function() { - browser.sleep(2500); - }); - expect(await CareerSelectedDIVCareerSelectedTitle.getText()).toEqual('Career Selection'); - expect(await CareerSelectedDIVCareerSelectedLabel.getText()).toEqual('Career'); - expect(await CareerSelectedDIVCareerSelectedData.getText()).toEqual('Food Scientist & Technologist'); - expect(await CareerSelectedDIVCareerSelectedAccountNumberLabel.getText()).toEqual('Account Number'); - expect(await CareerSelectedDIVCareerSelectedAccountNumberData.getText()).toEqual('10094'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('Skynet Terminator'); - expect(await PreTestSix.getText()).toEqual('Complete'); - await PreTestCompleteLinkSix.click().then(function() { - browser.sleep(2500); - }); - expect(await PrePostTestDIVTotalPointsLabel.getText()).toEqual('Total Points'); - expect(await PrePostTestDIVTotalPointsData.getText()).toEqual('44'); - expect(await PrePostTestDIVTitle.getText()).toEqual('Pre Test'); - expect(await PrePostTestDIVTotalScoreLabel.getText()).toEqual('Score'); - expect(await PrePostTestDIVTotalScoreData.getText()).toEqual('88%'); - expect(await PrePostTestDIVQuestionColumnHeader.getText()).toEqual('Question'); - expect(await PrePostTestDIVAnswerColumnHeader.getText()).toEqual('Answer'); - expect(await PrePostTestDIVPointsColumnHeader.getText()).toEqual('Points'); - expect(await PrePostTestDIVQuestionNumberOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionOne.getText()).toEqual('Career planning is done'); - expect(await PrePostTestDIVSelectedAnswerOne.getText()).toEqual('Throughout a lifetime'); - expect(await PrePostTestDIVPointsScoredOne.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTwo.getText()).toEqual('2'); - expect(await PrePostTestDIVQuestionTwo.getText()).toEqual('What are the three main types of taxes?'); - expect(await PrePostTestDIVSelectedAnswerTwo.getText()).toEqual('Income, sales, and property'); - expect(await PrePostTestDIVPointsScoredTwo.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberThree.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionThree.getText()).toEqual('The total amount of income made over one year after all taxes and deductions have been subtracted is:'); - expect(await PrePostTestDIVSelectedAnswerThree.getText()).toEqual('Net annual income'); - expect(await PrePostTestDIVPointsScoredThree.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFour.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionFour.getText()).toEqual('When it comes to personal savings, what does PYF stand for?'); - expect(await PrePostTestDIVSelectedAnswerFour.getText()).toEqual('Pay Yourself First'); - expect(await PrePostTestDIVPointsScoredFour.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberFive.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionFive.getText()).toEqual('Which of the following might be a bad credit score'); - expect(await PrePostTestDIVSelectedAnswerFive.getText()).toEqual('550'); - expect(await PrePostTestDIVPointsScoredFive.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSix.getText()).toEqual('6'); - expect(await PrePostTestDIVQuestionSix.getText()).toEqual('To protect yourself against risk which of the following are the best choices:'); - expect(await PrePostTestDIVSelectedAnswerSix.getText()).toEqual('Both A and B'); - expect(await PrePostTestDIVPointsScoredSix.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberSeven.getText()).toEqual('7'); - expect(await PrePostTestDIVQuestionSeven.getText()).toEqual('A record of income and expenditures for a given periord of time is:'); - expect(await PrePostTestDIVSelectedAnswerSeven.getText()).toEqual('Budget'); - expect(await PrePostTestDIVPointsScoredSeven.getText()).toEqual('1'); - browser.actions().mouseMove(PrePostTestDIVQuestionNumberEighteen).perform().then(function() { - browser.sleep(1000); - }); - expect(await PrePostTestDIVQuestionNumberEight.getText()).toEqual('8'); - expect(await PrePostTestDIVQuestionEight.getText()).toEqual('When budgeting, the first categories to consider are those that meet your:'); - expect(await PrePostTestDIVSelectedAnswerEight.getText()).toEqual('Important expenses'); - expect(await PrePostTestDIVPointsScoredEight.getText()).toEqual('0'); - expect(await PrePostTestDIVQuestionNumberNine.getText()).toEqual('9'); - expect(await PrePostTestDIVQuestionNine.getText()).toEqual('Which factor is one way you should base decisions on where to invest your money:'); - expect(await PrePostTestDIVSelectedAnswerNine.getText()).toEqual('Interest earned vs. risk'); - expect(await PrePostTestDIVPointsScoredNine.getText()).toEqual('1'); - expect(await PrePostTestDIVQuestionNumberTen.getText()).toEqual('10'); - expect(await PrePostTestDIVQuestionTen.getText()).toEqual('I use a budget'); - expect(await PrePostTestDIVSelectedAnswerTen.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredTen.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberEleven.getText()).toEqual('11'); - expect(await PrePostTestDIVQuestionEleven.getText()).toEqual('I save money for the future'); - expect(await PrePostTestDIVSelectedAnswerEleven.getText()).toEqual('Often'); - expect(await PrePostTestDIVPointsScoredEleven.getText()).toEqual('3'); - expect(await PrePostTestDIVQuestionNumberTwelve.getText()).toEqual('12'); - expect(await PrePostTestDIVQuestionTwelve.getText()).toEqual('Starting to set my career goals now is important to me'); - expect(await PrePostTestDIVSelectedAnswerTwelve.getText()).toEqual('Slightly disagree'); - expect(await PrePostTestDIVPointsScoredTwelve.getText()).toEqual('2'); - expect(await PrePostTestDIVQuestionNumberThirteen.getText()).toEqual('13'); - expect(await PrePostTestDIVQuestionThirteen.getText()).toEqual('I understand why I should start saving for retirement as soon as possible'); - expect(await PrePostTestDIVSelectedAnswerThirteen.getText()).toEqual('Agree'); - expect(await PrePostTestDIVPointsScoredThirteen.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionNumberFourteen.getText()).toEqual('14'); - expect(await PrePostTestDIVQuestionFourteen.getText()).toEqual('I understand the choices I have to make to benefit from having good credit'); - expect(await PrePostTestDIVSelectedAnswerFourteen.getText()).toEqual('Agree'); - expect(await PrePostTestDIVPointsScoredFourteen.getText()).toEqual('4'); - expect(await PrePostTestDIVQuestionNumberFifteen.getText()).toEqual('15'); - expect(await PrePostTestDIVQuestionFifteen.getText()).toEqual('I expect to further my education after high school'); - expect(await PrePostTestDIVSelectedAnswerFifteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredFifteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSixteen.getText()).toEqual('16'); - expect(await PrePostTestDIVQuestionSixteen.getText()).toEqual('I understand how to reach my financial and career goals'); - expect(await PrePostTestDIVSelectedAnswerSixteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSixteen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberSeventeen.getText()).toEqual('17'); - expect(await PrePostTestDIVQuestionSeventeen.getText()).toEqual('I feel confident in my ability to manage my money'); - expect(await PrePostTestDIVSelectedAnswerSeventeen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredSeventeen.getText()).toEqual('5'); - expect(await PrePostTestDIVQuestionNumberEighteen.getText()).toEqual('18'); - expect(await PrePostTestDIVQuestionEighteen.getText()).toEqual('I currently have or plan to open a savings account as soon as possible to support my financial goals'); - expect(await PrePostTestDIVSelectedAnswerEighteen.getText()).toEqual('Highly agree'); - expect(await PrePostTestDIVPointsScoredEighteen.getText()).toEqual('5'); - expect(await DIVOKButton.getText()).toEqual('OKAY'); - await DIVOKButton.click().then(function() { - browser.sleep(2500); - }); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestSeven.getText()).toEqual('Incomplete'); - expect(await InterstSurveySeven.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSeven.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSeven.getText()).toEqual('Not Selected'); - expect(await PostTestSeven.getText()).toEqual('Incomplete'); - expect(await StudentNameEight.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestEight.getText()).toEqual('Incomplete'); - expect(await InterstSurveyEight.getText()).toEqual('Incomplete'); - expect(await SkillsQuizEight.getText()).toEqual('Incomplete'); - expect(await CareerSelectionEight.getText()).toEqual('Not Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Sort by Pre Test - await PreTestHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameOne.getText()).toEqual('Ash Alien'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Incomplete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Selected'); - expect(await PostTestTwo.getText()).toEqual('Complete'); - expect(await StudentNameThree.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Complete'); - expect(await SkillsQuizThree.getText()).toEqual('Complete'); - expect(await CareerSelectionThree.getText()).toEqual('Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Skynet Terminator'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestFive.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFive.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFive.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFive.getText()).toEqual('Not Selected'); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('Roy Batty'); - expect(await PreTestSix.getText()).toEqual('Incomplete'); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestSeven.getText()).toEqual('Incomplete'); - expect(await InterstSurveySeven.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSeven.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSeven.getText()).toEqual('Not Selected'); - expect(await PostTestSeven.getText()).toEqual('Incomplete'); - expect(await StudentNameEight.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestEight.getText()).toEqual('Incomplete'); - expect(await InterstSurveyEight.getText()).toEqual('Incomplete'); - expect(await SkillsQuizEight.getText()).toEqual('Incomplete'); - expect(await CareerSelectionEight.getText()).toEqual('Not Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Sort by Interest Survey - await InterestSurveyHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameOne.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Complete'); - expect(await CareerSelectionOne.getText()).toEqual('Selected'); - expect(await PostTestOne.getText()).toEqual('Complete'); - expect(await StudentNameTwo.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Ash Alien'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Incomplete'); - expect(await SkillsQuizThree.getText()).toEqual('Incomplete'); - expect(await CareerSelectionThree.getText()).toEqual('Not Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Skynet Terminator'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestFive.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFive.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFive.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFive.getText()).toEqual('Not Selected'); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('Roy Batty'); - expect(await PreTestSix.getText()).toEqual('Incomplete'); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestSeven.getText()).toEqual('Incomplete'); - expect(await InterstSurveySeven.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSeven.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSeven.getText()).toEqual('Not Selected'); - expect(await PostTestSeven.getText()).toEqual('Incomplete'); - expect(await StudentNameEight.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestEight.getText()).toEqual('Incomplete'); - expect(await InterstSurveyEight.getText()).toEqual('Incomplete'); - expect(await SkillsQuizEight.getText()).toEqual('Incomplete'); - expect(await CareerSelectionEight.getText()).toEqual('Not Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Sort by Skills Quiz - await SkillsQuizHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameOne.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Complete'); - expect(await CareerSelectionOne.getText()).toEqual('Selected'); - expect(await PostTestOne.getText()).toEqual('Complete'); - expect(await StudentNameTwo.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Complete'); - expect(await SkillsQuizTwo.getText()).toEqual('Complete'); - expect(await CareerSelectionTwo.getText()).toEqual('Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Ash Alien'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Incomplete'); - expect(await SkillsQuizThree.getText()).toEqual('Incomplete'); - expect(await CareerSelectionThree.getText()).toEqual('Not Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Skynet Terminator'); - expect(await PreTestFour.getText()).toEqual('Complete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestFive.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFive.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFive.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFive.getText()).toEqual('Not Selected'); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('Roy Batty'); - expect(await PreTestSix.getText()).toEqual('Incomplete'); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestSeven.getText()).toEqual('Incomplete'); - expect(await InterstSurveySeven.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSeven.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSeven.getText()).toEqual('Not Selected'); - expect(await PostTestSeven.getText()).toEqual('Incomplete'); - expect(await StudentNameEight.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestEight.getText()).toEqual('Incomplete'); - expect(await InterstSurveyEight.getText()).toEqual('Incomplete'); - expect(await SkillsQuizEight.getText()).toEqual('Incomplete'); - expect(await CareerSelectionEight.getText()).toEqual('Not Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Sort by Skills Quiz (2nd time) - await SkillsQuizHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameOne.getText()).toEqual('Ash Alien'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Incomplete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('Skynet Terminator'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Incomplete'); - expect(await SkillsQuizTwo.getText()).toEqual('Incomplete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestThree.getText()).toEqual('Incomplete'); - expect(await InterstSurveyThree.getText()).toEqual('Incomplete'); - expect(await SkillsQuizThree.getText()).toEqual('Incomplete'); - expect(await CareerSelectionThree.getText()).toEqual('Not Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Roy Batty'); - expect(await PreTestFour.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestFive.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFive.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFive.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFive.getText()).toEqual('Not Selected'); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestSix.getText()).toEqual('Incomplete'); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestSeven.getText()).toEqual('Complete'); - expect(await InterstSurveySeven.getText()).toEqual('Complete'); - expect(await SkillsQuizSeven.getText()).toEqual('Complete'); - expect(await CareerSelectionSeven.getText()).toEqual('Selected'); - expect(await PostTestSeven.getText()).toEqual('Complete'); - expect(await StudentNameEight.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestEight.getText()).toEqual('Complete'); - expect(await InterstSurveyEight.getText()).toEqual('Complete'); - expect(await SkillsQuizEight.getText()).toEqual('Complete'); - expect(await CareerSelectionEight.getText()).toEqual('Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Sort by Career Selection - await CareerSelectionHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameOne.getText()).toEqual('Ash Alien'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Incomplete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - expect(await StudentNameTwo.getText()).toEqual('Skynet Terminator'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Incomplete'); - expect(await SkillsQuizTwo.getText()).toEqual('Incomplete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestThree.getText()).toEqual('Incomplete'); - expect(await InterstSurveyThree.getText()).toEqual('Incomplete'); - expect(await SkillsQuizThree.getText()).toEqual('Incomplete'); - expect(await CareerSelectionThree.getText()).toEqual('Not Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('Roy Batty'); - expect(await PreTestFour.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestFive.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFive.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFive.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFive.getText()).toEqual('Not Selected'); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestSix.getText()).toEqual('Incomplete'); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestSeven.getText()).toEqual('Complete'); - expect(await InterstSurveySeven.getText()).toEqual('Complete'); - expect(await SkillsQuizSeven.getText()).toEqual('Complete'); - expect(await CareerSelectionSeven.getText()).toEqual('Selected'); - expect(await PostTestSeven.getText()).toEqual('Complete'); - expect(await StudentNameEight.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestEight.getText()).toEqual('Complete'); - expect(await InterstSurveyEight.getText()).toEqual('Complete'); - expect(await SkillsQuizEight.getText()).toEqual('Complete'); - expect(await CareerSelectionEight.getText()).toEqual('Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Sort by Post Test - await PostTestHeaderColumn.click().then(function() { - browser.sleep(1000); - }); - expect(await StudentNameOne.getText()).toEqual('HAL 9000 Automated1520211510'); - expect(await PreTestOne.getText()).toEqual('Complete'); - expect(await InterstSurveyOne.getText()).toEqual('Complete'); - expect(await SkillsQuizOne.getText()).toEqual('Complete'); - expect(await CareerSelectionOne.getText()).toEqual('Selected'); - expect(await PostTestOne.getText()).toEqual('Complete'); - expect(await StudentNameTwo.getText()).toEqual('Ash Alien'); - expect(await PreTestTwo.getText()).toEqual('Complete'); - expect(await InterstSurveyTwo.getText()).toEqual('Incomplete'); - expect(await SkillsQuizTwo.getText()).toEqual('Incomplete'); - expect(await CareerSelectionTwo.getText()).toEqual('Not Selected'); - expect(await PostTestTwo.getText()).toEqual('Incomplete'); - expect(await StudentNameThree.getText()).toEqual('Skynet Terminator'); - expect(await PreTestThree.getText()).toEqual('Complete'); - expect(await InterstSurveyThree.getText()).toEqual('Incomplete'); - expect(await SkillsQuizThree.getText()).toEqual('Incomplete'); - expect(await CareerSelectionThree.getText()).toEqual('Not Selected'); - expect(await PostTestThree.getText()).toEqual('Incomplete'); - expect(await StudentNameFour.getText()).toEqual('ED209 RoboCop'); - expect(await PreTestFour.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFour.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFour.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFour.getText()).toEqual('Not Selected'); - expect(await PostTestFour.getText()).toEqual('Incomplete'); - expect(await StudentNameFive.getText()).toEqual('Roy Batty'); - expect(await PreTestFive.getText()).toEqual('Incomplete'); - expect(await InterstSurveyFive.getText()).toEqual('Incomplete'); - expect(await SkillsQuizFive.getText()).toEqual('Incomplete'); - expect(await CareerSelectionFive.getText()).toEqual('Not Selected'); - expect(await PostTestFive.getText()).toEqual('Incomplete'); - expect(await StudentNameSix.getText()).toEqual('The Gun Slinger Westworld'); - expect(await PreTestSix.getText()).toEqual('Incomplete'); - expect(await InterstSurveySix.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSix.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSix.getText()).toEqual('Not Selected'); - expect(await PostTestSix.getText()).toEqual('Incomplete'); - expect(await StudentNameSeven.getText()).toEqual('TheBorg StarTrek'); - expect(await PreTestSeven.getText()).toEqual('Incomplete'); - expect(await InterstSurveySeven.getText()).toEqual('Incomplete'); - expect(await SkillsQuizSeven.getText()).toEqual('Incomplete'); - expect(await CareerSelectionSeven.getText()).toEqual('Not Selected'); - expect(await PostTestSeven.getText()).toEqual('Incomplete'); - expect(await StudentNameEight.getText()).toEqual('Sentinels-Machines TheMatrix'); - expect(await PreTestEight.getText()).toEqual('Complete'); - expect(await InterstSurveyEight.getText()).toEqual('Complete'); - expect(await SkillsQuizEight.getText()).toEqual('Complete'); - expect(await CareerSelectionEight.getText()).toEqual('Selected'); - expect(await PostTestEight.getText()).toEqual('Incomplete'); - //Run Newly Created Simulation - await SelectASimulationTextBox.click().then(function() { - browser.sleep(2500); - }); - await SelectASimulationTextBox.sendKeys(protractor.Key.CONTROL, "a").then(function() { - browser.sleep(1000); - }); - await SelectASimulationTextBox.sendKeys(protractor.Key.DELETE).then(function() { - browser.sleep(1000); - }); - await SelectASimulationTextBox.sendKeys(browser.params.simulation).then(function() { - browser.sleep(1500); - }); - await SelectSimulation.click().then(function() { - browser.sleep(2500); - }); - await SelectASchoolTextBox.click().then(function() { - browser.sleep(2500); - }); - element(by.cssContainingText('option', browser.params.school + ' (The Matrix)')).click(); - await SelectATeacherTextBox.click().then(function() { - browser.sleep(2500); - }); - element(by.cssContainingText('option', 'T-800 ' + browser.params.teacher)).click(); - await SelectAClassTextBox.click().then(function() { - browser.sleep(2500); - }); - element(by.cssContainingText('option', browser.params.class + ' 5')).click(); - await SelectAClassLabel.click().then(function() { - browser.sleep(2500); - }); - expect(await StudentNameOne.getText()).toEqual('HAL 9000 ' + browser.params.student); - expect(await PreTestOne.getText()).toEqual('Incomplete'); - expect(await InterstSurveyOne.getText()).toEqual('Incomplete'); - expect(await SkillsQuizOne.getText()).toEqual('Incomplete'); - expect(await CareerSelectionOne.getText()).toEqual('Not Selected'); - expect(await PostTestOne.getText()).toEqual('Incomplete'); - await BackToAdminDashboardLinkText.click().then(function() { - browser.sleep(2500); - }); - expect(await PageTitle.getText()).toEqual('Admin Dashboard'); - }); -} - -function SignOut() { - it(': SignOut; should log out of journeys page.', async function () { - var ProfileImage = element(by.css('.jmRoundCenterImage')); - var SignOutButton = element(by.css('.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