Initial script load

This commit is contained in:
2019-07-02 12:49:02 -07:00
parent 7f8193c435
commit 62d2b76c69

View File

@@ -7,7 +7,7 @@ describe('Journeysmap script', function () {
var SignInButton = element(by.css('.btn-block')); var SignInButton = element(by.css('.btn-block'));
//Open browser //Open browser
browser.driver.manage().window().maximize(); browser.driver.manage().window().maximize();
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/signin'); browser.get('https://app-qa.journeysmap.com/Journey/index.html#/signin');
it('should have a title', function () { it('should have a title', function () {
@@ -21,7 +21,7 @@ describe('Journeysmap script', function () {
expect(browser.getTitle()).toEqual('Journeys'); expect(browser.getTitle()).toEqual('Journeys');
}); });
//<<<<DASHBOARD>>>> //<<<<DASHBOARD>>>>
//Top Career //Top Career
TopCareerWidget(); TopCareerWidget();
TopCareer(); TopCareer();
@@ -203,7 +203,7 @@ function TopCareer() {
var NearbyPlacesRightScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-right')); var NearbyPlacesRightScroll = element(by.xpath('//li[17]')).element(by.css('.glyphicon-chevron-right'));
await TopCareerLink.click().then(function() { await TopCareerLink.click().then(function() {
browser.sleep(15000); browser.sleep(20000);
}); });
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists'); expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
await DescriptionIcon.click().then(function() { await DescriptionIcon.click().then(function() {
@@ -258,7 +258,7 @@ function TopCareer() {
browser.sleep(1000); browser.sleep(1000);
}); });
await ApplyButton.click().then(function() { await ApplyButton.click().then(function() {
browser.sleep(1000); browser.sleep(2500);
}); });
expect(await CurrentDataLocation.getText()).toEqual('Phoenix-Mesa-Scottsdale, AZ MSA'); expect(await CurrentDataLocation.getText()).toEqual('Phoenix-Mesa-Scottsdale, AZ MSA');
expect(await CurrentDataCountry.getText()).toEqual('United States'); expect(await CurrentDataCountry.getText()).toEqual('United States');
@@ -414,7 +414,7 @@ function Wages() {
browser.sleep(1000); browser.sleep(1000);
}); });
await ApplyButton.click().then(function() { await ApplyButton.click().then(function() {
browser.sleep(1000); browser.sleep(2500);
}); });
expect(await CurrentDataLocation.getText()).toEqual('Nevada'); expect(await CurrentDataLocation.getText()).toEqual('Nevada');
expect(await CurrentDataCountry.getText()).toEqual('United States'); expect(await CurrentDataCountry.getText()).toEqual('United States');
@@ -1142,7 +1142,7 @@ function InterestSurveyResults() {
await FromTextBox.clear(); await FromTextBox.clear();
await FromTextBox.sendKeys('Automated Regression'); await FromTextBox.sendKeys('Automated Regression');
await ToTextBox.sendKeys('jhuerta@edmin.com'); await ToTextBox.sendKeys('jhuerta@edmin.com');
browser.waitForAngular(); browser.sleep(1000);
await SendButton.click(); await SendButton.click();
browser.sleep(2500); browser.sleep(2500);
await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!'); await expect(DivAlertTitle.getText()).toEqual('Your interest survey results are in flight!');
@@ -1208,10 +1208,10 @@ function InterestSurveyResultsClusters() {
await InfoIcon.click(); await InfoIcon.click();
browser.sleep(2500); browser.sleep(2500);
await LearnMoreButton.click(); await LearnMoreButton.click();
browser.sleep(10000); browser.waitForAngular();
browser.wait(EC.elementToBeClickable(JourneymanIcon));
browser.waitForAngular(); browser.waitForAngular();
browser.getCurrentUrl(); browser.getCurrentUrl();
browser.wait(EC.elementToBeClickable(JourneymanIcon));
}); });
} }
@@ -1304,7 +1304,7 @@ function MyJourneysPage() {
await Select3rdJourney.click(); await Select3rdJourney.click();
expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources'); expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources');
await ViewOnMapButton.click(); await ViewOnMapButton.click();
browser.sleep(10000); browser.sleep(20000);
await MyJourneysHeaderLink.click(); await MyJourneysHeaderLink.click();
await Select3rdJourney.click(); await Select3rdJourney.click();
browser.sleep(1000); browser.sleep(1000);