Added Recommended Career card checks after survey
This commit is contained in:
@@ -210,6 +210,11 @@ function MyProgressWidget() {
|
|||||||
var LoveItEmoji = element(by.id('emoji_0_4'));
|
var LoveItEmoji = element(by.id('emoji_0_4'));
|
||||||
var PreviousQuestion = element(by.linkText('< Previous Question'));
|
var PreviousQuestion = element(by.linkText('< Previous Question'));
|
||||||
var CancelSurveyButton = element(by.css('.btn-md'));
|
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 PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
|
||||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||||
|
|
||||||
@@ -243,9 +248,22 @@ function MyProgressWidget() {
|
|||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await CancelSurveyButton.click().then(function() {
|
await CancelSurveyButton.click().then(function() {
|
||||||
browser.sleep(10000);
|
browser.sleep(5000);
|
||||||
browser.waitForAngular();
|
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');
|
||||||
|
expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit');
|
||||||
|
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
|
//Take Interest Survey
|
||||||
await ActionTwoRetake.click().then(function() {
|
await ActionTwoRetake.click().then(function() {
|
||||||
browser.sleep(5000);
|
browser.sleep(5000);
|
||||||
@@ -314,7 +332,6 @@ function MyProgressWidget() {
|
|||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await MehEmoji.click();//60
|
await MehEmoji.click();//60
|
||||||
browser.sleep(5000);
|
browser.sleep(5000);
|
||||||
|
|
||||||
expect(await PageTitle.getText()).toEqual('Interest Survey Result');
|
expect(await PageTitle.getText()).toEqual('Interest Survey Result');
|
||||||
browser.sleep(5000);
|
browser.sleep(5000);
|
||||||
await DashboardHeaderLink.click().then(function() {
|
await DashboardHeaderLink.click().then(function() {
|
||||||
@@ -341,6 +358,12 @@ function MyProgressWidget() {
|
|||||||
await ProgressWidgetCollapseIcon.click().then(function() {
|
await ProgressWidgetCollapseIcon.click().then(function() {
|
||||||
browser.sleep(2500);
|
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.waitForAngular();
|
||||||
browser.getCurrentUrl();
|
browser.getCurrentUrl();
|
||||||
});
|
});
|
||||||
@@ -377,6 +400,11 @@ function InterestSurveyResultsWidget() {
|
|||||||
var TopResultsReadMoreDescriptionA = element(by.css('div:nth-child(3) > .ng-binding:nth-child(1)'));
|
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 TopResultsReadMoreDescriptionB = element(by.css('div:nth-child(4) > .ng-binding'));
|
||||||
var TopResultsReadMoreCloseLink = element(by.css('.close'));
|
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 TopResultTitleTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div > .ng-binding'));
|
||||||
var TopResultDescriptionTwo = element(by.css('.ng-scope:nth-child(4) .surveyResultTruncateText'));
|
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 TopResultsReadMoreLinkTwo = element(by.css('.surveyResultSpacing:nth-child(4) > div > div:nth-child(2)'));
|
||||||
@@ -495,6 +523,19 @@ function InterestSurveyResultsWidget() {
|
|||||||
await TopResultsReadMoreCloseLink.click().then(function() {
|
await TopResultsReadMoreCloseLink.click().then(function() {
|
||||||
browser.sleep(1000);
|
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');
|
||||||
|
expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit');
|
||||||
|
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() {
|
await InterestResultsLink.click().then(function() {
|
||||||
browser.sleep(10000);
|
browser.sleep(10000);
|
||||||
});
|
});
|
||||||
@@ -542,7 +583,7 @@ function InterestSurveyResultsWidget() {
|
|||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
await CancelButton.click();
|
await CancelButton.click();
|
||||||
/*browser.waitForAngular();
|
/*browser.waitForAngular();
|
||||||
await ShareResultsIcon.click(); INCONSISTENT
|
await ShareResultsIcon.click();//INCONSISTENT
|
||||||
await FromTextBox.clear();
|
await FromTextBox.clear();
|
||||||
await FromTextBox.sendKeys("Juan's Automated Regression");
|
await FromTextBox.sendKeys("Juan's Automated Regression");
|
||||||
await ToTextBox.sendKeys('jhuerta@edmin.com');
|
await ToTextBox.sendKeys('jhuerta@edmin.com');
|
||||||
@@ -1134,7 +1175,7 @@ function MyRecommendedCareers() {
|
|||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
});*/
|
});*/
|
||||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(5000);
|
||||||
});
|
});
|
||||||
expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.');
|
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() {
|
await RemoveLeftFilterButton.click().then(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user