Updated anchors to scrolling points
This commit is contained in:
@@ -28,11 +28,13 @@ describe('Journeysmap script', function () {
|
||||
|
||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression');
|
||||
await PasswordTextBox.sendKeys('3Dm1nAuto');
|
||||
await SignInButton.click();
|
||||
await SignInButton.click().then(function() {
|
||||
browser.sleep(15000);
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||
/*await DashboardHeaderLink.click().then(function() {
|
||||
});
|
||||
/*expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});*/
|
||||
//browser.refresh();//Role Model doesn't always load properly EDM-1603
|
||||
@@ -79,9 +81,9 @@ describe('Journeysmap script', function () {
|
||||
WorkActivities();
|
||||
Ability();
|
||||
|
||||
MyResources();
|
||||
MyResourcesCarousel();
|
||||
|
||||
Instititions();
|
||||
InstitutionsCarousel();
|
||||
|
||||
MyJourneys();
|
||||
|
||||
@@ -152,12 +154,18 @@ function ProfileWidget() {
|
||||
await AboutMePencil.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, 780);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model');
|
||||
expect(await RoleModelNameOne.getText()).toEqual('Elon Musk');
|
||||
expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson');
|
||||
expect(await EducationWidgetTitle.getText()).toEqual('Education');
|
||||
expect(await EducationStartEndDate.getText()).toEqual('06/2005');
|
||||
expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY');
|
||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await ProfileWidgetExpandCollapseIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
@@ -170,8 +178,8 @@ function MyProgressWidget() {
|
||||
it('should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () {
|
||||
var MyProgressWidgetTitle = element(by.css('.yourProgressTitle'));
|
||||
var ProgressLevel = element(by.css('.myProgressLevel'));
|
||||
var ProgressWidgetExpandCollapseIcon = element(by.css('.full-width > div > .fa'));
|
||||
var ActionOne = element(by.css('.col-md-3:nth-child(1) > .ng-scope'));
|
||||
//var ProgressWidgetExpandCollapseIcon = element(by.css('.full-width > div > .fa'));
|
||||
var ProgressWidgetExpandIcon = element(by.css('.full-width .ng-scope'));
|
||||
var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope'));
|
||||
var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope'));
|
||||
var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope'));
|
||||
@@ -186,6 +194,7 @@ function MyProgressWidget() {
|
||||
var ActionFourRetake = element(by.linkText('Keep Exploring'));
|
||||
var KeepExploringTitlePage = element(by.css('.col-sm-12'));
|
||||
var KeepExploringBackLink = element(by.css('.btn-primary-back-mod'));
|
||||
var ProgressWidgetCollapseIcon = element(by.css('.full-width > div > .ng-scope'));
|
||||
var InterestSurveyTitle = element(by.css('.jrnys_lead-body-copy'));
|
||||
var TextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)'));
|
||||
var TextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)'));
|
||||
@@ -206,10 +215,10 @@ function MyProgressWidget() {
|
||||
|
||||
expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS');
|
||||
expect(await ProgressLevel.getText()).toEqual('Level: Scout');
|
||||
await ProgressWidgetExpandCollapseIcon.click().then(function() {
|
||||
await ProgressWidgetExpandIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await ActionOne.getText()).toContain('Account Creation');
|
||||
expect(await ActionOneCompleted.getText()).toContain('Account Creation');
|
||||
expect(await ActionOneCompleted.getText()).toContain('Completed');
|
||||
expect(await ActionTwo.getText()).toContain('Interest Survey');
|
||||
expect(await ActionTwoCompleted.getText()).toContain('Completed');
|
||||
@@ -233,9 +242,10 @@ function MyProgressWidget() {
|
||||
await LikeItEmoji.click();
|
||||
await LikeItEmoji.click();
|
||||
await LikeItEmoji.click();
|
||||
await CancelSurveyButton.click();
|
||||
await CancelSurveyButton.click().then(function() {
|
||||
browser.sleep(10000);
|
||||
browser.waitForAngular();
|
||||
|
||||
});
|
||||
//Take Interest Survey
|
||||
await ActionTwoRetake.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
@@ -306,6 +316,7 @@ function MyProgressWidget() {
|
||||
browser.sleep(5000);
|
||||
|
||||
expect(await PageTitle.getText()).toEqual('Interest Survey Result');
|
||||
browser.sleep(5000);
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
@@ -327,7 +338,7 @@ function MyProgressWidget() {
|
||||
await KeepExploringBackLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
await ProgressWidgetExpandCollapseIcon.click().then(function() {
|
||||
await ProgressWidgetCollapseIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
@@ -336,7 +347,7 @@ function MyProgressWidget() {
|
||||
}
|
||||
|
||||
function InterestSurveyResultsWidget() {
|
||||
it('should interact with Interest Survey Results widget, validating results', async function () {
|
||||
it('should interact with Interest Survey Results widget, validate results', async function () {
|
||||
var InterestSurveyWidgetTitle = element(by.css('.fullHeight:nth-child(2) > div:nth-child(2) > .jrnys_lead-body-copy > div'));
|
||||
var InterestEditLink = element(by.css('.fa-pencil:nth-child(1)'));
|
||||
var EditInterestDivTitle = element(by.css('#interests .jrnys_lead-body-copy'));
|
||||
@@ -406,8 +417,11 @@ function InterestSurveyResultsWidget() {
|
||||
var DivAlertMessage = element(by.css('p:nth-child(7)'));
|
||||
var DivOKButton = element(by.css('.confirm'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 610);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await InterestEditLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
@@ -482,7 +496,7 @@ function InterestSurveyResultsWidget() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await InterestResultsLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
browser.sleep(10000);
|
||||
});
|
||||
expect(await PageTitle.getText()).toEqual('Interest Survey Result');
|
||||
expect(await TopThreeTraitsHeader.getText()).toEqual('Your top 3 traits View All');
|
||||
@@ -492,7 +506,9 @@ function InterestSurveyResultsWidget() {
|
||||
expect(await TopThreeTraitsDescriptionTwo.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 TopThreeTraitsThree.getText()).toEqual('Conventional (23)');
|
||||
expect(await TopThreeTraitsDescriptionThree.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 ViewAllLink.click();
|
||||
await ViewAllLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await TopTraitsOne.getText()).toEqual('Enterprising (27)');
|
||||
expect(await TopTraitsOneDescription.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 TopTraitsTwo.getText()).toEqual('Investigative (25)');
|
||||
@@ -505,7 +521,6 @@ function InterestSurveyResultsWidget() {
|
||||
expect(await TopTraitsFiveDescription.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 TopTraitsSix.getText()).toEqual('Artistic (17)');
|
||||
expect(await TopTraitsSixDescription.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.');
|
||||
browser.sleep(1000);
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
@@ -526,8 +541,8 @@ function InterestSurveyResultsWidget() {
|
||||
await DivOKButton.click();
|
||||
browser.sleep(1000);
|
||||
await CancelButton.click();
|
||||
browser.waitForAngular();
|
||||
/*await ShareResultsIcon.click(); INCONSISTENT
|
||||
/*browser.waitForAngular();
|
||||
await ShareResultsIcon.click(); INCONSISTENT
|
||||
await FromTextBox.clear();
|
||||
await FromTextBox.sendKeys("Juan's Automated Regression");
|
||||
await ToTextBox.sendKeys('jhuerta@edmin.com');
|
||||
@@ -563,9 +578,11 @@ function InterestSurveyResultsClusters() {
|
||||
var AtAGlanceIcon = element(by.xpath('//territory-card/div/div/div/div/div/div[2]'));
|
||||
var AtAGlanceBackOfCardXCloseLink = element(by.xpath('//div[2]/div/div[2]/span'));
|
||||
var OccupationCardEllipsis = element(by.xpath('//div/div/div[2]/div/i'));
|
||||
//var JourneymanIcon = element(by.xpath('//div[4]/div[2]'))
|
||||
var LearnMoreButton = element(by.xpath('//div/div/div/div/div[2]/div[2]'));
|
||||
var EC = protractor.ExpectedConditions;
|
||||
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
|
||||
//var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
|
||||
var JourneymanIcon = element(by.css('.text-right .socialImgIconJourneyableSvg'));
|
||||
|
||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
||||
@@ -621,8 +638,11 @@ function InterestSurveyResultsClusters() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await LearnMoreButton.click().then(function() {
|
||||
browser.sleep(20000);
|
||||
browser.sleep(15000);
|
||||
});
|
||||
/*await JourneymanIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});*/
|
||||
browser.waitForAngular();
|
||||
browser.wait(EC.elementToBeClickable(JourneymanIcon));
|
||||
browser.waitForAngular();
|
||||
@@ -655,7 +675,7 @@ function InterestSurveyResultsCreateJourney() {
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||
|
||||
await JourneymanIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await JourneySideBarHeader.getText()).toEqual('Create Your Journey');
|
||||
await JourneyInfoIcon.click();
|
||||
@@ -688,6 +708,9 @@ function InterestSurveyResultsCreateJourney() {
|
||||
browser.sleep(5000);
|
||||
await UpOneLevelLink.click();
|
||||
browser.sleep(5000);
|
||||
browser.actions().mouseMove(JourneySaveIcon).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await JourneySaveIcon.click();
|
||||
browser.sleep(5000);
|
||||
expect(await JourneySaveDivTitle.getText()).toEqual('Journey saved!');
|
||||
@@ -732,8 +755,11 @@ function SkillsAssessmentWidget() {
|
||||
var GoodFitHeaderThree = element(by.css('.item:nth-child(3) .ng-binding:nth-child(4) > .ng-binding'));
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 610);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await InterestRetakeLink.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
@@ -941,8 +967,11 @@ function SkillsAssessmentResults() {
|
||||
var SkillsResultCardSix = element(by.xpath('//div[2]/div[3]/div/career-territory-card/territory-card/div/div/div[3]/div/div[2]/span'));
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 610);').then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await SkillsAssessmentWidgetTitle.getText()).toEqual('Skills Assessment Results');
|
||||
expect(await BestFitHeader.getText()).toEqual('BEST FIT');
|
||||
@@ -1005,8 +1034,11 @@ function BeginCareerExploration() {
|
||||
var ExploreCareersButton = element(by.css('td > .btn-info'));
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#recommendedCareersCollapsed .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 610);').then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await BeginCareerExplorationTitle.getText()).toEqual('Begin Career Exploration');
|
||||
expect(await BeginCareerExplorationDescription.getText()).toEqual('We like your adventurous spirit. Search for a career that aligns with your interests and Learn More about it.');
|
||||
@@ -1050,18 +1082,21 @@ function MyRecommendedCareers() {
|
||||
var FitFilterButton = element(by.css('.statusBtn:nth-child(2) > .xIcon'));
|
||||
var RequiredJobPrepFilterButton = element(by.css('.xIcon'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('My Recommended Careers View All');
|
||||
await CarrouselRightScroll.click();
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
await CarrouselRightScroll.click();
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
await CarrouselRightScroll.click();
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
await CarrouselRightScroll.click();
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
await ViewMoreLink.click();
|
||||
browser.sleep(2500);
|
||||
expect(await PageTitle.getText()).toEqual('My Recommended Careers');
|
||||
@@ -1089,8 +1124,11 @@ function MyRecommendedCareers() {
|
||||
expect(await NoResultsFoundAppliedFilters.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.');
|
||||
await BackLink.click();
|
||||
browser.sleep(2500);
|
||||
browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await NoResultsFound.getText()).toContain('Sorry, Journeys found no matching results for that combination of filters. Please change the applied filters.');
|
||||
await ZtoAFilterButton.click();
|
||||
@@ -1100,7 +1138,7 @@ function MyRecommendedCareers() {
|
||||
await FitFilterButton.click();
|
||||
browser.sleep(2500);
|
||||
await RequiredJobPrepFilterButton.click();
|
||||
browser.sleep(2500);
|
||||
browser.sleep(5000);
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
@@ -1123,8 +1161,11 @@ function EditTopCareer() {
|
||||
var TopCareerDivSaveButton = element(by.css('.row:nth-child(12) #photoBtn'));
|
||||
var TopCareerDescription = element(by.css('.jrEllipsis3Lines'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1880);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Top Career');
|
||||
browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
@@ -1133,7 +1174,6 @@ function EditTopCareer() {
|
||||
await TopCareerEditIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
|
||||
await TopCareerDivXRemoveLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
@@ -1143,9 +1183,9 @@ function EditTopCareer() {
|
||||
expect(await TopCareerGreenText.getText()).toEqual('Top Career');
|
||||
expect(await TopCareerGreenSubText.getText()).toEqual("Head in the clouds? Share what Career you’re thinking about!");
|
||||
await TopCareerDivAddButton.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await TopCareerDivTitle.getText()).toEqual('Dream big, reach higher!');
|
||||
//expect(await TopCareerDivTitle.getText()).toEqual('Dream big, reach higher!'); Not reading value
|
||||
expect(await TopCareerDivSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?");
|
||||
expect(await TopCareerDivHandle.getText()).toEqual('Job Title');
|
||||
await TopCareerDivTextBox.click().then(function() {
|
||||
@@ -1305,12 +1345,15 @@ function TopCareerWidget() {
|
||||
expect(await AtAGlanceStatFour.getText()).toEqual('2,500');
|
||||
expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed');
|
||||
expect(await AtAGlanceStatFive.getText()).toEqual('27,900');
|
||||
browser.actions().mouseMove(DegreesWidgetTitle).perform().then(function() {
|
||||
browser.executeScript('window.scrollTo(0, 410);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
/*browser.actions().mouseMove(DegreesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
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 PersonalityWidgetTitle.getText()).toEqual('Personality');
|
||||
expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.');
|
||||
@@ -1334,7 +1377,7 @@ function TopCareerWidget() {
|
||||
});
|
||||
expect(await WagesWidgetTitle.getText()).toContain('Change Location');
|
||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||||
expect(await CurrentDataLocalHeader.getText()).toContain('San Diego-Carlsbad-San Marcos, CA');
|
||||
expect(await CurrentDataLocalHeader.getText()).toContain('San Diego-Carlsbad, CA');
|
||||
expect(await WagesHighText.getText()).toEqual('High');
|
||||
expect(await WagesMedianText.getText()).toEqual('Median');
|
||||
expect(await WagesLowText.getText()).toEqual('Low');
|
||||
@@ -1356,42 +1399,59 @@ function TopCareerWidget() {
|
||||
});
|
||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
||||
expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ');
|
||||
browser.actions().mouseMove(CertificatesWidgetTitle).perform().then(function() {
|
||||
/*browser.actions().mouseMove(CertificatesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 890);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Degrees
|
||||
expect(await DegreesWidgetTitle.getText()).toEqual('Degrees');
|
||||
expect(await DegreesCardHeader.getText()).toEqual('Computer Applications Minor—College-Wide');
|
||||
await DegreesRightScroll.click();
|
||||
browser.sleep(2500);
|
||||
/*browser.actions().mouseMove(InstitutionsWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.actions().mouseMove(InstitutionsWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1376);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Certificates
|
||||
expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates');
|
||||
expect(await CertificatesCardHeader.getText()).toEqual('Certified Associate LabVIEW Developer');
|
||||
expect(await CertificatesCardSubHeader.getText()).toEqual('Business Analysis');
|
||||
await CertificatesRightScroll.click();
|
||||
browser.sleep(2500);
|
||||
/*browser.actions().mouseMove(TopResourcesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.actions().mouseMove(TopResourcesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1860);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Institutions
|
||||
expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All');
|
||||
expect(await InstitutionsCardHeader.getText()).toEqual('University of San Diego');
|
||||
await InstitutionsRightScroll.click();
|
||||
browser.actions().mouseMove(FindOpportunitiesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
/*browser.actions().mouseMove(FindOpportunitiesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 2340);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Top Resources
|
||||
expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All');
|
||||
expect(await TopResources3rdCardHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
browser.sleep(2500);
|
||||
await TopResources3rdCardSaveIcon.click();
|
||||
browser.sleep(2500);
|
||||
await TopResourcesRightScroll.click();
|
||||
browser.sleep(2500);
|
||||
/*browser.actions().mouseMove(TasksWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.actions().mouseMove(TasksWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 2825);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Find Opportunities
|
||||
expect(await FindOpportunitiesWidgetTitle.getText()).toEqual('Find Opportunities');
|
||||
@@ -1400,8 +1460,8 @@ function TopCareerWidget() {
|
||||
//expect(await Totals.getText()).toContain('85');//stored value needed
|
||||
expect(await Totals.getText()).toContain('Internships');
|
||||
//expect(await Totals.getText()).toContain('0');//stored value needed
|
||||
expect(await Totals.getText()).toContain('Apprenticeships');
|
||||
expect(await Totals.getText()).toContain('0');
|
||||
//expect(await Totals.getText()).toContain('Apprenticeships');//value sometimes is disabled
|
||||
//expect(await Totals.getText()).toContain('0');//stored value needed
|
||||
await ChangeLocationLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
@@ -1428,7 +1488,7 @@ function TopCareerWidget() {
|
||||
expect(await Totals.getText()).toContain('Internships');
|
||||
//expect(await Totals.getText()).toContain('0');//stored value needed
|
||||
expect(await Totals.getText()).toContain('Apprenticeships');
|
||||
expect(await Totals.getText()).toContain('0');
|
||||
//expect(await Totals.getText()).toContain('3');//stored value needed
|
||||
//Submit A Resource
|
||||
expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource');
|
||||
expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources");
|
||||
@@ -1454,8 +1514,11 @@ function TopCareerWidget() {
|
||||
await SubmitAResourceDivCancelButton.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
browser.actions().mouseMove(KnowledgeWidgetTitle).perform().then(function() {
|
||||
/*browser.actions().mouseMove(KnowledgeWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 3145);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Tasks
|
||||
expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All');
|
||||
@@ -1465,16 +1528,22 @@ function TopCareerWidget() {
|
||||
//Technology
|
||||
expect(await TechnologyWidgetTitle.getText()).toEqual('Technology View All');
|
||||
browser.sleep(1000);
|
||||
browser.actions().mouseMove(WorkActivitiesWidgetTitle).perform().then(function() {
|
||||
/*browser.actions().mouseMove(WorkActivitiesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 3468);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Knowledge
|
||||
expect(await KnowledgeWidgetTitle.getText()).toEqual('Knowledge View All');
|
||||
//Skills
|
||||
expect(await SkillsWidgetTitle.getText()).toEqual('Skills View All');
|
||||
browser.sleep(1000);
|
||||
browser.actions().mouseMove(NearbyPlacesWidgetTitle).perform().then(function() {
|
||||
/*browser.actions().mouseMove(NearbyPlacesWidgetTitle).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 3791);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
//Work Activities
|
||||
expect(await WorkActivitiesWidgetTitle.getText()).toEqual('Work Activities View All');
|
||||
@@ -1482,7 +1551,7 @@ function TopCareerWidget() {
|
||||
expect(await AbilityWidgetTitle.getText()).toEqual('Ability View All');
|
||||
//Nearby Places
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places');
|
||||
await NearbyPlacesRightScroll.click();
|
||||
@@ -1545,7 +1614,7 @@ function NearbyPlacesOccupationCard() {
|
||||
var FollowingTab = element(by.css('.col-md-4 > .row-follow-type > .col-selected'));
|
||||
var FollowingTitle = element(by.css('.card-last-col:nth-child(1) .title:nth-child(3)'));
|
||||
var FollowingPathway = element(by.css('.card-last-col:nth-child(1) .subtitle:nth-child(4)'));
|
||||
var FollowingUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(4) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(4) > td > div:nth-child(1) > div > span:nth-child(2) > social-follow-icon > span > i'));
|
||||
var SoftwareDevelopersApplicationsUnfollowIcon = element(by.css('#viewTemp > div > div > div:nth-child(3) > div > div > following > div:nth-child(2) > div.row.hidden-sm.hidden-xs.ng-scope > div > div > div:nth-child(2) > div > div:nth-child(4) > section > section > div > div > div:nth-child(1) > table > tbody > tr:nth-child(3) > td > div:nth-child(1) > div > span:nth-child(2) > social-follow-icon > span > i'));
|
||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||
|
||||
expect(await OccupationCardTitle.getText()).toEqual('Software Developers, Applications');
|
||||
@@ -1613,7 +1682,7 @@ function NearbyPlacesOccupationCard() {
|
||||
browser.sleep(10000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await OccupationCardMapIcon.click().then(function() {
|
||||
browser.sleep(15000);
|
||||
@@ -1625,7 +1694,7 @@ function NearbyPlacesOccupationCard() {
|
||||
browser.sleep(10000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await OccupationCardJourneymanIcon.click().then(function() {
|
||||
browser.sleep(15000);
|
||||
@@ -1635,7 +1704,7 @@ function NearbyPlacesOccupationCard() {
|
||||
browser.sleep(10000);
|
||||
});
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await OccupationCardVideoIcon.click().then(function() {
|
||||
browser.sleep(15000);
|
||||
@@ -1668,7 +1737,7 @@ function NearbyPlacesOccupationCard() {
|
||||
expect(await FollowingTab.getText()).toEqual('Following');
|
||||
expect(await FollowingTitle.getText()).toEqual('Software Developers, Applications');
|
||||
expect(await FollowingPathway.getText()).toEqual('Information Technology');
|
||||
await FollowingUnfollowIcon.click().then(function() {
|
||||
await SoftwareDevelopersApplicationsUnfollowIcon.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await DashboardHeaderLink.click().then(function() {
|
||||
@@ -1696,11 +1765,12 @@ function AtAGlance() {
|
||||
var WidgetStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize'));
|
||||
var XCloseLink = element(by.css('.close'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
//browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await AtAGlanceLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('At A Glance');
|
||||
expect(await WidgetHeaderOne.getText()).toEqual('Typical Degree');
|
||||
@@ -1890,7 +1960,7 @@ function Certificates() {
|
||||
}
|
||||
|
||||
function Institutions() {
|
||||
it('should click the Institutions link, navigate to next set, expand by ellipsis, and validate data', async function () {
|
||||
it('should click the Institutions link, scroll to second set, expand by ellipsis, and validate data', 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 CarrouselRightScroll = element(by.css('#recommendedColleges .right > .glyphicon'));
|
||||
@@ -1916,7 +1986,7 @@ function Institutions() {
|
||||
var XCloseLink = element(by.css('.close'));
|
||||
|
||||
await InstitutionsLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Institutions');
|
||||
await CarrouselRightScroll.click();
|
||||
@@ -1980,21 +2050,26 @@ function TopResources() {
|
||||
await FirstResourceLearnMoreLink.click();
|
||||
browser.sleep(5000);
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
var SecondWindowHandle = handles[1];
|
||||
var FirstWindowHandle = handles[0];
|
||||
//var SecondWindowHandle = handles[1];
|
||||
//var FirstWindowHandle = handles[0];
|
||||
|
||||
browser.switchTo().window(SecondWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
browser.driver.switchTo().window(handles[1]).then(async function () {
|
||||
browser.sleep(10000);
|
||||
expect(await browser.driver.getCurrentUrl()).toEqual("https://www.onetonline.org/link/summary/15-1111.00");
|
||||
browser.driver.close();
|
||||
});
|
||||
browser.switchTo().window(FirstWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
browser.sleep(2500);
|
||||
browser.driver.switchTo().window(handles[0]);
|
||||
expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
||||
});
|
||||
});
|
||||
await FollowFirstResourceCard.click();
|
||||
/*browser.driver.switchTo().window(handles[0]).then(async function () {
|
||||
browser.sleep(5000);
|
||||
expect(await FirstResourceCardTitle.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
||||
});*/
|
||||
//});
|
||||
await FollowFirstResourceCard.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
@@ -2012,7 +2087,7 @@ function FindOpportunities() {
|
||||
await FindOpportunitiesLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toContain('Job Listings: 87');//stored value needed
|
||||
expect(await WidgetTitle.getText()).toContain('Job Listings:');//stored value needed
|
||||
browser.waitForAngular();
|
||||
await XCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
@@ -2076,7 +2151,8 @@ function NearbyPlaces() {
|
||||
var GrowthData = element(by.css('#dropDownDataComputerandInformationResearchScientistsNearbyPlacesundefined > .row:nth-child(5) .item-body > .ng-binding'));
|
||||
var XCloseLink = element(by.css('.close'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
//browser.actions().mouseMove(element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await NearbyPlacesLink.click().then(function() {
|
||||
@@ -2747,8 +2823,8 @@ function Ability() {
|
||||
});
|
||||
}
|
||||
|
||||
function MyResources() {
|
||||
it('should click My Resources View All link, expand and collapse resources and remove latest resource', async function () {
|
||||
function MyResourcesCarousel() {
|
||||
it('should click My Resources carousel View All link, expand and collapse resources and remove latest resource', async function () {
|
||||
var WidgetTitle = element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'));
|
||||
var TopResources1stCardHeader = element(by.css('.col-xs-4:nth-child(1) tr:nth-child(2) > .hotTitles'));
|
||||
var TopResources1stCardSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)'));
|
||||
@@ -2758,8 +2834,11 @@ function MyResources() {
|
||||
var EllipsisMyResources = element(by.css('.glyphicon-option-vertical'));
|
||||
var XCloseLink = element(by.css('.close'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1990);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('My Resources View All');
|
||||
expect(await TopResources1stCardHeader.getText()).toEqual('Computer and Information Research Scientists');
|
||||
@@ -2782,15 +2861,18 @@ function MyResources() {
|
||||
});
|
||||
}
|
||||
|
||||
function Instititions() {
|
||||
it('should click Institution View All link', async function () {
|
||||
function InstitutionsCarousel() {
|
||||
it('should click Institution carousel View All link', async function () {
|
||||
var WidgetTitle = element(by.css('#myInstitutionsCollapsed #id .jrnys_lead-body-copy'));
|
||||
var ViewAllLink = element(by.css('#myInstitutionsCollapsed .text-color-7a'));
|
||||
var EditSearchWidgetTitle = element(by.css('.panel-with-page > .row > b'));
|
||||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 2465);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('Institutions View All');
|
||||
await ViewAllLink.click();
|
||||
@@ -2799,7 +2881,7 @@ function Instititions() {
|
||||
expect(await EditSearchWidgetTitle.getText()).toEqual('Edit Search');
|
||||
browser.sleep(2500);
|
||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await BackLink.click();
|
||||
browser.waitForAngular();
|
||||
@@ -2808,7 +2890,7 @@ function Instititions() {
|
||||
}
|
||||
|
||||
function MyJourneys() {
|
||||
it('should navigate 4th journey in My Journeys widget on dashboard and view journey', async function () {
|
||||
it('should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () {
|
||||
var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'));
|
||||
var JourneySteps = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div'));
|
||||
var LearnMoreLink = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) #appendHere > .jrnys_support-text'));
|
||||
@@ -2819,8 +2901,11 @@ function MyJourneys() {
|
||||
var RightScroll = element(by.css('.glyphicon-menu-right'));
|
||||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
||||
|
||||
browser.actions().mouseMove(element(by.id('journeyListWidget'))).perform();
|
||||
browser.sleep(5000);
|
||||
/*browser.actions().mouseMove(element(by.id('journeyListWidget'))).perform();
|
||||
browser.sleep(5000);*/
|
||||
browser.executeScript('window.scrollTo(0, 3315);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await WidgetTitle.getText()).toEqual('My Journeys');
|
||||
expect(await JourneySteps.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
||||
expect(await JourneySteps.getText()).toContain('Learn More');
|
||||
@@ -2875,7 +2960,7 @@ function MyJourneysPage() {
|
||||
browser.sleep(5000);
|
||||
expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources');
|
||||
await ViewOnMapButton.click();
|
||||
browser.sleep(20000);
|
||||
browser.sleep(15000);
|
||||
await MyJourneysHeaderLink.click();
|
||||
await Select3rdJourney.click();
|
||||
browser.sleep(5000);
|
||||
@@ -2968,7 +3053,7 @@ function MapInteraction() {
|
||||
});
|
||||
await MapSearchTextBox.sendKeys('Software Quality Assurance Analyst');
|
||||
await MapSearchIcon.click();
|
||||
browser.sleep(20000);
|
||||
browser.sleep(10000);
|
||||
await SearchCareerOne.click();
|
||||
browser.sleep(2500);
|
||||
expect(await ItemPath.getText()).toEqual('IT > Programming & Software Development >');
|
||||
@@ -2996,37 +3081,37 @@ function MapInteraction() {
|
||||
expect(await ObjectTitle.getText()).toEqual('Software Quality Assurance Engineers and Testers');
|
||||
expect(await ItemDescription.getText()).toEqual('Develop and execute software test plans in order to identify software problems and their causes.');
|
||||
await BackToResultsLink.click();
|
||||
browser.sleep(20000);
|
||||
browser.sleep(10000);
|
||||
await CollegeTabLink.click();
|
||||
browser.sleep(30000);
|
||||
browser.sleep(10000);
|
||||
await CollegePath.click();
|
||||
browser.sleep(2500);
|
||||
expect(await CollegePath.getText()).toEqual('Arts > Comics Studies Postbaccalaureate Certificate >');
|
||||
expect(await CollegeTitle.getText()).toEqual('Publishing Software');
|
||||
expect(await CollegeDescription.getText()).toEqual('See department for course description. (Credit to be arranged.)');
|
||||
await CertificationTabLink.click();
|
||||
browser.sleep(30000);
|
||||
browser.sleep(10000);
|
||||
await CertificationPath.click();
|
||||
browser.sleep(2500);
|
||||
expect(await CertificationPath.getText()).toEqual('Core > International Software Certification Board >');
|
||||
expect(await CertificationTitle.getText()).toEqual('Certified Software Quality Analyst');
|
||||
expect(await CertificationDescription.getText()).toEqual('Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession.');
|
||||
await K12TabLink.click();
|
||||
browser.sleep(30000);
|
||||
browser.sleep(10000);
|
||||
await K12Path.click();
|
||||
browser.sleep(2500);
|
||||
expect(await K12Path.getText()).toEqual('Ethics and Legal Responsibilities > Practice professional, ethical, and legal behavior, responding thoughtfully to diverse perspectives and resolving contradictions when possible, consistent with applicable laws, regulations, and organizational norms. (Direct alignment with SLS 11-12.1d) >');
|
||||
expect(await K12Title.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.');
|
||||
expect(await K12Description.getText()).toEqual('Access, analyze, and implement quality assurance standards of practice.');
|
||||
await MilitaryTabLink.click();
|
||||
browser.sleep(30000);
|
||||
browser.sleep(10000);
|
||||
await MilitaryPath.click();
|
||||
browser.sleep(2500);
|
||||
expect(await MilitaryPath.getText()).toEqual('Calibration Technician > STEM >');
|
||||
expect(await MilitaryTitle.getText()).toEqual('Quality Control Analysts');
|
||||
expect(await MilitaryDescription.getText()).toEqual('No details for this location.');
|
||||
await CTETabLlink.click();
|
||||
browser.sleep(30000);
|
||||
browser.sleep(10000);
|
||||
await CTEPath.click();
|
||||
browser.sleep(2500);
|
||||
expect(await CTEPath.getText()).toEqual('Information Technology > Programming & Software Development >');
|
||||
@@ -3035,7 +3120,7 @@ function MapInteraction() {
|
||||
await ArrowTabLink.click();
|
||||
browser.sleep(2500);
|
||||
await CareerTabLink.click();
|
||||
browser.sleep(30000);
|
||||
browser.sleep(10000);
|
||||
await SearchCareerFour.click();
|
||||
browser.sleep(2500);
|
||||
expect(await ItemDescription.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 cap...');
|
||||
@@ -3089,7 +3174,7 @@ function MapInteraction() {
|
||||
await ExpandIcon.click();
|
||||
browser.sleep(2500);
|
||||
await BackToResultsLink.click();
|
||||
browser.sleep(50000);
|
||||
browser.sleep(25000);
|
||||
await MapSearchClearIcon.click();
|
||||
browser.sleep(2500);
|
||||
await HideJourneyButton.click();
|
||||
@@ -3151,7 +3236,7 @@ function SurveyMetrics() {
|
||||
browser.sleep(5000);
|
||||
expect(await SurveyMetricsTitle.getText()).toEqual('Survey Metrics View All');
|
||||
expect(await MostRecentResultsTitle.getText()).toEqual('Most Recent Result');
|
||||
expect(await MostRecentResultsStat.getText()).toEqual('Enterprising, Investigative, and Conventiona');
|
||||
expect(await MostRecentResultsStat.getText()).toEqual('Enterprising, Investigative, and Conventional');
|
||||
expect(await SurveyHistoryTitle.getText()).toEqual('Survey History');
|
||||
expect(await SurveyHistoryStat.getText()).toContain('Last Taken 2019');
|
||||
expect(await TimesTakenTitle.getText()).toEqual('Times Taken');
|
||||
@@ -3245,8 +3330,11 @@ function InstitutionMetrics() {
|
||||
var AverageGraduationRateTitle = element(by.css('.fullHeight:nth-child(1) > .widget-padding .text-center:nth-child(2) > .td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(1)'));
|
||||
var AverageGraduationRateStat = element(by.css('.col-sm-4:nth-child(2)'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#id > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#id > .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 720);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await InstitutionMetricsWidgetTitle.getText()).toEqual('Institution Metrics');
|
||||
expect(await InstitutionsOfInterestTitle.getText()).toEqual('Institutions Of Interest');
|
||||
@@ -3292,8 +3380,11 @@ function InstitutionsOfInterest() {
|
||||
var InstitutionOfInterestDivXCloseLink = element(by.css('.default-color4a'));
|
||||
var InstitutionCardLearnMoreButton = element(by.css('.ng-scope > .full-width .btn'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('.widget-round-corners:nth-child(6) .fullHeight .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1200);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
|
||||
expect(await InstitutionCardTitle.getText()).toEqual('University of San Diego');
|
||||
@@ -3319,32 +3410,27 @@ function InstitutionsOfInterest() {
|
||||
browser.sleep(2500);
|
||||
})
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
var SecondWindowHandle = handles[1];
|
||||
var FirstWindowHandle = handles[0];
|
||||
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
|
||||
var LearnMoreInfoIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
|
||||
var LearnMoreInfoTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
||||
var LearnMoreInfoDescription = element(by.linkText('http://www.sandiego.edu'));
|
||||
var LearnMoreInfoXCloseLink = element(by.css('.close > .fa'));
|
||||
|
||||
browser.switchTo().window(SecondWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
browser.switchTo().window(handles[1]).then(async function () {
|
||||
browser.sleep(5000);
|
||||
expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122436");
|
||||
expect(await LearnMoreTitle.getText()).toEqual('University of San Diego');
|
||||
await LearnMoreInfoIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await LearnMoreInfoIcon.click();
|
||||
browser.sleep(2500);
|
||||
expect(await LearnMoreInfoTitle.getText()).toContain('University of San Diego');
|
||||
expect(await LearnMoreInfoDescription.getText()).toContain('http://www.sandiego.edu');
|
||||
await LearnMoreInfoXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await LearnMoreInfoXCloseLink.click();
|
||||
browser.sleep(5000);
|
||||
browser.driver.close();
|
||||
});
|
||||
browser.switchTo().window(FirstWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
expect(await browser.driver.getCurrentUrl()).toContain("/activityDashboard");
|
||||
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
|
||||
browser.switchTo().window(handles[0]);
|
||||
browser.sleep(5000);
|
||||
expect(browser.driver.getCurrentUrl()).toContain("/activityDashboard");
|
||||
expect(InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
|
||||
});
|
||||
});
|
||||
browser.waitForAngular();
|
||||
@@ -3372,26 +3458,29 @@ function OccupationMetrics() {
|
||||
var TypicalDegreesStatTwo = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(3)'));
|
||||
var TypicalDegreesStatThree = element(by.css('.td-metrics-data-width:nth-child(6) .jrnys_body-copy:nth-child(4)'));
|
||||
|
||||
browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
/*browser.actions().mouseMove(element(by.css('#occupationVisitedId .jrnys_lead-body-copy'))).perform().then(function() {
|
||||
browser.sleep(1000);
|
||||
});*/
|
||||
browser.executeScript('window.scrollTo(0, 1685);').then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await OccupationMetricsWidgetTitle.getText()).toEqual('Occupation Metrics');
|
||||
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations Of Interest');
|
||||
expect(await OccupationsOfInterestStat.getText()).toContain('73');
|
||||
expect(await OccupationsOfInterestStat.getText()).toContain('77');
|
||||
expect(await AverageAnnualSalaryTitle.getText()).toContain('Average Annual Salary');
|
||||
expect(await AverageAnnualSalaryStat.getText()).toContain('$66,681');
|
||||
expect(await AverageAnnualSalaryStat.getText()).toContain('$70,575');
|
||||
expect(await AverageProjectedJobOpeningsTitle.getText()).toContain('Average Projected Job Openings');
|
||||
expect(await AverageProjectedJobOpeningsStat.getText()).toContain('22,404');
|
||||
expect(await AverageProjectedJobOpeningsStat.getText()).toContain('24,566');
|
||||
expect(await TopClustersTitle.getText()).toContain('Top Clusters');
|
||||
expect(await TopClustersStatOne.getText()).toContain('Arts, A/V Technology & Communications');
|
||||
expect(await TopClustersStatTwo.getText()).toContain('Health Science');
|
||||
expect(await TopClustersStatThree.getText()).toContain('Information Technology');
|
||||
expect(await TopClustersStatOne.getText()).toContain('Health Science');
|
||||
expect(await TopClustersStatTwo.getText()).toContain('Information Technology');
|
||||
expect(await TopClustersStatThree.getText()).toContain('Arts, A/V Technology & Communications');
|
||||
expect(await AverageProjectedGrowthTitle.getText()).toContain('Average Projected Growth');
|
||||
expect(await AverageProjectedGrowthStat.getText()).toContain('LOWER THAN AVERAGE');
|
||||
expect(await TypicalDegreesTitle.getText()).toContain('Typical Degrees');
|
||||
expect(await TypicalDegreesStatOne.getText()).toContain('24% College (4 Year)');
|
||||
expect(await TypicalDegreesStatTwo.getText()).toContain("15% Master's degree");
|
||||
expect(await TypicalDegreesStatThree.getText()).toContain('14% High school');
|
||||
expect(await TypicalDegreesStatOne.getText()).toContain('25% College (4 Year)');
|
||||
expect(await TypicalDegreesStatTwo.getText()).toContain("16% Master's degree");
|
||||
expect(await TypicalDegreesStatThree.getText()).toContain('11% High school');
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
@@ -3405,11 +3494,16 @@ function OccupationsOfInterest() {
|
||||
var OccupationsOfInterestViewAllLink = element(by.css('#occupationVisitedId .text-color-7a'));
|
||||
var OccupationsOfInterestTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
||||
var OccupationsOfInterestFirstCard = element(by.id('territoryCardMobileTitle'));
|
||||
var FirstOccupationCardDescription = element(by.xpath('/html/body/div[4]/div/div/div/div[2]/div[1]/div/career-territory-card/territory-card/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div[1]'));
|
||||
|
||||
var OccupationsOfInterestXCloseLink = element(by.css('.default-color4a'));
|
||||
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
/*browser.executeScript('window.scrollTo(0, 2350);').then(function() {
|
||||
browser.sleep(25000);
|
||||
});*/
|
||||
expect(await OccupationsOfInterestWidgetTitle.getText()).toEqual('Occupations Of Interest View All');
|
||||
await AtAGlanceHeaderRowIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
@@ -3421,45 +3515,13 @@ function OccupationsOfInterest() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await OccupationsOfInterestTitle.getText()).toEqual('Occupations visited by Automated Regression');
|
||||
expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Computer Systems Analysts');
|
||||
expect(await OccupationsOfInterestFirstCard.getText()).toEqual('Software Developers, Applications');
|
||||
await OccupationsOfInterestFirstCard.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
await OccupationsOfInterestXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
|
||||
await InstitutionCardLearnMoreButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
})
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
var SecondWindowHandle = handles[1];
|
||||
var FirstWindowHandle = handles[0];
|
||||
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
|
||||
var LearnMoreInfoIcon = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
|
||||
var LearnMoreInfoTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
||||
var LearnMoreInfoDescription = element(by.linkText('http://www.sandiego.edu'));
|
||||
var LearnMoreInfoXCloseLink = element(by.css('.close > .fa'));
|
||||
|
||||
browser.switchTo().window(SecondWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
expect(await browser.driver.getCurrentUrl()).toContain("/CSC/School/122436");
|
||||
expect(await LearnMoreTitle.getText()).toEqual('University of San Diego');
|
||||
await LearnMoreInfoIcon.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
expect(await LearnMoreInfoTitle.getText()).toContain('University of San Diego');
|
||||
expect(await LearnMoreInfoDescription.getText()).toContain('http://www.sandiego.edu');
|
||||
await LearnMoreInfoXCloseLink.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
browser.driver.close();
|
||||
});
|
||||
browser.switchTo().window(FirstWindowHandle).then(async function () {
|
||||
browser.sleep(3000);
|
||||
expect(await browser.driver.getCurrentUrl()).toContain("/activityDashboard");
|
||||
expect(await InstitutionsOfInterestWidgetTitle.getText()).toEqual('Institutions Of Interest View All');
|
||||
});
|
||||
expect(await FirstOccupationCardDescription.getText()).toEqual('Develop, create, and modify general computer applications software or specialized utility programs. Analyze user needs and develop software solutions. Design software or customize software for client use with the aim of optimizing operational efficiency. May analyze and design databases within an application area, working individually or coordinating database development as part of a team. May supervise computer programmers.');
|
||||
await OccupationsOfInterestXCloseLink.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
@@ -3565,12 +3627,12 @@ function AccountProfile() {
|
||||
expect(await ManageSecuritySubTitle.getText()).toEqual('To help you recover your account in the future please provide additional recovery information.');
|
||||
await SecurityQuestionSave.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SecurityValidationOne.getText()).toEqual(' Please select security question');
|
||||
expect(await SecurityValidationOne.getText()).toContain('Please select security question');
|
||||
await SecurityQuestionOne.click();
|
||||
await SecuritySelectionOne.click();
|
||||
await SecurityQuestionSave.click();
|
||||
browser.sleep(1000);
|
||||
expect(await SecurityValidationTwo.getText()).toEqual(' Missing security answer');
|
||||
expect(await SecurityValidationTwo.getText()).toContain('Missing security answer');
|
||||
await SecurityAnswerOne.click();
|
||||
await SecurityAnswerOne.sendKeys('6194222927');
|
||||
await SecurityQuestionTwo.click();
|
||||
@@ -3612,7 +3674,7 @@ function AccountPortfolio() {
|
||||
expect(await SubmittedResourcesTitle.getText()).toEqual('My Submitted Resources View All');
|
||||
expect(await MyResourceTitle.getText()).toEqual('Test Doc');
|
||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await GoogleDriveTitle.getText()).toEqual('Google Drive');
|
||||
expect(await GoogleDriveSubTitle.getText()).toContain('Sign in to your Google Drive account to access all your files!');
|
||||
|
||||
Reference in New Issue
Block a user