diff --git a/dashboardOne_config.js b/dashboardOne_config.js new file mode 100644 index 0000000..4a87870 --- /dev/null +++ b/dashboardOne_config.js @@ -0,0 +1,29 @@ +// config.js + +exports.config = { + framework: 'jasmine', + seleniumAddress: 'http://localhost:4444/wd/hub', + specs: ['dashboardOne_spec.js'], + + jasmineNodeOpts: { + defaultTimeoutInterval: 360000 + }, + + capabilities: { + browserName: 'chrome' + }, + + onPrepare: function() { + browser.driver.manage().window().maximize(); + }, + + /*multiCapabilities: [{ + browserName: 'chrome' + }, { + browserName: 'firefox' + }]/*, { + browserName: 'internet explorer' + }], { + browserName: 'safari' + }]*/ +} \ No newline at end of file diff --git a/dashboardOne_spec.js b/dashboardOne_spec.js new file mode 100644 index 0000000..645eccc --- /dev/null +++ b/dashboardOne_spec.js @@ -0,0 +1,1536 @@ +//dashboardOne_spec.js + +describe('Journeysmap script', function () { + //app-journeysmap landing page + var UserNameTextBox = element(by.css('#txtU')); + var PasswordTextBox = element(by.css('#txtP')); + + //Open browser + //browser.driver.manage().window().setSize(1600, 800); + browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login'); + + it('should have a title', async function () { + await expect(browser.getTitle()).toEqual('Login'); + }); + + //Sign In + SignIn(UserNameTextBox, PasswordTextBox); + + 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 PageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)')); + var PageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope')); + var NextButton = element(by.css('.btn')); + var EC = protractor.ExpectedConditions; + var InvalidIcon = element(by.css('.far:nth-child(4)')); + var PageValidationText = element(by.css('.ng-binding:nth-child(1)')); + var EyeIcon = element(by.css('.fa-eye')); + var JourneysGreeting = element(by.css('.dropdown')); + + expect(await PageGreetingText.getText()).toEqual('Login and start exploring.'); + browser.sleep(2500); + await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() { + browser.sleep(2500); + }); + await PasswordTextBox.sendKeys('edmin123').then(function() { + browser.sleep(2500); + }); + expect(await PageSubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here."); + expect(await PageSubTextTwo.getText()).toEqual('Forgot your password? Click here.'); + await NextButton.click().then(function() { + browser.sleep(2500); + }); + browser.wait(EC.visibilityOf(InvalidIcon)); + expect(await PageValidationText.getText()).toEqual("Uh oh. Something isn't quite right. Please try again."); + await PasswordTextBox.click().then(function() { + browser.sleep(2500); + }); + browser.wait(EC.invisibilityOf(PageValidationText)); + await EyeIcon.click().then(function() { + browser.sleep(2500); + }); + await PasswordTextBox.clear().then(function() { + browser.sleep(1000); + PasswordTextBox.sendKeys('3Dm!nAuto'); + browser.sleep(1000); + }); + await NextButton.click().then(function() { + browser.sleep(5000); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); + expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); + } + + //<<<>>> + ProfileWidget(); + + MyProgressWidget(); + + InterestSurveyResultsWidget(); + InterestSurveyResultsClusters(); + InterestSurveyResultsCreateJourney(); + + SkillsAssessmentWidget(); + SkillsAssessmentResults(); + BeginCareerExploration(); + + MyCareersCarousel(); + + //Sign Out*/ + SignOut(); +}); + +function ProfileWidget() { + it(': ProfileWidget, should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () { + var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa')); + var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text')); + var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text')); + var FollowersDivTitle = element(by.css('.default-color2 > h3')); + var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)')); + var FollowersDivGotItButton = element(by.css('.btn-lg')); + var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy')); + var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil')); + var ABoutMeInputArea = element(by.id('inputArea')); + var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy')); + var RoleModelNameOne = element(by.css('.inner-content-padding > .textSize:nth-child(1)')); + var RoleModelNameTwo = element(by.css('.textSize:nth-child(2)')); + var EducationWidgetTitle = element(by.css('#education > .jrnys_lead-body-copy')); + var EducationStartEndDate = element(by.css('.col-xs-4 > .ng-binding:nth-child(1)')); + var EducationSchoolName = element(by.css('.col-xs-8')); + + expect(await ConnectionsLink.getText()).toEqual('CONNECTIONS'); + await FollowersLink.click().then(function() { + browser.sleep(1000); + }); + expect(await FollowersDivTitle.getText()).toEqual('This feature is on its way!'); + expect(await FollowersDivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next."); + await FollowersDivGotItButton.click().then(function() { + browser.sleep(1000); + }); + await ProfileWidgetExpandCollapseIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await AboutMeWidgetTitle.getText()).toEqual('About Me'); + browser.actions().mouseMove(element(by.css('.ng-scope > #aboutMeFull'))).perform().then(function() { + browser.sleep(1000); + }); + await AboutMePencil.click().then(function() { + browser.sleep(1000); + }); + await ABoutMeInputArea.clear().then(function() { + browser.sleep(2500); + }); + await ABoutMeInputArea.sendKeys('This is my automated bio, there are many like it but this one is mine.'); + await AboutMePencil.click().then(function() { + browser.sleep(1000); + }); + browser.executeScript('window.scrollTo(0, 780);').then(function() { + browser.sleep(2500); + }); + expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model'); + expect(await RoleModelNameOne.getText()).toEqual('Elon Musk'); + expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson'); + expect(await EducationWidgetTitle.getText()).toEqual('Education'); + expect(await EducationStartEndDate.getText()).toEqual('06/2005'); + expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(2500); + }); + await ProfileWidgetExpandCollapseIcon.click().then(function() { + browser.sleep(2500); + }); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function MyProgressWidget() { + it(': MyProgressWidget, should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () { + var MyProgressWidgetTitle = element(by.css('.yourProgressTitle')); + var ProgressLevel = element(by.css('.myProgressLevel')); + var ProgressWidgetExpandIcon = element(by.css('.full-width .ng-scope')); + var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope')); + var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); + var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope')); + var ActionTwoRetake = element(by.linkText('Retake')); + var ActionRetakeTitlePage = element(by.css('.jrnys_lead-body-copy')); + var CancelButton = element(by.css('.btn-md')); + var ActionThree = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); + var ActionThreeCompleted = element(by.css('.col-md-3:nth-child(3) > .ng-scope')); + var ActionThreeRetake = element(by.css('.col-md-3:nth-child(3) .redo')); + var ActionFour = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); + var ActionFourCompleted = element(by.css('.col-md-3:nth-child(4) > .ng-scope')); + var ActionFourRetake = element(by.linkText('Keep Exploring')); + var KeepExploringTitlePage = element(by.css('.col-sm-12')); + var KeepExploringBackLink = element(by.css('.btn-primary-back-mod')); + var ProgressWidgetCollapseIcon = element(by.css('.full-width > div > .ng-scope')); + var InterestSurveyTitle = element(by.css('.jrnys_lead-body-copy')); + var TextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)')); + var TextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)')); + var TextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)')); + var EspanolButton = element(by.linkText('Español')); + var EnglishButton = element(by.linkText('English')); + var LanguageAlertDiv = element(by.css('p:nth-child(7)')); + var LanguageAlterConfirmButton = element(by.css('.confirm')); + var DislikeEmoji = element(by.id('emoji_0_0')); + var MehEmoji = element(by.id('emoji_0_1')); + var UnsureEmoji = element(by.id('emoji_0_2')); + var LikeItEmoji = element(by.id('emoji_0_3')); + var LoveItEmoji = element(by.id('emoji_0_4')); + var PreviousQuestion = element(by.linkText('< Previous Question')); + var CancelSurveyButton = element(by.css('.btn-md')); + var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); + var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); + var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); + var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + + expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS'); + expect(await ProgressLevel.getText()).toEqual('Level: Scout'); + await ProgressWidgetExpandIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await ActionOneCompleted.getText()).toContain('Account Creation'); + expect(await ActionOneCompleted.getText()).toContain('Completed'); + expect(await ActionTwo.getText()).toContain('Interest Survey'); + expect(await ActionTwoCompleted.getText()).toContain('Completed'); + //Interest Survey page - validate English & Spanish text + await ActionTwoRetake.click().then(function() { + browser.sleep(5000); + }); + expect(await InterestSurveyTitle.getText()).toEqual('Interest Survey'); + expect(await TextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!"); + expect(await TextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.'); + expect(await TextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!'); + await LikeItEmoji.click(); + await PreviousQuestion.click(); + await EspanolButton.click().then(function() { + browser.sleep(5000) + }); + expect(await LanguageAlertDiv.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?'); + await LanguageAlterConfirmButton.click(); + expect(await TextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!'); + expect(await TextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.'); + expect(await TextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!'); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click().then(function() { + browser.sleep(5000) + }); + await CancelSurveyButton.click().then(function() { + browser.sleep(5000); + browser.waitForAngular(); + }); + browser.executeScript('window.scrollTo(0, 1405);').then(function() { + browser.sleep(5000); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); EDM-1726 + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 + expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + browser.executeScript('window.scrollTo(0, 0);').then(function() { + browser.sleep(5000); + }); + //Take Interest Survey + await ActionTwoRetake.click().then(function() { + browser.sleep(5000); + }); + browser.waitForAngular(); + await EnglishButton.click(); + browser.waitForAngular(); + await DislikeEmoji.click(); + await MehEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click();//5 + await LoveItEmoji.click(); + await MehEmoji.click(); + await UnsureEmoji.click(); + await LoveItEmoji.click(); + await DislikeEmoji.click();//10 + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//15 + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click(); + await DislikeEmoji.click();//20 + await DislikeEmoji.click(); + await LoveItEmoji.click(); + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click();//25 + await LoveItEmoji.click(); + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//30 + await DislikeEmoji.click(); + await MehEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click();//35 + await LoveItEmoji.click(); + await MehEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await DislikeEmoji.click();//40 + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//45 + await DislikeEmoji.click(); + await LoveItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click(); + await DislikeEmoji.click();//50 + await DislikeEmoji.click(); + await MehEmoji.click(); + await DislikeEmoji.click(); + await LikeItEmoji.click(); + await LikeItEmoji.click();//55 + await LoveItEmoji.click(); + await MehEmoji.click(); + await LikeItEmoji.click(); + await LoveItEmoji.click(); + await MehEmoji.click();//60 + browser.sleep(5000); + expect(await PageTitle.getText()).toEqual('Interest Survey Result'); + browser.sleep(5000); + await DashboardHeaderLink.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionThree.getText()).toContain('Skills Assessment'); + expect(await ActionThreeCompleted.getText()).toContain('Completed'); + await ActionThreeRetake.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionRetakeTitlePage.getText()).toEqual('Skills Assessment'); + await CancelButton.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionFour.getText()).toContain('Explore Careers'); + expect(await ActionFourCompleted.getText()).toContain('Completed'); + await ActionFourRetake.click().then(function() { + browser.sleep(5000); + }); + expect(await KeepExploringTitlePage.getText()).toEqual('Career Exploration'); + await KeepExploringBackLink.click().then(function() { + browser.sleep(5000); + }); + await ProgressWidgetCollapseIcon.click().then(function() { + browser.sleep(2500); + }); + browser.executeScript('window.scrollTo(0, 1250);').then(function() { + browser.sleep(5000); + }); + expect(await FirstOccupationCardTitle.getText()).not.toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await SecondOccupationCardTitle.getText()).not.toEqual('Administrative Services Managers'); + expect(await ThirdOccupationCardTitle.getText()).not.toEqual('Administrative Services Managers'); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function InterestSurveyResultsWidget() { + it(': InterestSurveyResultsWidget, should interact with Interest Survey Results widget, validate results', async function () { + var InterestSurveyWidgetTitle = element(by.css('.fullHeight:nth-child(2) > div:nth-child(2) > .jrnys_lead-body-copy > div')); + var InterestEditLink = element(by.css('.fa-pencil:nth-child(1)')); + var EditInterestDivTitle = element(by.css('#interests .jrnys_lead-body-copy')); + var EditRealisticTitle = element(by.css('.ng-scope:nth-child(1) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); + var EditRealisticTextBox = element(by.id('Realistic')); + var EditRealisticDescription = element(by.css('.ng-scope:nth-child(1) > .row-padding-mobile .color3a-color')); + var EditInvestigativeTitle = element(by.css('.ng-scope:nth-child(2) > .row-padding-mobile .jrnys_support-tex > .ng-binding')); + var EditInvestigaviveTextBox = element(by.id('Investigative')); + var EditInvestigativeDescription = element(by.css('.ng-scope:nth-child(2) > .row-padding-mobile .color3a-color')); + var EditArtisticTitle = element(by.css('.ng-scope:nth-child(3) .jrnys_support-tex > .ng-binding')); + var EditArtisticTextBox = element(by.id('Artistic')); + var EditArtisticDescription = element(by.css('.ng-scope:nth-child(3) > .row-padding-mobile .color3a-color')); + var EditSocialTitle = element(by.css('.ng-scope:nth-child(4) .jrnys_support-tex > .ng-binding')); + var EditSocialTextBox = element(by.id('Social')); + var EditSocialDescription = element(by.css('.ng-scope:nth-child(4) > .row-padding-mobile .color3a-color')); + var EditEnterprisingTitle = element(by.css('.ng-scope:nth-child(5) .jrnys_support-tex > .ng-binding')); + var EditEnterprisingTextBox = element(by.id('Enterprising')); + var EditEnterprisingDescription = element(by.css('.ng-scope:nth-child(5) > .row-padding-mobile .color3a-color')); + var EditConventionalTitle = element(by.css('.ng-scope:nth-child(6) .jrnys_support-tex > .ng-binding')); + var EditConventionalTextBox = element(by.id('Conventional')); + var EditConventionalDescription = element(by.css('.ng-scope:nth-child(6) .color3a-color')); + var EditInterestSurveyDivSaveButton = element(by.css('.btn-info:nth-child(2)')); + var TopResultTitleOne = element(by.css('.surveyResultSpacingTop > div > div > .ng-binding')); + var TopResultDescriptionOne = element(by.css('.surveyResultSpacingTop .surveyResultTruncateText')); + var TopResultsReadMoreLinkOne = element(by.css('.surveyResultSpacingTop > div > div:nth-child(2)')); + var TopResultsReadMoreTitle = element(by.css('div:nth-child(2) > div > .ng-binding:nth-child(2)')); + var TopResultsReadMoreDescriptionA = element(by.css('div:nth-child(3) > .ng-binding:nth-child(1)')); + var TopResultsReadMoreDescriptionB = element(by.css('div:nth-child(4) > .ng-binding')); + var TopResultsReadMoreCloseLink = element(by.css('.close')); + var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); + var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); + var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); + var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var TopResultTitleTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div > .ng-binding')); + var TopResultDescriptionTwo = element(by.css('.ng-scope:nth-child(4) .surveyResultTruncateText')); + var TopResultsReadMoreLinkTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div:nth-child(2)')); + var TopResultTitleThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div > .ng-binding')); + var TopResultDescriptionThree = element(by.css('.ng-scope:nth-child(5) .surveyResultTruncateText')); + var TopResultsReadMoreLinkThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div:nth-child(2)')); + + var InterestResultsLink = element(by.css('div:nth-child(6) .fa-chart-bar')); + var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var TopThreeTraitsHeader = element(by.css('.fullHeight > .jrnys_lead-body-copy')); + var TopThreeTraitsOne = element(by.css('.col-md-4:nth-child(1) .jrnys_lead-body-copy')); + var TopThreeTraitsDescriptionOne = element(by.css('.col-md-4:nth-child(1) .ng-binding:nth-child(2)')); + var TopThreeTraitsTwo = element(by.css('.col-md-4:nth-child(2) .jrnys_lead-body-copy')); + var TopThreeTraitsDescriptionTwo = element(by.css('.col-md-4:nth-child(2) .ng-binding:nth-child(2)')); + var TopThreeTraitsThree = element(by.css('.col-md-4:nth-child(3) .jrnys_lead-body-copy')); + var TopThreeTraitsDescriptionThree = element(by.css('.col-md-4:nth-child(3) .ng-binding:nth-child(2)')); + var ViewAllLink = element(by.linkText('View All')); + var TopTraitsOne = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); + var TopTraitsOneDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); + var TopTraitsTwo = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); + var TopTraitsTwoDescription = element(by.css('.row:nth-child(1) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); + var TopTraitsThree = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); + var TopTraitsThreeDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); + var TopTraitsFour = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); + var TopTraitsFourDescription = element(by.css('.row:nth-child(2) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); + var TopTraitsFive = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .jrnys_lead-body-copy')); + var TopTraitsFiveDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(1) > .ng-binding:nth-child(2)')); + var TopTraitsSix = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .jrnys_lead-body-copy')); + var TopTraitsSixDescription = element(by.css('.row:nth-child(3) > .col-md-6:nth-child(2) > .ng-binding:nth-child(2)')); + var XCloseLink = element(by.css('.close')); + var ShareResultsIcon = element(by.css('.fa-share-alt')); + var ShareResultsDivTitle = element(by.css('#interestSurveyShareResult > .jrnys_lead-body-copy')); + var ToTextBox = element(by.css('tr:nth-child(2) .form-control')); + var FromTextBox = element(by.css('tr:nth-child(1) .form-control')); + var CancelButton = element(by.css('.btn-alt-info')); + var SendButton = element(by.css('tr:nth-child(7) .btn-info')); + var DivAlertTitle = element(by.css('h2')); + var DivAlertMessage = element(by.css('p:nth-child(7)')); + var DivOKButton = element(by.css('.confirm')); + var EC = protractor.ExpectedConditions; + + /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + });*/ + browser.executeScript('window.scrollTo(0, 610);').then(function() { + browser.sleep(2500); + }); + await InterestEditLink.click().then(function() { + browser.sleep(2500); + }); + expect(await EditInterestDivTitle.getText()).toEqual('Interests'); + expect(await EditRealisticTitle.getText()).toEqual('Realistic'); + await EditRealisticTextBox.clear(); + await EditRealisticTextBox.sendKeys('21'); + //await EditRealisticTextBox.sendKeys(protractor.Key.CONTROL, "a", protractor.Key.DELETE).sendKeys('21').sendKeys(protractor.Key.TAB); SAMPLE + browser.sleep(1000); + expect(await EditRealisticDescription.getText()).toEqual('You see things as they are and rely most heavily on your sense of sight and touch.'); + expect(await EditInvestigativeTitle.getText()).toEqual('Investigative'); + await EditInvestigaviveTextBox.clear(); + await EditInvestigaviveTextBox.sendKeys('25'); + browser.sleep(1000); + expect(await EditInvestigativeDescription.getText()).toEqual('You’re a super sleuth who loves to solve math and science problems.'); + expect(await EditArtisticTitle.getText()).toEqual('Artistic'); + await EditArtisticTextBox.clear(); + await EditArtisticTextBox.sendKeys('17'); + browser.sleep(1000); + expect(await EditArtisticDescription.getText()).toEqual('Your electives are full of art, drama, creative writing, and music classes.'); + expect(await EditSocialTitle.getText()).toEqual('Social'); + await EditSocialTextBox.clear(); + await EditSocialTextBox.sendKeys('22'); + browser.sleep(1000); + expect(await EditSocialDescription.getText()).toEqual('You’re a friend to everyone. You like to help, interact and share information.'); + expect(await EditEnterprisingTitle.getText()).toEqual('Enterprising'); + await EditEnterprisingTextBox.clear(); + await EditEnterprisingTextBox.sendKeys('27'); + browser.sleep(1000); + expect(await EditEnterprisingDescription.getText()).toEqual('You’re persuasive and could sell just about anything to anyone.'); + expect(await EditConventionalTitle.getText()).toEqual('Conventional'); + await EditConventionalTextBox.clear(); + await EditConventionalTextBox.sendKeys('23'); + browser.sleep(1000); + expect(await EditConventionalDescription.getText()).toEqual('People might call you TYPE A, but they’re just jealous of your ability to get things done.'); + browser.sleep(1000); + await EditInterestSurveyDivSaveButton.click(); + browser.sleep(1000); + expect(await InterestSurveyWidgetTitle.getText()).toEqual('Interest Survey Results'); + expect(await TopResultTitleOne.getText()).toEqual('Enterprising (27)'); + expect(await TopResultDescriptionOne.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); + await TopResultsReadMoreLinkOne.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultsReadMoreTitle.getText()).toEqual('Enterprising (27)'); + expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Enterprising personality types are adventurous, ambitious, assertive, extroverted, energetic, enthusiastic, confident, optimistic, dominant, persuasive, and motivational.'); + expect(await TopResultsReadMoreDescriptionB.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.'); + await TopResultsReadMoreCloseLink.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultTitleTwo.getText()).toEqual('Investigative (25)'); + expect(await TopResultDescriptionTwo.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); + await TopResultsReadMoreLinkTwo.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultsReadMoreTitle.getText()).toEqual('Investigative (25)'); + expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Investigative personality types are intellectual, introspective, inquisitive, curious, methodical, rational, analytical, and logical.'); + expect(await TopResultsReadMoreDescriptionB.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.'); + await TopResultsReadMoreCloseLink.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultTitleThree.getText()).toEqual('Conventional (23)'); + expect(await TopResultDescriptionThree.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); + await TopResultsReadMoreLinkThree.click().then(function() { + browser.sleep(1000); + }); + expect(await TopResultsReadMoreTitle.getText()).toEqual('Conventional (23)'); + expect(await TopResultsReadMoreDescriptionA.getText()).toEqual('Conventional personality types are conscientious and conservative, logical, efficient, orderly, organized, thorough, and detail-oriented.'); + expect(await TopResultsReadMoreDescriptionB.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.'); + await TopResultsReadMoreCloseLink.click().then(function() { + browser.sleep(1000); + }); + browser.executeScript('window.scrollTo(0, 1250);').then(function() { + browser.sleep(5000); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest');//loading issue, not consistent EDM-1726 + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit');//loading issue, not consistent EDM-1726 + expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + browser.executeScript('window.scrollTo(0, 610);').then(function() { + browser.sleep(2500); + }); + await InterestResultsLink.click().then(function() { + browser.sleep(10000); + }); + expect(await PageTitle.getText()).toEqual('Interest Survey Result'); + expect(await TopThreeTraitsHeader.getText()).toEqual('Your top 3 traits View All'); + expect(await TopThreeTraitsOne.getText()).toEqual('Enterprising (27)'); + expect(await TopThreeTraitsDescriptionOne.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(await TopThreeTraitsTwo.getText()).toEqual('Investigative (25)'); + expect(await TopThreeTraitsDescriptionTwo.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(await TopThreeTraitsThree.getText()).toEqual('Conventional (23)'); + expect(await TopThreeTraitsDescriptionThree.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.'); + await ViewAllLink.click().then(function() { + browser.sleep(1000); + }); + expect(await TopTraitsOne.getText()).toEqual('Enterprising (27)'); + expect(await TopTraitsOneDescription.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(await TopTraitsTwo.getText()).toEqual('Investigative (25)'); + expect(await TopTraitsTwoDescription.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(await TopTraitsThree.getText()).toEqual('Conventional (23)'); + expect(await TopTraitsThreeDescription.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(await TopTraitsFour.getText()).toEqual('Social (22)'); + expect(await TopTraitsFourDescription.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(await TopTraitsFive.getText()).toEqual('Realistic (21)'); + expect(await TopTraitsFiveDescription.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(await TopTraitsSix.getText()).toEqual('Artistic (17)'); + expect(await TopTraitsSixDescription.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.'); + await XCloseLink.click().then(function() { + browser.sleep(1000); + }); + browser.waitForAngular(); + await ShareResultsIcon.click(); + expect(await ShareResultsDivTitle.getText()).toEqual('Email Your Results'); + await SendButton.click(); + browser.sleep(1000); + expect(await DivAlertTitle.getText()).toEqual('No Email'); + expect(await DivAlertMessage.getText()).toEqual('Please provide at least one email address to send.'); + await DivOKButton.click(); + browser.waitForAngular(); + await ToTextBox.sendKeys('jhuerta@edmin'); + await SendButton.click(); + browser.sleep(1000); + expect(await DivAlertTitle.getText()).toEqual('Invalid Email'); + expect(await DivAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.'); + await DivOKButton.click(); + browser.sleep(1000); + await CancelButton.click(); + browser.waitForAngular(); + /*await ShareResultsIcon.click();//INCONSISTENT + await FromTextBox.clear(); + await FromTextBox.sendKeys("Juan's Automated Regression"); + await ToTextBox.sendKeys('jhuerta@edmin.com'); + browser.sleep(1000); + await SendButton.click(); + browser.sleep(2500); + await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!'); + await expect(DivAlertMessage.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com'); + await DivOKButton.click(); + browser.waitForAngular(); + browser.wait(EC.elementToBeClickable(ShareResultsIcon)); + browser.waitForAngular(); + browser.getCurrentUrl();*/ + }); +} + +function InterestSurveyResultsClusters() { + it(': InterestSurveyResultsClusters, should verify the Interest Survey Clusters widget and jump to learn more page', async function () { + var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy')); + var WidgetDescription = element(by.css('.row > span:nth-child(2)')); + var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); + var SelectButton = element(by.xpath('//territory-card-action-bar/div/button')); + var PathwaysLink = element(by.linkText('Pathways')); + var ClustersLink = element(by.linkText('Clusters')); + var BestMatchIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); + var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); + var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span')); + var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i')); + var JourneymanIcon = element(by.xpath('/html/body/div[1]/div/div[2]/div[3]/div/survey-result-career/div/div/div[2]/div[1]/div[1]/div/career-territory-card/territory-card/div/div[3]/div[2]/territory-card-more-back/div/div/div/div/div[4]/div[2]')) + var LearnMoreButton = element(by.xpath('//div/div/div/div/div[2]/div[2]')); + var EC = protractor.ExpectedConditions; + var JourneyInfoIcon = element(by.css('.journey-info-circle')); + + expect(await WidgetTitle.getText()).toEqual('Clusters'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.'); + await PathwaysLink.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.'); + await ClustersLink.click().then(function() { + browser.sleep(2500); + }); + expect(await WidgetTitle.getText()).toEqual('Clusters'); + expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.'); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await SelectButton.click().then(function() { + browser.sleep(2500); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + //expect(await BestMatchIcon.getText()).toContain('Best Fit'); EDM-1726 + await AtAGlanceIcon.click().then(function() { + browser.sleep(2500); + }); + await AtAGlanceBackOfCardXCloseLink.click().then(function() { + browser.sleep(2500); + }); + await OccupationCardEllipsis.click().then(function() { + browser.sleep(2500); + }); + await JourneymanIcon.click().then(function() { + browser.sleep(5000); + }); + browser.waitForAngular(); + browser.wait(EC.elementToBeClickable(JourneyInfoIcon)); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function InterestSurveyResultsCreateJourney() { + it(': InterestSurveyResultsCreateJourney, should create a Journey to Top Interest Survey Result', async function () { + var JourneySideBarHeaderOne = element(by.css('.side-bar-child-text > span')); + var JourneyInfoIcon = element(by.css('.journey-info-circle')); + var JourneyInfoDivTitle = element(by.css('.col-lg-12 > .ng-binding')); + var JourneyInfoDivSubText = element(by.css('.col-lg-12:nth-child(3)')); + var JourneyInfoDivXCloseLink = element(by.css('.fa-times')); + var JourneyEntryPoint = element(by.css('.journeyInput')); + var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(1) > .sidebarScrollListTxt > .ng-binding')); + var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable')); + var JourneysSideBarHeaderTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); + var JourneySaveIcon = element(by.css('#journeyitem0 .mapActionBarActive > .fas')); + var JourneySaveDivTitle = element(by.css('h2')); + var JourneySaveDivDescription = element(by.css('p:nth-child(7)')); + var JourneyPersistButtonNo = element(by.css('.cancel')); + var JourneyPersistButtonYes = element(by.css('.confirm')); + var JourneyDetailsIcon = element(by.css('#journeyitem0 .journey-info-circle')); + var ActionTitleBar = element(by.css('.ng-binding:nth-child(2)')); + var Expand8thGradeSubJourney = element(by.css('.ng-scope:nth-child(4) > div > div .side-bar-journey-detail-child-txt:nth-child(5)')); + var ExpandSubjectMathematicsSubJourney = element(by.css('.ng-scope:nth-child(11) .side-bar-journey-detail-child-txt:nth-child(6)')); + var ExpandSubJourney = element(by.css('.ng-scope:nth-child(2) > div > div:nth-child(1) > .ng-isolate-scope .side-bar-journey-detail-child-txt:nth-child(6)')); + var UpOneLevelLink = element(by.css('div:nth-child(1) > .sidebarBackTxt')); + var EditJourneyLink = element(by.linkText('Edit Journey')); + var WayPointOne = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding')); + var WayPointTwo = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding')); + var WayPointThree = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding')); + var WayPointFour = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding')); + var WayPointFive = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding')); + var WayPointSix = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding')); + var SelectWayPointTwoEllipsis = element(by.css('.itemWaypoint:nth-child(2) > .dropdown > .fas')); + var DeleteLink = element(by.linkText('Delete')); + var DeleteDiv = element(by.css('.modal-content > .ng-scope div:nth-child(1)')); + var DeleteDivRemoveThisWaypoint = element(by.css('.btn:nth-child(3)')); + var cancel = element(by.css('.fa-times-circle')); + var ActionBarSaveIconOne = element(by.css('.mapActionBarActive:nth-child(2) > .fas')); + var Select12thGradeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(7) > .dropdown > .fas')); + var InsertAStop = element(by.linkText('Insert a Stop')); + var SixthGradeWayPoint = element(by.css('.itemWaypoint:nth-child(1) > .itemTextContainer > .ng-binding:nth-child(1)')); + var SeventhGradeWayPoint = element(by.css('.itemWaypoint:nth-child(2) > .itemTextContainer > .ng-binding:nth-child(1)')); + var EightGradeWayPoint = element(by.css('.itemWaypoint:nth-child(3) > .itemTextContainer > .ng-binding:nth-child(1)')); + var NinethGradeWayPoint = element(by.css('.itemWaypoint:nth-child(4) > .itemTextContainer > .ng-binding:nth-child(1)')); + var TenthGradeWayPoint = element(by.css('.itemWaypoint:nth-child(5) > .itemTextContainer > .ng-binding:nth-child(1)')); + var EleventhGradeWayPoint = element(by.css('.itemWaypoint:nth-child(6) > .itemTextContainer > .ng-binding:nth-child(1)')); + var TwelvethGradeWayPoint = element(by.css('.itemWaypoint:nth-child(7) > .itemTextContainer > .ng-binding:nth-child(1)')); + var ThirteenthWayPoint = element(by.css('.itemWaypoint:nth-child(8) > .itemTextContainer > .ng-binding:nth-child(1)')); + var FourteenthWayPoint = element(by.css('.itemWaypoint:nth-child(9) > .itemTextContainer > .ng-binding:nth-child(1)')); + var EditSearchText = element(by.css('.sidebarNoResults:nth-child(1)')); + var MapSearchTextBox = element(by.css('#searchBox')); + var MagnifyingGlassIcon = element(by.css('.glyphicon-search')); + var ActionTitleBarTwo = element(by.css('.sideBarSearchBarContainer > div:nth-child(1) > .ng-binding')); + var CertificationResultsTab = element(by.css('#tab-item-6 > .ng-binding'));//#tab-item-2 > .ng-binding')); + var ThirdResultViewOnMapIconIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(6) > .fas'));//#tab-content-2 #searchitem2 div:nth-child(6) > .fas')); + var MapZoomInIcon = element(by.css('.glyphicon-plus')); + var ThirdResultAddIcon = element(by.css('#tab-content-6 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon'));//#tab-content-2 #searchitem2 div:nth-child(5) > #mapActionBarJourneyIcon')); + var FifteenthWayPoint = element(by.css('.itemWaypoint:nth-child(10) > .itemTextContainer > .ng-binding')); + var ActionBarSaveIconTwo = element(by.css('.fa-save')); + var MapZoomOutIcon = element(by.css('.glyphicon-minus')); + var SelectCollegeWayPointEllipsis = element(by.css('.itemWaypoint:nth-child(9) > .dropdown > .fas')); + var ReOrderLink = element(by.linkText('Re-order')); + var GrabCollegeWayPoint = element(by.css('.selectedWaypoint > .itemTextContainer > .ng-binding:nth-child(1)')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + + /*short cut to create journey + var Results = element(by.css('div:nth-child(6) .fa-chart-bar')); + var SecondAtAGlanceIcon = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]')); + var Select = element(by.xpath('//territory-card-action-bar/div/button')); + var Journey = element(by.xpath('//action-journey/span')); + await Results.click().then(function() { + browser.sleep(5000); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await Select.click().then(function() { + browser.sleep(5000); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await Select.click().then(function() { + browser.sleep(5000); + }); + browser.actions().mouseMove(SecondAtAGlanceIcon).perform().then(function() { + browser.sleep(2500); + }); + await Journey.click().then(function() { + browser.sleep(5000); + });//end*/ + + /*short cut to retrieve journey + var MyJourneys = element(by.css('#nbMyJourneys .span-navbar-hover')); + var Journey = element(by.xpath('//div[2]/div/div/span')); + var ViewOnMap = element(by.css('.col-md-4 > .btn-info')); + await MyJourneys.click().then(function() { + browser.sleep(2500); + }); + await Journey.click().then(function() { + browser.sleep(2500); + }); + await ViewOnMap.click().then(function() { + browser.sleep(2500); + });//end - hide upto row 829*/ + + expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey'); + await JourneyInfoIcon.click().then(function() { + browser.sleep(1000); + }); + expect(await JourneyInfoDivTitle.getText()).toEqual('Create Your Journey'); + expect(await JourneyInfoDivSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.'); + await JourneyInfoDivXCloseLink.click().then(function() { + browser.sleep(1000); + }); + await JourneyEntryPoint.click(); + browser.waitForAngular(); + await JourneyEntryPoint.sendKeys('6'); + await SelectEntryPointDropDown.click(); + browser.waitForAngular(); + await StartYourJourneyButton.click(); + browser.waitForAngular(); + expect(await JourneysSideBarHeaderTwo.getText()).toEqual('Journey Search Results'); + browser.actions().mouseMove(JourneySaveIcon).perform().then(function() { + browser.sleep(1000); + }); + await JourneySaveIcon.click().then(function() { + browser.sleep(5000); + }); + expect(await JourneySaveDivTitle.getText()).toEqual('Journey saved!'); + expect(await JourneySaveDivDescription.getText()).toEqual('Would you like this journey to persist on the map?'); + await JourneyPersistButtonYes.click().then(function() { + browser.sleep(2500); + }); + await JourneyDetailsIcon.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); + await Expand8thGradeSubJourney.click().then(function() { + browser.sleep(5000); + }); + browser.actions().mouseMove(element(by.css('.ng-scope:nth-child(5) div:nth-child(2) .side-bar-journey-detail-child-txt:nth-child(5)'))).perform().then(function() { + browser.sleep(2500); + }); + await ExpandSubjectMathematicsSubJourney.click().then(function() { + browser.sleep(5000); + }); + browser.actions().mouseMove(JourneyDetailsIcon).perform().then(function() { + browser.sleep(2500); + }); + await ExpandSubJourney.click().then(function() { + browser.sleep(5000); + }); + await ExpandSubJourney.click().then(function() { + browser.sleep(5000); + }); + await ExpandSubJourney.click().then(function() { + browser.sleep(5000); + }); + await UpOneLevelLink.click().then(function() { + browser.sleep(5000); + }); + await UpOneLevelLink.click().then(function() { + browser.sleep(5000); + }); + await EditJourneyLink.click().then(function() { + browser.sleep(2500) + }); + expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); + expect(await WayPointOne.getText()).toEqual('Geometry'); + expect(await WayPointTwo.getText()).toEqual('Expressions and Equations'); + expect(await WayPointThree.getText()).toEqual('Mathematical Practices'); + expect(await WayPointFour.getText()).toEqual('The Number System'); + expect(await WayPointFive.getText()).toEqual('Statistics and Probability'); + expect(await WayPointSix.getText()).toEqual('Functions'); + await SelectWayPointTwoEllipsis.click().then(function() { + browser.sleep(2500); + }); + browser.actions().mouseMove(DeleteLink).perform().then(function() { + browser.sleep(1000); + }); + await DeleteLink.click().then(function() { + browser.sleep(2500); + }); + expect(await DeleteDiv.getText()).toEqual('Are you sure you want to remove Expressions and Equations from this journey?'); + await DeleteDivRemoveThisWaypoint.click().then(function() { + browser.sleep(2500); + }); + expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); + expect(await WayPointOne.getText()).toEqual('Geometry'); + expect(await WayPointTwo.getText()).toEqual('Mathematical Practices'); + expect(await WayPointThree.getText()).toEqual('The Number System'); + expect(await WayPointFour.getText()).toEqual('Statistics and Probability'); + expect(await WayPointFive.getText()).toEqual('Functions'); + await ActionBarSaveIconOne.click().then(function() { + browser.sleep(2500); + }); + expect(await ActionTitleBar.getText()).toEqual('Journey Search Results'); + await UpOneLevelLink.click().then(function() { + browser.sleep(5000); + }); + await UpOneLevelLink.click().then(function() { + browser.sleep(5000); + }); + await EditJourneyLink.click().then(function() { + browser.sleep(2500) + }); + expect(await ActionTitleBar.getText()).toEqual('Journey Edit'); + expect(await SixthGradeWayPoint.getText()).toEqual('6'); + expect(await SeventhGradeWayPoint.getText()).toEqual('7'); + expect(await EightGradeWayPoint.getText()).toEqual('8'); + expect(await NinethGradeWayPoint.getText()).toEqual('9'); + expect(await TenthGradeWayPoint.getText()).toEqual('10'); + expect(await EleventhGradeWayPoint.getText()).toEqual('11'); + browser.actions().mouseMove(FourteenthWayPoint).perform().then(function() { + browser.sleep(1000); + }); + expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); + expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); + expect(await FourteenthWayPoint.getText()).toEqual('Administrative Services Managers'); + await Select12thGradeWayPointEllipsis.click().then(function() { + browser.sleep(2500) + }); + browser.actions().mouseMove(InsertAStop).perform().then(function() { + browser.sleep(1000); + }); + await InsertAStop.click().then(function() { + browser.sleep(2500); + }); + expect(await ActionTitleBar.getText()).toEqual('Journey Add Stop'); + expect(await EditSearchText.getText()).toEqual('Use the search bar above to find a stop to add to your journey, or pick one from the map.'); + await MapSearchTextBox.sendKeys('Engineer').then(function() { + browser.sleep(2500); + }); + await MagnifyingGlassIcon.click().then(function() { + browser.sleep(5000); + }); + expect(await ActionTitleBarTwo.getText()).toEqual('Search Results'); + await CertificationResultsTab.click().then(function() { + browser.sleep(5000); + }); + browser.actions().mouseMove(ThirdResultViewOnMapIconIcon).perform().then(function() { + browser.sleep(1000); + }); + await ThirdResultViewOnMapIconIcon.click().then(function() { + browser.sleep(5000); + }); + await MapZoomInIcon.click().then(function() { + browser.sleep(2500); + }); + await MapZoomInIcon.click().then(function() { + browser.sleep(2500); + }); + await ThirdResultAddIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await SixthGradeWayPoint.getText()).toEqual('6'); + expect(await SeventhGradeWayPoint.getText()).toEqual('7'); + expect(await EightGradeWayPoint.getText()).toEqual('8'); + expect(await NinethGradeWayPoint.getText()).toEqual('9'); + expect(await TenthGradeWayPoint.getText()).toEqual('10'); + expect(await EleventhGradeWayPoint.getText()).toEqual('11'); + browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { + browser.sleep(1000); + }); + expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); + expect(await ThirteenthWayPoint.getText()).toEqual('National Chief Engineer'); + expect(await FourteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); + expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); + await ActionBarSaveIconTwo.click().then(function() { + browser.sleep(2500); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000); + }); + await MapZoomOutIcon.click().then(function() { + browser.sleep(1000) + }); + /*browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { + browser.sleep(1000); + });*/ + await EditJourneyLink.click().then(function() { + browser.sleep(2500) + }); + await SelectCollegeWayPointEllipsis.click().then(function() { + browser.sleep(2500) + }); + await ReOrderLink.click().then(function() { + browser.sleep(2500) + }); + browser.actions().dragAndDrop(GrabCollegeWayPoint, ThirteenthWayPoint).mouseUp().perform(); + browser.sleep(2500) + expect(await SixthGradeWayPoint.getText()).toEqual('6'); + expect(await SeventhGradeWayPoint.getText()).toEqual('7'); + expect(await EightGradeWayPoint.getText()).toEqual('8'); + expect(await NinethGradeWayPoint.getText()).toEqual('9'); + expect(await TenthGradeWayPoint.getText()).toEqual('10'); + expect(await EleventhGradeWayPoint.getText()).toEqual('11'); + browser.actions().mouseMove(FifteenthWayPoint).perform().then(function() { + browser.sleep(1000); + }); + expect(await TwelvethGradeWayPoint.getText()).toEqual('12'); + expect(await ThirteenthWayPoint.getText()).toEqual('Business Administration B.A./B.S.'); + expect(await FourteenthWayPoint.getText()).toEqual('National Chief Engineer'); + expect(await FifteenthWayPoint.getText()).toEqual('Administrative Services Managers'); + await ActionBarSaveIconOne.click().then(function() { + browser.sleep(2500); + }); + await DashboardHeaderLink.click().then(function() { + browser.sleep(5000); + }); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function SkillsAssessmentWidget() { + it(': SkillsAssessmentWidget, should take Skills Assessment', async function () { + var InterestRetakeLink = element(by.css('div:nth-child(2) > .fa-tasks')); + var SkillsAssessmentPageTitle = element(by.css('.jrnys_lead-body-copy')); + var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)')); + var SkillsSubQuestion = element(by.css('.questionText > .ng-binding:nth-child(2)')); + var BeginnerIcon = element(by.id('emoji_0_0')); + var BasicIcon = element(by.id('emoji_0_1')); + var SkilledIcon = element(by.id('emoji_0_2')); + var AdvancedIcon = element(by.id('emoji_0_3')); + var ExpertIcon = element(by.id('emoji_0_4')); + var PreviousQuestion = element(by.linkText('< Previous Question')); + var SkillsAssessmentResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var YourTop3SkillsWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); + var FitHeader = element(by.css('.active .jrnys_lead-body-copy')); + var BestFitHeaderOne = element(by.css('.item:nth-child(1) .ng-binding:nth-child(2) > .ng-binding')); + var DescriptionOne = element(by.css('.active .ng-binding:nth-child(2)')); + var BestFitHeaderTwo = element(by.css('.item:nth-child(1) .ng-binding:nth-child(3) > .ng-binding')); + var DescriptionTwo = element(by.css('.active .ng-binding:nth-child(3)')); + var BestFitHeaderThree = element(by.css('.item:nth-child(1) .ng-binding:nth-child(4) > .ng-binding')); + var DescriptionThree = element(by.css('.active .ng-binding:nth-child(4)')); + var CarrouselRightScroll = element(by.css('.glyphicon-chevron-right')); + var GreatFitHeaderOne = element(by.css('.item:nth-child(2) .ng-binding:nth-child(2) > .ng-binding')); + var GreatFitHeaderTwo = element(by.css('.item:nth-child(2) .ng-binding:nth-child(3) > .ng-binding')); + var GreatFitHeaderThree = element(by.css('.item:nth-child(2) .ng-binding:nth-child(4) > .ng-binding')); + var GoodFitHeaderOne = element(by.css('.item:nth-child(3) .ng-binding:nth-child(2) > .ng-binding')); + var GoodFitHeaderTwo = element(by.css('.item:nth-child(3) .ng-binding:nth-child(3) > .ng-binding')); + var GoodFitHeaderThree = element(by.css('.item:nth-child(3) .ng-binding:nth-child(4) > .ng-binding')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + + /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + });*/ + browser.executeScript('window.scrollTo(0, 610);').then(function() { + browser.sleep(2500); + }); + await InterestRetakeLink.click().then(function() { + browser.sleep(5000); + }); + expect(await SkillsAssessmentPageTitle.getText()).toEqual('Skills Assessment'); + expect(await SkillsQuestion.getText()).toEqual('Administration and Management'); + expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about business planning and leadership?'); + await SkilledIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Biology'); + expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about plant, animal and cell functions?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Body Coordination'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you coordinate moving your arms, legs, and torso together?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Building and Construction'); + expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about construction materials, methods, and tools?'); + await AdvancedIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Chemistry'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know chemistry?'); + await SkilledIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Clerical'); + expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about administrative tasks and processes?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Complex Problem Solving'); + expect(await SkillsSubQuestion.getText()).toEqual('How good are you at figuring out the best way to solve a problem?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Computers and Electronics'); + expect(await SkillsSubQuestion.getText()).toEqual('How effective are you at using electronic equipment?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Customer and Personal Service'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to handle customer needs and resolve service problems?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); + await AdvancedIcon.click(); + browser.sleep(2500); + await PreviousQuestion.click(); + browser.sleep(2500); + expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Fine Arts'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theory and techniques of an art form such as music, painting, drama, or other?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Foreign Language'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know a foreign language?'); + await AdvancedIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Helping People'); + expect(await SkillsSubQuestion.getText()).toEqual('How good are you at understanding how to help people?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Instructing'); + expect(await SkillsSubQuestion.getText()).toEqual('How skilled are you at teaching people how to do something?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Management of Financial Resources'); + expect(await SkillsSubQuestion.getText()).toEqual('What level of financial decision-maker are you?'); + await ExpertIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Mathematics'); + expect(await SkillsSubQuestion.getText()).toEqual('What is your level of math skill?'); + await SkilledIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Mechanical'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you design, use, repair, and maintain machines?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Medicine and Dentistry'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to provide health care?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Memorization'); + expect(await SkillsSubQuestion.getText()).toEqual('How good is your memory?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Monitoring'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you assess your or others’ work?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Negotiation'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you persuade others to see different points of view or compromise?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Operations Analysis'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze needs and requirements, then make a plan that meets them?'); + await AdvancedIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Personnel and Human Resources'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and procedures for recruiting, hiring, and training employees?'); + await AdvancedIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Production and Processing'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you oversee manufacturing and distribution processes?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Programming'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you write computer programs?'); + await AdvancedIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Psychology'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the methods of research, assessment, and treatment of human behavior?'); + await SkilledIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Public Safety and Security'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the equipment, policies, procedures, and strategies used to promote security operations?'); + await SkilledIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Quality Control Analysis'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you develop and use testing processes?'); + await AdvancedIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Repairing'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you repair machines or systems using the needed tools?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Sales and Marketing'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you perform marketing strategies and tactics?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Science'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you use scientific rules and methods to solve problems?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Sociology and Anthropology'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theories of group behavior, societal trends and influences, and human culture?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Speaking'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you convey information when you speak?'); + await SkilledIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Systems Analysis'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze systems?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Teaching and Course Design'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods of instruction?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Telecommunications'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you understand telecom systems?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Therapy and Counseling'); + expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods used in counseling?'); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Time Management'); + expect(await SkillsSubQuestion.getText()).toEqual("How well do you manage your and others' time?"); + await BasicIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Troubleshooting'); + expect(await SkillsSubQuestion.getText()).toEqual('How well can you identify and fix problems in machines or technology?'); + await BeginnerIcon.click(); + expect(await SkillsQuestion.getText()).toEqual('Writing'); + expect(await SkillsSubQuestion.getText()).toEqual("How well does your writing effectively communicate to an audience's particular need?"); + await BeginnerIcon.click(); + browser.sleep(10000); + expect(await SkillsAssessmentResultPageTitle.getText()).toEqual('Skills Assessment Result'); + expect(await YourTop3SkillsWidgetTitle.getText()).toEqual('Your top 3 skills View All'); + //expect(await FitHeader.getText()).toEqual('BEST FIT'); EDM-1726 + expect(await BestFitHeaderOne.getText()).toEqual('Building and Construction'); + expect(await DescriptionOne.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 BestFitHeaderTwo.getText()).toEqual('Foreign Language'); + expect(await DescriptionTwo.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 BestFitHeaderThree.getText()).toEqual('Management of Financial Resources'); + expect(await DescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); + await CarrouselRightScroll.click(); + browser.sleep(2500); + expect(await FitHeader.getText()).toEqual('GREAT FIT'); + expect(await GreatFitHeaderOne.getText()).toEqual('Administration and Management'); + expect(await DescriptionOne.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 GreatFitHeaderTwo.getText()).toEqual('Chemistry'); + expect(await DescriptionTwo.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 GreatFitHeaderThree.getText()).toEqual('Mathematics'); + expect(await DescriptionThree.getText()).toContain('Using math to solve problems.'); + await CarrouselRightScroll.click(); + browser.sleep(2500); + expect(await FitHeader.getText()).toEqual('GOOD FIT'); + expect(await GoodFitHeaderOne.getText()).toEqual('Biology'); + expect(await DescriptionOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.'); + expect(await GoodFitHeaderTwo.getText()).toEqual('Body Coordination'); + expect(await DescriptionTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.'); + expect(await GoodFitHeaderThree.getText()).toEqual('Clerical'); + expect(await DescriptionThree.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.'); + await CarrouselRightScroll.click(); + browser.sleep(2500); + //expect(await FitHeader.getText()).toEqual('BEST FIT'); EDM-1726 + await DashboardHeaderLink.click().then(function() { + browser.sleep(5000); + }); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function SkillsAssessmentResults() { + it(': SkillsAssessmentResults, should interact with Skills Assessment widget and validate results', async function () { + var SkillsAssessmentWidgetTitle = element(by.css('.bigScreenHeader')); + var BestFitHeader = element(by.css('div:nth-child(2) > b')); + var SkillsResultsOneTitle = element(by.css('.ng-scope:nth-child(4) > div > div > .ng-binding:nth-child(1)')); + var SkillsResultsOneDescription = element(by.css('.ng-scope:nth-child(4) .skillProfilerResultTruncateText')); + var SkillsResultsTwoTitle = element(by.css('.skillProfilerResultsSpacing:nth-child(5) > div > div > .ng-binding')); + var SkillsResultsTwoDescription = element(by.css('.ng-scope:nth-child(5) .skillProfilerResultTruncateText')); + var SkillsResultsThreeTitle = element(by.css('.ng-scope:nth-child(6) > div > div > .ng-binding')); + var SkillsResultsThreeDescription = element(by.css('.ng-scope:nth-child(6) .skillProfilerResultTruncateText')); + var SkillsResultsLink = element(by.css('div:nth-child(7) .fa-chart-bar')); + var SkillsAssessmentResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var ViewAllLink = element(by.linkText('View All')); + var BestFitDivHeader = element(by.css('.row:nth-child(1) > .col-xs-10 > .jrnys_lead-body-copy')); + var DivHeaderOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding')); + var DivDescriptionOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2)')); + var DivHeaderTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding')); + var DivDescriptionTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3)')); + var DivHeaderThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding')); + var DivDescriptionThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4)')); + var DivHeaderFour = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(5) > .ng-binding')); + var DivDescriptionFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5)')); + var DivHeaderFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6) > .ng-binding')); + var DivDescriptionFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6)')); + var DivHeaderSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7) > .ng-binding')); + var DivDescriptionSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7)')); + var DivHeaderSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8) > .ng-binding')); + var DivDescriptionSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8)')); + var BestFitDivXCloseLink = element(by.css('.close')); + var SkillsResultCardOne = element(by.xpath('//div[2]/span')); + var SkillsResultCardTwo = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var SkillsResultCardThree = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var SkillsResultCardFour = element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var SkillsResultCardFive = element(by.xpath('//div[2]/div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var SkillsResultCardSix = element(by.xpath('//div[2]/div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + + /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + });*/ + browser.executeScript('window.scrollTo(0, 610);').then(function() { + browser.sleep(5000); + }); + expect(await SkillsAssessmentWidgetTitle.getText()).toEqual('Skills Assessment Results'); + //expect(await BestFitHeader.getText()).toEqual('BEST FIT'); EDM-1726 + expect(await SkillsResultsOneTitle.getText()).toEqual('Building and Construction'); + expect(await SkillsResultsOneDescription.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 SkillsResultsTwoTitle.getText()).toEqual('Foreign Language'); + expect(await SkillsResultsTwoDescription.getText()).toEqual('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 SkillsResultsThreeTitle.getText()).toEqual('Management of Financial Resources'); + expect(await SkillsResultsThreeDescription.getText()).toEqual('Making spending decisions and keeping track of what is spent.'); + await SkillsResultsLink.click().then(function() { + browser.sleep(5000); + }); + expect(await SkillsAssessmentResultPageTitle.getText()).toEqual('Skills Assessment Result'); + await ViewAllLink.click().then(function() { + browser.sleep(1000); + }); + //expect(await BestFitDivHeader.getText()).toEqual('BEST FIT'); EDM-1726 + expect(await DivHeaderOne.getText()).toEqual('Building and Construction'); + expect(await DivDescriptionOne.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 DivHeaderTwo.getText()).toEqual('Foreign Language'); + expect(await DivDescriptionTwo.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 DivHeaderThree.getText()).toEqual('Management of Financial Resources'); + expect(await DivDescriptionThree.getText()).toContain('Making spending decisions and keeping track of what is spent.'); + expect(await DivHeaderFour.getText()).toEqual('Operations Analysis'); + expect(await DivDescriptionFour.getText()).toContain('Figuring out what a product or service needs to be able to do.'); + expect(await DivHeaderFive.getText()).toEqual('Personnel and Human Resources'); + expect(await DivDescriptionFive.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 DivHeaderSix.getText()).toEqual('Programming'); + expect(await DivDescriptionSix.getText()).toContain('Writing computer programs.'); + expect(await DivHeaderSeven.getText()).toEqual('Quality Control Analysis'); + expect(await DivDescriptionSeven.getText()).toContain('Testing how well a product or service works.'); + await BestFitDivXCloseLink.click().then(function() { + browser.sleep(1000); + }); + browser.actions().mouseMove(element(by.xpath('//div[2]/div/div/career-territory-card/territory-card/div/div/div/div/div/div[2]'))).perform().then(function() { + browser.sleep(2500); + }); + expect(await SkillsResultCardOne.getText()).toEqual('Business Management & Administration'); + expect(await SkillsResultCardTwo.getText()).toEqual('Architecture & Construction'); + expect(await SkillsResultCardThree.getText()).toEqual('Science, Technology, Engineering & Math'); + //Scroll to bottom of page + browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() { + browser.sleep(2500); + }); + expect(await SkillsResultCardFour.getText()).toEqual('Transportation, Distribution & Logistics'); + expect(await SkillsResultCardFive.getText()).toEqual('Cyber Security'); + expect(await SkillsResultCardSix.getText()).toEqual('Finance'); + await DashboardHeaderLink.click().then(function() { + browser.sleep(10000); + }); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function BeginCareerExploration() { + it(': BeginCareerExploration, should interact with Begin Career Exploration widget', async function () { + var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy')); + var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td')); + var ExploreCareersButton = element(by.css('td > .btn-info')); + var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover')); + + /*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + });*/ + browser.executeScript('window.scrollTo(0, 610);').then(function() { + browser.sleep(5000); + }); + expect(await BeginCareerExplorationTitle.getText()).toEqual('Begin Career Exploration'); + expect(await BeginCareerExplorationDescription.getText()).toEqual('We like your adventurous spirit. Search for a career that aligns with your interests and Learn More about it.'); + await ExploreCareersButton.click().then(function() { + browser.sleep(10000); + }); + await DashboardHeaderLink.click().then(function() { + browser.sleep(10000); + }); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function MyCareersCarousel() { + it(': MyCareersCarousel, should cycle through Recommended Careers carousel and click the View More link', async function () { + var WidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy')); + var CarrouselRightScroll = element(by.xpath('//div[3]/table/tbody/tr/td/div/div/a[2]/span')); + var ViewMoreLink = element(by.linkText('View More')); + var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1')); + var FollowFirstOccupationCardIcon = element(by.xpath('//div[3]/div/div/territory-card-social/div/social-follow-icon/span/i')); + var FilterIcon = element(by.css('.widgetControlContainer')); + var FilterTitle = element(by.css('tr:nth-child(1) > .ng-binding')); + var MyResultsHeader = element(by.css('#recommendedCareerFilter tr:nth-child(2) > td')); + var InterestSurveyResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)')); + var InterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > td > input')); + var SkillsAssessmentResults = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(2)')); + var SkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(4) input')); + var MyFollowing = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(2)')); + var MyFollowingCheckBox = element(by.css('.ng-scope:nth-child(5) input')); + var RequiredJobPrepHeader= element(by.css('#recommendedCareerFilter tr:nth-child(6) > td')); + var MayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(2)')); + var MayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(7) input')); + var HighSchoolDiploma = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(2)')); + var HighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(8) input')); + var VocationalTrainingOrAssociatesDegrees = element(by.css('.ng-scope:nth-child(9) > .ng-binding')); + var VocationalTrainingOrAssociatesDegreesCheckBox = element(by.css('.ng-scope:nth-child(9) input')); + var FourYearBachelorDegrees = element(by.css('.ng-scope:nth-child(10) > .ng-binding')); + var FourYearBachelorDegreesCheckBox = element(by.css('.ng-scope:nth-child(10) input')); + var GraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(11) > .ng-binding')); + var GraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(11) input')); + var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(12) > td')); + var Best = element(by.css('.ng-scope:nth-child(13) > .ng-binding')); + var BestCheckBox = element(by.css('.ng-scope:nth-child(13) input')); + var Great = element(by.css('.ng-scope:nth-child(14) > .ng-binding')); + var GreatCheckBox = element(by.css('.ng-scope:nth-child(14) input')); + var Good = element(by.css('.ng-scope:nth-child(15) > .ng-binding')); + var GoodCheckBox = element(by.css('.ng-scope:nth-child(15) input')); + var ShowResultsByHeader = element(by.css('#recommendedCareerFilter tr:nth-child(16) > td')); + var BrightOutlook = element(by.css('.ng-scope:nth-child(17) > .ng-binding')); + var BrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(17) input')); + var Green = element(by.css('.ng-scope:nth-child(18) > .ng-binding')); + var GreenCheckBox = element(by.css('.ng-scope:nth-child(18) input')); + var Apprenticeships = element(by.css('.ng-scope:nth-child(19) > .ng-binding')); + var ApprenticeshipsCheckBox = element(by.css('.ng-scope:nth-child(19) input')); + var Following = element(by.css('.ng-scope:nth-child(20) > .ng-binding')); + var FollowingCheckBox = element(by.css('.ng-scope:nth-child(20) input')); + var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(21) > td')); + var AtoZ = element(by.css('#recommendedCareerFilter tr:nth-child(22) > td:nth-child(2)')); + var AtoZRadioButton = element(by.css('td > .ng-pristine')); + var ZtoA = element(by.css('#recommendedCareerFilter tr:nth-child(23) > td:nth-child(2)')); + var ZtoARadioButton = element(by.css('tr:nth-child(23) .ng-pristine')); + var FilterButton = element(by.css('td > .btn-info')); + var NoResultsFoundAppliedFilters = element(by.css('.col-md-10')); + var BackLink = element(by.css('.btn-primary-back-mod')); + var NoResultsFound = element(by.css('.table-height:nth-child(1) td')); + var RemoveLeftFilterButton = element(by.css('.statusBtn:nth-child(1)')); + var RemoveShowMyResultsByFilterButton = element(by.css('.statusBtn:nth-child(2)')); + var RemoveRightFilterButton = element(by.css('.statusBtn:nth-child(3)')); + var WidgetFilterIcon = element(by.css('.fa-filter')); + var FilterButtonTwo = element(by.css('tr:nth-child(24) .btn-info')); + var RemoveLastFilterButton = element(by.css('.statusBtn')); + var FirstOccupationCardTitle = element(by.xpath('//div[3]/div/div[2]/span')); + var FirstOccupationCardAtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]')); + var FirstOccupationCardBestFitIcon = element(by.xpath('//territory-card-fit-status/div/div/div[2]')); + var SecondOccupationCardTitle = element(by.xpath('//div[2]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + var ThirdOccupationCardTitle = element(by.xpath('//div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span')); + + /*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + });*/ + browser.executeScript('window.scrollTo(0, 1250);').then(function() { + browser.sleep(5000); + }); + expect(await WidgetTitle.getText()).toEqual('My Careers View All'); + await CarrouselRightScroll.click(); + browser.sleep(2500); + await CarrouselRightScroll.click(); + browser.sleep(2500); + await CarrouselRightScroll.click(); + browser.sleep(2500); + await CarrouselRightScroll.click(); + browser.sleep(2500); + await ViewMoreLink.click(); + browser.sleep(5000); + expect(await PageTitle.getText()).toEqual('My Careers'); + await FollowFirstOccupationCardIcon.click().then(function() { + browser.sleep(3000); + }); + await FilterIcon.click(); + browser.sleep(2500); + expect(await FilterTitle.getText()).toEqual('Filter'); + expect(await MyResultsHeader.getText()).toEqual('My Results'); + expect(await InterestSurveyResults.getText()).toContain('Interest Survey Results ('); + expect(await SkillsAssessmentResults.getText()).toContain('Skills Assessment Results ('); + await SkillsAssessmentResultsCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await MyFollowing.getText()).toEqual('My Following (5)'); + expect(await RequiredJobPrepHeader.getText()).toEqual('Required Job Prep'); + expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED ('); + await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await HighSchoolDiploma.getText()).toContain('High School Diploma ('); + expect(await VocationalTrainingOrAssociatesDegrees.getText()).toContain('Vocational Training or Associates Degree ('); + expect(await FourYearBachelorDegrees.getText()).toContain('4 Year Bachelor Degree ('); + expect(await GraduateSchoolOrProfessionalDegree.getText()).toContain('Graduate School or Professional Degree ('); + expect(await FitHeader.getText()).toEqual('Fit'); + expect(await Best.getText()).toContain('Best ('); + await BestCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await Great.getText()).toContain('Great ('); + expect(await Good.getText()).toContain('Good ('); + await GoodCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await ShowResultsByHeader.getText()).toEqual('Show Results By'); + expect(await BrightOutlook.getText()).toContain('Bright Outlook ('); + expect(await Green.getText()).toContain('Green ('); + expect(await Apprenticeships.getText()).toContain('Apprenticeship ('); + expect(await Following.getText()).toEqual('Following (5)'); + await FollowingCheckBox.click().then(function() { + browser.sleep(1000); + }); + expect(await SortHeader.getText()).toEqual('Sort'); + expect(await AtoZ.getText()).toEqual('A to Z'); + expect(await ZtoA.getText()).toEqual('Z to A'); + await ZtoARadioButton.click().then(function() { + browser.sleep(1000); + }); + await FilterButton.click().then(function() { + browser.sleep(2500); + }); + expect(await NoResultsFoundAppliedFilters.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); + await BackLink.click(); + browser.sleep(2500); + /*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() { + browser.sleep(1000); + });*/ + browser.executeScript('window.scrollTo(0, 1250);').then(function() { + browser.sleep(5000); + }); + expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); + await RemoveLeftFilterButton.click().then(function() { + browser.sleep(2500); + }); + expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.'); + await RemoveShowMyResultsByFilterButton.click().then(function() { + browser.sleep(2500); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 + expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + await RemoveRightFilterButton.click().then(function() { + browser.sleep(2500); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 + expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers'); + await FollowFirstOccupationCardIcon.click().then(function() { + browser.sleep(2500); + }); + await WidgetFilterIcon.click().then(function() { + browser.sleep(2500); + }); + expect(await Following.getText()).toEqual('Following (4)'); + await FollowingCheckBox.click().then(function() { + browser.sleep(1000); + }); + await FilterButtonTwo.click().then(function() { + browser.sleep(2500); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 + expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + await RemoveLastFilterButton.click().then(function() { + browser.sleep(2500); + }); + expect(await FirstOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('At a'); + expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance'); + expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); + //expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726 + expect(await SecondOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Services Managers'); + browser.sleep(2500); + browser.waitForAngular(); + browser.getCurrentUrl(); + }); +} + +function SignOut() { + it(': SignOut, should log out of journeysmap', async function () { + var ProfileImage = element(by.css('.roundCenterBackgroundImage')); + var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn')); + + browser.waitForAngular(); + browser.sleep(1000); + await ProfileImage.click(); + browser.sleep(1000); + browser.waitForAngular(); + browser.getCurrentUrl(); + await SignOutButton.click().then(function() { + browser.sleep(2500); + }); + }); +} \ No newline at end of file