Added Survey Metrics from My Activity Dashboard
This commit is contained in:
@@ -94,6 +94,10 @@ describe('Journeysmap script', function () {
|
||||
//<<<<MAP>>>>
|
||||
MapInteraction();
|
||||
|
||||
//<<<<My Activity Dashboard>>>>
|
||||
//MyActivityJourneys
|
||||
SurveyMetrics();
|
||||
|
||||
//<<<<Account Profile>>>>
|
||||
//Profile
|
||||
AccountProfile();
|
||||
@@ -1173,12 +1177,12 @@ function Technology() {
|
||||
expect(await TechnologyDataTwentyNine.getText()).toEqual('ESRI ArcGIS software ');
|
||||
expect(await TechnologyTitleThirty.getText()).toEqual('Web page creation and editing software');
|
||||
expect(await TechnologyDataThirty.getText()).toEqual('Plug-in file software');
|
||||
expect(await TechnologyTitleThirty.getText()).toEqual('Web page creation and editing software');
|
||||
expect(await TechnologyDataThirty.getText()).toEqual('Plug-in file software');
|
||||
expect(await TechnologyTitleThirty.getText()).toEqual('Web page creation and editing software');
|
||||
expect(await TechnologyDataThirty.getText()).toEqual('Plug-in file software');
|
||||
expect(await TechnologyTitleThirty.getText()).toEqual('Web page creation and editing software');
|
||||
expect(await TechnologyDataThirty.getText()).toEqual('Plug-in file software');
|
||||
expect(await TechnologyTitleThirtyOne.getText()).toEqual('Data mining software');
|
||||
expect(await TechnologyDataThirtyOne.getText()).toEqual('Google Analytics ');
|
||||
expect(await TechnologyTitleThirtyTwo.getText()).toEqual('Requirements analysis and system architecture software');
|
||||
expect(await TechnologyDataThirtyTwo.getText()).toEqual('Unified modeling language UML ');
|
||||
expect(await TechnologyTitleThirtyThree.getText()).toEqual('Project management software');
|
||||
expect(await TechnologyDataThirtyThree.getText()).toEqual('Microsoft Project ');
|
||||
browser.waitForAngular();
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
@@ -1993,9 +1997,11 @@ function InterestSurveyResults() {
|
||||
var EC = protractor.ExpectedConditions;
|
||||
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
browser.sleep(10000);
|
||||
browser.wait(EC.elementToBeClickable(by.css('.fa-share-alt')), 10000);
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
@@ -2372,6 +2378,121 @@ function MapInteraction() {
|
||||
});
|
||||
}
|
||||
|
||||
function SurveyMetrics() {
|
||||
it('should navigate to My Activity Dashboard and interact with Survey Metrics widget', async function () {
|
||||
var MyDashboardLink = element(by.linkText('My Dashboards'));
|
||||
var MyActivityLink = element(by.linkText('My Activity'));
|
||||
var SurveyMetricsTitle = element(by.css('.widget-round-corners:nth-child(2) .fullHeight > .jrnys_lead-body-copy'));
|
||||
var MostRecentResultsTitle = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-4'));
|
||||
var MostRecentResultsStat = element(by.css('.inner-content-padding:nth-child(1) > .col-sm-9'));
|
||||
var SurveyHistoryTitle = element(by.css('.inner-content-padding:nth-child(2) > .col-sm-4'));
|
||||
var SurveyHistoryStat = element(by.css('.jrnys_support-text:nth-child(2) > .ng-binding'));
|
||||
var TimesTakenTitle = element(by.css('.inner-content-padding:nth-child(3) > .col-sm-4'));
|
||||
var TimesTakenStat = element(by.css('.inner-content-padding:nth-child(3) > .col-sm-9'));
|
||||
var NumberOfManualChangesTitle = element(by.css('.inner-content-padding:nth-child(4) > .col-sm-4'));
|
||||
var NumberOfManualChangesStat = element(by.css('.inner-content-padding:nth-child(4) > .col-sm-9'));
|
||||
var SurveyResultsViewAll = element(by.linkText('View All'));
|
||||
var SurveyResultsDivTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
||||
var SurveyResultsDivTop3 = element(by.css('.jrnys_main-headline'));
|
||||
var SurveyResultsDivSubTitle = element(by.css('.jrnys_lead-body-copy:nth-child(4)'));
|
||||
var SurveyResultsDivSubTitleTwo = element(by.css('.jrnys_lead-body-copy:nth-child(6)'));
|
||||
var SurveyResultsDivSubText = element(by.css('.col-sm-8:nth-child(1)'));
|
||||
var SurveyResultsDivRealistic = element(by.css('.col-sm-6:nth-child(1) > .jrnys_lead-body-copy'));
|
||||
var SurveyResultsDivRealisticReadMore = element(by.css('.text-center:nth-child(1) > .text-color-7a'));
|
||||
var SurveyResultsReadMoreTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
||||
var SurveyResultsReadMoreDivDescription = element(by.css('.col-lg-12:nth-child(3)'));
|
||||
var SurveyResultsDivXCloseLink = element(by.css('.default-color4a'));
|
||||
var SurveyResultsDivInvestigative = element(by.css('.col-sm-6:nth-child(2) > .jrnys_lead-body-copy'));
|
||||
var SurveyResultsDivInvestigativeReadMore = element(by.css('.text-center:nth-child(2) > .text-color-7a'));
|
||||
var SurveyResultsDivArtistic = element(by.css('.text-center:nth-child(3) > .jrnys_lead-body-copy'));
|
||||
var SurveyResultsDivArtisticReadMore = element(by.css('.text-center:nth-child(3) > .text-color-7a'));
|
||||
var SurveyResultsDivSocial = element(by.css('.text-center:nth-child(4) > .jrnys_lead-body-copy'));
|
||||
var SurveyResultsDivSocialReadMore = element(by.css('.text-center:nth-child(4) > .text-color-7a'));
|
||||
var SurveyResultsDivEnterprising = element(by.css('.text-center:nth-child(5) > .jrnys_lead-body-copy'));
|
||||
var SurveyResultsDivEnterprisingReadMore = element(by.css('.text-center:nth-child(5) > .text-color-7a'));
|
||||
var SurveyResultsDivConventional = element(by.css('.text-center:nth-child(6) > .jrnys_lead-body-copy'));
|
||||
var SurveyResultsDivConventionalReadMore = element(by.css('.text-center:nth-child(6) > .text-color-7a'));
|
||||
var SurveyResultsReadMoreXCloseLink = element(by.css('.close > .fa'));
|
||||
|
||||
|
||||
await MyDashboardLink.click();
|
||||
browser.sleep(1000);
|
||||
await MyActivityLink.click();
|
||||
browser.sleep(5000);
|
||||
expect(await SurveyMetricsTitle.getText()).toEqual('Survey Metrics View All');
|
||||
expect(await MostRecentResultsTitle.getText()).toEqual('Most Recent Result');
|
||||
expect(await SurveyHistoryTitle.getText()).toEqual('Survey History');
|
||||
expect(await SurveyHistoryStat.getText()).toContain('Last Taken 2019');
|
||||
expect(await TimesTakenTitle.getText()).toEqual('Times Taken');
|
||||
expect(await NumberOfManualChangesTitle.getText()).toEqual('Number of Manual Changes');
|
||||
expect(await NumberOfManualChangesStat.getText()).toEqual('3');
|
||||
await SurveyResultsViewAll.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await SurveyResultsDivTitle.getText()).toContain('Survey Results for Automated Regression');
|
||||
element(by.cssContainingText('option', '2019-07-30 | 15:48:30')).click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await SurveyResultsDivSubTitle.getText()).toContain("Automated's top strengths are:");
|
||||
expect(await SurveyResultsDivTop3.getText()).toContain('Artistic, Realistic, and Investigative');
|
||||
expect(await SurveyResultsDivSubTitleTwo.getText()).toContain('What does this mean?');
|
||||
expect(await SurveyResultsDivSubText.getText()).toContain('Artistic personality types are creative, intuitive, sensitive, articulate, expressive, unstructured, original, nonconforming, and innovative. Realistic personality types are independent, stable, persistent, genuine, practical, and thrifty.');
|
||||
expect(await SurveyResultsDivRealistic.getText()).toContain('Realistic');
|
||||
await SurveyResultsDivRealisticReadMore.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Realistic');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await SurveyResultsDivInvestigative.getText()).toContain('Investigative');
|
||||
await SurveyResultsDivInvestigativeReadMore.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Investigative');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await SurveyResultsDivArtistic.getText()).toContain('Artistic');
|
||||
await SurveyResultsDivArtisticReadMore.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Artistic');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await SurveyResultsDivSocial.getText()).toContain('Social');
|
||||
await SurveyResultsDivSocialReadMore.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Social');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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.');
|
||||
await SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await SurveyResultsDivEnterprising.getText()).toContain('Enterprising');
|
||||
await SurveyResultsDivEnterprisingReadMore.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Enterprising');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await SurveyResultsDivConventional.getText()).toContain('Conventional');
|
||||
await SurveyResultsDivConventionalReadMore.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SurveyResultsReadMoreTitle.getText()).toContain('Conventional');
|
||||
expect(await SurveyResultsReadMoreDivDescription.getText()).toContain('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 SurveyResultsReadMoreXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await SurveyResultsDivXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
}
|
||||
|
||||
function AccountProfile() {
|
||||
it('should navigate to Account Profile', async function () {
|
||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
||||
|
||||
Reference in New Issue
Block a user