This commit is contained in:
2020-12-11 19:42:08 -08:00
parent 09fd94a50f
commit 2f9e3bc6f8
16 changed files with 494 additions and 165 deletions

View File

@@ -40,7 +40,7 @@ describe('Login With Institution Script', function () {
expect(await SubTextTwo.getText()).toEqual('Forgot your password? Click here.');
expect(InstitutionTextBox.isDisplayed()).toBe(false);
browser.sleep(1000);
await UsernameTextBox.sendKeys(browser.params.username).then(function() {
await UsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() {
browser.sleep(1000);
UsernameTextBox.sendKeys(protractor.Key.TAB);
browser.sleep(1000);
@@ -99,7 +99,7 @@ describe('Login With Institution Script', function () {
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();
browser.sleep(1000);
await ResetPasswordUsernameTextBox.sendKeys(browser.params.username).then(function() {
await ResetPasswordUsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() {
browser.sleep(1000);
});
await NextButton.click().then(function() {
@@ -129,7 +129,7 @@ describe('Login With Institution Script', function () {
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(InstitutionTextBox.isDisplayed()).toBe(false);
await UsernameTextBox.sendKeys(browser.params.username).then(function() {
await UsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() {
browser.sleep(1000);
});
await PasswordTextBox.sendKeys('EDmin123').then(function() {
@@ -169,5 +169,7 @@ function SignOut() {
await SignOutButton.click().then(function() {
browser.sleep(2500);
});
browser.get(browser.params.login);
browser.sleep(2500);
});
}