Updated to include mapObjectID

This commit is contained in:
2020-07-16 09:40:54 -07:00
parent c9e8417ef9
commit 6c48312066
13 changed files with 2636 additions and 1558 deletions

View File

@@ -2,33 +2,33 @@
describe('Journeysmap script', function () {
//app-journeysmap landing page
var UserNameTextBox = element(by.css('#txtUsername'));
var PasswordTextBox = element(by.css('#txtPassword'));
var UserNameTextBox = element(by.css('#txtU'));
var PasswordTextBox = element(by.css('#txtP'));
//Open browser
//browser.driver.manage().window().setSize(1600, 800);
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login');
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Journeys');
await expect(browser.getTitle()).toEqual('Login');
});
//Sign In
SignIn(UserNameTextBox, PasswordTextBox);
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Journeys');
await expect(browser.getTitle()).toEqual('My Dashboard');
});
function SignIn(UserNameTextBox, PasswordTextBox) {
it('should sign into journeysmap.com', async function () {
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
var PageSubTextOne = element(by.css('div:nth-child(5) > div:nth-child(1)'));
var PageSubTextTwo = element(by.css('div:nth-child(5) > div:nth-child(2)'));
var PageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)'));
var PageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope'));
var NextButton = element(by.css('.btn'));
var EC = protractor.ExpectedConditions;
var InvalidIcon = element(by.css('.far:nth-child(4)'));
var PageValidationText = element(by.css('.ng-scope:nth-child(5)'));
var PageValidationText = element(by.css('.ng-binding:nth-child(1)'));
var EyeIcon = element(by.css('.fa-eye'));
var JourneysGreeting = element(by.css('.dropdown'));
@@ -70,7 +70,7 @@ describe('Journeysmap script', function () {
});
}
/*<<<<DASHBOARD>>>>
//<<<<DASHBOARD>>>>
ProfileWidget();
MyProgressWidget();
@@ -85,10 +85,10 @@ describe('Journeysmap script', function () {
MyCareersCarousel();
//Top Career Widget
EditTopCareer();*/
/*Top Career Widget
EditTopCareer();
TopCareerWidget();
/*NearbyPlacesOccupationCard();
NearbyPlacesOccupationCard();
FollowingPage();
AtAGlance();
Personality();
@@ -113,7 +113,7 @@ describe('Journeysmap script', function () {
MyJourneys();
/*<<<<MY JOURNEYS>>>>
//<<<<MY JOURNEYS>>>>
MyJourneysPage();
//<<<<MAP>>>>
@@ -642,7 +642,7 @@ 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[5]/div[2]'))
var JourneymanIcon = element(by.xpath('/html/body/div[1]/div/div[2]/div[3]/div/survey-result-career/div/div/div[2]/div[1]/div[1]/div/career-territory-card/territory-card/div/div[3]/div[2]/territory-card-more-back/div/div/div/div/div[4]/div[2]'))
var LearnMoreButton = element(by.xpath('//div/div/div/div/div[2]/div[2]'));
var EC = protractor.ExpectedConditions;
var JourneyInfoIcon = element(by.css('.journey-info-circle'));
@@ -1463,7 +1463,7 @@ function MyCareersCarousel() {
await SkillsAssessmentResultsCheckBox.click().then(function() {
browser.sleep(1000);
});
expect(await MyFollowing.getText()).toEqual('My Following (7)');
expect(await MyFollowing.getText()).toEqual('My Following (5)');
expect(await RequiredJobPrepHeader.getText()).toEqual('Required Job Prep');
expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED (');
await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() {
@@ -1487,7 +1487,7 @@ function MyCareersCarousel() {
expect(await BrightOutlook.getText()).toContain('Bright Outlook (');
expect(await Green.getText()).toContain('Green (');
expect(await Apprenticeships.getText()).toContain('Apprenticeship (');
expect(await Following.getText()).toEqual('Following (7)');
expect(await Following.getText()).toEqual('Following (5)');
await FollowingCheckBox.click().then(function() {
browser.sleep(1000);
});
@@ -1523,7 +1523,7 @@ function MyCareersCarousel() {
expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest');
//expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726
expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts');
expect(await ThirdOccupationCardTitle.getText()).toEqual('Airfield Operations Specialists');
expect(await ThirdOccupationCardTitle.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
await RemoveRightFilterButton.click().then(function() {
browser.sleep(2500);
});
@@ -1532,15 +1532,15 @@ function MyCareersCarousel() {
expect(await FirstOccupationCardAtAGlanceIcon.getText()).toContain('Glance');
expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest');
//expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726
expect(await SecondOccupationCardTitle.getText()).toEqual('Airfield Operations Specialists');
expect(await ThirdOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts');
expect(await SecondOccupationCardTitle.getText()).toEqual('Business Intelligence Analysts');
expect(await ThirdOccupationCardTitle.getText()).toEqual('Wind Energy Project Managers');
await FollowFirstOccupationCardIcon.click().then(function() {
browser.sleep(2500);
});
await WidgetFilterIcon.click().then(function() {
browser.sleep(2500);
});
expect(await Following.getText()).toEqual('Following (6)');
expect(await Following.getText()).toEqual('Following (4)');
await FollowingCheckBox.click().then(function() {
browser.sleep(1000);
});