Added LM Checks-FindOpportunities & SumitAResource

This commit is contained in:
2019-07-03 12:47:46 -07:00
parent 62d2b76c69
commit 5058d95216

View File

@@ -10,17 +10,35 @@ describe('Journeysmap script', function () {
browser.driver.manage().window().maximize();
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/signin');
it('should have a title', function () {
expect(browser.getTitle()).toEqual('Journeys');
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Journeys');
});
//Sign In
SignIn(UserNameTextBox, PasswordTextBox, SignInButton);
it('should have a title', function () {
expect(browser.getTitle()).toEqual('Journeys');
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Journeys');
});
function SignIn(UserNameTextBox, PasswordTextBox, SignInButton) {
it('should sign into journeys', async function () {
var JourneysGreeting = element(by.css('.dropdown'));
await UserNameTextBox.sendKeys('QA_AutomatedRegression');
await PasswordTextBox.sendKeys('3Dm1nAuto');
await SignInButton.click();
browser.waitForAngular();
browser.getCurrentUrl();
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
/*browser.refresh();
//browser.driver.navigate().refresh();
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
browser.waitForAngular();
browser.getCurrentUrl();*/
});
}
//<<<<DASHBOARD>>>>
//Top Career
TopCareerWidget();
@@ -77,24 +95,6 @@ describe('Journeysmap script', function () {
SignOut();
});
function SignIn(UserNameTextBox, PasswordTextBox, SignInButton) {
it('should sign into journeys', async function () {
var JourneysGreeting = element(by.css('.dropdown'));
UserNameTextBox.sendKeys('QA_AutomatedRegression');
PasswordTextBox.sendKeys('3Dm1nAuto');
SignInButton.click();
browser.waitForAngular();
browser.getCurrentUrl();
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
/*browser.refresh();
//browser.driver.navigate().refresh();
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
browser.waitForAngular();
browser.getCurrentUrl();*/
});
}
function TopCareerWidget() {
it('should edit Top Career', async function () {
var WidgetTitle = element(by.css('.full-width > .widget-padding > .jrnys_lead-body-copy'));
@@ -152,10 +152,14 @@ function TopCareer() {
it('should click the Top Career link and interact with Learn More page', async function () {
var TopCareerLink = element(by.css('td>.jrnys_support-text'));
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
var DescriptionIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding'));
var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)'));
var XCloseLink = element(by.css('.close'));
var Video = element(by.css('.text-right .socialImgIcon .far'));
var Follow = element(by.css('.text-right .journey-follow:nth-child(2)'));
var Favorite = element(by.css('.text-right .journey-favorite:nth-child(3)'));
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
var AtAGlanceHeader = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy'));
var WidgetHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text'));
var WidgetStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4'));
@@ -181,7 +185,7 @@ function TopCareer() {
var WagesHeader = element(by.css('.widget-round-corners:nth-child(4) .fullHeight .jrnys_lead-body-copy'));
var CurrentDataLocation = element(by.css('tr:nth-child(7) .ng-binding'));
var CurrentDataCountry = element(by.css('tr:nth-child(7) span:nth-child(2)'));
var ChangeLocationLink = element(by.css('.dropdown > .widgetRightControlContainer'));
var ChangeLocationLinkText = element(by.css('.dropdown > .widgetRightControlContainer'));
var ZipCodeTextBox = element(by.css('.ng-valid-maxlength:nth-child(1)'));
var ApplyButton = element(by.css('tr:nth-child(1) > td > .btn'));
var DegreesHeader = element(by.css('.widget-round-corners:nth-child(5) #id > .jrnys_lead-body-copy'));
@@ -193,6 +197,26 @@ function TopCareer() {
var TopResourcesHeader = element(by.css('#id > .fullHeight > .jrnys_lead-body-copy'));
var TopResourcesRightScroll = element(by.css('.table-height:nth-child(3) .right > .glyphicon'));
var FindOpportunitiesHeader = element(by.css('.widgetTitleContainerFindJob > .noPaddingCol'));
var FindOpportunitiesSubText = element(by.css('.col-sm-12:nth-child(2)'));
var JobTotals = element(by.css('.col-sm-4:nth-child(1) .col-sm-8 .jrnys_stand-out-text'));
var JobListingsDivHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding'));
var Totals = element(by.css('#findJobsWidget > .text-color-7a:nth-child(4)'));
var ChangeLocationLink = element(by.css('.widgetTitleContainerFindJob > .col-sm-5'));
var ChangeLocationDivTitle = element(by.css('b'));
var ChangeLocationDivSubTitle = element(by.css('.col-xs-11:nth-child(2)'));
var ChnageLocationEnterZipCodeTextBox = element(by.css('#inputZip'));
var ChangeLocationApplyButton = element(by.css('#indeedQuery'));
var SubmitResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12'));
var SubmitResourceWidgetSubTextOne = element(by.css('.row:nth-child(2) > .jrnys_body-copy:nth-child(1)'));
var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1'));
var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy'));
var MySubmittedResourcesHeader = element(by.css('.col-sm-12 > .ng-binding'));
var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)'));
var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1'));
var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(4) > .col-sm-12'));
var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text'));
var SubmitAResourceDivTitle = element(by.css('h3'));
var SubmitAResourceDivCancelButton = element(by.css('.btn-blue-RoundTabsinfo'));
var TasksHeader = element(by.css('#tasksid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
var TechnologyHeader = element(by.css('#technologyid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
var KnowledgeHeader = element(by.css('#knowledgeid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
@@ -205,16 +229,31 @@ function TopCareer() {
await TopCareerLink.click().then(function() {
browser.sleep(20000);
});
//Description
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
await DescriptionIcon.click().then(function() {
await DescriptionDetail.click().then(function() {
browser.sleep(1000);
});
expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists');
expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.');
expect(await DescriptionSubText.getText()).toContain('Other Jobs:');
expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Control System Computer Scientist; Scientific Programmer Analyst');
await XCloseLink.click();
browser.sleep(1000);
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.actions().mouseMove(Video).perform().then(function() {
browser.sleep(1000);
});
browser.actions().mouseMove(Follow).perform().then(function() {
browser.sleep(1000);
});
browser.actions().mouseMove(Favorite).perform().then(function() {
browser.sleep(1000);
});
browser.actions().mouseMove(JourneymanIcon).perform().then(function() {
browser.sleep(1000);
});
//At A Glance
expect(await AtAGlanceHeader.getText()).toEqual('At A Glance');
expect(await WidgetHeaderOne.getText()).toEqual('Typical Degree');
expect(await WidgetStatOne.getText()).toContain("Master's degree - 59%");
@@ -236,6 +275,7 @@ function TopCareer() {
browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(5) #id > .jrnys_lead-body-copy'))).perform().then(function() {
browser.sleep(1000);
});
//Personality
expect(await PersonalityHeader.getText()).toEqual('Personality');
expect(await WidgetDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.');
expect(await WidgetDescriptionTwo.getText()).toEqual('They do well at jobs that need:');
@@ -245,11 +285,12 @@ function TopCareer() {
expect(await WidgetBulletFour.getText()).toEqual('Independence');
expect(await WidgetBulletFive.getText()).toEqual('Adaptability/Flexibility');
expect(await WidgetBulletSix.getText()).toEqual('Dependability');
//Wages
expect(await WagesHeader.getText()).toContain('Wages');
expect(await WagesHeader.getText()).toContain('Change Location');
expect(await CurrentDataLocation.getText()).toEqual('San Diego-Carlsbad-San Marcos, CA MSA');
expect(await CurrentDataCountry.getText()).toEqual('United States');
await ChangeLocationLink.click().then(function() {
await ChangeLocationLinkText.click().then(function() {
browser.sleep(1000);
});
await ZipCodeTextBox.click();
@@ -265,51 +306,121 @@ function TopCareer() {
browser.actions().mouseMove(CertificatesHeader).perform().then(function() {
browser.sleep(1000);
});
//Degrees
expect(await DegreesHeader.getText()).toEqual('Degrees');
await DegreesRightScroll.click();
browser.sleep(1000);
browser.actions().mouseMove(InstitutionsHeader).perform().then(function() {
browser.sleep(1000);
});
//Certificates
expect(await CertificatesHeader.getText()).toEqual('Certificates');
await CertificatesRightScroll.click();
browser.sleep(1000);
browser.actions().mouseMove(TopResourcesHeader).perform().then(function() {
browser.sleep(1000);
});
//Institutions
expect(await InstitutionsHeader.getText()).toEqual('Institutions View All');
await InstitutionsRightScroll.click();
browser.actions().mouseMove(FindOpportunitiesHeader).perform().then(function() {
browser.sleep(1000);
});
//Top Resources
expect(await TopResourcesHeader.getText()).toEqual('Top Resources View All');
await TopResourcesRightScroll.click();
browser.sleep(1000);
browser.actions().mouseMove(TasksHeader).perform().then(function() {
browser.sleep(1000);
});
//Find Opportunities
expect(await FindOpportunitiesHeader.getText()).toEqual('Find Opportunities');
expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 50 mile radius of you.');
expect(await Totals.getText()).toContain('Jobs');
expect(await Totals.getText()).toContain('85');//stored value needed
expect(await Totals.getText()).toContain('Internships');
expect(await Totals.getText()).toContain('0');
expect(await Totals.getText()).toContain('Apprenticeships');
expect(await Totals.getText()).toContain('0');
await ChangeLocationLink.click().then(function() {
browser.sleep(1000);
});
expect(await ChangeLocationDivTitle.getText()).toEqual('Change Location');
expect(await ChangeLocationDivSubTitle.getText()).toEqual("Let's search the location you're most interested in.");
await ChnageLocationEnterZipCodeTextBox.sendKeys('85013');
browser.sleep(1000);
element(by.cssContainingText('option', '1000')).click().then(function() {
browser.sleep(1000);
});
await ChangeLocationApplyButton.click().then(function() {
browser.sleep(1000);
});
expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 1000 mile radius of you.');
await JobTotals.click().then(function() {
browser.sleep(1000);
});
expect(await JobListingsDivHeader.getText()).toContain('Job Listings: 68');//stored value needed
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await Totals.getText()).toContain('Jobs');
expect(await Totals.getText()).toContain('68');//stored value needed
expect(await Totals.getText()).toContain('Internships');
expect(await Totals.getText()).toContain('0');
expect(await Totals.getText()).toContain('Apprenticeships');
expect(await Totals.getText()).toContain('0');
//Submit A Resource
expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource');
expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources");
expect(await TotalInJourneys.getText()).toContain('Total in Journeys');
expect(await TotalInJourneys.getText()).toContain('1');
await MySubmittedResourcesLink.click().then(function() {
browser.sleep(1000);
});
expect(await MySubmittedResourcesHeader.getText()).toContain('My Submitted Resources');
await EllipsisResource.click().then(function() {
browser.sleep(1000);
});
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await ForThisMapPoint.getText()).toContain('For this map point');
expect(await ForThisMapPoint.getText()).toContain('0');
expect(await SubmitResourceWidgetSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.');
await SubmitAResourceWidgetButton.click().then(function() {
browser.sleep(1000);
});
expect(await SubmitAResourceDivTitle.getText()).toEqual('Submit a Resource');
await SubmitAResourceDivCancelButton.click().then(function() {
browser.sleep(1000);
});
browser.actions().mouseMove(KnowledgeHeader).perform().then(function() {
browser.sleep(1000);
});
//Tasks
expect(await TasksHeader.getText()).toEqual('Tasks View All');
//Technology
expect(await TechnologyHeader.getText()).toEqual('Technology View All');
browser.sleep(1000);
browser.actions().mouseMove(WorkActivitiesHeader).perform().then(function() {
browser.sleep(1000);
});
//Knowledge
expect(await KnowledgeHeader.getText()).toEqual('Knowledge View All');
//Skills
expect(await SkillsHeader.getText()).toEqual('Skills View All');
browser.sleep(1000);
browser.actions().mouseMove(NearbyPlacesHeader).perform().then(function() {
browser.sleep(1000);
});
//Work Activities
expect(await WorkActivitiesHeader.getText()).toEqual('Work Activities View All');
//Ability
expect(await AbilityHeader.getText()).toEqual('Ability View All');
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
browser.sleep(1000);
});
//Nearby Places
expect(await NearbyPlacesHeader.getText()).toEqual('Nearby Places');
await NearbyPlacesRightScroll.click();
browser.sleep(1000);
@@ -354,7 +465,9 @@ function AtAGlance() {
expect(await WidgetStatFour.getText()).toEqual('2,500');
expect(await WidgetHeaderFive.getText()).toEqual('Currently Employed');
expect(await WidgetStatFive.getText()).toEqual('27,900');
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -386,7 +499,9 @@ function Personality() {
expect(await WidgetBulletFour.getText()).toEqual('Independence');
expect(await WidgetBulletFive.getText()).toEqual('Adaptability/Flexibility');
expect(await WidgetBulletSix.getText()).toEqual('Dependability');
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -418,7 +533,9 @@ function Wages() {
});
expect(await CurrentDataLocation.getText()).toEqual('Nevada');
expect(await CurrentDataCountry.getText()).toEqual('United States');
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -443,7 +560,9 @@ function Degrees() {
browser.sleep(1000);
await CarrouselRightScroll.click();
browser.sleep(1000);
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -453,7 +572,7 @@ function Certificates() {
it('should click the Certificate link, expand/collapse first card by ellipsis and scroll to second set', async function () {
var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a'));
var WidgetTitle = element(by.css('#id > .jrnys_lead-body-copy'));
var EllipsisCertificateCard = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(2) .col-sm-1'));
var EllipsisCertificate = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(2) .col-sm-1'));
var CarrouselRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon'));
var XCloseLink = element(by.css('.close'));
@@ -461,13 +580,15 @@ function Certificates() {
browser.sleep(1000);
});
expect(await WidgetTitle.getText()).toEqual('Certificates');
await EllipsisCertificateCard.click();
await EllipsisCertificate.click();
browser.sleep(1000);
await EllipsisCertificateCard.click();
await EllipsisCertificate.click();
browser.sleep(1000);
await CarrouselRightScroll.click();
browser.sleep(1000);
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -477,7 +598,7 @@ function Institutions() {
it('should click the Institutions link, navigate to next set, expand by ellipsis, favorite second card, collapse by ellipsis, then scroll back to first set', async function () {
var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a'));
var WidgetTitle = element(by.xpath('//recommended-colleges/div/div[2]/div/div'));
var EllipsisInstitutionsCard = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .col-sm-1'));
var EllipsisInstitutions = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) .col-sm-1'));
var InstitutionFavoriteButton = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-favorite'));
var InstitutionDetailsButton = element(by.css('#dropDownSocialOptionsInstitutions_1_1 .journey-info'));
var InstitutionFollowButton = element(by.css('.social-panel-spacing > .journey-follow-selected'));
@@ -490,18 +611,20 @@ function Institutions() {
});
expect(await WidgetTitle.getText()).toEqual('Institutions');
await CarrouselRightScroll.click();
await EllipsisInstitutionsCard.click();
await EllipsisInstitutions.click();
browser.sleep(1000);
await InstitutionFavoriteButton.click();
await InstitutionDetailsButton.click();
browser.sleep(2500);
await InstitutionFollowButton.click();
browser.sleep(2500);
await EllipsisInstitutionsCard.click();
await EllipsisInstitutions.click();
browser.sleep(1000);
await CarrouselLeftScroll.click();
browser.sleep(1000);
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -521,7 +644,9 @@ function TopResources() {
browser.sleep(1000);
await ExpandFirstResourceCard.click();
browser.sleep(1000);
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -536,9 +661,11 @@ function FindOpportunities() {
await FindOpportunitiesLink.click().then(function() {
browser.sleep(1000);
});
expect(await WidgetTitle.getText()).toEqual('Job Listings: 85');
expect(await WidgetTitle.getText()).toContain('Job Listings: 88');//stored value needed
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -564,10 +691,13 @@ function SubmitAResource() {
expect(await WidgetDivTitle.getText()).toEqual('Submit a Resource');
browser.waitForAngular();
WebsiteURLLink.click();
await XCloseDivLink.click();
browser.sleep(1000);
await XCloseDivLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -577,7 +707,7 @@ function NearbyPlaces() {
it('should click Nearby Places link, expand 3rd card and play video', async function () {
var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a'));
var WidgetTitle = element(by.css('#nearByid > .jrnys_lead-body-copy'));
var EllipsisNearyByPlacesCard = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(3) .col-sm-1'));
var EllipsisNearyByPlaces = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(3) .col-sm-1'));
var DetailsButton = element(by.css('#dropDownSocialOptionsComputerandInformationResearchScientistsNearbyPlacesundefined .row:nth-child(6) > .col-xs-9'));
var VideoButton = element(by.css('#dropDownSocialOptionsComputerandInformationResearchScientistsNearbyPlacesundefined .far'));
var VideoTitle = element(by.css('.modal-content > .ng-scope > div > .ng-binding'));
@@ -591,17 +721,20 @@ function NearbyPlaces() {
browser.waitForAngular();
expect(await WidgetTitle.getText()).toEqual('Nearby Places');
browser.waitForAngular();
await EllipsisNearyByPlacesCard.click();
await EllipsisNearyByPlaces.click();
browser.sleep(2500);
await DetailsButton.click();
browser.sleep(2500);
await VideoButton.click();
browser.sleep(15000);
expect(await VideoTitle.getText()).toEqual('Computer and Information Research Scientists');
await XCloseVideoDivLink.click();
browser.sleep(1000);
await XCloseVideoDivLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -628,7 +761,9 @@ function Tasks() {
expect(await ImportanceStat.getText()).toEqual('82%');
expect(await CategoryStat.getText()).toEqual('Core');
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -649,7 +784,9 @@ function Technology() {
expect(await TechnologyHeader.getText()).toEqual('Development environment software');
expect(await TechnologyData.getText()).toEqual('Automated document generation software ;');
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -672,7 +809,9 @@ function Knowledge() {
expect(await KnowledgeRow.getText()).toEqual('Computers and Electronics');
expect(await ImportanceStat.getText()).toEqual('90%');
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -695,7 +834,9 @@ function Skills() {
expect(await SkillsRow.getText()).toEqual('Complex Problem Solving');
expect(await SkillsStat.getText()).toEqual('72%');
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -718,7 +859,9 @@ function WorkActivities() {
expect(await WorkActivitiesRow.getText()).toEqual('Interacting With Computers');
expect(await WorkActivitiesStat.getText()).toEqual('92%');
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -741,7 +884,9 @@ function Ability() {
expect(await AbilityRow.getText()).toEqual('Deductive Reasoning');
expect(await AbilityStat.getText()).toEqual('72%');
browser.waitForAngular();
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -753,7 +898,7 @@ function MyResources() {
var ViewAllLink = element(by.css('#id > .ng-scope .text-color-7a'));
var WidgetDivTitle = element(by.css('.col-sm-12 > .ng-binding'));
var MyResourceTitle = element(by.css('.col-xs-9 > .ng-binding'));
var EllipsisMyResourcesCard = element(by.css('.glyphicon-option-vertical'));
var EllipsisMyResources = element(by.css('.glyphicon-option-vertical'));
var XCloseLink = element(by.css('.close'));
browser.actions().mouseMove(element(by.css('#myInstitutionsFull #id .jrnys_lead-body-copy'))).perform().then(function() {
@@ -767,9 +912,11 @@ function MyResources() {
expect(await MyResourceTitle.getText()).toEqual('Test Doc');
await MyResourceTitle.click();
browser.sleep(1000);
await EllipsisMyResourcesCard.click();
await EllipsisMyResources.click();
browser.sleep(1000);
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
browser.getCurrentUrl();
});
@@ -1119,7 +1266,9 @@ function InterestSurveyResults() {
expect(await TopThreeTraitsHeader.getText()).toContain('Your top 3 traits View All');
await ViewAllLink.click();
browser.sleep(1000);
await XCloseLink.click();
await XCloseLink.click().then(function() {
browser.sleep(1000);
});
browser.waitForAngular();
await ShareResultsIcon.click();
expect(await ShareResultsDivTitle.getText()).toEqual('Email Your Results');
@@ -1246,8 +1395,9 @@ function InterestSurveyResultsCreateJourney() {
browser.sleep(1000);
expect(await JourneyInfoDivTitle.getText()).toEqual('Create Your Journey');
expect(await JourneyInfoDivSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.');
await JourneyInfoDivXCloseLink.click();
browser.sleep(1000);
await JourneyInfoDivXCloseLink.click().then(function() {
browser.sleep(1000);
});
await JourneyEntryPoint.click();
browser.waitForAngular();
await JourneyEntryPoint.sendKeys('6');
@@ -1390,7 +1540,9 @@ function MapInteraction() {
browser.sleep(2500);
expect(await ItemTitle.getText()).toEqual('Computer Systems Analysts');
expect(await ItemDescriptionReadMore.getText()).toEqual('Analyze science, engineering, business, and other data processing problems to implement and improve computer systems. Analyze user requirements, procedures, and problems to automate or improve existing systems and review computer system capabilities, workflow, and scheduling limitations. May analyze or recommend commercially available software.');
await ItemDetailCloseLink.click();
await ItemDetailCloseLink.click().then(function() {
browser.sleep(1000);
});
expect(await ItemDegreeHeader.getText()).toEqual('TYPICAL DEGREE');
expect(await ItemDegree.getText()).toEqual('College (4 Year)');
expect(await ItemDegreeOneStat.getText()).toEqual('33%');