Updated SignIn and SignOut calls
This commit is contained in:
@@ -15,6 +15,10 @@ describe('Skills Matcher Results Widget Script', function () {
|
||||
//Sign In
|
||||
SignIn(UserNameTextBox, PasswordTextBox);
|
||||
|
||||
it('should have a title', async function () {
|
||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
||||
});
|
||||
|
||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
||||
it('SignIn, should sign into journeysmap.com', async function () {
|
||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
||||
@@ -22,17 +26,15 @@ describe('Skills Matcher Results Widget Script', function () {
|
||||
var JourneysGreeting = element(by.css('.dropdown'));
|
||||
|
||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1500);
|
||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||
browser.sleep(2500);
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await NextButton.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
||||
@@ -41,7 +43,6 @@ describe('Skills Matcher Results Widget Script', function () {
|
||||
});
|
||||
}
|
||||
|
||||
//<<<<DASHBOARD>>>>
|
||||
SkillsMatcherResultsWidget();
|
||||
SkillsMatcherRetake();
|
||||
SkillsMatcherCareerExploration();
|
||||
@@ -721,16 +722,13 @@ function DeleteCreatedJourney() {
|
||||
}
|
||||
|
||||
function SignOut() {
|
||||
it(': SignOut, should log out of journeysmap', async function () {
|
||||
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 ProfileImage.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await SignOutButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user