diff --git a/beginCareerExplorationWidget_spec.js b/beginCareerExplorationWidget_spec.js index 481c9b0..dd68ff4 100644 --- a/beginCareerExplorationWidget_spec.js +++ b/beginCareerExplorationWidget_spec.js @@ -34,7 +34,8 @@ describe('Begin Career Exploration Widget script', function () { browser.waitForAngular(); browser.getCurrentUrl(); }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); + expect(await JourneysGreeting.getText()).toContain('Hi, '); + expect(await JourneysGreeting.getText()).toContain('_Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); diff --git a/createAccount_spec.js b/createAccount_spec.js index b72cf7e..14a4ce1 100644 --- a/createAccount_spec.js +++ b/createAccount_spec.js @@ -220,7 +220,8 @@ describe('Create Account script', function () { }); //Dashboard browser.waitForAngular(); - expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Jh'); + expect(await JourneysDashboardGreeting.getText()).toContain('Hi, '); + expect(await JourneysDashboardGreeting.getText()).toContain('_Automated'); //Update Security Question await ProfileImageIcon.click().then(function() { browser.sleep(2500); @@ -401,7 +402,8 @@ function Login() { await ExploreCareersButton.click().then(function() { browser.sleep(2500); }); - expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Jh'); + expect(await JourneysDashboardGreeting.getText()).toContain('Hi, '); + expect(await JourneysDashboardGreeting.getText()).toContain('_Automated'); expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration'); await ClusterCardThreeSelectButton.click().then(function() { browser.sleep(2500); @@ -466,8 +468,10 @@ function LoginWithNewPassword() { }); //Dashboard browser.waitForAngular(); - expect(await JourneysDashboardGreeting.getText()).toEqual('Hi, Jh'); - expect(await MyProgressWidgetGreeting.getText()).toEqual('Hello, Jh!'); + expect(await JourneysDashboardGreeting.getText()).toContain('Hi, '); + expect(await JourneysDashboardGreeting.getText()).toContain('_Automated'); + expect(await MyProgressWidgetGreeting.getText()).toContain('Hello, '); + expect(await MyProgressWidgetGreeting.getText()).toContain('_Automated'); expect(await MyProgressWiegetSubText.getText()).toContain("Do you feel anxious about what you're going to do with your life?"); expect(await MyProgressWiegetSubText.getText()).toContain('Take a deep breath because Journeys Map is here to help you'); expect(await MyProgressWiegetSubText.getText()).toContain('find your path in four easy steps.'); diff --git a/interestSurveyResultsWidget_spec.js b/interestSurveyResultsWidget_spec.js index 22545dc..8d0e25f 100644 --- a/interestSurveyResultsWidget_spec.js +++ b/interestSurveyResultsWidget_spec.js @@ -34,7 +34,8 @@ describe('Interest Survey Results Widget Script', function () { browser.waitForAngular(); browser.getCurrentUrl(); }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); + expect(await JourneysGreeting.getText()).toContain('Hi, '); + expect(await JourneysGreeting.getText()).toContain('_Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); diff --git a/loginWithInstitution_spec.js b/loginWithInstitution_spec.js index 45fe882..50dfbd8 100644 --- a/loginWithInstitution_spec.js +++ b/loginWithInstitution_spec.js @@ -150,6 +150,7 @@ describe('Login With Institution Script', function () { //Journeys Dashboard browser.waitForAngular(); expect(await JourneysDashboardGreeting.getText()).toContain('Hi, '); + expect(await JourneysDashboardGreeting.getText()).toContain('_Automated'); browser.sleep(2500); }); } diff --git a/myCareersWidget_spec.js b/myCareersWidget_spec.js index e29d48b..5805016 100644 --- a/myCareersWidget_spec.js +++ b/myCareersWidget_spec.js @@ -34,7 +34,8 @@ describe('My Careers Widget Script', function () { browser.waitForAngular(); browser.getCurrentUrl(); }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); + expect(await JourneysGreeting.getText()).toContain('Hi, '); + expect(await JourneysGreeting.getText()).toContain('_Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); diff --git a/profileAndMyProgressWidgets_spec.js b/profileAndMyProgressWidgets_spec.js index 662439f..33bbada 100644 --- a/profileAndMyProgressWidgets_spec.js +++ b/profileAndMyProgressWidgets_spec.js @@ -34,7 +34,8 @@ describe('Profile And My Progress Widget Scripts', function () { browser.waitForAngular(); browser.getCurrentUrl(); }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); + expect(await JourneysGreeting.getText()).toContain('Hi, '); + expect(await JourneysGreeting.getText()).toContain('_Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); diff --git a/skillsMatcherResultsWidget_spec.js b/skillsMatcherResultsWidget_spec.js index f1918c2..1e8aa1b 100644 --- a/skillsMatcherResultsWidget_spec.js +++ b/skillsMatcherResultsWidget_spec.js @@ -34,7 +34,8 @@ describe('Skills Matcher Results Widget Script', function () { browser.waitForAngular(); browser.getCurrentUrl(); }); - expect(await JourneysGreeting.getText()).toEqual('Hi, Automated'); + expect(await JourneysGreeting.getText()).toContain('Hi, '); + expect(await JourneysGreeting.getText()).toContain('_Automated'); browser.waitForAngular(); browser.getCurrentUrl(); }); diff --git a/topCareerWidget_spec.js b/topCareerWidget_spec.js index 368e844..2910fd8 100644 --- a/topCareerWidget_spec.js +++ b/topCareerWidget_spec.js @@ -34,7 +34,7 @@ describe('Top Career Widget script', function () { browser.waitForAngular(); browser.getCurrentUrl(); }); - expect(await JourneysGreeting.getText()).toContain('Hi,'); + expect(await JourneysGreeting.getText()).toContain('Hi, '); expect(await JourneysGreeting.getText()).toContain('_Automated'); browser.waitForAngular(); browser.getCurrentUrl();