Files
EdGateAutomatedRegression/interestSurveyResultsWidget_spec.js
2020-12-11 19:42:08 -08:00

1050 lines
79 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//interestSurveyResultsWidget_spec.js
describe('Interest Survey Results Widget Script', function () {
//app-journeysmap landing page
var UserNameTextBox = element(by.css('#txtU'));
var PasswordTextBox = element(by.css('#txtP'));
//Open browser
browser.get(browser.params.login);
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Login');
});
//Sign In
SignIn(UserNameTextBox, PasswordTextBox);
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('My Dashboard');
});
function SignIn(UserNameTextBox, PasswordTextBox) {
it('SignIn, should sign into journeysmap.com', async function () {
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
var NextButton = element(by.css('.btn'));
var JourneysGreeting = element(by.css('.dropdown'));
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
browser.sleep(1500);
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
browser.sleep(1500);
});
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
browser.sleep(1500);
});
await NextButton.click().then(function() {
browser.sleep(5000);
});
expect(await JourneysGreeting.getText()).toContain('Hi, ');
expect(await JourneysGreeting.getText()).toContain('_Automated');
browser.waitForAngular();
browser.getCurrentUrl();
});
}
InterestSurveyResultsWidget();
InterestSurveyResultsWidgetRetake();
InterestSurveyResultsWidgetEdit();
InterestSurveyResultsWidgetResults();
InterestSurveyResultsCreateJourney();
DeleteCreatedJourney();
//Sign Out*/
SignOut();
});
function InterestSurveyResultsWidget() {
it(': InterestSurveyResultsWidget, should validate Interest Survey Results widget', async function () {
var InterestSurveyWidgetTitle = element(by.css('div:nth-child(2) > .jrnys_lead-body-copy > div'));
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 TopResultsReadMoreCloseIcon = element(by.css('.close'));
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 InterestResultsIcon = element(by.css('div:nth-child(6) > div:nth-child(1) > .hideIconLabels'));
var InterestEditIcon = element(by.css('div:nth-child(6) > div:nth-child(2) > .hideIconLabels'));
var InterestRetakeIcon = element(by.css('div:nth-child(3) > .hideIconLabels'));
var MyCareersWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy'));
var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
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(2500);
});
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 TopResultsReadMoreCloseIcon.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(2500);
});
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 TopResultsReadMoreCloseIcon.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(2500);
});
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 TopResultsReadMoreCloseIcon.click().then(function() {
browser.sleep(1000);
});
expect(await InterestResultsIcon.getText()).toEqual('Results');
expect(await InterestEditIcon.getText()).toEqual('Edit');
expect(await InterestRetakeIcon.getText()).toEqual('Retake');
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
browser.sleep(5000);
});
expect(await MyCareersWidgetTitle.getText()).toEqual('My Careers View All');
expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors');
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
});
}
function InterestSurveyResultsWidgetRetake() {
it(': InterestSurveyResultsWidgetRetake, retake interest survey', async function () {
var InterestSurveyRetake = element(by.css('div:nth-child(3) > .fa-tasks'));
var EnglishLanguageButton = element(by.css('.btn-xs:nth-child(1)'));
var SpanishLanguageButton = element(by.css('.btn:nth-child(2)'));
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 CancelTestButton = element(by.css('.btn-md'));
var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
var DashboardHeaderLink = element(by.css('.navbar-brand > img'));
var MyCareersWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy'));
var AccountantsAndAuditors = element(by.xpath("//div[@id='territoryCardContainer']/div/div[3]/div/div[2]/span"));
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.xpath("(//div[@id='territoryCardContainer']/div/div[3]/div/div[2]/span)[2]"));
var AdministrativeServicesManagers = element(by.xpath("(//div[@id='territoryCardContainer']/div/div[3]/div/div[2]/span)[3]"));
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
//Retake Interest Survey
await InterestSurveyRetake.click().then(function() {
browser.sleep(5000);
});
browser.waitForAngular();
expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
expect(await EnglishLanguageButton.getText()).toEqual('English');
expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
expect(await SpanishLanguageButton.getText()).toEqual('Español');
expect(await CancelTestButton.getText()).toEqual('Cancel Test');
await LikeItEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await LoveItEmoji.click();
await DislikeEmoji.click();//5
await LoveItEmoji.click();
await LikeItEmoji.click();
await UnsureEmoji.click();
await LoveItEmoji.click();
await DislikeEmoji.click();//10
await DislikeEmoji.click();
await LikeItEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await DislikeEmoji.click();//15
await LoveItEmoji.click();
await DislikeEmoji.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 LikeItEmoji.click();
await DislikeEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await LikeItEmoji.click();//30
await DislikeEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await LoveItEmoji.click();
await DislikeEmoji.click();//35
await DislikeEmoji.click();
await LikeItEmoji.click();
await LikeItEmoji.click();
await LikeItEmoji.click();
await DislikeEmoji.click();//40
await DislikeEmoji.click();
await LikeItEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await LikeItEmoji.click();//45
await DislikeEmoji.click();
await LoveItEmoji.click();
await LoveItEmoji.click();
await MehEmoji.click();
await DislikeEmoji.click();//50
await DislikeEmoji.click();
await LikeItEmoji.click();
await DislikeEmoji.click();
await LikeItEmoji.click();
await LikeItEmoji.click();//55
await DislikeEmoji.click();
await LoveItEmoji.click();
await LikeItEmoji.click();
await LoveItEmoji.click();
await LikeItEmoji.click().then(function() {
browser.sleep(5000);
});
expect(await PageTitle.getText()).toEqual('Interest Survey Results');
browser.sleep(5000);
await DashboardHeaderLink.click().then(function() {
browser.sleep(5000);
});
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
browser.sleep(5000);
});
expect(await MyCareersWidgetTitle.getText()).toEqual('My Careers View All');
expect(await AccountantsAndAuditors.getText()).not.toEqual('Accountants And Auditors');
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).not.toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
expect(await AdministrativeServicesManagers.getText()).not.toEqual('Administrative Services Managers');
browser.waitForAngular();
browser.getCurrentUrl();
});
}
function InterestSurveyResultsWidgetEdit() {
it(': InterestSurveyResultsWidgetEdit, should interact with Interest Survey Results widget, validate results', async function () {
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 InterestSurveyWidgetTitle = element(by.css('div:nth-child(2) > .jrnys_lead-body-copy > div'));
var TopResultTitleOne = element(by.css('.surveyResultSpacingTop > div > div > .ng-binding'));
var TopResultDescriptionOne = element(by.css('.surveyResultSpacingTop .surveyResultTruncateText'));
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 TopResultTitleThree = element(by.css('.surveyResultSpacing:nth-child(5) > div > div > .ng-binding'));
var TopResultDescriptionThree = element(by.css('.ng-scope:nth-child(5) .surveyResultTruncateText'));
var InterestResultsIcon = element(by.css('div:nth-child(6) > div:nth-child(1) > .hideIconLabels'));
var InterestEditIcon = element(by.css('div:nth-child(6) > div:nth-child(2) > .hideIconLabels'));
var InterestRetakeIcon = element(by.css('div:nth-child(3) > .hideIconLabels'));
var MyCareersWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy'));
var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtAGlanceIcon = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer div > div > div > .territoryCardItemText'));
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtBestFitIcon = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .ng-scope > div > div:nth-child(1) > .territoryCardItemText'));
var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
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 TopTraitsTitleOne = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) > .jrnys_lead-body-copy'));
var TopTraitsDescriptionOne = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(1) > .ng-binding:nth-child(2)'));
var TopTraitsTitleTwo = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) > .jrnys_lead-body-copy'));
var TopTraitsDescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .row > .col-sm-6:nth-child(2) > .ng-binding:nth-child(2)'));
var TopTraitsTitleThree = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(1) > .jrnys_lead-body-copy'));
var TopTraitsDescriptionThree = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(1) > .ng-binding:nth-child(2)'));
var TopTraitsTitleFour = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(2) > .jrnys_lead-body-copy'));
var TopTraitsDescriptionFour = element(by.css('.ng-scope:nth-child(3) > .row > .col-sm-6:nth-child(2) > .ng-binding:nth-child(2)'));
var TopTraitsTitleFive = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(1) > .jrnys_lead-body-copy'));
var TopTraitsDescriptionFive = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(1) > .ng-binding:nth-child(2)'));
var TopTraitsTitleSix = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(2) > .jrnys_lead-body-copy'));
var TopTraitsDescriptionSix = element(by.css('.ng-scope:nth-child(4) .col-sm-6:nth-child(2) > .ng-binding:nth-child(2)'));
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 DIVAlertTitleTwo = element(by.css('h2'));
var DIVAlertMessageTwo = element(by.css('p:nth-child(7)'));
var DIVOKButtonTwo = element(by.css('.confirm'));
var EC = protractor.ExpectedConditions;
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 592);').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').then(function() {
browser.sleep(1000);
});
//await EditRealisticTextBox.sendKeys(protractor.Key.CONTROL, "a", protractor.Key.DELETE).sendKeys('21').sendKeys(protractor.Key.TAB); SAMPLE
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').then(function() {
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').then(function() {
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').then(function() {
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').then(function() {
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').then(function() {
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.');
await EditInterestSurveyDIVSaveButton.click().then(function() {
browser.sleep(2500);
});
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.');
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.');
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.');
expect(await InterestResultsIcon.getText()).toEqual('Results');
expect(await InterestEditIcon.getText()).toEqual('Edit');
expect(await InterestRetakeIcon.getText()).toEqual('Retake');
//EDM-1959 My Careers widget does not auto update after editing Interest Survey Results
browser.refresh().then(function() {
browser.sleep(5000);
});//REMOVE
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
browser.sleep(2500);
});
expect(await MyCareersWidgetTitle.getText()).toEqual('My Careers View All');
expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors');
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtAGlanceIcon.getText()).toContain('At a');
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtAGlanceIcon.getText()).toContain('Glance');
//expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtBestFitIcon.getText()).toContain('Interest');//loading issue, not consistent EDM-1726
//expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersAtBestFitIcon.getText()).toContain('Best Fit');//loading issue, not consistent EDM-1726
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
//Scroll down to Interest Survey Results widget
browser.executeScript('window.scrollTo(0, 592);').then(function() {
browser.sleep(2500);
});
await InterestResultsLink.click().then(function() {
browser.sleep(10000);
});
expect(await PageTitle.getText()).toEqual('Interest Survey Results');
expect(await TopThreeTraitsHeader.getText()).toEqual('Check out your traits!');
expect(await TopTraitsTitleOne.getText()).toEqual('Enterprising (27)');
expect(await TopTraitsDescriptionOne.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 TopTraitsTitleTwo.getText()).toEqual('Investigative (25)');
expect(await TopTraitsDescriptionTwo.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 TopTraitsTitleThree.getText()).toEqual('Conventional (23)');
expect(await TopTraitsDescriptionThree.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 TopTraitsTitleFour.getText()).toEqual('Social (22)');
expect(await TopTraitsDescriptionFour.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 TopTraitsTitleFive.getText()).toEqual('Realistic (21)');
expect(await TopTraitsDescriptionFive.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 TopTraitsTitleSix.getText()).toEqual('Artistic (17)');
expect(await TopTraitsDescriptionSix.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 ShareResultsIcon.click().then(function() {
browser.sleep(2500);
});
expect(await ShareResultsDIVTitle.getText()).toEqual('Email Your Results');
expect(await CancelButton.getText()).toEqual('Cancel');
expect(await SendButton.getText()).toEqual('Send');
await SendButton.click().then(function() {
browser.sleep(2500);
});
expect(await DIVAlertTitle.getText()).toEqual('No Email');
expect(await DIVAlertMessage.getText()).toEqual('Please provide at least one email address to send.');
await DIVOKButton.click().then(function() {
browser.sleep(2500);
});
await ToTextBox.sendKeys('jhuerta@edmin');
await SendButton.click().then(function() {
browser.sleep(2500);
});
expect(await DIVAlertTitle.getText()).toEqual('Invalid Email');
expect(await DIVAlertMessage.getText()).toEqual('jhuerta@edmin is not a valid email address.');
await DIVOKButton.click().then(function() {
browser.sleep(2500);
});
await FromTextBox.clear().then(function() {
browser.sleep(1500);
});
await FromTextBox.sendKeys("Juan's Automated Regression");
browser.sleep(1500);
await ToTextBox.sendKeys('.com').then(function() {
browser.sleep(2500);
});
await SendButton.click().then(function() {
browser.sleep(2500);
});
browser.wait(EC.visibilityOf(DIVAlertTitleTwo), 30000).then(function() {
browser.sleep(2500);
});
await expect(DIVAlertTitleTwo.getText()).toEqual('Your interest survey results are in flight!');
await expect(DIVAlertMessageTwo.getText()).toEqual('Trouble receiving the email? Have your recipient check their spam folder for an email from hi@journeysmap.com');
await DIVOKButtonTwo.click().then(function() {
browser.waitForAngular();
});
browser.wait(EC.elementToBeClickable(ExploreCareersButton), 30000).then(function() {
browser.sleep(2500);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
}
function InterestSurveyResultsWidgetResults() {
it(': InterestSurveyResultsWidgetResults, should verify the Interest Survey results widget and jump to learn more page', async function () {
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
var CareerExplorationPageTitle = element(by.css('.col-sm-12'));
var SkillsFilterButton = element(by.css('.filter-category-off:nth-child(3)'));
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
var WidgetDescription = element(by.css('.row > span:nth-child(2)'));
var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var FinanceSelectButton = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .btn'));
var BankingAndRelatedServices = element(by.css('#a3dbe29e-e930-4cc2-8856-c21ec7ff61ee > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagement = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var FinancialAndInvestmentPlanning = element(by.css('#\\32 f8e3d00-1d7a-46f6-bf4e-c907540ab958 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagementSelectButton = element(by.css('#\\39 afd2302-5221-4f1b-b7e4-549104ebddb4 > #territoryCardContainer .btn'));
var FraudExaminersInvestigatorsAndAnalyst = element(by.css('.territoryCardTitleText > .ng-binding'));
var FraudExaminersInvestigatorsAndAnalystLearnMoreIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText'));
var FraudExaminersInvestigatorsAndAnalystMapIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText'));
var FraudExaminersInvestigatorsAndAnalystJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)'));
var FraudExaminersInvestigatorsAndAnalystVideoIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText'));
var InsuranceServices = element(by.css('#e42868e2-b210-40c6-a842-b6acddc27f68 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var PreviousLinkText = element(by.linkText('Previous'));
var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)'));
var NextLinkText = element(by.linkText('Next'));
var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HealthScience = element(by.css('#\\33 7735fc5-77f8-4a3c-8814-51c377b7affd > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var InformationTechnology = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var Manufactoring = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)'));
var PathwaysLink = element(by.linkText('Pathways'));
var ClustersLink = element(by.linkText('Clusters'));
var BusinessManagementAndAdministrationSelectButton = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .btn'));
var Management = element(by.css('#c9fa7441-b908-4d75-b918-f15be99d7a18 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var ManagementSelectButton = element(by.css('#c9fa7441-b908-4d75-b918-f15be99d7a18 > #territoryCardContainer .btn'));
var HydroelectricProductionManagers = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HydroelectricProductionManagersAtAGlanceIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer div > div > div > .territoryCardItemText'));
var HydroelectricProductionManagersAtGlanceTitle = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer #territoryCardTitleHeader > .territoryCardTitleText'));
var HydroelectricProductionManagersAtAGlanceDescription = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .territoryCardDescriptionText'));
var HydroelectricProductionManagersAtAGlanceXCloseIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .glyphicon'));
var HydroelectricProductionManagersFitMatchIcon = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer .ng-scope div:nth-child(1) > .territoryCardItemText'));
var HydroelectricProductionManagersEllipsis = element(by.css('#\\30 62f3552-9389-4447-a599-31474050a7e5 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas'));
var HydroelectricProductionManagersEllipsisTitle = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText'));
var HydroelectricProductionManagersEllipsisFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
var HydroelectricProductionManagersEllipsisLearnMoreIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisMapIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisJourneymanIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisVideoIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText'));
var HydroelectricProductionManagersEllipsisAtAGlanceIcon= element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
var EC = protractor.ExpectedConditions;
var HydroelectricProductionManagersJourneyInfoIcon = element(by.css('span > .journey-info-circle'));
var IndustrialProductionManagers = element(by.css('#\\31 7fcdfd2-02ce-4816-95c6-ff7831fd520a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var FirstLineSupervisorsOfProductionAndOperatingWorkers = element(by.css('#\\32 85eaa19-0bb5-4460-a739-44fe976d6f7a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var CostEstimators = element(by.css('#\\32 ac6e68d-b85d-49d6-8be9-b2dc3b9ed93f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var RegulatoryAffairsManagers = element(by.css('#\\32 d1bd8ed-49cc-4311-a396-d83f0bf17dfa > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var MedicalAndHealthServicesManagers = element(by.css('#\\33 9b9fe6d-efc3-4f9b-906e-0d24b9b3687d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessFinancialManagementAndAccounting = element(by.css('#\\39 b2ccae4-d5eb-4c45-a571-8f4e824db568 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var BusinessAnalysis = element(by.css('#d173d81b-a137-4f2d-b450-bca47abf7be3 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var Marketing = element(by.css('#\\33 4f87def-1317-483b-ba52-61b98f0c52cb > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var HumanResources = element(by.css('#b67c622c-f398-4b54-8fbd-cb62da07d96a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
var AdministrativeAndInformationSuport = element(by.css('#b3c703ca-a10f-4565-a1eb-8923555ded60 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
await ExploreCareersButton.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
expect(await Finance.getText()).toEqual('Finance');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await NextLinkText.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
expect(await HealthScience.getText()).toEqual('Health Science');
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await HumanServices.getText()).toEqual('Human Services');
expect(await InformationTechnology.getText()).toEqual('Information Technology');//not this one
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
expect(await PreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await NextLinkText.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await Manufactoring.getText()).toEqual('Manufacturing');
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
expect(await PreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
await PreviousLinkText.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
expect(await HealthScience.getText()).toEqual('Health Science');
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await HumanServices.getText()).toEqual('Human Services');
expect(await InformationTechnology.getText()).toEqual('Information Technology');
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
expect(await PreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await PreviousLinkText.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
expect(await Finance.getText()).toEqual('Finance');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
//Selected Finances
await FinanceSelectButton.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services');
expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management');
expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await InsuranceServices.getText()).toEqual('Insurance Services');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
//Selected Business Financial Management
await BusinessFinancialManagementSelectButton.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
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.');
expect(await FraudExaminersInvestigatorsAndAnalyst.getText()).toEqual('Fraud Examiners, Investigators and Analysts');
expect(await FraudExaminersInvestigatorsAndAnalystLearnMoreIcon.getText()).toEqual('Learn More');
expect(await FraudExaminersInvestigatorsAndAnalystMapIcon.getText()).toEqual('Map');
expect(await FraudExaminersInvestigatorsAndAnalystJourneymanIcon.getText()).toEqual('Journey');
expect(await FraudExaminersInvestigatorsAndAnalystVideoIcon.getText()).toEqual('Video');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
await PathwaysLink.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
expect(await FinancialAndInvestmentPlanning.getText()).toEqual('Financial and Investment Planning');
expect(await BusinessFinancialManagement.getText()).toEqual('Business Financial Management');
expect(await BankingAndRelatedServices.getText()).toEqual('Banking and Related Services');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await InsuranceServices.getText()).toEqual('Insurance Services');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
await ClustersLink.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
expect(await WidgetTitle.getText()).toEqual('Clusters');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
expect(await Finance.getText()).toEqual('Finance');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await BusinessManagementAndAdministrationSelectButton.click().then(function() {
browser.sleep(2500);
});
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
expect(await Marketing.getText()).toEqual('Marketing');
expect(await BusinessFinancialManagementAndAccounting.getText()).toEqual('Business Financial Management and Accounting');
expect(await AdministrativeAndInformationSuport.getText()).toEqual('Administrative and Information Support');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(2500);
});
expect(await HumanResources.getText()).toEqual('Human Resources');
expect(await Management.getText()).toEqual('Management');
expect(await BusinessAnalysis.getText()).toEqual('Business Analysis');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await DisabledNextLinkText.getText()).toEqual('Next');
await ManagementSelectButton.click().then(function() {
browser.sleep(2500);
});
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
expect(await SkillsFilterButton.getText()).toEqual('Skills');
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
expect(await InterestsFilterButton.getText()).toEqual('Interests');
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
expect(await HydroelectricProductionManagers.getText()).toEqual('Hydroelectric Production Managers');
expect(await IndustrialProductionManagers.getText()).toEqual('Industrial Production Managers');
expect(await FirstLineSupervisorsOfProductionAndOperatingWorkers.getText()).toEqual('First-Line Supervisors of Production and Operating Workers');
browser.executeScript('window.scrollTo(0, 0);').then(function() {
browser.sleep(1000);
});
expect(await CostEstimators.getText()).toEqual('Cost Estimators');
expect(await RegulatoryAffairsManagers.getText()).toEqual('Regulatory Affairs Managers');
expect(await MedicalAndHealthServicesManagers.getText()).toEqual('Medical and Health Services Managers');
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
expect(await NextLinkText.getText()).toEqual('Next');
await HydroelectricProductionManagersAtAGlanceIcon.click().then(function() {
browser.sleep(2500);
});
expect(await HydroelectricProductionManagersAtGlanceTitle.getText()).toEqual('Hydroelectric Production Managers');
expect(await HydroelectricProductionManagersAtAGlanceDescription.getText()).toEqual('Manage operations at hydroelectric power generation facilities. Maintain and monitor hydroelectric plant equipment for efficient and safe plant operations.');
await HydroelectricProductionManagersAtAGlanceXCloseIcon.click().then(function() {
browser.sleep(2500);
});
//expect(await HydroelectricProductionManagersFitMatchIcon.getText()).toContain('Best Fit'); EDM-1726
await HydroelectricProductionManagersEllipsis.click().then(function() {
browser.sleep(2500);
});
expect(await HydroelectricProductionManagersEllipsisTitle.getText()).toEqual('Hydroelectric Production Managers');
expect(await HydroelectricProductionManagersEllipsisFollowIcon.getText()).toEqual('Follow');
expect(await HydroelectricProductionManagersEllipsisLearnMoreIcon.getText()).toEqual('Learn More');
expect(await HydroelectricProductionManagersEllipsisMapIcon.getText()).toEqual('Map');
expect(await HydroelectricProductionManagersEllipsisJourneymanIcon.getText()).toEqual('Journey');
expect(await HydroelectricProductionManagersEllipsisVideoIcon.getText()).toEqual('Video');
expect(await HydroelectricProductionManagersEllipsisAtAGlanceIcon.getText()).toEqual('At A Glance');
await HydroelectricProductionManagersEllipsisJourneymanIcon.click().then(function() {
browser.sleep(5000);
browser.waitForAngular();
});
browser.wait(EC.elementToBeClickable(HydroelectricProductionManagersJourneyInfoIcon));
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('span > .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 JourneyInfoDIVXCloseIcon = 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 JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding'));
var JourneyResultTitleOne = element(by.css('#journeyitem0 .side-bar-child-text'));
var JourneyResultTitleTwo = element(by.css('#journeyitem1 .side-bar-child-text'));
var JourneyResultTitleThree = element(by.css('#journeyitem2 .side-bar-child-text'));
var JourneySaveIcon = element(by.css('#journeyitem0 .mapActionBarActive > .fas'));
var EC = protractor.ExpectedConditions;
var JourneyStopDIVTitle = element(by.css('.row:nth-child(1) > .col-md-12:nth-child(1)'));
var JourneyStopDIVCertificateTitle = element(by.css('#awm0 .ng-binding'));
var JourneyStopDIVDegreeTitle = element(by.css('#awm1 .ng-binding'));
var JourneyStopDIVTitleCardOne = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .waypointCardTitle'));
var JourneyStopDIVTitleCardTwo = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .waypointCardTitle'));
var JourneyStopDIVTitleCardThree = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .waypointCardTitle'));
var JourneyStopDIVSubText = element(by.css('#addWaypointsModalAddedWaypointsCarousel .ng-scope'));
var JourneyStopDIVSkipLink = element(by.css('.btn-inverse'));
var DashboardHeaderLink = element(by.css('.navbar-brand > img'));
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 JourneyInfoDIVXCloseIcon.click().then(function() {
browser.sleep(1000);
});
await JourneyEntryPoint.click().then(function() {
browser.waitForAngular();
});
await JourneyEntryPoint.sendKeys('9');
await SelectEntryPointDropDown.click().then(function() {
browser.waitForAngular();
});
await StartYourJourneyButton.click().then(function() {
browser.waitForAngular();
});
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
expect(await JourneyResultTitleOne.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await JourneyResultTitleTwo.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration Minor');
expect(await JourneyResultTitleThree.getText()).toEqual('9 to Hydroelectric Production Managers through Global Supply Chain Management Graduate Certificate');
browser.actions().mouseMove(JourneySaveIcon).perform().then(function() {
browser.sleep(1000);
});
await JourneySaveIcon.click().then(function() {
browser.sleep(10000);
});
browser.wait(EC.visibilityOf(JourneyStopDIVTitle), 30000).then(function() {
browser.sleep(2500);
});
expect(await JourneyStopDIVTitle.getText()).toEqual('Now that you have saved a journey, feel free to add any additional degree(s) and certification(s) to your journey by selecting from below!');
expect(await JourneyStopDIVCertificateTitle.getText()).toEqual('Certification');
expect(await JourneyStopDIVDegreeTitle.getText()).toEqual('Degree Program');
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('Distributed Generation Certified Professional');
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('Business Administration Minor');
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Global Supply Chain Management Graduate Certificate');
expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.');
expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip');
await JourneyStopDIVSkipLink.click().then(function() {
browser.sleep(5000);
});
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
expect(await JourneyResultTitleOne.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
await DashboardHeaderLink.click().then(function() {
browser.sleep(5000);
browser.waitForAngular();
browser.getCurrentUrl();
});
});
}
function DeleteCreatedJourney() {
it(': DeleteCreatedJourney, should navigate to My Journeys and delete recently created Journey', async function () {
var MyJourneysHeaderLink = element(by.css('#nbMyJourneys span'));
var MyJourneysPageTitle = element(by.css('.jrnys_lead-body-copy'));
var MyJourneysPageSubText = element(by.css('.col-md-10 .ng-scope:nth-child(1)'));
var MyJourneysSelectCreatedJourney = element(by.xpath("//span[contains(.,'9 to Hydroelectric Production Managers through Business Administration B.A./B.S.')]"));
var NinethGradeBubble = element(by.css('#mCSB_1_container > .firstWaypoint .lblClass'));
var TenthGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(2) .lblClass'));
var EleventhGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(3) .lblClass'));
var TwelvethGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(4) .lblClass'));
var BusinessAdministrationBABSBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(1)'));
var AdministrativeServiceManagersBubble = element(by.css('.fullSize-Journey:nth-child(6) .triple-line > .lblClass:nth-child(1)'));
var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info'));
var MyJourneysTitleRow = element(by.css('.col-md-12 > .ng-binding'));
var MyJourneysWayPointTitleRow = element(by.css('.select-waypointTitle'));
var MyJourneysRightArrow = element(by.css('.glyphicon-menu-right'));
var MyJourneysRemoveJourneyButton = element(by.css('#saveJourneyButton'));
var MyJourneysDIVTite = element(by.css('h2'));
var MyJourneysDIVSubText = element(by.css('p:nth-child(7)'));
var MyJourneysDIVCancelButton = element(by.css('.cancel'));
var MyJourneysDIVOKButton = element(by.css('.confirm'));
var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info'));
var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding'));
var ActionTitleBar = element(by.css('#journey-view-single > .side-bar-child-text'));
var EditJourneyLink = element(by.linkText('Edit Journey'));
var JourneyEntryWayPointTopLevel = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
var JourneyEntryWayPointCluster = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)'));
var TenthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
var TenthGradeWayPointCluster = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)'));
var EleventhGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
var EleventhGradeWayPointCluster = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)'));
var TwelfthGradeWayPointTopLevel = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
var TwelfthGradeWayPointCluster = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)'));
var CollegeStopWayPointTopLevel = element(by.css('#journeyViewToolTip_4 .ng-binding:nth-child(1)'));
var CollegeStopWayPointCluster = element(by.css('#journeyViewToolTip_4 > .ng-isolate-scope .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
var CollegeStopWayPointPathway = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)'));
var JourneyExitWayPointTopLevel = element(by.css('#journeyViewToolTip_5 .ng-binding:nth-child(1)'));
var JourneyExitWayPointCluster = element(by.css('#journeyViewToolTip_5 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
var JourneyExitWayPointPathway = element(by.css('.disableJourneyItem:nth-child(5)'));
var MyJourneysHowAmIDoingButton = element(by.css('.btn-success'));
var MyJourneysSubText = element(by.css('.details-resourceRowTitle'));
var MySavedJourneysTitleOne = element(by.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]"));
var MySavedJourneysTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]"));
var MySavedJourneysTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]"));
var MySavedJourneysTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]"));
await MyJourneysHeaderLink.click().then(function() {
browser.sleep(2500);
});
expect(await MyJourneysPageTitle.getText()).toEqual('My Saved Journeys');
expect(await MyJourneysPageSubText.getText()).toEqual('Select a Journey to show it on the map');
expect(await MyJourneysSelectCreatedJourney.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await NinethGradeBubble.getText()).toEqual('9');
expect(await TenthGradeBubble.getText()).toEqual('10');
expect(await EleventhGradeBubble.getText()).toEqual('11');
expect(await TwelvethGradeBubble.getText()).toEqual('12');
expect(await BusinessAdministrationBABSBubble.getText()).toEqual('Business');
expect(await AdministrativeServiceManagersBubble.getText()).toEqual('Hydroelectric');
await MyJourneysSelectCreatedJourney.click().then(function() {
browser.sleep(2500);
});
expect(await MyJourneysTitleRow.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('9');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('10');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('11');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('12');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Business Administration B.A./B.S.');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Hydroelectric Production Managers');
await MyJourneysRightArrow.click().then(function() {
browser.sleep(1500);
});
expect(await MyJourneysRemoveJourneyButton.getText()).toEqual('Remove Journey');
expect(await MyJourneysViewOnMap.getText()).toEqual('View On Map');
expect(await MyJourneysHowAmIDoingButton.getText()).toEqual('How am I doing?');
expect(await MyJourneysSubText.getText()).toEqual('Try these resources');
await MyJourneysViewOnMap.click().then(function() {
browser.sleep(5000);
});
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey View');
expect(await ActionTitleBar.getText()).toEqual('9 to Hydroelectric Production Managers through Business Administration B.A./B.S.');
expect(await EditJourneyLink.getText()).toEqual('Edit Journey');
expect(await JourneyEntryWayPointTopLevel.getText()).toEqual('HS');
expect(await JourneyEntryWayPointCluster.getText()).toEqual('9');
expect(await TenthGradeWayPointTopLevel.getText()).toEqual('HS');
expect(await TenthGradeWayPointCluster.getText()).toEqual('10');
expect(await EleventhGradeWayPointTopLevel.getText()).toEqual('HS');
expect(await EleventhGradeWayPointCluster.getText()).toEqual('11');
expect(await TwelfthGradeWayPointTopLevel.getText()).toEqual('HS');
expect(await TwelfthGradeWayPointCluster.getText()).toEqual('12');
expect(await CollegeStopWayPointTopLevel.getText()).toEqual('College');
expect(await CollegeStopWayPointCluster.getText()).toEqual('Administration');
expect(await CollegeStopWayPointPathway.getText()).toEqual('Business Administration B.A./B.S.');
expect(await JourneyExitWayPointTopLevel.getText()).toEqual('Administration');
expect(await JourneyExitWayPointCluster.getText()).toEqual('Management');
expect(await JourneyExitWayPointPathway.getText()).toEqual('Hydroelectric Production Managers');
await MyJourneysHeaderLink.click().then(function() {
browser.sleep(2500);
});
await MyJourneysSelectCreatedJourney.click().then(function() {
browser.sleep(2500);
});
await MyJourneysHowAmIDoingButton.click().then(function() {
browser.sleep(2500);
});
expect(await MyJourneysDIVTite.getText()).toEqual('Oops!');
expect(await MyJourneysDIVSubText.getText()).toEqual("Sorry, we can't give you a quiz for this.");
expect(await MyJourneysDIVOKButton.getText()).toEqual('OK');
await MyJourneysDIVOKButton.click().then(function() {
browser.sleep(2500);
});
await MyJourneysRemoveJourneyButton.click().then(function() {
browser.sleep(2500);
});
expect(await MyJourneysDIVTite.getText()).toEqual('Are you sure?');
expect(await MyJourneysDIVSubText.getText()).toEqual('You will not be able to recover this journey!');
expect(await MyJourneysDIVCancelButton.getText()).toEqual('Cancel');
expect(await MyJourneysDIVOKButton.getText()).toEqual('Yes, delete it!');
await MyJourneysDIVOKButton.click().then(function() {
browser.sleep(2500);
});
expect(await MyJourneysDIVTite.getText()).toEqual('Deleted!');
expect(await MyJourneysDIVSubText.getText()).toEqual('Your journey has been deleted.');
await MyJourneysDIVOKButton.click().then(function() {
browser.sleep(2500);
});
await MyJourneysHeaderLink.click().then(function() {
browser.sleep(2500);
});
expect(await MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
expect(await MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College');
expect(await MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
expect(await MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
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().then(function() {
browser.sleep(1000);
});
await ProfileImage.click().then(function() {
browser.sleep(1000);
browser.waitForAngular();
browser.getCurrentUrl();
});
await SignOutButton.click().then(function() {
browser.sleep(2500);
});
browser.get(browser.params.login);
browser.sleep(2500);
});
}