From 11bf2a6186fd18b5a9bbe48f54245b8176d4b315 Mon Sep 17 00:00:00 2001 From: Juan Huerta Date: Thu, 10 Dec 2020 15:05:31 -0800 Subject: [PATCH] Updated script to work on prod --- userProfile_spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/userProfile_spec.js b/userProfile_spec.js index da48683..a56493d 100644 --- a/userProfile_spec.js +++ b/userProfile_spec.js @@ -45,7 +45,7 @@ describe('User Profile script', function () { UserProfile(); SignOut(); - //LogBackInToResetTestCase(); //CAN'T GET SCRIPT TO SUCCESSFULLY SAVE EDIT PROFILE RESET + //LogBackInToResetTestCase(); //CAN'T GET SCRIPT TO SUCCESSFULLY SAVE EDIT PROFILE RESET TO REMOVE EMAIL AND MIDDLE INITIAL }); function UserProfile() { @@ -325,7 +325,7 @@ function UserProfile() { }); expect(await SelectASecurityQuestionHeader.getText()).toContain('Select a Security Question'); element(by.cssContainingText('option', 'What was the make of your first car?')).click().then(function() { - browser.sleep(1000); + browser.sleep(1500); }); expect(await AnswerSecurityQuestionHeader.getText()).toContain('Answer Security Question'); await AnswerSecurityAnswerTextBox.sendKeys('Chevy Luv').then(function() { @@ -334,10 +334,11 @@ function UserProfile() { expect(await CancelButton.getText()).toContain('CANCEL'); expect(await SaveButton.getText()).toContain('SAVE'); await SaveButton.click().then(function() { - browser.sleep(2500); + browser.sleep(1500); var alertDialog = browser.switchTo().alert(); expect(alertDialog.getText()).toEqual('Security questions is updated.'); browser.switchTo().alert().accept(); + browser.sleep(1500); }); //<<<>>> //Password