Updated
This commit is contained in:
@@ -56,7 +56,6 @@ describe('Interest Survey Results Widget Script', function () {
|
||||
|
||||
function InterestSurveyResultsWidget() {
|
||||
it(': InterestSurveyResultsWidget, should validate Interest Survey Results widget', async function () {
|
||||
var EC = protractor.ExpectedConditions;
|
||||
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'));
|
||||
@@ -148,7 +147,6 @@ function InterestSurveyResultsWidgetRetake() {
|
||||
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);
|
||||
@@ -265,6 +263,16 @@ function InterestSurveyResultsWidgetEdit() {
|
||||
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'));
|
||||
@@ -295,7 +303,11 @@ function InterestSurveyResultsWidgetEdit() {
|
||||
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() {
|
||||
@@ -345,6 +357,16 @@ function InterestSurveyResultsWidgetEdit() {
|
||||
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);
|
||||
@@ -381,42 +403,51 @@ function InterestSurveyResultsWidgetEdit() {
|
||||
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();
|
||||
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(1000);
|
||||
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.waitForAngular();
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await ToTextBox.sendKeys('jhuerta@edmin');
|
||||
await SendButton.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
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(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await FromTextBox.clear().then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await CancelButton.click();
|
||||
/*browser.waitForAngular();//INCONSISTENT
|
||||
await ShareResultsIcon.click();
|
||||
await FromTextBox.clear();
|
||||
await FromTextBox.sendKeys("Juan's Automated Regression");
|
||||
await ToTextBox.sendKeys('jhuerta@edmin.com').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(1500);
|
||||
await ToTextBox.sendKeys('.com').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await SendButton.click().then(function() {
|
||||
browser.sleep(25000);
|
||||
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().then(function() {
|
||||
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(ShareResultsIcon));*/
|
||||
browser.wait(EC.elementToBeClickable(ExploreCareersButton), 30000).then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
@@ -781,6 +812,7 @@ function InterestSurveyResultsCreateJourney() {
|
||||
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'));
|
||||
@@ -800,13 +832,16 @@ function InterestSurveyResultsCreateJourney() {
|
||||
await JourneyInfoDIVXCloseIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await JourneyEntryPoint.click();
|
||||
browser.waitForAngular();
|
||||
await JourneyEntryPoint.click().then(function() {
|
||||
browser.waitForAngular();
|
||||
});
|
||||
await JourneyEntryPoint.sendKeys('9');
|
||||
await SelectEntryPointDropDown.click();
|
||||
browser.waitForAngular();
|
||||
await StartYourJourneyButton.click();
|
||||
browser.waitForAngular();
|
||||
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');
|
||||
@@ -817,6 +852,9 @@ function InterestSurveyResultsCreateJourney() {
|
||||
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');
|
||||
@@ -1006,5 +1044,7 @@ function SignOut() {
|
||||
await SignOutButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.get(browser.params.login);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user