Added QA & Prod variables
This commit is contained in:
35
beginCareerExplorationWidget_config.js
Normal file
35
beginCareerExplorationWidget_config.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
//beginCareerExplorationWidget_config.js
|
||||||
|
|
||||||
|
exports.config = {
|
||||||
|
framework: 'jasmine',
|
||||||
|
seleniumAddress: 'http://localhost:4444/wd/hub',
|
||||||
|
specs: ['beginCareerExplorationWidget_spec.js'],
|
||||||
|
|
||||||
|
jasmineNodeOpts: {
|
||||||
|
defaultTimeoutInterval: 360000
|
||||||
|
},
|
||||||
|
|
||||||
|
capabilities: {
|
||||||
|
browserName: 'chrome'
|
||||||
|
},
|
||||||
|
|
||||||
|
onPrepare: function() {
|
||||||
|
browser.sleep(2500);
|
||||||
|
browser.driver.manage().window().maximize();
|
||||||
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
|
/*multiCapabilities: [{
|
||||||
|
browserName: 'chrome'
|
||||||
|
}, {
|
||||||
|
browserName: 'firefox'
|
||||||
|
}]/*, {
|
||||||
|
browserName: 'internet explorer'
|
||||||
|
}], {
|
||||||
|
browserName: 'safari'
|
||||||
|
}]*/
|
||||||
|
}
|
||||||
107
beginCareerExplorationWidget_spec.js
Normal file
107
beginCareerExplorationWidget_spec.js
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
//beginCareerExplorationWidget_spec.js
|
||||||
|
|
||||||
|
describe('Begin Career Exploration Widget script', function () {
|
||||||
|
//login-journeysmap landing page
|
||||||
|
var UserNameTextBox = element(by.css('#txtU'));
|
||||||
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
|
//Open browser
|
||||||
|
browser.get(browser.params.login);
|
||||||
|
|
||||||
|
it('should have a title', async function () {
|
||||||
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
|
});
|
||||||
|
|
||||||
|
//Sign In
|
||||||
|
SignIn(UserNameTextBox, PasswordTextBox);
|
||||||
|
|
||||||
|
it('should have a title', async function () {
|
||||||
|
await expect(browser.getTitle()).toEqual('My Dashboard');
|
||||||
|
});
|
||||||
|
|
||||||
|
//Sign In
|
||||||
|
SignIn(UserNameTextBox, PasswordTextBox);
|
||||||
|
|
||||||
|
function SignIn(UserNameTextBox, PasswordTextBox) {
|
||||||
|
it('SignIn, should sign into journeysmap.com', async function () {
|
||||||
|
var PageGreetingText = element(by.css('//td > div > div:nth-child(1)'));
|
||||||
|
var NextButton = element(by.css('.btn'));
|
||||||
|
var JourneysGreeting = element(by.css('.dropdown'));
|
||||||
|
|
||||||
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
|
browser.sleep(2500);
|
||||||
|
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
|
browser.sleep(2500);
|
||||||
|
});
|
||||||
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||||
|
browser.sleep(2500);
|
||||||
|
});
|
||||||
|
await NextButton.click().then(function() {
|
||||||
|
browser.sleep(5000);
|
||||||
|
browser.waitForAngular();
|
||||||
|
browser.getCurrentUrl();
|
||||||
|
});
|
||||||
|
expect(await JourneysGreeting.getText()).toEqual('Hi, Automated');
|
||||||
|
browser.waitForAngular();
|
||||||
|
browser.getCurrentUrl();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//<<<<DASHBOARD>>>>
|
||||||
|
//BeginCareerExplorationWidget();
|
||||||
|
SignOut();
|
||||||
|
});
|
||||||
|
|
||||||
|
function BeginCareerExplorationWidget() {
|
||||||
|
it(': BeginCareerExplorationWidget, should interact with Begin Career Exploration widget', async function () {
|
||||||
|
var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy'));
|
||||||
|
var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td'));
|
||||||
|
var ExploreCareersButton = element(by.css('td > .btn'));
|
||||||
|
var CareerExplorationPageTitle = element(by.css('.col-sm-12'));
|
||||||
|
var SearchOccupationsTextBox = element(by.css('.ng-dirty'));
|
||||||
|
var SkillsFilterButton = element(by.css('div:nth-child(3) > .filter-category:nth-child(3)'));
|
||||||
|
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
|
||||||
|
var WidgetText = element(by.css('.row > .jrnys_lead-body-copy'));
|
||||||
|
var WidgetSubText = element(by.css('.row > span:nth-child(2)'));
|
||||||
|
|
||||||
|
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > .span-navbar-hover'));
|
||||||
|
|
||||||
|
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.');
|
||||||
|
await ExploreCareersButton.click().then(function() {
|
||||||
|
browser.sleep(10000);
|
||||||
|
});
|
||||||
|
expect(await CareerExplorationPageTitle.getText()).toEqual('1');
|
||||||
|
expect(await SkillsFilterButton.getText()).toEqual('2');
|
||||||
|
expect(await InterestsFilterButton.getText()).toEqual('3');
|
||||||
|
expect(await WidgetText.getText()).toEqual('4');
|
||||||
|
expect(await WidgetSubText.getText()).toEqual('5');
|
||||||
|
|
||||||
|
|
||||||
|
await DashboardHeaderLink.click().then(function() {
|
||||||
|
browser.sleep(10000);
|
||||||
|
});
|
||||||
|
browser.waitForAngular();
|
||||||
|
browser.getCurrentUrl();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function SignOut() {
|
||||||
|
it(': SignOut, should log out of journeysmap', async function () {
|
||||||
|
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
||||||
|
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
||||||
|
|
||||||
|
browser.waitForAngular();
|
||||||
|
browser.sleep(1000);
|
||||||
|
await ProfileImage.click();
|
||||||
|
browser.sleep(1000);
|
||||||
|
browser.waitForAngular();
|
||||||
|
browser.getCurrentUrl();
|
||||||
|
await SignOutButton.click().then(function() {
|
||||||
|
browser.sleep(2500);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -26,8 +26,10 @@ exports.config = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
params: {
|
params: {
|
||||||
|
signup: 'https://app-qa.journeysmap.com/Journey/index.html#/signup',
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
code: 'N0R7Y7RO', //QA N0R7Y7RO //PROD 0W3SNBQ7
|
||||||
username: 'AutomatedTest' + mm + dd + yyyy + hour + minute + '@journeysmap.com',
|
username: 'AutomatedTest' + mm + dd + yyyy + hour + minute + '@journeysmap.com',
|
||||||
code: 'N0R7Y7RO',
|
|
||||||
password: '3Dm!nAuto'
|
password: '3Dm!nAuto'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
//createAccount_spec.js
|
//createAccount_spec.js
|
||||||
|
|
||||||
describe('OnBoarding script', function () {
|
describe('Create Account script', function () {
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/signup');
|
browser.get(browser.params.signup);
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Sign up');
|
await expect(browser.getTitle()).toEqual('Sign up');
|
||||||
@@ -270,8 +270,8 @@ function Login() {
|
|||||||
var LoginPageGreetingText = element(by.css('.jmLoginTitle > .ng-scope'));
|
var LoginPageGreetingText = element(by.css('.jmLoginTitle > .ng-scope'));
|
||||||
var UsernameTextBoxOne = element(by.css('#txtU'));
|
var UsernameTextBoxOne = element(by.css('#txtU'));
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
var LoginPageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)'));
|
var LoginPageSubTextOne = element(by.css('.jmLoginMsg:nth-child(7) > div:nth-child(1)'));
|
||||||
var LoginPageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope'));
|
var LoginPageSubTextTwo = element(by.css('.jmLoginMsg:nth-child(7) > .ng-scope'));
|
||||||
var NextButton = element(by.css('.btn'));
|
var NextButton = element(by.css('.btn'));
|
||||||
var ValidationText = element(by.css('.ng-binding:nth-child(1)'));
|
var ValidationText = element(by.css('.ng-binding:nth-child(1)'));
|
||||||
var PasswordEyeIcon = element(by.css('.fa-eye'));
|
var PasswordEyeIcon = element(by.css('.fa-eye'));
|
||||||
@@ -300,7 +300,7 @@ function Login() {
|
|||||||
var JourneysDashboardGreeting = element(by.css('.dropdown'));
|
var JourneysDashboardGreeting = element(by.css('.dropdown'));
|
||||||
|
|
||||||
//Navigate to Login page
|
//Navigate to Login page
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login');
|
browser.get(browser.params.login);
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
await UsernameTextBoxOne.sendKeys('AutomatedTest332020913@edmin.com');
|
await UsernameTextBoxOne.sendKeys('AutomatedTest332020913@edmin.com');
|
||||||
@@ -423,8 +423,8 @@ function LoginWithNewPassword() {
|
|||||||
var LoginPageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
var LoginPageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
||||||
var UsernameTextBox = element(by.css('#txtU'));
|
var UsernameTextBox = element(by.css('#txtU'));
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
var LoginPageSubTextOne = element(by.css('.jmLoginMsg > div > div:nth-child(1)'));
|
var LoginPageSubTextOne = element(by.css('.jmLoginMsg > div:nth-child(1)'));
|
||||||
var LoginPageSubTextTwo = element(by.css('.jmLoginMsg .ng-scope'));
|
var LoginPageSubTextTwo = element(by.css('.jmLoginMsg > .ng-scope'));
|
||||||
var NextButton = element(by.css('.btn'));
|
var NextButton = element(by.css('.btn'));
|
||||||
//EDM-1748
|
//EDM-1748
|
||||||
var EC = protractor.ExpectedConditions;
|
var EC = protractor.ExpectedConditions;
|
||||||
@@ -440,7 +440,7 @@ function LoginWithNewPassword() {
|
|||||||
var CloseVideoXIcon = element(by.css('.close'));
|
var CloseVideoXIcon = element(by.css('.close'));
|
||||||
|
|
||||||
//Navigate to Login page
|
//Navigate to Login page
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login');
|
browser.get(browser.params.login);
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
await UsernameTextBox.sendKeys(browser.params.username);
|
await UsernameTextBox.sendKeys(browser.params.username);
|
||||||
@@ -454,9 +454,12 @@ function LoginWithNewPassword() {
|
|||||||
});
|
});
|
||||||
//Security Question DIV | EDM-1748
|
//Security Question DIV | EDM-1748
|
||||||
browser.wait(EC.visibilityOf(SecurityQuestion));
|
browser.wait(EC.visibilityOf(SecurityQuestion));
|
||||||
|
browser.sleep(1000);
|
||||||
await SecurityQuestion.click();
|
await SecurityQuestion.click();
|
||||||
|
browser.sleep(1000);
|
||||||
await SecuritySelection.click();
|
await SecuritySelection.click();
|
||||||
await SecurityAnswer.sendKeys('War Games');
|
await SecurityAnswer.sendKeys('War Games');
|
||||||
|
browser.sleep(1000);
|
||||||
await SecurityQuestionSaveButton.click().then(function() {
|
await SecurityQuestionSaveButton.click().then(function() {
|
||||||
browser.sleep(5000);
|
browser.sleep(5000);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ exports.config = {
|
|||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ describe('Create Journey Script', function () {
|
|||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
//browser.driver.manage().window().setSize(1600, 800);
|
browser.get(browser.params.login);
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -28,7 +25,7 @@ describe('Create Journey Script', function () {
|
|||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() {
|
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ exports.config = {
|
|||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ describe('Interest Survey Results Widget Script', function () {
|
|||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
//browser.driver.manage().window().setSize(1600, 800);
|
browser.get(browser.params.login);
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -26,7 +23,7 @@ describe('Interest Survey Results Widget Script', function () {
|
|||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() {
|
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||||
@@ -150,7 +147,7 @@ function InterestSurveyResultsWidgetRetake() {
|
|||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();//5
|
await DislikeEmoji.click();//5
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await UnsureEmoji.click();
|
await UnsureEmoji.click();
|
||||||
@@ -162,7 +159,7 @@ function InterestSurveyResultsWidgetRetake() {
|
|||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await DislikeEmoji.click();//15
|
await DislikeEmoji.click();//15
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await DislikeEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await MehEmoji.click();
|
await MehEmoji.click();
|
||||||
await DislikeEmoji.click();//20
|
await DislikeEmoji.click();//20
|
||||||
@@ -180,8 +177,8 @@ function InterestSurveyResultsWidgetRetake() {
|
|||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();//35
|
await DislikeEmoji.click();//35
|
||||||
await LoveItEmoji.click();
|
await DislikeEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
@@ -190,7 +187,7 @@ function InterestSurveyResultsWidgetRetake() {
|
|||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();//45
|
await LikeItEmoji.click();//45
|
||||||
await DislikeEmoji.click();
|
await DislikeEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
@@ -201,7 +198,7 @@ function InterestSurveyResultsWidgetRetake() {
|
|||||||
await DislikeEmoji.click();
|
await DislikeEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LikeItEmoji.click();//55
|
await LikeItEmoji.click();//55
|
||||||
await LoveItEmoji.click();
|
await DislikeEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
await LikeItEmoji.click();
|
await LikeItEmoji.click();
|
||||||
await LoveItEmoji.click();
|
await LoveItEmoji.click();
|
||||||
@@ -278,7 +275,7 @@ function InterestSurveyResultsWidgetEdit() {
|
|||||||
var EC = protractor.ExpectedConditions;
|
var EC = protractor.ExpectedConditions;
|
||||||
|
|
||||||
//Scroll down to Interest Survey Results widget
|
//Scroll down to Interest Survey Results widget
|
||||||
browser.executeScript('window.scrollTo(0, 612);').then(function() {
|
browser.executeScript('window.scrollTo(0, 610);').then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
await InterestEditLink.click().then(function() {
|
await InterestEditLink.click().then(function() {
|
||||||
@@ -387,7 +384,11 @@ function InterestSurveyResultsWidgetEdit() {
|
|||||||
function InterestSurveyResultsWidgetResults() {
|
function InterestSurveyResultsWidgetResults() {
|
||||||
it(': InterestSurveyResultsWidgetResults, should verify the Interest Survey Clusters widget and jump to learn more page', async function () {
|
it(': InterestSurveyResultsWidgetResults, should verify the Interest Survey Clusters widget and jump to learn more page', async function () {
|
||||||
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
|
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
|
||||||
var CareerExplorationPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
|
var CareerExplorationPageTitle = element(by.css('.col-sm-12'));
|
||||||
|
var CareerExplorationSearchTextBox = element(by.css('.ng-touched'));
|
||||||
|
var SkillsFilterButtonInactive = element(by.css('.filter-category-off:nth-child(3)'));
|
||||||
|
var SkillsFilterButtonActive = element(by.css('div:nth-child(3) > .filter-category:nth-child(3)'));
|
||||||
|
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
|
||||||
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
|
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
|
||||||
var WidgetDescription = element(by.css('.row > span:nth-child(2)'));
|
var WidgetDescription = element(by.css('.row > span:nth-child(2)'));
|
||||||
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
||||||
@@ -450,8 +451,8 @@ function InterestSurveyResultsWidgetResults() {
|
|||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
expect(await Finance.getText()).toEqual('Finance');
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
||||||
|
|||||||
@@ -14,10 +14,15 @@ exports.config = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onPrepare: function() {
|
onPrepare: function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(5000);
|
||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'GNight147' //QA GNight147 //PROD ProdUser147
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
describe('Login With Institution Script', function () {
|
describe('Login With Institution Script', function () {
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login');
|
browser.get(browser.params.login);
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -15,10 +15,10 @@ describe('Login With Institution Script', function () {
|
|||||||
var NextButton = element(by.css('.btn'));
|
var NextButton = element(by.css('.btn'));
|
||||||
|
|
||||||
//Sign Up
|
//Sign Up
|
||||||
SignUp(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton);
|
LoginWithDuplicateAccount(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton);
|
||||||
|
|
||||||
function SignUp(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton) {
|
function LoginWithDuplicateAccount(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton) {
|
||||||
it(': Login; should attempt to log in then reset new account password and complete Explore Careers task.', async function () {
|
it(': Login; should attempt to log in with duplicate accont then reset new account password and complete Explore Careers task.', async function () {
|
||||||
var LoginPageGreetingText = element(by.css('.jmLoginTitle > .ng-scope'));
|
var LoginPageGreetingText = element(by.css('.jmLoginTitle > .ng-scope'));
|
||||||
var InstitutionTextBox = element(by.css('#txtZ'));
|
var InstitutionTextBox = element(by.css('#txtZ'));
|
||||||
var SubTextOne = element(by.css('.jmLoginMsg:nth-child(7) > div:nth-child(1)'));
|
var SubTextOne = element(by.css('.jmLoginMsg:nth-child(7) > div:nth-child(1)'));
|
||||||
@@ -38,30 +38,45 @@ describe('Login With Institution Script', function () {
|
|||||||
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here.");
|
expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here.");
|
||||||
expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.');
|
expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.');
|
||||||
await UsernameTextBox.sendKeys('gnight147').then(function() {
|
expect(InstitutionTextBox.isDisplayed()).toBe(false);
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
|
await UsernameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
|
browser.sleep(1000);
|
||||||
|
UsernameTextBox.sendKeys(protractor.Key.TAB);
|
||||||
|
browser.sleep(1000);
|
||||||
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('EDmin').then(function() {
|
await PasswordTextBox.sendKeys('EDmin').then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
});
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
||||||
|
});
|
||||||
await InstitutionTextBox.sendKeys('j').then(function() {
|
await InstitutionTextBox.sendKeys('j').then(function() {
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
});
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
||||||
|
});
|
||||||
await InstitutionTextBox.sendKeys('o').then(function() {
|
await InstitutionTextBox.sendKeys('o').then(function() {
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
|
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
||||||
});
|
});
|
||||||
await InstitutionTextBox.sendKeys('in').then(function() {
|
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
||||||
|
await InstitutionTextBox.sendKeys('rn').then(function() {
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
});
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
||||||
|
});
|
||||||
await InstitutionTextBox.clear();
|
await InstitutionTextBox.clear();
|
||||||
await InstitutionTextBox.sendKeys('jour').then(function() {
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
|
await InstitutionTextBox.sendKeys('journeys').then(function() {
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
|
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
||||||
});
|
});
|
||||||
await InstitutionDropDownList.click().then(function() {
|
await InstitutionDropDownList.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
|
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
||||||
});
|
});
|
||||||
await NextButton.click().then(function() {
|
await NextButton.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
@@ -77,23 +92,29 @@ describe('Login With Institution Script', function () {
|
|||||||
await ResetPasswordUsernameTextBox.sendKeys('jhuerta').then(function() {
|
await ResetPasswordUsernameTextBox.sendKeys('jhuerta').then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
expect(browser.isElementPresent(ResetPasswordInstitutionDropDownList)).toBe(false);
|
|
||||||
await NextButton.click().then(function() {
|
await NextButton.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
expect(browser.isElementPresent(ResetPasswordInstitutionDropDownList)).toBe(false);
|
expect(ResetPasswordInstitutionTextBox.isDisplayed()).toBe(false);
|
||||||
expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com.");
|
expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com.");
|
||||||
await ResetPasswordUsernameTextBox.clear();
|
await ResetPasswordUsernameTextBox.clear();
|
||||||
await ResetPasswordUsernameTextBox.sendKeys('gnight147').then(function() {
|
browser.sleep(1000);
|
||||||
browser.sleep(2500);
|
await ResetPasswordUsernameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
expect(browser.isElementPresent(ResetPasswordInstitutionDropDownList)).toBe(false);
|
|
||||||
await NextButton.click().then(function() {
|
await NextButton.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
|
expect(ResetPasswordInstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
|
expect(browser.isElementPresent(ResetPasswordValidationMessage)).toBe(false);
|
||||||
});
|
});
|
||||||
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
||||||
await ResetPasswordInstitutionTextBox.sendKeys('journeys').then(function() {
|
await ResetPasswordInstitutionTextBox.sendKeys('journeys').then(function() {
|
||||||
browser.sleep(2000);
|
browser.sleep(2500);
|
||||||
|
expect(ResetPasswordInstitutionDropDownList.isDisplayed()).toBe(true);
|
||||||
|
});
|
||||||
|
await ResetPasswordInstitutionDropDownList.click().then(function() {
|
||||||
|
browser.sleep(1000);
|
||||||
|
expect(browser.isElementPresent(ResetPasswordInstitutionDropDownList)).toBe(false);
|
||||||
});
|
});
|
||||||
await NextButton.click().then(function() {
|
await NextButton.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
@@ -101,33 +122,40 @@ describe('Login With Institution Script', function () {
|
|||||||
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
||||||
expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com.");
|
expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com.");
|
||||||
await CloseIcon.click().then(function() {
|
await CloseIcon.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
//Back to Login Page
|
//Back to Login Page
|
||||||
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here.");
|
expect(await SubTextOne.getText()).toEqual("Don't have an account? Creating one is free! Sign up here.");
|
||||||
expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.');
|
expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.');
|
||||||
await UsernameTextBox.sendKeys('gnight147').then(function() {
|
expect(InstitutionTextBox.isDisplayed()).toBe(false);
|
||||||
browser.sleep(2500);
|
await UsernameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('EDmin123').then(function() {
|
await PasswordTextBox.sendKeys('EDmin123').then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
});
|
});
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
||||||
await InstitutionTextBox.sendKeys('journeys').then(function() {
|
await InstitutionTextBox.sendKeys('journeys').then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(1000);
|
||||||
|
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
||||||
|
});
|
||||||
|
await InstitutionDropDownList.click().then(function() {
|
||||||
|
browser.sleep(1000);
|
||||||
|
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
||||||
});
|
});
|
||||||
await NextButton.click().then(function() {
|
await NextButton.click().then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
//Journeys Dashboard
|
//Journeys Dashboard
|
||||||
browser.waitForAngular();
|
browser.waitForAngular();
|
||||||
expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Good');
|
expect(await JourneysDashboardGreeting.getText()).toContain('Hi, ');
|
||||||
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//Action Calls
|
//Action Calls
|
||||||
//SignOut();
|
SignOut();
|
||||||
});
|
});
|
||||||
|
|
||||||
function SignOut() {
|
function SignOut() {
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ exports.config = {
|
|||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
//myCareersWidget_spec.js
|
//myCareersWidget_spec.js
|
||||||
|
|
||||||
describe('My Careers Widget Script', function () {
|
describe('My Careers Widget Script', function () {
|
||||||
//app-journeysmap landing page
|
//login-journeysmap landing page
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
var UserNameTextBox = element(by.css('#txtU'));
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
//browser.driver.manage().window().setSize(1600, 800);
|
browser.get(browser.params.login);
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -26,7 +23,7 @@ describe('My Careers Widget Script', function () {
|
|||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() {
|
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//profileAndMyProgress_config.js
|
//profileAndMyProgressWidgets_config.js
|
||||||
|
|
||||||
exports.config = {
|
exports.config = {
|
||||||
framework: 'jasmine',
|
framework: 'jasmine',
|
||||||
@@ -18,6 +18,11 @@ exports.config = {
|
|||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
//profileAndMyProgress_spec.js
|
//profileAndMyProgressWidgets_spec.js
|
||||||
|
|
||||||
describe('Profile And My Progress Widget Scripts', function () {
|
describe('Profile And My Progress Widget Scripts', function () {
|
||||||
//app-journeysmap landing page
|
//login-journeysmap landing page
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
var UserNameTextBox = element(by.css('#txtU'));
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
//browser.driver.manage().window().setSize(1600, 800);
|
browser.get(browser.params.login);
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -26,7 +23,7 @@ describe('Profile And My Progress Widget Scripts', function () {
|
|||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() {
|
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ exports.config = {
|
|||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
//skillsMatcherResultsWidget_spec.js
|
//skillsMatcherResultsWidget_spec.js
|
||||||
|
|
||||||
describe('Interest Survey Results Widget Script', function () {
|
describe('Skills Matcher Results Widget Script', function () {
|
||||||
//app-journeysmap landing page
|
//login-journeysmap landing page
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
var UserNameTextBox = element(by.css('#txtU'));
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
//browser.driver.manage().window().setSize(1600, 800);
|
browser.get(browser.params.login);
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -26,7 +23,7 @@ describe('Interest Survey Results Widget Script', function () {
|
|||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() {
|
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
|
||||||
browser.sleep(2500);
|
browser.sleep(2500);
|
||||||
});
|
});
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// config.js
|
//topCareerWidget_config.js
|
||||||
|
|
||||||
exports.config = {
|
exports.config = {
|
||||||
framework: 'jasmine',
|
framework: 'jasmine',
|
||||||
@@ -17,6 +17,11 @@ exports.config = {
|
|||||||
browser.driver.manage().window().maximize();
|
browser.driver.manage().window().maximize();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
params: {
|
||||||
|
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
||||||
|
userName: 'QA_AutomatedRegression'
|
||||||
|
}
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
/*multiCapabilities: [{
|
||||||
browserName: 'chrome'
|
browserName: 'chrome'
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
//journeysmap_spec.js
|
//topCareerWidget_spec.js
|
||||||
|
|
||||||
describe('Journeysmap script', function () {
|
describe('Top Career Widget script', function () {
|
||||||
//app-journeysmap landing page
|
//login-journeysmap landing page
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
var UserNameTextBox = element(by.css('#txtU'));
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
var PasswordTextBox = element(by.css('#txtP'));
|
||||||
|
|
||||||
//Open browser
|
//Open browser
|
||||||
//browser.driver.manage().window().setSize(1600, 800);
|
browser.get(browser.params.login);
|
||||||
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login');
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
it('should have a title', async function () {
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
await expect(browser.getTitle()).toEqual('Login');
|
||||||
@@ -27,7 +26,7 @@ describe('Journeysmap script', function () {
|
|||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
var JourneysGreeting = element(by.css('.dropdown'));
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||||
await UserNameTextBox.sendKeys('QA_AutomatedRegression');
|
await UserNameTextBox.sendKeys(browser.params.userName);
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto');
|
await PasswordTextBox.sendKeys('3Dm!nAuto');
|
||||||
browser.sleep(1000);
|
browser.sleep(1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user