Updated SignIn and SignOut calls
This commit is contained in:
@@ -26,10 +26,12 @@ describe('Learn More Page script', function () {
|
||||
var JourneysGreeting = element(by.css('.dropdown'));
|
||||
|
||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
||||
await UserNameTextBox.sendKeys(browser.params.username);
|
||||
browser.sleep(1000);
|
||||
await PasswordTextBox.sendKeys('3Dm!nAuto');
|
||||
browser.sleep(1000);
|
||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await NextButton.click().then(function() {
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
@@ -581,8 +583,9 @@ function LearnMorePage() {
|
||||
});
|
||||
expect(await ChangeLocationDIVTitle.getText()).toEqual('Change Location');
|
||||
expect(await ChangeLocationDIVSubTitle.getText()).toEqual("Let's search the location you're most interested in.");
|
||||
await ChnageLocationEnterZipCodeTextBox.sendKeys('85013');
|
||||
browser.sleep(1000);
|
||||
await ChnageLocationEnterZipCodeTextBox.sendKeys('85013').then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
element(by.cssContainingText('option', '1000')).click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
@@ -790,12 +793,14 @@ function SignOut() {
|
||||
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();
|
||||
browser.waitForAngular().then(function() {
|
||||
browser.sleep(1000);
|
||||
});
|
||||
await ProfileImage.click().then(function() {
|
||||
browser.sleep(1000);
|
||||
browser.waitForAngular();
|
||||
browser.getCurrentUrl();
|
||||
});
|
||||
await SignOutButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user