Cleaned up JA Folder
This commit is contained in:
@@ -1,35 +0,0 @@
|
|||||||
//beginCareerExplorationWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['beginCareerExplorationWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,560 +0,0 @@
|
|||||||
//beginCareerExplorationWidget_spec.js
|
|
||||||
|
|
||||||
describe('Begin Career Exploration Widget script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
BeginCareerExplorationWidget();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function BeginCareerExplorationWidget() {
|
|
||||||
it(': BeginCareerExplorationWidget, should interact with Begin Career Exploration widget', async function () {
|
|
||||||
var BeginCareerExplorationTitle = element(by.css('tbody .jrnys_lead-body-copy'));
|
|
||||||
var BeginCareerExplorationDescription = element(by.css('.fullHeight:nth-child(1) > table > tbody > tr:nth-child(3) > td'));
|
|
||||||
var ExploreCareersButton = element(by.css('td > .btn'));
|
|
||||||
var CareerExplorationPageTitle = element(by.css('.col-sm-12'));
|
|
||||||
var SearchOccupationsTextBox = element(by.css('div:nth-child(3) > div > div > .form-control'));
|
|
||||||
var SearchOccupationsTextBoxSearchIcon = element(by.css('div:nth-child(3) > div > div > .cursorPointer > .glyphicon-search'));
|
|
||||||
var SearchOccupationsTextBoxXClearIcon = element(by.css('div:nth-child(3) > div > div > .cursorPointer > .glyphicon-remove'));
|
|
||||||
var SkillsFilterButton = element(by.css('div:nth-child(3) > .filter-category:nth-child(3)'));
|
|
||||||
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
|
|
||||||
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
|
|
||||||
var WidgetDescription = element(by.css('.row > span:nth-child(2)'));
|
|
||||||
var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectureAndConstructionSelectButton = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .btn'));
|
|
||||||
var ArtsAVTechnologyAndCommunications = element(by.css('#\\31 48161d3-2bf8-4703-bf6b-17f05cafc9f0 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)'));
|
|
||||||
var PreviousLinkText = element(by.linkText('Previous'));
|
|
||||||
var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)'));
|
|
||||||
var NextLinkText = element(by.linkText('Next'));
|
|
||||||
var Construction = element(by.css('#bd9b4a77-7eb1-4789-9c38-86ac3f913736 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DesignPreConstruction = element(by.css('#\\39 431385b-51e1-475b-a643-e54dc0aeea49 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DesignPreConstructionSelectButton = element(by.css('#\\39 431385b-51e1-475b-a643-e54dc0aeea49 > #territoryCardContainer .btn'));
|
|
||||||
var MaintenanceOperations = element(by.css('#\\30 bc17fc3-6310-404b-a047-6c7d4f0a8e9b > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectsExceptLandscapeAndNaval = element(by.css('#\\34 729871a-cff9-4010-8f1c-2688fe8c4def > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitecturalAndCivilDrafters = element(by.css('#\\30 ad4aeb1-3795-4a92-9bdf-d79cec3c29f4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitecturalAndEngineeringManagers = element(by.css('#\\32 dbe648d-2f34-41d0-8ada-5042e198dbdc > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitecturalDrafters = element(by.css('#\\31 bb7457e-a632-4e39-90c4-b8cf6b3ddc9e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectureTeachersPostsecondary = element(by.css('#\\37 6fdf0a6-0344-40df-8c8d-ecba5149b1e8 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CartographersAndPhotogrammetrists = element(by.css('#\\32 e5845bf-42d6-4b55-b7ad-f107a47f39ea > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
//Interests Filter Applied
|
|
||||||
var HospitalityAndTourism = element(by.css('#\\30 6927b2f-12ec-4a78-a72b-8aa6c8576788 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var HealthScience = element(by.css('#\\33 7735fc5-77f8-4a3c-8814-51c377b7affd > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
//Interests Filter Applied - Next page
|
|
||||||
var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var TransportationDistributionAndLogistics = element(by.css('#cb6320a7-5496-4ce1-8f52-2490b76143de > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CyberSecuritySelectButton = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .btn'));
|
|
||||||
var ProgramProjectManagementPMAAndAcquisition = element(by.css('#b1c57f1e-c36a-44a8-8a13-b22e4ca718d9 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ProgramProjectManagementPMAAndAcquisitionSelectButton = element(by.css('#b1c57f1e-c36a-44a8-8a13-b22e4ca718d9 > #territoryCardContainer .btn'));
|
|
||||||
var ProgramManager = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .ng-binding'));
|
|
||||||
var ProgramManagerAtAGlance = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardItemText'));
|
|
||||||
var ProgramManagerLearnMoreIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText'));
|
|
||||||
var ProgramManagerMapIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText'));
|
|
||||||
var ProgramManagerJourneymanIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(3) > .territoryCardActionBarText'));
|
|
||||||
var ProgramManagerVideoIcon = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText'));
|
|
||||||
var ITProjectManager = element(by.css('#b1cea8c1-1a7b-44e4-b496-b7d65dafba57 > #territoryCardContainer .ng-binding'));
|
|
||||||
var KnowledgeManagementKMG = element(by.css('#\\30 dbacd12-5686-4775-92a8-c5d6d966aa94 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CyberSecurityManagementMGT = element(by.css('#\\37 087ce2a-5602-4e7a-ac42-250182301aa3 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var LegalAdviceAndAdvocacyLGA = element(by.css('#a7e8c68e-f950-4a97-bd11-5921ae44880b > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var StrategicPlanningAndPolicySPP = element(by.css('#e2428422-fb4c-422c-872f-3eaf4d3c0ef1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SystemsArchitectureARC = element(by.css('#ec3ceca4-90b5-4ff2-8053-d4cac211cb08 > #territoryCardContainer .ng-binding'));
|
|
||||||
var Manufacturing = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var InformationTechnology = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var InformationTechnologySelectButton = element(by.css('#e23c1424-7a79-4bd4-8225-4d1ef8ee3646 > #territoryCardContainer .btn'));
|
|
||||||
var NetworkSystems = element(by.css('#\\36 045e379-c666-4d31-ba08-e52292ae73b2 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ProgrammingAndSoftwareDevelopment = element(by.css('#\\39 69d6437-0dd5-4b0d-b2b2-df22e5a6e8f5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var InformationSupportAndServices = element(by.css('#e114cd00-ac4a-4fb9-8fd6-a31e15930149 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ClusterLinkText = element(by.linkText('Clusters'));
|
|
||||||
var AgricultureFoodAndNaturalResourcesFiltered = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectureAndConstructionFiltered = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BusinessManagementAndAdministrationFiltered = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CyberSecurityFiltered = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var EducationAndTrainingFiltered = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var FinanceFiltered = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var NoSearchResultsFoundText = element(by.css('.widget-padding > .ng-scope'));
|
|
||||||
var HealthcareComputerOccupationsAllOther = element(by.css('#\\35 3bf5478-a200-463b-9d75-5ecff46f5f51 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AdministrationComputerOccupationsAllOther = element(by.css('#acd267d5-6d77-4d35-bd93-e6554fc24262 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ITNetworkSystemsComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var STEMComputerOccupationsAllOther = element(by.css('#\\30 6316b7c-432f-4415-8995-3fe0da506e4e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ITInformationSupportAndServicesComputerOccupationsAllOther = element(by.css('#\\31 2f718c6-ed62-445b-a6f3-bef905dba871 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerHardwareEngineers = element(by.css('#b85d7e02-739f-464c-b163-6c7b7ac56fd4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DashboardHeaderLink = element(by.css('.navbar-brand > img'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 592);').then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await BeginCareerExplorationTitle.getText()).toEqual('Begin Career Exploration');
|
|
||||||
expect(await BeginCareerExplorationDescription.getText()).toEqual('We like your adventurous spirit. Search for a career that aligns with your interests and Learn More about it.');
|
|
||||||
await ExploreCareersButton.click().then(function() {
|
|
||||||
browser.sleep(10000);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await ArchitectureAndConstructionSelectButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
|
|
||||||
expect(await Construction.getText()).toEqual('Construction');
|
|
||||||
expect(await DesignPreConstruction.getText()).toEqual('Design/Pre-Construction');
|
|
||||||
expect(await MaintenanceOperations.getText()).toEqual('Maintenance/Operations');
|
|
||||||
await DesignPreConstructionSelectButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
|
|
||||||
expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval');
|
|
||||||
expect(await ArchitecturalAndCivilDrafters.getText()).toEqual('Architectural and Civil Drafters');
|
|
||||||
expect(await ArchitecturalAndEngineeringManagers.getText()).toEqual('Architectural and Engineering Managers');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters');
|
|
||||||
expect(await ArchitectureTeachersPostsecondary.getText()).toEqual('Architecture Teachers, Postsecondary');
|
|
||||||
expect(await CartographersAndPhotogrammetrists.getText()).toEqual('Cartographers and Photogrammetrists');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
//Apply Interests Filter
|
|
||||||
await InterestsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Interests Filter Appplied
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await NextLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
||||||
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await InformationTechnology.getText()).toEqual('Information Technology');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await NextLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await Manufacturing.getText()).toEqual('Manufacturing');
|
|
||||||
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
|
|
||||||
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
await PreviousLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
||||||
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await InformationTechnology.getText()).toEqual('Information Technology');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await PreviousLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
//Selected Cyber Security
|
|
||||||
await CyberSecuritySelectButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
|
|
||||||
expect(await CyberSecurityManagementMGT.getText()).toEqual('Cybersecurity Management (MGT)');
|
|
||||||
expect(await KnowledgeManagementKMG.getText()).toEqual('Knowledge Management (KMG)');
|
|
||||||
expect(await LegalAdviceAndAdvocacyLGA.getText()).toEqual('Legal Advice and Advocacy (LGA)');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await ProgramProjectManagementPMAAndAcquisition.getText()).toEqual('Program/Project Management (PMA) and Acquisition');
|
|
||||||
expect(await StrategicPlanningAndPolicySPP.getText()).toEqual('Strategic Planning and Policy (SPP)');
|
|
||||||
expect(await SystemsArchitectureARC.getText()).toEqual('Systems Architecture (ARC)');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
//Selected Cyber Crime Investigator
|
|
||||||
await ProgramProjectManagementPMAAndAcquisitionSelectButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways > Occupations');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
|
|
||||||
expect(await ProgramManager.getText()).toContain('Program Manager');
|
|
||||||
expect(await ProgramManagerAtAGlance.getText()).toContain('At a');
|
|
||||||
expect(await ProgramManagerAtAGlance.getText()).toContain('Glance');
|
|
||||||
expect(await ProgramManagerLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await ProgramManagerMapIcon.getText()).toEqual('Map');
|
|
||||||
expect(await ProgramManagerJourneymanIcon.getText()).toEqual('Journey');
|
|
||||||
expect(await ProgramManagerVideoIcon.getText()).toEqual('Video');
|
|
||||||
expect(await ITProjectManager.getText()).toContain('IT Project Manager');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
//Apply Skills Filter
|
|
||||||
await SkillsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await NextLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
||||||
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await InformationTechnology.getText()).toEqual('Information Technology');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await NextLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await Manufacturing.getText()).toEqual('Manufacturing');
|
|
||||||
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
|
|
||||||
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
await PreviousLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
||||||
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await InformationTechnology.getText()).toEqual('Information Technology');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
//Selected Information Technology
|
|
||||||
await InformationTechnologySelectButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters > Pathways');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a pathway below.');
|
|
||||||
expect(await NetworkSystems.getText()).toEqual('Network Systems');
|
|
||||||
expect(await ProgrammingAndSoftwareDevelopment.getText()).toEqual('Programming and Software Development');
|
|
||||||
expect(await InformationSupportAndServices.getText()).toEqual('Information Support and Services');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await ClusterLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
||||||
expect(await HospitalityAndTourism.getText()).toEqual('Hospitality and Tourism');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await InformationTechnology.getText()).toEqual('Information Technology');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await PreviousLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResourcesFiltered.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstructionFiltered.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministrationFiltered.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurityFiltered.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTrainingFiltered.getText()).toEqual('Education & Training');
|
|
||||||
expect(await FinanceFiltered.getText()).toEqual('Finance');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
//Removed Interests Filter
|
|
||||||
await InterestsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
//Search Occupation TextBox
|
|
||||||
await SearchOccupationsTextBox.sendKeys('Baseball');
|
|
||||||
await SearchOccupationsTextBoxSearchIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await NoSearchResultsFoundText.getText()).toEqual('No results found.');
|
|
||||||
await SearchOccupationsTextBoxXClearIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await SearchOccupationsTextBox.sendKeys('Computer');
|
|
||||||
SearchOccupationsTextBox.sendKeys(protractor.Key.ENTER).then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Occupations');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
|
|
||||||
expect(await HealthcareComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await AdministrationComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await ITNetworkSystemsComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await STEMComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await ITInformationSupportAndServicesComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await ComputerHardwareEngineers.getText()).toEqual('Computer Hardware Engineers');
|
|
||||||
//Back to Dashboard
|
|
||||||
await DashboardHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//createJourney_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['createJourney_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,62 +0,0 @@
|
|||||||
//fullTestSuite_config.js
|
|
||||||
|
|
||||||
var today = new Date();
|
|
||||||
var mm = today.getMonth()+1; //January is 0
|
|
||||||
var dd = today.getDate();
|
|
||||||
var yyyy = today.getFullYear();
|
|
||||||
var hour = today.getHours();
|
|
||||||
var minute = today.getMinutes();
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: [
|
|
||||||
'createAccount_spec.js',
|
|
||||||
'loginWithInstitution_spec.js',
|
|
||||||
'userProfile_spec.js',
|
|
||||||
'profileAndMyProgressWidgets_spec.js',
|
|
||||||
'interestSurveyResultsWidget_spec.js',
|
|
||||||
//'skillsMatcherResultsWidget_spec.js',
|
|
||||||
//'beginCareerExplorationWidget_spec.js',
|
|
||||||
'myCareersWidget_spec.js',
|
|
||||||
//'topCareerWidget_spec.js',
|
|
||||||
'createJourney_spec.js',
|
|
||||||
'myResourcesWidget_spec.js',
|
|
||||||
//'institutionsWidget_spec.js',
|
|
||||||
'myJourneysWidget_spec.js'
|
|
||||||
],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
signup: 'https://app-qa.journeysmap.com/Journey/index.html#/signup',
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
nonAngularURL: 'https://app-qa.journeysmap.com/UI/User/Profile',
|
|
||||||
code: 'N0R7Y7RO', //QA N0R7Y7RO //PROD 0W3SNBQ7
|
|
||||||
createUserName: 'AutomatedTest' + mm + dd + yyyy + hour + minute + '@journeysmap.com',
|
|
||||||
username: 'QA_AutomatedRegression',
|
|
||||||
loginWithInstitutionUsername: 'GNight147', //QA GNight147 //PRODuser147
|
|
||||||
password: '3Dm!nAuto'
|
|
||||||
},
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//institutionsWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['institutionsWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,208 +0,0 @@
|
|||||||
//institutionsWidget_spec.js
|
|
||||||
|
|
||||||
describe('Institutions Widget script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
InstitutionsWidget();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function InstitutionsWidget() {
|
|
||||||
it(': InstitutionsWidget, should interact with Institutions Widget and validate data', async function () {
|
|
||||||
var InstitutionsWidgetTitle = element(by.css('#institutionCarousel .jrnys_lead-body-copy'));
|
|
||||||
var InstitutionsViewAllLink = element(by.css('#institutionCarousel .text-color-7a'));
|
|
||||||
var EditSearchTitle = element(by.css('.panel-with-page > .row > b'));
|
|
||||||
var ProgramDegreesSubTitle = element(by.css('.row:nth-child(2) b'));
|
|
||||||
var ChooseADegreeHeader = element(by.css('.row:nth-child(2) > div:nth-child(2)'));
|
|
||||||
var ChooseAProgramHeader = element(by.css('.row:nth-child(2) > div:nth-child(3)'));
|
|
||||||
var LocationSubTitle = element(by.css('.row:nth-child(3) b'));
|
|
||||||
var ChooseAStateHeader = element(by.css('.row:nth-child(3) > div:nth-child(2)'));
|
|
||||||
var ChooseARegionHeader = element(by.css('.row:nth-child(3) > div:nth-child(3)'));
|
|
||||||
var EngerAZipCodeHeader = element(by.css('.row:nth-child(4) > .col-xs-6:nth-child(1)'));
|
|
||||||
var MileRadiusHeader = element(by.css('.col-xs-6:nth-child(2)'));
|
|
||||||
var InstitutionsSearchResults = element(by.css('#divCSCSearchResult b'))
|
|
||||||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
|
||||||
var LomaLindaUniversity = element(by.css('#territoryCardContainer > div > div:nth-child(3) > div > div.territoryCardTitleText.territoryCardTitleHeight > span'));
|
|
||||||
var WestCoastUniversityOrangeCounty = element(by.css(''));
|
|
||||||
var WestCoastUniversityOntario = element(by.css(''));
|
|
||||||
var UniversityOfSanDiego = element(by.xpath("//span[contains(.,'University of San Diego')]"));
|
|
||||||
var UniversityOfSanDiegoAtAGlanceIcon = element(by.css('#territoryCardContainer > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div > div.territoryCardItemText.territoryCardMediaHide'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardTitle = element(by.css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding'));
|
|
||||||
var UniversityOfSanDiegoBackOfCard4YearHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCard4YearData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardUndergradHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardUndergradData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardXCloseIcon = element(by.css('#territoryCardTitleHeader > div:nth-child(2) > span'));
|
|
||||||
var UniversityOfSanDiegoEllipsisIcon = element(by.css('#territoryCardContainer > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div > i'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardTitleTwo = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
|
|
||||||
var UniversityOfSanDiegoLearnMoreTitle = element(by.css('td .jrnys_lead-body-copy'));
|
|
||||||
var UniversityOfSanDiegoLearnMoreIIcon = element(by.css('.journey-info-circle'));
|
|
||||||
var UniversityOfSanDiegoLearnMoreDIVTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
|
||||||
var UniversityOfSanDiegoLearnMoreDIVLink = element(by.linkText('http://www.sandiego.edu'));
|
|
||||||
var CloseXDIVIcon = element(by.css('.fa-times'));
|
|
||||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > span'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
|
|
||||||
var AlliantInternationalUniversitySanDiego = element(by.xpath("//span[contains(.,'Alliant International University-San Diego')]"));
|
|
||||||
var NationalUniversity = element(by.xpath("//span[contains(.,'National University')]"));
|
|
||||||
var InstitutionsRightScroll = element(by.xpath('//div[2]/div/a[2]/span'));
|
|
||||||
var PointLomaNazareneUniversity = element(by.xpath("//span[contains(.,'Point Loma Nazarene University')]"));
|
|
||||||
var UniversityOfCaliforniaSanDiego = element(by.xpath("//span[contains(.,'University of California-San Diego')]"));
|
|
||||||
var SanDiegoStateUniversity = element(by.xpath("//span[contains(.,'San Diego State University')]"));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 2838);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All');
|
|
||||||
await InstitutionsViewAllLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//College Search Page
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await EditSearchTitle.getText()).toEqual('Edit Search');
|
|
||||||
expect(await ProgramDegreesSubTitle.getText()).toEqual('Programs/Degrees');
|
|
||||||
expect(await ChooseADegreeHeader.getText()).toContain('Choose a Degree');
|
|
||||||
expect(await ChooseAProgramHeader.getText()).toContain('Choose a Program');
|
|
||||||
expect(await LocationSubTitle.getText()).toEqual('Location');
|
|
||||||
expect(await ChooseAStateHeader.getText()).toContain('Choose a state');
|
|
||||||
expect(await ChooseARegionHeader.getText()).toContain('Choose a region');
|
|
||||||
expect(await EngerAZipCodeHeader.getText()).toEqual('Enter a ZIP code');
|
|
||||||
expect(await MileRadiusHeader.getText()).toEqual('Mile radius');
|
|
||||||
expect(await InstitutionsSearchResults.getText()).toContain('Search Results (');
|
|
||||||
await BackLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Dashboard
|
|
||||||
browser.executeScript('window.scrollTo(0, 2838);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await AlliantInternationalUniversitySanDiego.getText()).toEqual('Alliant International University-San Diego')
|
|
||||||
expect(await NationalUniversity.getText()).toEqual('National University');
|
|
||||||
await UniversityOfSanDiegoAtAGlanceIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardTitle.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCard4YearHeader.getText()).toEqual('4 Year');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCard4YearData.getText()).toEqual('Private nonprofit');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardUndergradData.getText()).toEqual('5,760');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardLocationHeader.getText()).toContain('Location');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardLocationData.getText()).toEqual('City');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardClassroomHeader.getText()).toContain('Classrooms');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardClassroomData.getText()).toEqual('Medium');
|
|
||||||
await UniversityOfSanDiegoBackOfCardXCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 2838);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await UniversityOfSanDiegoEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardTitleTwo.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardAtAGlanceIcon.getText()).toEqual('At A Glance');
|
|
||||||
await UniversityOfSanDiegoBackOfCardLearnMoreIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiegoLearnMoreTitle.getText()).toEqual('University of San Diego');
|
|
||||||
await UniversityOfSanDiegoLearnMoreIIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiegoLearnMoreDIVTitle.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await UniversityOfSanDiegoLearnMoreDIVLink.getText()).toEqual('http://www.sandiego.edu');
|
|
||||||
await CloseXDIVIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await DashboardHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 2838);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await AlliantInternationalUniversitySanDiego.getText()).toEqual('Alliant International University-San Diego')
|
|
||||||
expect(await NationalUniversity.getText()).toEqual('National University');
|
|
||||||
await InstitutionsRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University');
|
|
||||||
expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego');
|
|
||||||
expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut, should log out of journeysmap', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
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);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//interestSurveyResultsWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['interestSurveyResultsWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,29 +0,0 @@
|
|||||||
// config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['journeysmap_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
5009
journeysmap_spec.js
5009
journeysmap_spec.js
File diff suppressed because it is too large
Load Diff
@@ -1,35 +0,0 @@
|
|||||||
//learnMorePage_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['learnMorePage_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,810 +0,0 @@
|
|||||||
//learnMorePage_spec.js
|
|
||||||
|
|
||||||
describe('Learn More Page script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
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();
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
LearnMorePage();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function LearnMorePage() {
|
|
||||||
it(': LearnMorePage, should click the Top Career link and interact with Learn More page', async function () {
|
|
||||||
var TopCareerLink = element(by.css('td>.jrnys_support-text'));
|
|
||||||
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
|
|
||||||
var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
|
|
||||||
var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding'));
|
|
||||||
var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
|
||||||
var XCloseLink = element(by.css('.close'));
|
|
||||||
var VideoIcon = element(by.css('.text-right .far'));
|
|
||||||
var FollowIcon = element(by.css('.text-right > span .journey-follow'));
|
|
||||||
var JourneymanIcon = element(by.css('.text-right .socialImgIcon .socialImgIconJourneyableSvg'));
|
|
||||||
var Progress = element(by.css('.ng-scope:nth-child(3) > a > .jrnys_support-text'));
|
|
||||||
var Followers = element(by.css('.text-color-7a > .jrnys_support-text'));
|
|
||||||
var Confidence = element(by.css('.ng-scope:nth-child(1) > a > .jrnys_support-text'));
|
|
||||||
var AtAGlanceHeader = element(by.css('#atAGlanceWidget .jrnys_lead-body-copy'));
|
|
||||||
var AtAGlanceHeaderOne = element(by.css('.row-height:nth-child(1) .jrnys_support-text'));
|
|
||||||
var AtAGlanceStatOne = element(by.css('.row-height:nth-child(1) .col-sm-offset-4'));
|
|
||||||
var AtAGlanceHeaderTwo = element(by.css('.row-height:nth-child(2) .jrnys_support-text'));
|
|
||||||
var AtAGlanceStatTwo = element(by.css('.row-height:nth-child(2) .dataFontSize'));
|
|
||||||
var AtAGlanceHeaderThree = element(by.css('.row-height:nth-child(3) .jrnys_support-text'));
|
|
||||||
var AtAGlanceSubHeaderThree = element(by.css('.col-sm-offset-4 > span'));
|
|
||||||
var AtAGlanceStatThree = element(by.css('.row-height:nth-child(3) .col-sm-offset-4'));
|
|
||||||
var AtAGlanceHeaderFour = element(by.css('.row-height:nth-child(4) .jrnys_support-text'));
|
|
||||||
var AtAGlanceStatFour = element(by.css('.row-height:nth-child(4) .dataFontSize'));
|
|
||||||
var AtAGlanceHeaderFive = element(by.css('.row-height:nth-child(5) .jrnys_support-text'));
|
|
||||||
var AtAGlanceStatFive = element(by.css('.row-height:nth-child(5) .dataFontSize'));
|
|
||||||
var PersonalityWidgetTitle = element(by.css('.widget-round-corners:nth-child(3) .fullHeight .jrnys_lead-body-copy'));
|
|
||||||
var PersonalityDescriptionOne = element(by.css('.carouselHeight > .ng-scope > tbody > tr > td > .ng-binding'));
|
|
||||||
var PersonalityDescriptionTwo = element(by.css('.ng-scope > tbody > tr:nth-child(2) div'));
|
|
||||||
var PersonalityBulletOne = element(by.css('table:nth-child(1) .ng-scope:nth-child(1) > td:nth-child(1) > .ng-binding:nth-child(2)'));
|
|
||||||
var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(1) > td:nth-child(2) > .ng-binding'));
|
|
||||||
var PersonalityBulletThree = element(by.css('table:nth-child(1) .ng-scope:nth-child(2) > td:nth-child(1) > .ng-binding:nth-child(2)'));
|
|
||||||
var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(2) > td:nth-child(2) > .ng-binding'));
|
|
||||||
var PersonalityBulletFive = element(by.css('table:nth-child(1) .ng-scope:nth-child(3) > td:nth-child(1) > .ng-binding:nth-child(2)'));
|
|
||||||
var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(3) > td:nth-child(2) > .ng-binding'));
|
|
||||||
var WagesWidgetTitle = element(by.xpath('//occupation-wages/div/div[2]/div/div'));
|
|
||||||
var WagesInfoIcon = element(by.css('.jrnys_lead-body-copy > .journey-info-circle'));
|
|
||||||
var WagesWidgetBackOfCardTitle = element(by.css('tr > .jrnys_lead-body-copy'));
|
|
||||||
var WagesSubTextOne = element(by.css('table:nth-child(2) > tbody > tr:nth-child(2) div:nth-child(1)'));
|
|
||||||
var WagesSubTextTwo = element(by.css('td > .ng-scope:nth-child(2)'));
|
|
||||||
var WagesSubTextThree = element(by.css('.fullHeight:nth-child(2) > table div:nth-child(3)'));
|
|
||||||
var WagesSubTextFour = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'));
|
|
||||||
var WagesSubTextFive = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm19all.zip'));
|
|
||||||
var WagesSubTextSix = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm18all.zip'));
|
|
||||||
var WagesSubTextSeven = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm17all.zip'));
|
|
||||||
var WagesWidgetCloseBackOfCardIcon = element(by.css('.fa-times-rectangle'));
|
|
||||||
var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text'));
|
|
||||||
var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text'));
|
|
||||||
//var WagesTypeText = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[4]/occupation-wages/div/div[2]/div/table/tbody/tr/td/div/div/div[1]/div/svg/g[3]/g/text'));//Can't ID
|
|
||||||
var WagesHighText = element(by.css('g:nth-child(6) > text'));
|
|
||||||
var WagesMedianText = element(by.css('g:nth-child(7) > text'));
|
|
||||||
var WagesLowText = element(by.css('g:nth-child(8) > text'));
|
|
||||||
var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text'));
|
|
||||||
var WagesXAxisOneText = element(by.css('g:nth-child(4) > g:nth-child(2) > text'));
|
|
||||||
var WagesXAxisTwoText = element(by.css('g:nth-child(3) > text'));
|
|
||||||
var WagesXAxisThreeText = element(by.css('g:nth-child(4) > text'));
|
|
||||||
var WagesXAxisFourText = element(by.css('g:nth-child(5) > text'));
|
|
||||||
var WagesFilterIcon = element(by.css('.fa-sliders-h'));
|
|
||||||
var ZipCodeTextBoxText = element(by.css('.dropdown-menu tr:nth-child(1) > td:nth-child(1)'));
|
|
||||||
var ZipCodeTextBox = element(by.css('.ng-valid-maxlength'));
|
|
||||||
var ZipCodeApplyButton = element(by.css('tr:nth-child(1) .btn'));
|
|
||||||
var StateDropDownText = element(by.css('.dropdown-menu tr:nth-child(2) > td:nth-child(1)'));
|
|
||||||
var StateDropDownApplyButton = element(by.css('tr:nth-child(2) .btn'));
|
|
||||||
var WagesHighTextTwo = element(by.css('g:nth-child(7) > text'));
|
|
||||||
var WagesMedianTextTwo = element(by.css('g:nth-child(8) > text'));
|
|
||||||
var WagesLowTextTwo = element(by.css('g:nth-child(9) > text'));
|
|
||||||
var WagesXAxisFiveText = element(by.css('g:nth-child(6) > text'));
|
|
||||||
var RateTypeText = element(by.css('.dropdown-menu tr:nth-child(3) > td:nth-child(1)'));
|
|
||||||
var HourlyButton = element(by.xpath("//button[contains(.,'Hourly')]"));
|
|
||||||
var AnnualButton = element(by.css('.btn:nth-child(2)'))
|
|
||||||
var CollegePathwaysWidgetTitle = element(by.css('#liDegree .jrnys_lead-body-copy'));
|
|
||||||
var ComputerApplicationsMinorCollegeWide = element(by.css('#\\36 3f93734-c4e9-48cd-8ff4-041e10760da5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerScienceBS = element(by.css('#a6e09aef-a938-4c2b-aa90-c6d6b2499de7 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerScienceMinor = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CollegePathwaysRightScroll = element(by.css('.table-height:nth-child(2) .right > .glyphicon'));
|
|
||||||
var ComputerScienceMS = element(by.css('#a8803504-ea19-4643-8569-b5fae3db34d9 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CertificatesWidgetTitle = element(by.css('#liCertificate .jrnys_lead-body-copy'));
|
|
||||||
var CertifiedLabVIEWArchitect = element(by.css('#\\35 179bed9-a8e1-44af-b525-3e8ad0dcb31e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CertificatesCardOneSubHeader = element(by.xpath('//div/div/div/div/table/tbody/tr/td/span'));
|
|
||||||
var CertifiedAssociateLabVIEWDeveloper = element(by.css('#\\38 8e24eb9-a695-4048-917d-f45bd0015675 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CertificatesCardTwoSubHeader = element(by.xpath('//div[2]/div/div/table/tbody/tr/td/span'));
|
|
||||||
var AvayaCertifiedExpert = element(by.css('#\\31 82f070b-18f9-4276-bb91-3128c4d0cf2c > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CertificatesCardThreeSubHeader = element(by.xpath('//div[3]/div/div/table/tbody/tr/td/span'));
|
|
||||||
var CertificatesRightScroll = element(by.css('.widget-round-corners:nth-child(6) .right:nth-child(4) > .glyphicon:nth-child(1)'));
|
|
||||||
var CertifiedBiometricsProfessional = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CertifiedSoftwareDevelopmentProfessional = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var InstitutionsWidgetTitle = element(by.xpath('//recommended-colleges/div/div/div'));
|
|
||||||
var UniversityOfSanDiego = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var UniversityOfSanDiegoAtAGlanceIcon = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) .territoryCardItemText:nth-child(2)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardTitle = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[1]/div[1]'));//css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding'));
|
|
||||||
var UniversityOfSanDiegoBackOfCard4YearHeader = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[1]/td[2]/div[1]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCard4YearData = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[1]/td[2]/div[2]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardUndergradHeader = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[3]/td[2]/div[1]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardUndergradData = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[2]/territory-card-at-a-glance-back/div/div/div/div[2]/div/table/tbody/tr[3]/td[2]/div[2]'));//css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardLocationHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardLocationData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardClassroomHeader = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardClassroomData = element(by.css('#territoryCardContainer > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back > div > div > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardXCloseIcon = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[2]/div[1]/div[2]/span'));//css('#territoryCardTitleHeader > div:nth-child(2) > span'));
|
|
||||||
var UniversityOfSanDiegoEllipsisIcon = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(1) div:nth-child(2) .fas:nth-child(1)'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardTitleTwo = element(by.css('.territoryCardTitleText:nth-child(1)'));//xpath('/html/body/div[1]/div/div/div[2]/ul/li[7]/recommended-colleges/div/div/table/tbody/tr/td/div/div/div/div[1]/div[1]/div/college-territory-card/territory-card/div/div[3]/div[1]/div[1]'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardFollowIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(1) > div.territoryCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardLearnMoreIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(2) > div.territoryCardBackOfCardItemText'));
|
|
||||||
var UniversityOfSanDiegoBackOfCardAtAGlanceIcon = element(by.css('#territoryCardContainer > div.ng-scope > div:nth-child(2) > territory-card-more-back > div > div > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText'));
|
|
||||||
var NationalUniversity = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var PointLomaNazareneUniversity = element(by.css('#recommendedColleges .item:nth-child(1) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var InstitutionsRightScroll = element(by.css('#recommendedColleges .right > .glyphicon'));
|
|
||||||
var UniversityOfCaliforniaSanDiego = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(1) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var SanDiegoStateUniversity = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(2) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var CaliforniaStateUniversitySanMarcos = element(by.css('#recommendedColleges .item:nth-child(2) > .col-xs-4:nth-child(3) .territoryCardTitleText:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var TopResourcesWidgetTitle = element(by.css('#id .jrnys_lead-body-copy'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
var TopResourcesCardOneHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .hotTitles'));
|
|
||||||
var TopResourcesCardTwoHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .hotTitles'));
|
|
||||||
var TopResourcesCardThreeHeader = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .hotTitles'));
|
|
||||||
var TopResourcesRightScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
|
||||||
var TopResourcesCardFourHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(1) .hotTitles'));
|
|
||||||
var TopResourcesCardFiveHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(2) .hotTitles'));
|
|
||||||
var TopResourcesCardSixHeader = element(by.css('.item:nth-child(2) > .col-xs-4:nth-child(3) .hotTitles'));
|
|
||||||
var TopResourcesLeftScroll = element(by.xpath('//resource-carousel/div/div/table/tbody/tr/td/div/div/a/span'));
|
|
||||||
var TopResourcesCardThreeSaveIcon = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .journey-save:nth-child(1)'));
|
|
||||||
var FindOpportunitiesWidgetTitle = element(by.css('.noPaddingCol > .jrnys_lead-body-copy'));
|
|
||||||
var FindOpportunitiesSubText = element(by.css('.no-padding > .jrnys_body-copy'));
|
|
||||||
var JobsTotalsLink = element(by.css('.col-sm-4:nth-child(1) .col-sm-9 .jrnys_stand-out-text'));
|
|
||||||
var JobListingsDIVHeader = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding'));
|
|
||||||
var InternshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));//Null link
|
|
||||||
var InternshipsListingsDIVHeader = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));
|
|
||||||
var ApprenticeshipsTotalsLink = element(by.css('#findJobsWidget > .text-color-7a:nth-child(3)'));//Null link
|
|
||||||
var FindOpportunitiesChangeLocationLink = element(by.css('.jrnys_body-copy:nth-child(2)'));
|
|
||||||
var ChangeLocationDIVTitle = element(by.css('b'));
|
|
||||||
var ChangeLocationDIVSubTitle = element(by.css('.col-xs-11:nth-child(2)'));
|
|
||||||
var ChnageLocationEnterZipCodeTextBox = element(by.css('#inputZip'));
|
|
||||||
var ChangeLocationApplyButton = element(by.css('#indeedQuery'));
|
|
||||||
var SubmitResourceWidgetTitle = element(by.css('.jrnys_lead-body-copy > .row > .col-xs-12'));
|
|
||||||
var SubmitResourceWidgetSubTextOne = element(by.css('.row:nth-child(1) > .jrnys_body-copy'));
|
|
||||||
var TotalInJourneys = element(by.css('.col-xs-offset-1 .col-xs-offset-1'));
|
|
||||||
var MySubmittedResourcesLink = element(by.css('.col-xs-offset-1 > .row .jrnys_lead-body-copy'));
|
|
||||||
var MySubmittedResourcesWidgetTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
|
||||||
var MyResourceTitle = element(by.css('.row > .row > .col-xs-9 > .ng-binding'));
|
|
||||||
var EllipsisResource = element(by.css('.glyphicon-option-vertical:nth-child(1)'));
|
|
||||||
var MyResourceFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span'));
|
|
||||||
var MyResourceLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)'));
|
|
||||||
var ForThisMapPoint = element(by.css('.display-right .col-xs-offset-1'));
|
|
||||||
var SubmitResourceWidgetSubTextTwo = element(by.css('.row:nth-child(3) > .col-sm-12'));
|
|
||||||
var SubmitAResourceWidgetButton = element(by.css('.col-sm-12 > .jrnys_support-text'));
|
|
||||||
var SubmitAResourceDIVTitle = element(by.css('h3'));
|
|
||||||
var SubmitAResourceDIVCancelButton = element(by.css('.btn-blue-RoundTabsinfo'));
|
|
||||||
var KnowledgeWidgetTitle = element(by.css('#knowledgeid .jrnys_lead-body-copy'));
|
|
||||||
var KnowledgeImportanceHeader = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
|
|
||||||
var KnowledgeDescriptionOne = element(by.css('#knowledgeid .table:nth-child(1) .ng-scope:nth-child(1) .ng-binding:nth-child(1)'));
|
|
||||||
var KnowledgeImportanceStatOne = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var KnowledgeDescriptionTwo = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
|
|
||||||
var KnowledgeImportanceStatTwo = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var KnowledgeDescriptionThree = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
|
|
||||||
var KnowledgeImportanceStatThree = element(by.css('#knowledgeid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var SkillsWidgetTitle = element(by.css('#skillsid > div > div'));
|
|
||||||
var SkillsImportanceHeader = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
|
|
||||||
var SkillsDescriptionOne = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span'));
|
|
||||||
var SkillsImportanceStatOne = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var SkillsDescriptionTwo = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
|
|
||||||
var SkillsImportanceStatTwo = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var SkillsDescriptionThree = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
|
|
||||||
var SkillsImportanceStatThree = element(by.css('#skillsid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var AbilityWidgetTitle = element(by.css('#abilitiesid > div > div'));
|
|
||||||
var AbilityImportanceHeader = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
|
|
||||||
var AbilityDescriptionOne = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span'));
|
|
||||||
var AbilityImportanceStatOne = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var AbilityDescriptionTwo = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
|
|
||||||
var AbilityImportanceStatTwo = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var AbilityDescriptionThree = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
|
|
||||||
var AbilityImportanceStatThree = element(by.css('#abilitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var TasksWidgetTitle = element(by.css('#tasksid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
|
||||||
var TasksCategoryHeader = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > thead > tr > th:nth-child(2)'));
|
|
||||||
var TasksImportanceHeader = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > thead > tr > th:nth-child(3)'));
|
|
||||||
var TasksDescriptionOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(1) > span > span'));
|
|
||||||
var TasksCategoryStatOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(2)'));
|
|
||||||
var TasksImportanceStatOne = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(3)'));
|
|
||||||
var TasksDescriptionTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(1) > span > span'));
|
|
||||||
var TasksCategoryStatTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(2)'));
|
|
||||||
var TasksImportanceStatTwo = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(3)'));
|
|
||||||
var TasksDescriptionThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(1) > span > span'));
|
|
||||||
var TasksCategoryStatThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(2)'));
|
|
||||||
var TasksImportanceStatThree = element(by.css('#tasksid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(3)'));
|
|
||||||
var WorkActivitiesWidgetTitle = element(by.css('#workActivitiesid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
|
||||||
var WorkActivitiesImportanceHeader = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > thead > tr > th.text-color-7a'));
|
|
||||||
var WorkActivitiesDescriptionOne = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.no-padding > span'));
|
|
||||||
var WorkActivitiesImportanceStatOne = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var WorkActivitiesDescriptionTwo = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.no-padding > span'));
|
|
||||||
var WorkActivitiesImportanceStatTwo = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var WorkActivitiesDescriptionThree = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.no-padding > span'));
|
|
||||||
var WorkActivitiesImportanceStatThree = element(by.css('#workActivitiesid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-center.text-color-7a.ng-binding'));
|
|
||||||
var TechnologyWidgetTitle = element(by.css('#technologyid > .widgetHeaderContainer > .jrnys_lead-body-copy'));
|
|
||||||
var TechnologyDescriptionOne = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td:nth-child(1) > span > span'));
|
|
||||||
var TechnologyStatOne = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(1) > td.text-left.text-color-7a > span > span > span'));
|
|
||||||
var TechnologyDescriptionTwo = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td:nth-child(1) > span > span'));
|
|
||||||
var TechnologyStatTwo = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(2) > td.text-left.text-color-7a > span > span > span'));
|
|
||||||
var TechnologyDescriptionThree = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td:nth-child(1) > span > span'));
|
|
||||||
var TechnologyStatThree = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(3) > td.text-left.text-color-7a > span > span > span'));
|
|
||||||
var TechnologyDescriptionFour = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(4) > td:nth-child(1) > span > span'));
|
|
||||||
var TechnologyStatFour = element(by.css('#technologyid > table > tbody > tr > td > div > div > div > table > tbody > tr:nth-child(4) > td.text-left.text-color-7a > span > span > span'));
|
|
||||||
var NearbyPlacesWidgetTitle = element(by.css('#liNearby .jrnys_lead-body-copy'));
|
|
||||||
var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerAndInformationSystemsManagersEllipsisIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas'));
|
|
||||||
var ComputerAndInformationSystemsManagersBackOfCardTitle = element(by.css('#territoryCardTitleHeader > div.territoryCardTitleText.ng-binding'));
|
|
||||||
var ComputerAndInformationSystemsManagersBackOfCardXIcon = element(by.css('#territoryCardTitleHeader > div:nth-child(2) > span'));
|
|
||||||
var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerNetworkArchitects = element(by.css('#fb2fabe5-621b-477e-948c-64d1fef31b95 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerNetworkSupportSpecialists = element(by.css('#b645081d-8b86-44b2-8d68-155c064edced > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
|
||||||
var ComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerProgrammers = element(by.css('#\\33 ce39f29-0e17-4472-8dba-682356e8df07 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ComputerScienceTeachersPostsecondary = element(by.css('#e867c7f0-c5e9-43ac-9dd3-82dd4dd62660 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DataWarehousingSpecialist = element(by.css('#\\34 9618b26-751c-4c6c-bb52-1773b0c84e68 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DatabaseAdministrator = element(by.css('#\\31 25099b5-7514-4a28-8c5f-776a0edd13c2 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DatabaseArchitects = element(by.css('#\\32 f5c1341-aaec-41f7-8d76-7fbe9c0497fa > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var GraphicDesigners = element(by.css('#cc7cc408-71ef-4390-b425-d03e24f8253a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var InformationSecurityAnalysts = element(by.css('#\\31 fe39d9e-c19d-45eb-bfef-f44e759a56d6 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var MultimediaArtistsAndAnimators = element(by.css('#\\32 a294540-b4cc-4886-a4de-edb17e7a748e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var NetworkAndComputerSystemsAdministrators = element(by.css('#ce3ef31a-9e4e-4ab8-a950-61b07731ad66 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SoftwareDevelopersApplications = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SoftwareDevelopersSystemsSoftware = element(by.css('#d1ab3735-cd9e-46aa-9046-76cd7122f4a8 > #territoryCardContainer .ng-binding'));
|
|
||||||
var TelecommunicationsEngineeringSpecialists = element(by.css('#\\35 3a78dab-253e-4962-a9a7-282e9b23493c > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DashboardHeaderLink = element(by.css('.ng-scope:nth-child(1) > a > span'));
|
|
||||||
var MyResourcesOneHeader = element(by.css('.col-xs-4:nth-child(1) .hotTitles'));
|
|
||||||
var MyResourcesOneSaveIcon = element(by.css('.col-xs-4:nth-child(1) .journey-save:nth-child(1)'));
|
|
||||||
var MyResourcesTwoHeader = element(by.css('.col-xs-4:nth-child(2) .hotTitles'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//At A Glance
|
|
||||||
expect(await AtAGlanceHeader.getText()).toEqual('At A Glance');
|
|
||||||
expect(await AtAGlanceHeaderOne.getText()).toEqual('Typical Degree');
|
|
||||||
expect(await AtAGlanceStatOne.getText()).toContain('College (4 Year) - 1%');
|
|
||||||
expect(await AtAGlanceStatOne.getText()).toContain('Doctoral degree - 1%');
|
|
||||||
expect(await AtAGlanceStatOne.getText()).toContain("Master's degree - 1%");
|
|
||||||
expect(await AtAGlanceHeaderTwo.getText()).toEqual('Average Annual Salary');
|
|
||||||
expect(await AtAGlanceStatTwo.getText()).toEqual('$114,520');
|
|
||||||
expect(await AtAGlanceHeaderThree.getText()).toEqual('Projected Growth');
|
|
||||||
expect(await AtAGlanceSubHeaderThree.getText()).toEqual(' ABOVE AVERAGE');
|
|
||||||
expect(await AtAGlanceStatThree.getText()).toContain(' ABOVE AVERAGE');
|
|
||||||
expect(await AtAGlanceStatThree.getText()).toContain('19.2%');
|
|
||||||
expect(await AtAGlanceHeaderFour.getText()).toEqual('Projected Job Openings');
|
|
||||||
expect(await AtAGlanceStatFour.getText()).toEqual('2,500');
|
|
||||||
expect(await AtAGlanceHeaderFive.getText()).toEqual('Currently Employed');
|
|
||||||
expect(await AtAGlanceStatFive.getText()).toEqual('27,900');
|
|
||||||
//Description
|
|
||||||
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await DescriptionDetail.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('Other Jobs:');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Computer Specialist; Control System Computer Scientist; HPC Applications Manager (High Performance Computing Applications Manager); Research Scientist; Scientific Programmer Analyst');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('O*NET SOC: 15-1111.00');
|
|
||||||
await XCloseLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.actions().mouseMove(VideoIcon).perform().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.actions().mouseMove(FollowIcon).perform().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.actions().mouseMove(JourneymanIcon).perform().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await Progress.getText()).toContain('PROGRESS');
|
|
||||||
expect(await Progress.getText()).toContain('COMPLETE');
|
|
||||||
expect(await Followers.getText()).toEqual('FOLLOWERS');
|
|
||||||
expect(await Confidence.getText()).toContain('YOUR CONFIDENCE');
|
|
||||||
expect(await Confidence.getText()).toContain('IS VERY CONFIDENT');
|
|
||||||
browser.executeScript('window.scrollTo(0, 780);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Personality
|
|
||||||
expect(await PersonalityWidgetTitle.getText()).toEqual('Personality');
|
|
||||||
expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.');
|
|
||||||
expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:');
|
|
||||||
expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking');
|
|
||||||
expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation');
|
|
||||||
expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail');
|
|
||||||
expect(await PersonalityBulletFour.getText()).toEqual('Independence');
|
|
||||||
expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort');
|
|
||||||
expect(await PersonalityBulletSix.getText()).toEqual('Initiative');
|
|
||||||
//Wages
|
|
||||||
expect(await WagesWidgetTitle.getText()).toEqual('Wages');
|
|
||||||
await WagesInfoIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await WagesWidgetBackOfCardTitle.getText()).toEqual('Wages');
|
|
||||||
expect(await WagesSubTextOne.getText()).toEqual('Data provided by the Bureau of Labor Statistics for SOC 15-1111.00.');
|
|
||||||
expect(await WagesSubTextTwo.getText()).toEqual('The graph is reflecting data based on BLS statistics of year 2019.');
|
|
||||||
expect(await WagesSubTextThree.getText()).toEqual('For more information please visit:');
|
|
||||||
expect(await WagesSubTextFour.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0');
|
|
||||||
expect(await WagesSubTextFive.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm19all.zip');
|
|
||||||
expect(await WagesSubTextSix.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm18all.zip');
|
|
||||||
expect(await WagesSubTextSeven.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm17all.zip');
|
|
||||||
await WagesWidgetCloseBackOfCardIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
browser.executeScript('window.scrollTo(0, 780);');
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toEqual('San Diego-Carlsbad, CA Metro Area');
|
|
||||||
//expect(await WagesTypeText.getText()).toEqual('4');//Can't ID
|
|
||||||
expect(await WagesHighText.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianText.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowText.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ZipCodeTextBoxText.getText()).toEqual('Zip Code');
|
|
||||||
await ZipCodeTextBox.click();
|
|
||||||
await ZipCodeTextBox.clear();
|
|
||||||
await ZipCodeTextBox.sendKeys('85013').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await ZipCodeApplyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ');
|
|
||||||
expect(await WagesHighText.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianText.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowText.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await StateDropDownText.getText()).toEqual('Or State');
|
|
||||||
element(by.cssContainingText('option', 'Oregon')).click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await StateDropDownApplyButton.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
|
||||||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
expect(await WagesXAxisFiveText.getText()).toEqual('$250,000');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await RateTypeText.getText()).toEqual('Rate Type');
|
|
||||||
expect(await HourlyButton.getText()).toEqual('Hourly');
|
|
||||||
expect(HourlyButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
expect(await AnnualButton.getText()).toEqual('Annual');
|
|
||||||
expect(AnnualButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
await HourlyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.executeScript('window.scrollTo(0, 780);');
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
|
||||||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$20');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$40');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$60');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$80');
|
|
||||||
expect(await WagesXAxisFiveText.getText()).toEqual('$100');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(HourlyButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(AnnualButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
await AnnualButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
|
||||||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
expect(await WagesXAxisFiveText.getText()).toEqual('$250,000');
|
|
||||||
//College Pathways
|
|
||||||
browser.executeScript('window.scrollTo(0, 1255);');
|
|
||||||
expect(await CollegePathwaysWidgetTitle.getText()).toEqual('College Pathways');
|
|
||||||
expect(await ComputerApplicationsMinorCollegeWide.getText()).toEqual('Computer Applications Minor—College-Wide');
|
|
||||||
expect(await ComputerScienceBS.getText()).toEqual('Computer Science B.S.');
|
|
||||||
expect(await ComputerScienceMinor.getText()).toEqual('Computer Science Minor');
|
|
||||||
await CollegePathwaysRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerScienceMS.getText()).toEqual('Computer Science M.S.');
|
|
||||||
browser.executeScript('window.scrollTo(0, 1890);').then(function() {
|
|
||||||
browser.sleep(2495);
|
|
||||||
});
|
|
||||||
//Certificates
|
|
||||||
expect(await CertificatesWidgetTitle.getText()).toEqual('Certificates');
|
|
||||||
expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect');
|
|
||||||
//expect(await CertificatesCardOneSubHeader.getText()).toEqual('Business Analysis'); Bug?
|
|
||||||
expect(await CertifiedAssociateLabVIEWDeveloper.getText()).toEqual('Certified Associate LabVIEW Developer');
|
|
||||||
//expect(await CertificatesCardTwoSubHeader.getText()).toEqual('Business Analysis'); Bug?
|
|
||||||
expect(await AvayaCertifiedExpert.getText()).toEqual('Avaya Certified Expert');
|
|
||||||
//expect(await CertificatesCardThreeSubHeader.getText()).toEqual('Business Financial Mgmt & Acctg'); Bug?
|
|
||||||
await CertificatesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CertifiedBiometricsProfessional.getText()).toEqual('Certified Biometrics Professional');
|
|
||||||
expect(await CertifiedSoftwareDevelopmentProfessional.getText()).toEqual('Certified Software Development Professional');
|
|
||||||
expect(await MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter.getText()).toEqual('Microsoft Server Virtualization with Windows Server Hyper-V and System Center');
|
|
||||||
browser.executeScript('window.scrollTo(0, 2525);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Institutions
|
|
||||||
expect(await InstitutionsWidgetTitle.getText()).toEqual('Institutions View All');
|
|
||||||
expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego');
|
|
||||||
await UniversityOfSanDiegoAtAGlanceIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardTitle.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCard4YearHeader.getText()).toEqual('4 Year');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCard4YearData.getText()).toEqual('Private nonprofit');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardUndergradHeader.getText()).toEqual('Undergraduate Students');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardUndergradData.getText()).toEqual('5,760');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardLocationHeader.getText()).toContain('Location');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardLocationData.getText()).toEqual('City');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardClassroomHeader.getText()).toContain('Classrooms');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardClassroomData.getText()).toEqual('Medium');
|
|
||||||
await UniversityOfSanDiegoBackOfCardXCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 2525);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await UniversityOfSanDiegoEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardTitleTwo.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await UniversityOfSanDiegoBackOfCardAtAGlanceIcon.getText()).toEqual('At A Glance');
|
|
||||||
expect(await NationalUniversity.getText()).toEqual('National University');
|
|
||||||
expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University');
|
|
||||||
await InstitutionsRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego');
|
|
||||||
expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University');
|
|
||||||
expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos');
|
|
||||||
browser.executeScript('window.scrollTo(0, 3160);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Top Resources
|
|
||||||
expect(await TopResourcesWidgetTitle.getText()).toEqual('Top Resources View All');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
|
||||||
expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist');
|
|
||||||
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await TopResourcesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesCardFourHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesCardFiveHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesCardSixHeader.getText()).toEqual('Arduino download link for Thinkabitlab');
|
|
||||||
await TopResourcesLeftScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesCardOneHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
|
||||||
expect(await TopResourcesCardTwoHeader.getText()).toEqual('How to Become a Research Scientist');
|
|
||||||
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
} else {
|
|
||||||
expect(await TopResourcesCardOneHeader.getText()).toEqual('How to Become a Research Scientist');
|
|
||||||
expect(await TopResourcesCardTwoHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
|
||||||
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await TopResourcesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesCardFourHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesCardFiveHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await TopResourcesLeftScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesCardOneHeader.getText()).toEqual('How to Become a Research Scientist');
|
|
||||||
expect(await TopResourcesCardTwoHeader.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
|
||||||
expect(await TopResourcesCardThreeHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await TopResourcesCardThreeSaveIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 3640);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Find Opportunities
|
|
||||||
expect(await FindOpportunitiesWidgetTitle.getText()).toEqual('Find Opportunities');
|
|
||||||
expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 50 mile radius of 92123.');
|
|
||||||
//expect(await JobsTotalsLink.getText()).toEqual('85');//stored value needed
|
|
||||||
await JobsTotalsLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//expect(await JobListingsDIVHeader.getText()).toEqual('Job Listings: 85');
|
|
||||||
await XCloseLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await InternshipsTotalsLink.getText()).toContain('Internships');
|
|
||||||
//expect(await InternshipsTotalsLink.getText()).toEqual('0');//stored value needed
|
|
||||||
expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');//value sometimes is disabled
|
|
||||||
//expect(await ApprenticeshipsTotalsLink.getText()).toEqual('0');//stored value needed
|
|
||||||
await FindOpportunitiesChangeLocationLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
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').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
element(by.cssContainingText('option', '1000')).click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await ChangeLocationApplyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await FindOpportunitiesSubText.getText()).toEqual('Great News! We found lots of opportunities within a 1000 mile radius of you.');
|
|
||||||
await JobsTotalsLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//expect(await JobListingsDIVHeader.getText()).toEqual('Job Listings: 85');//stored value needed
|
|
||||||
await XCloseLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
/*await InternshipsTotalsLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await InternshipsListingsDIVHeader.getText()).toEqual('Internships: ');//stored value needed
|
|
||||||
await XCloseLink.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});*/
|
|
||||||
//expect(await JobsTotalsLink.getText()).toEqual('85');//stored value needed
|
|
||||||
//expect(await JobsTotalsLink.getText()).toEqual('68');//stored value needed
|
|
||||||
expect(await InternshipsTotalsLink.getText()).toContain('Internships');
|
|
||||||
//expect(await InternshipsTotalsLink.getText()).toEqual('0');//stored value needed
|
|
||||||
expect(await ApprenticeshipsTotalsLink.getText()).toContain('Apprenticeships');
|
|
||||||
//expect(await Totals.getText()).toEqual('3');//stored value needed
|
|
||||||
//Submit A Resource
|
|
||||||
expect(await SubmitResourceWidgetTitle.getText()).toEqual('Submit a Resource');
|
|
||||||
expect(await SubmitResourceWidgetSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources");
|
|
||||||
expect(await TotalInJourneys.getText()).toContain('Total in Journeys');
|
|
||||||
expect(await TotalInJourneys.getText()).toContain('1');
|
|
||||||
await MySubmittedResourcesLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MySubmittedResourcesWidgetTitle.getText()).toEqual('My Submitted Resources');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await MyResourceTitle.getText()).toEqual('Test Doc');
|
|
||||||
} else {
|
|
||||||
expect(await MyResourceTitle.getText()).toEqual('Recommended Careers Doc');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await EllipsisResource.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourceFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await MyResourceLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
await XCloseLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ForThisMapPoint.getText()).toContain('For this map point');
|
|
||||||
expect(await ForThisMapPoint.getText()).toContain('0');
|
|
||||||
expect(await SubmitResourceWidgetSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.');
|
|
||||||
await SubmitAResourceWidgetButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SubmitAResourceDIVTitle.getText()).toEqual('Submit a Resource');
|
|
||||||
await SubmitAResourceDIVCancelButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 4118);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Knowledge
|
|
||||||
expect(await KnowledgeWidgetTitle.getText()).toEqual('Knowledge View All');
|
|
||||||
expect(await KnowledgeImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await KnowledgeDescriptionOne.getText()).toEqual('Computers and Electronics');
|
|
||||||
expect(await KnowledgeImportanceStatOne.getText()).toEqual('89%');
|
|
||||||
expect(await KnowledgeDescriptionTwo.getText()).toEqual('Mathematics');
|
|
||||||
expect(await KnowledgeImportanceStatTwo.getText()).toEqual('77%');
|
|
||||||
expect(await KnowledgeDescriptionThree.getText()).toEqual('Engineering and Technology');
|
|
||||||
expect(await KnowledgeImportanceStatThree.getText()).toEqual('74%');
|
|
||||||
//Skills
|
|
||||||
expect(await SkillsWidgetTitle.getText()).toEqual('Skills View All');
|
|
||||||
expect(await SkillsImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await SkillsDescriptionOne.getText()).toEqual('Complex Problem Solving');
|
|
||||||
expect(await SkillsImportanceStatOne.getText()).toEqual('75%');
|
|
||||||
expect(await SkillsDescriptionTwo.getText()).toEqual('Critical Thinking');
|
|
||||||
expect(await SkillsImportanceStatTwo.getText()).toEqual('75%');
|
|
||||||
expect(await SkillsDescriptionThree.getText()).toEqual('Judgment and Decision Making');
|
|
||||||
expect(await SkillsImportanceStatThree.getText()).toEqual('75%');
|
|
||||||
//Ability
|
|
||||||
expect(await AbilityWidgetTitle.getText()).toEqual('Ability View All');
|
|
||||||
expect(await AbilityImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await AbilityDescriptionOne.getText()).toEqual('Deductive Reasoning');
|
|
||||||
expect(await AbilityImportanceStatOne.getText()).toEqual('78%');
|
|
||||||
expect(await AbilityDescriptionTwo.getText()).toEqual('Inductive Reasoning');
|
|
||||||
expect(await AbilityImportanceStatTwo.getText()).toEqual('78%');
|
|
||||||
expect(await AbilityDescriptionThree.getText()).toEqual('Oral Comprehension');
|
|
||||||
expect(await AbilityImportanceStatThree.getText()).toEqual('75%');
|
|
||||||
//Tasks
|
|
||||||
expect(await TasksWidgetTitle.getText()).toEqual('Tasks View All');
|
|
||||||
expect(await TasksCategoryHeader.getText()).toEqual('Category');
|
|
||||||
expect(await TasksImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
browser.executeScript('window.scrollTo(0, 4220);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TasksDescriptionOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.');
|
|
||||||
expect(await TasksCategoryStatOne.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceStatOne.getText()).toEqual('81%');
|
|
||||||
expect(await TasksDescriptionTwo.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.');
|
|
||||||
expect(await TasksCategoryStatTwo.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceStatTwo.getText()).toEqual('72%');
|
|
||||||
expect(await TasksDescriptionThree.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.');
|
|
||||||
expect(await TasksCategoryStatThree.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceStatThree.getText()).toEqual('69%');
|
|
||||||
//Work Activities
|
|
||||||
expect(await WorkActivitiesWidgetTitle.getText()).toEqual('Work Activities View All');
|
|
||||||
expect(await WorkActivitiesImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await WorkActivitiesDescriptionOne.getText()).toEqual('Interacting With Computers');
|
|
||||||
expect(await WorkActivitiesImportanceStatOne.getText()).toEqual('99%');
|
|
||||||
expect(await WorkActivitiesDescriptionTwo.getText()).toEqual('Getting Information');
|
|
||||||
expect(await WorkActivitiesImportanceStatTwo.getText()).toEqual('91%');
|
|
||||||
expect(await WorkActivitiesDescriptionThree.getText()).toEqual('Making Decisions and Solving Problems');
|
|
||||||
expect(await WorkActivitiesImportanceStatThree.getText()).toEqual('91%');
|
|
||||||
//Technology
|
|
||||||
expect(await TechnologyWidgetTitle.getText()).toEqual('Technology View All');
|
|
||||||
expect(await TechnologyDescriptionOne.getText()).toEqual('Development environment software');
|
|
||||||
expect(await TechnologyStatOne.getText()).toEqual('Ada');
|
|
||||||
expect(await TechnologyDescriptionTwo.getText()).toEqual('Analytical or scientific software');
|
|
||||||
expect(await TechnologyStatTwo.getText()).toEqual('Advanced numerical software');
|
|
||||||
expect(await TechnologyDescriptionThree.getText()).toEqual('Data base management system software');
|
|
||||||
expect(await TechnologyStatThree.getText()).toEqual('Apache Cassandra ');
|
|
||||||
expect(await TechnologyDescriptionFour.getText()).toEqual('Operating system software');
|
|
||||||
expect(await TechnologyStatFour.getText()).toEqual('Bash ');
|
|
||||||
//Nearby Places
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await NearbyPlacesWidgetTitle.getText()).toEqual('Nearby Places');
|
|
||||||
expect(await ComputerAndInformationSystemsManagers.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
await ComputerAndInformationSystemsManagersEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
/* CAN'T CAPTURE
|
|
||||||
expect(await ComputerAndInformationSystemsManagersBackOfCardTitle.getText()).toEqual('2Computer and Information Systems Managers');
|
|
||||||
await ComputerAndInformationSystemsManagersBackOfCardXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});*/
|
|
||||||
expect(await ComputerNetworkArchitects.getText()).toEqual('Computer Network Architects');
|
|
||||||
expect(await ComputerNetworkSupportSpecialists.getText()).toEqual('Computer Network Support Specialists');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await ComputerProgrammers.getText()).toEqual('Computer Programmers');
|
|
||||||
expect(await ComputerScienceTeachersPostsecondary.getText()).toEqual('Computer Science Teachers, Postsecondary');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DataWarehousingSpecialist.getText()).toEqual('Data Warehousing Specialists');
|
|
||||||
expect(await DatabaseAdministrator.getText()).toEqual('Database Administrators');
|
|
||||||
expect(await DatabaseArchitects.getText()).toEqual('Database Architects');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await GraphicDesigners.getText()).toEqual('Graphic Designers');
|
|
||||||
expect(await InformationSecurityAnalysts.getText()).toEqual('Information Security Analysts');
|
|
||||||
expect(await MultimediaArtistsAndAnimators.getText()).toEqual('Multimedia Artists and Animators');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await NetworkAndComputerSystemsAdministrators.getText()).toEqual('Network and Computer Systems Administrators');
|
|
||||||
expect(await SoftwareDevelopersApplications.getText()).toEqual('Software Developers, Applications');
|
|
||||||
expect(await SoftwareDevelopersSystemsSoftware.getText()).toEqual('Software Developers, Systems Software');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TelecommunicationsEngineeringSpecialists.getText()).toEqual('Telecommunications Engineering Specialists');
|
|
||||||
//Remove Saved Resource from My Resources widget on dashboard
|
|
||||||
await DashboardHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 2362);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourcesOneHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await MyResourcesTwoHeader.getText()).toEqual('Test Doc');
|
|
||||||
await MyResourcesOneSaveIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.refresh().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 2362);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourcesOneHeader.getText()).toEqual('Test Doc');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut, should log out of journeysmap', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
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);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//loginWithInstitution_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['loginWithInstitution_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
loginWithInstitutionUsername: 'GNight147' //QA GNight147 //PROD ProdUser147
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
//loginWithInstitution_spec.js
|
|
||||||
|
|
||||||
describe('Login With Institution Script', function () {
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
var CloseIcon = element(by.css('.fas'));
|
|
||||||
var UsernameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
|
|
||||||
//Sign Up
|
|
||||||
LoginWithDuplicateAccount(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton);
|
|
||||||
|
|
||||||
function LoginWithDuplicateAccount(CloseIcon, UsernameTextBox, PasswordTextBox, NextButton) {
|
|
||||||
it(': Login; should attempt to log in with duplicate accont then reset new account password and complete Explore Careers task.', async function () {
|
|
||||||
var LoginPageGreetingText = element(by.css('.jmLoginTitle > .ng-scope'));
|
|
||||||
var InstitutionTextBox = element(by.css('#txtZ'));
|
|
||||||
var SubTextOne = element(by.css('.jmLoginMsg:nth-child(7) > div:nth-child(1)'));
|
|
||||||
var SubTextTwo = element(by.css('.jmLoginMsg:nth-child(7) > .ng-scope'));
|
|
||||||
var InstitutionDropDownList = element(by.css('.ng-scope > .ng-binding'));
|
|
||||||
var ValidationMessage = element(by.css('.ng-binding:nth-child(1)'));
|
|
||||||
var FogotPasswordLink = element(by.css('.ng-scope > a'));
|
|
||||||
//Reset Password
|
|
||||||
var ResetPasswordInstitutionTextBox = element(by.css('#txtZone'));
|
|
||||||
var ResetPasswordInstitutionDropDownList = element(by.css('.ng-binding:nth-child(1)'));
|
|
||||||
var ResetPasswordGreetingText = element(by.css('.jmLoginTitle'));
|
|
||||||
var ResetPasswordUsernameTextBox = element(by.css('#txtUsername'));
|
|
||||||
var ResetPasswordValidationMessage = element(by.css('.jmLoginMsg'));
|
|
||||||
//Journeys Dashboard
|
|
||||||
var JourneysDashboardGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
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);
|
|
||||||
browser.sleep(1000);
|
|
||||||
await UsernameTextBox.sendKeys(browser.params.loginWithInstitutionUsername).then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
UsernameTextBox.sendKeys(protractor.Key.TAB);
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('EDmin').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
|
||||||
});
|
|
||||||
await InstitutionTextBox.sendKeys('j').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
|
||||||
});
|
|
||||||
await InstitutionTextBox.sendKeys('o').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
|
||||||
});
|
|
||||||
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
|
||||||
await InstitutionTextBox.sendKeys('rn').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
|
||||||
});
|
|
||||||
await InstitutionTextBox.clear();
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
await InstitutionTextBox.sendKeys('journeys').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
|
||||||
});
|
|
||||||
await InstitutionDropDownList.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ValidationMessage.getText()).toEqual("Uh oh. Something isn't quite right. Please try again.");
|
|
||||||
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.');
|
|
||||||
await FogotPasswordLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Reset Password Page
|
|
||||||
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
|
||||||
await ResetPasswordUsernameTextBox.sendKeys('jhuerta').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(ResetPasswordInstitutionTextBox.isDisplayed()).toBe(false);
|
|
||||||
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.loginWithInstitutionUsername).then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(ResetPasswordInstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
expect(browser.isElementPresent(ResetPasswordValidationMessage)).toBe(false);
|
|
||||||
});
|
|
||||||
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
|
||||||
await ResetPasswordInstitutionTextBox.sendKeys('journeys').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(ResetPasswordInstitutionDropDownList.isDisplayed()).toBe(true);
|
|
||||||
});
|
|
||||||
await ResetPasswordInstitutionDropDownList.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(browser.isElementPresent(ResetPasswordInstitutionDropDownList)).toBe(false);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ResetPasswordGreetingText.getText()).toEqual("Can't Get Into Your Account?");
|
|
||||||
expect(await ResetPasswordValidationMessage.getText()).toEqual("Oops. Looks like we don't recognize your information. Please try again. Or contact help@journeysmap.com.");
|
|
||||||
await CloseIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
//Back to Login Page
|
|
||||||
expect(await LoginPageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
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.loginWithInstitutionUsername).then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('EDmin123').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(InstitutionTextBox.isDisplayed()).toBe(true);
|
|
||||||
await InstitutionTextBox.sendKeys('journeys').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(InstitutionDropDownList.isDisplayed()).toBe(true);
|
|
||||||
});
|
|
||||||
await InstitutionDropDownList.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
expect(browser.isElementPresent(InstitutionDropDownList)).toBe(false);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Journeys Dashboard
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
expect(await JourneysDashboardGreeting.getText()).toContain('Hi, ');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackground:nth-child(4)'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//myCareersWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['myCareersWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,559 +0,0 @@
|
|||||||
//myCareersWidget_spec.js
|
|
||||||
|
|
||||||
describe('My Careers Widget Script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
//<<<<DASHBOARD>>>>
|
|
||||||
MyCareersWidget();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function MyCareersWidget() {
|
|
||||||
it(': MyCareersWidget, should cycle through Recommended Careers carousel and click the View More link', async function () {
|
|
||||||
var WidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy'));
|
|
||||||
var AccountantsAndAuditors = element(by.css('#\\30 5b37b4f-c0c4-4bfc-bc52-374cd3c779a2 > #territoryCardContainer .ng-binding'));
|
|
||||||
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficers = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AdministrativeServicesManagers = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AdministrativeServicesManagersAtAGlanceIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer div > div > div > .territoryCardItemText'));
|
|
||||||
var AdministrativeServicesManagersTitle = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer #territoryCardTitleHeader > .territoryCardTitleText'));
|
|
||||||
var AdministrativeServicesManagersDescription = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardDescriptionText'));
|
|
||||||
var AdministrativeServicesManagersDegreeHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersDegreeDataOne = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersDegreeDataTwo = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersDegreeDataThree = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(4) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersSalaryHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(16) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersSalaryData = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(17) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersGrowthHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(19) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersGrowthDataOne = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(20) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersGrowthDataTwo = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(20) > td:nth-child(2) > div:nth-child(3)'));
|
|
||||||
var AdministrativeServicesManagersJobOpeningsHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(22) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersJobOpeningsData = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(23) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersEmployedHeader = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(25) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersEmployedData = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > territory-card-at-a-glance-back:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(26) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var AdministrativeServicesManagersCloseIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .glyphicon'));
|
|
||||||
var AdministrativeServicesManagersEllipsisIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer > div > div > div > .territoryCardIcon > .fas'));
|
|
||||||
var AdministrativeServicesManagersEllipsisTitle = element(by.css('.ng-scope > #territoryCardTitleHeader > .territoryCardTitleText'))
|
|
||||||
var AdministrativeServicesManagersLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(1) > .territoryCardBackOfCardItemText'));
|
|
||||||
var AdministrativeServicesManagersMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
|
|
||||||
var AdministrativeServicesManagersJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
|
|
||||||
var AdministrativeServicesManagersVideoIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
|
|
||||||
var AdministrativeServicesManagersVideoTitle = element(by.css('.modal-content .ng-binding'));
|
|
||||||
var AdministrativeServicesManagersVideoFooter = element(by.css('.modal-content div:nth-child(3)'));
|
|
||||||
var AdministrativeServicesManagersVideoCloseIcon = element(by.css('.close'));
|
|
||||||
var AdministrativeServicesManagersEllipsisCloseIcon = element(by.css('.ng-scope > #territoryCardTitleHeader .glyphicon'));
|
|
||||||
var AdministrativeServicesManagersBackOfCardLearnMoreIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText'));
|
|
||||||
var AdministrativeServicesManagersBackOfCardMapIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText'));
|
|
||||||
var AdministrativeServicesManagersBackOfCardJourneyIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(3) > .territoryCardActionBarText'));
|
|
||||||
var AdministrativeServicesManagersBackOfCardVideoIcon = element(by.css('#d64b79d0-cadf-4b66-afc1-ae35273f3a78 > #territoryCardContainer .territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText'));
|
|
||||||
var MyCareersWidgetClusterDIVTitle = element(by.css('.ng-scope > .territoryCardTitleText'));
|
|
||||||
var BusinessManagementAndAdministration = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(1) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
||||||
var GovernmentAndPublicAdministration = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(2) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
||||||
var HealthScience = element(by.css('.item:nth-child(1) > .col-xs-4:nth-child(3) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
||||||
var MyCareersWidgetDIVRightArrowIcon = element(by.css('td > .carousel > .right > .glyphicon'));
|
|
||||||
var TransportationDistributionAndLogistics = element(by.css('.item:nth-child(2) .ng-scope > div > .territoryCardTitleText > .ng-binding'));
|
|
||||||
var MyCareersWidgetDIVLeftArrowIcon = element(by.css('td > .carousel > .left > .glyphicon'));
|
|
||||||
var MyCareersWidgetDIVCardTwoSelectButton = element(by.css('.col-xs-4:nth-child(2) .btn'));
|
|
||||||
var MyCareersWidgetDIVLearnMoreTitle = element(by.css('td .jrnys_lead-body-copy'));
|
|
||||||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
|
||||||
var AirTrafficControllers = element(by.css('#\\30 2c1f459-be14-4ea7-8229-404af8ccb881 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CarrouselRightScroll = element(by.css('.glyphicon-chevron-right'));
|
|
||||||
var AircraftCargoHandlingSupervisors = element(by.css('#\\36 62659b9-7faa-4b77-bce1-b8f92bfe8573 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AirfieldOperationsSpecialists = element(by.css('#\\33 b760692-c82e-4868-98e1-f7a5fa410ab4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AppraisersAndAsessorsOfRealEstate = element(by.css('#\\33 05627a3-f43a-4946-b5d7-11e379ab613e > #territoryCardContainer .ng-binding'));
|
|
||||||
var ArchitectsExceptLandscapeAndNaval = element(by.css('#\\34 729871a-cff9-4010-8f1c-2688fe8c4def > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitecturalAndEngineeringManagers = element(by.css('#\\32 dbe648d-2f34-41d0-8ada-5042e198dbdc > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitecturalDrafters = element(by.css('#\\31 bb7457e-a632-4e39-90c4-b8cf6b3ddc9e > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AuthorizingOfficialDesignatingRepresentative = element(by.css('#ceff912f-2195-4cb7-b77a-87c3bd0792fe > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BiofuelsProductionManagers = element(by.css('#f76ab5f4-ba1c-4412-bacf-3fcd9a85b8cd > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ViewMoreLink = element(by.linkText('View More'));
|
|
||||||
var PageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
|
|
||||||
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer > div > div > div .journey-follow'));
|
|
||||||
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollowingCard = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer .territoryCardTitleText'))
|
|
||||||
var TransportationEngineers = element(by.css('#\\35 d25e23b-3acb-474c-807d-57e20f77cc18 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BiofuelsBiodieselTechnologyAndProductDevelopmentManagers = element(by.css('#\\36 c9e104c-d249-489b-a213-28bf2d8ba022 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BiomassPowerPlantManagers = element(by.css('#\\35 912ac34-0f3e-4f04-a3b3-d461906cdfd4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BrownfieldRedevelopmentSpecialistsAndSiteManagers = element(by.css('#d5efbdc8-6101-42d8-9c14-554b2fa2b149 > #territoryCardContainer .ng-binding'));
|
|
||||||
var BudgetAnalysts = element(by.css('#\\38 b96e4a3-bd76-4397-9b86-d8fcd0c6ed11 > #territoryCardContainer .ng-binding'));
|
|
||||||
var NavigationFooterBackArrowLink = element(by.linkText('«'));
|
|
||||||
var NavigationFooterOneLink = element(by.linkText('1'));
|
|
||||||
var NavigationFooterTwoLink = element(by.linkText('2'));
|
|
||||||
var NavigationFooterThreeLink = element(by.linkText('3'));
|
|
||||||
var NavigationFooterFourLink = element(by.linkText('4'));
|
|
||||||
var NavigationFooterFiveLink = element(by.linkText('5'));
|
|
||||||
var NavigationFooterNextLink = element(by.linkText('...'));
|
|
||||||
var NavigationFooterForwardArrowLink = element(by.linkText('»'));
|
|
||||||
var FilterIcon = element(by.css('.widgetControlContainer'));
|
|
||||||
var FilterTitle = element(by.css('.modal-content > .ng-scope > .ng-binding'));
|
|
||||||
var MyResultsHeader = element(by.css('#recommendedCareerFilter tr:nth-child(1) > td'));
|
|
||||||
var InterestSurveyResults = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(2)'));
|
|
||||||
var InterestSurveyResultsCheckBox = element(by.css('.ng-scope:nth-child(2) > td > input'));
|
|
||||||
var SkillsAssessmentResults = element(by.css('.ng-scope:nth-child(3) > .ng-binding:nth-child(2)'));
|
|
||||||
var SkillsAssessmentResultsCheckBox = element(by.css('.ng-scope:nth-child(3) > td > input'));
|
|
||||||
var MyFollowing = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(2)'));
|
|
||||||
var MyFollowingCheckBox = element(by.css('.ng-scope:nth-child(4) input'));
|
|
||||||
var JobPrepHeader = element(by.css('#recommendedCareerFilter tr:nth-child(5) > td'));
|
|
||||||
var MayRequireHighSchoolDiplomaOrGED = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(2)'));
|
|
||||||
var MayRequireHighSchoolDiplomaOrGEDCheckBox = element(by.css('.ng-scope:nth-child(6) input'));
|
|
||||||
var HighSchoolDiploma = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(2)'));
|
|
||||||
var HighSchoolDiplomaCheckBox = element(by.css('.ng-scope:nth-child(7) input'));
|
|
||||||
var VocationalTrainingOrAssociatesDegrees = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(2)'));
|
|
||||||
var VocationalTrainingOrAssociatesDegreesCheckBox = element(by.css('.ng-scope:nth-child(8) input'));
|
|
||||||
var FourYearBachelorDegrees = element(by.css('.ng-scope:nth-child(9) > .ng-binding'));
|
|
||||||
var FourYearBachelorDegreesCheckBox = element(by.css('.ng-scope:nth-child(9) input'));
|
|
||||||
var GraduateSchoolOrProfessionalDegree = element(by.css('.ng-scope:nth-child(10) > .ng-binding'));
|
|
||||||
var GraduateSchoolOrProfessionalDegreeCheckBox = element(by.css('.ng-scope:nth-child(10) input'));
|
|
||||||
var FitHeader = element(by.css('#recommendedCareerFilter tr:nth-child(11) > td'));
|
|
||||||
var Best = element(by.css('.ng-scope:nth-child(12) > .ng-binding'));
|
|
||||||
var BestCheckBox = element(by.css('.ng-scope:nth-child(12) input'));
|
|
||||||
var Great = element(by.css('.ng-scope:nth-child(13) > .ng-binding'));
|
|
||||||
var GreatCheckBOx = element(by.css('.ng-scope:nth-child(13) input'));
|
|
||||||
var Good = element(by.css('.ng-scope:nth-child(14) > .ng-binding'));
|
|
||||||
var GoodCheckBox = element(by.css('.ng-scope:nth-child(14) input'));
|
|
||||||
var CategoryHeader = element(by.css('#recommendedCareerFilter tr:nth-child(15) > td'));
|
|
||||||
var BrightOutlook = element(by.css('.ng-scope:nth-child(16) > .ng-binding'));
|
|
||||||
var BrightOutlookCheckBox = element(by.css('.ng-scope:nth-child(16) input'));
|
|
||||||
var Green = element(by.css('.ng-scope:nth-child(17) > .ng-binding'));
|
|
||||||
var GreenCheckBox = element(by.css('.ng-scope:nth-child(17) input'));
|
|
||||||
var Apprenticeships = element(by.css('.ng-scope:nth-child(18) > .ng-binding'));
|
|
||||||
var ApprenticeshipsCheckBox = element(by.css('.ng-scope:nth-child(18) input'));
|
|
||||||
var Following = element(by.css('.ng-scope:nth-child(19) > .ng-binding'));
|
|
||||||
var FollowingCheckBox = element(by.css('.ng-scope:nth-child(19) input'));
|
|
||||||
var SortHeader = element(by.css('#recommendedCareerFilter tr:nth-child(20) > td'));
|
|
||||||
var AtoZ = element(by.css('tr:nth-child(21) > td:nth-child(2)'));
|
|
||||||
var AtoZRadioButton = element(by.css('td > .ng-pristine'));
|
|
||||||
var ZtoA = element(by.css('#recommendedCareerFilter tr:nth-child(22) > td:nth-child(2)'));
|
|
||||||
var ZtoARadioButton = element(by.css('tr:nth-child(22) .ng-pristine'));
|
|
||||||
var FilterButton = element(by.css('td > .btn-info'));
|
|
||||||
var WindEngergyProjectManagers = element(by.css('#\\38 bcbe02a-c522-4035-b0e1-48534bdfc37a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var WholesaleAndRetailBuyersExceptFarmProducts = element(by.css('#a60d3e71-96fd-403f-a106-ed87f5982ada > #territoryCardContainer .territoryCardTitleText > .ng-binding'));//#\\39 a1cba50-6587-49a1-add0-dcc66a9bea71 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));//xpath('/html/body/div[1]/div/div[2]/div[2]/div/my-careers-view-all/div/div[2]/div/div/div/div/div[2]/div/div/career-territory-card/territory-card/div/div[1]/div[3]/div/div[2]/span'));
|
|
||||||
var TreasurersAndControllers = element(by.css('#\\33 1a506f8-ad4e-4af9-ba38-6e606ca7a7ed > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SupplyChainManagers = element(by.css('#dceb040f-09f8-494a-b9c8-83d8505a42ce > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var StorageAndDistributionManagers = element(by.css('#\\39 ea294f9-9db3-4ab6-a7dd-067b80405a33 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SolarSalesRepresentativesAndAssessors = element(by.css('#\\33 adce6b6-b036-4d4a-aa65-46cb7e1c4ac6 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SecurityManagers = element(by.css('#\\36 3acea9a-c270-448b-9dfd-7658b3f450db > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SecurityManagementSpecialists = element(by.css('#\\36 a0c385c-d021-482b-9060-da1e24db30e6 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SecurityControlAssessor = element(by.css('#\\33 395a07f-903a-45f1-bff2-c95731d20d52 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var SalesRepresentativesWholesaleAndManufacturingTechnicalAndScientificProducts = element(by.css('#\\36 eda517d-e387-431d-b054-ac1d3a0509b4 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var Roofers = element(by.css('#\\30 44ac138-048b-4c50-a6c3-43c0b45f3da9 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var RiskManagementSpecialists = element(by.css('#e195b9d2-6fc2-4545-b11b-be6b2c8f32ef > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ReinforcingIronAndRebarWorkers = element(by.css('#caedeec5-41a8-463d-ae37-466f78761764 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var QualityControlSystemsManagers = element(by.css('#\\35 893b6a5-7a8c-4649-8547-f8670e1567a5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var PropertyRealEstateAndCommunityAssociationManagers = element(by.css('#\\34 fdf35b5-6d72-4d30-8f42-4810ebaa159f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var FilterBubbleOne = element(by.css('.statusBtn:nth-child(1)'));
|
|
||||||
var FilterBubbleTwo = element(by.css('.statusBtn:nth-child(2)'));
|
|
||||||
var FilterBubbleThree = element(by.css('.statusBtn:nth-child(3)'));
|
|
||||||
var FilterBubbleFour = element(by.css('.statusBtn:nth-child(4)'));
|
|
||||||
var FilterBubbleFive = element(by.css('.statusBtn:nth-child(5)'));
|
|
||||||
var JobPrepFilterButton = element(by.css('.statusBtn:nth-child(1) > .xIcon'));
|
|
||||||
var ProgramManager = element(by.css('#\\31 466376d-10b5-4fb7-af75-86b76fadc4e5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var WidgetFilterIcon = element(by.css('.fa-sliders-h'));
|
|
||||||
var FilterButtonTwo = element(by.css('tr:nth-child(23) .btn-info'));
|
|
||||||
var RemoveZtoAFilterButton = element(by.css('.statusBtn:nth-child(2) > .xIcon'));
|
|
||||||
var RemoveShowMyResultsFilterButton = element(by.css('.xIcon'));
|
|
||||||
var AdministrativeLawJudgesAdjudicatorsAndHearingOfficersCard = element(by.css('#\\39 d53706e-b04f-4fcb-a36e-d9c48934c2e1 > #territoryCardContainer > div'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('My Careers View All');
|
|
||||||
expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors');
|
|
||||||
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
|
|
||||||
expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
|
|
||||||
expect(await AdministrativeServicesManagersAtAGlanceIcon.getText()).toContain('At a');
|
|
||||||
expect(await AdministrativeServicesManagersAtAGlanceIcon.getText()).toContain('Glance');
|
|
||||||
await AdministrativeServicesManagersAtAGlanceIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AdministrativeServicesManagersTitle.getText()).toEqual('Administrative Services Managers');
|
|
||||||
expect(await AdministrativeServicesManagersDescription.getText()).toEqual('Plan, direct, or coordinate one or more administrative services of an organization, such as records and information management, mail distribution, facilities planning and maintenance, custodial operations, and other office support services.');
|
|
||||||
expect(await AdministrativeServicesManagersDegreeHeader.getText()).toEqual('Typical Degree');
|
|
||||||
expect(await AdministrativeServicesManagersDegreeDataOne.getText()).toEqual('High school - 34%');
|
|
||||||
expect(await AdministrativeServicesManagersDegreeDataTwo.getText()).toEqual('College (4 Year) - 24%');
|
|
||||||
expect(await AdministrativeServicesManagersDegreeDataThree.getText()).toEqual('Professional degree certificate - 13%');
|
|
||||||
expect(await AdministrativeServicesManagersSalaryHeader.getText()).toEqual('Average Annual Salary');
|
|
||||||
expect(await AdministrativeServicesManagersSalaryData.getText()).toEqual('$94,020');
|
|
||||||
expect(await AdministrativeServicesManagersGrowthHeader.getText()).toEqual('Projected Growth');
|
|
||||||
expect(await AdministrativeServicesManagersGrowthDataOne.getText()).toEqual('10.1%');
|
|
||||||
expect(await AdministrativeServicesManagersGrowthDataTwo.getText()).toEqual('ABOVE AVERAGE');
|
|
||||||
expect(await AdministrativeServicesManagersJobOpeningsHeader.getText()).toEqual('Projected Job Openings');
|
|
||||||
expect(await AdministrativeServicesManagersJobOpeningsData.getText()).toEqual('26,200');
|
|
||||||
expect(await AdministrativeServicesManagersEmployedHeader.getText()).toEqual('Currently Employed');
|
|
||||||
expect(await AdministrativeServicesManagersEmployedData.getText()).toEqual('281,700');
|
|
||||||
await AdministrativeServicesManagersCloseIcon.click();
|
|
||||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await AdministrativeServicesManagersEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AdministrativeServicesManagersEllipsisTitle.getText()).toEqual('Administrative Services Managers');
|
|
||||||
expect(await AdministrativeServicesManagersLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await AdministrativeServicesManagersMapIcon.getText()).toEqual('Map');
|
|
||||||
expect(await AdministrativeServicesManagersJourneyIcon.getText()).toEqual('Journey');
|
|
||||||
expect(await AdministrativeServicesManagersVideoIcon.getText()).toEqual('Video');
|
|
||||||
await AdministrativeServicesManagersVideoIcon.click().then(function() {
|
|
||||||
browser.sleep(20000);
|
|
||||||
});
|
|
||||||
expect(await AdministrativeServicesManagersVideoTitle.getText()).toEqual('Administrative Services Managers');
|
|
||||||
expect(await AdministrativeServicesManagersVideoFooter.getText()).toEqual('Produced by CareerOneStop');
|
|
||||||
await AdministrativeServicesManagersVideoCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//expect(await AdministrativeServicesManagersAtAGlanceIcon.getText()).toEqual('At A Glance');
|
|
||||||
await AdministrativeServicesManagersEllipsisCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AdministrativeServicesManagersBackOfCardLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await AdministrativeServicesManagersBackOfCardMapIcon.getText()).toEqual('Map');
|
|
||||||
expect(await AdministrativeServicesManagersBackOfCardJourneyIcon.getText()).toEqual('Journey');
|
|
||||||
expect(await AdministrativeServicesManagersBackOfCardVideoIcon.getText()).toEqual('Video');
|
|
||||||
await AdministrativeServicesManagersBackOfCardLearnMoreIcon.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await MyCareersWidgetClusterDIVTitle.getText()).toEqual('Administrative Services Managers is found in a few different clusters. Select the cluster below that you would like to Learn More about:');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HealthScience.getText()).toEqual('Health Science');
|
|
||||||
await MyCareersWidgetDIVRightArrowIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TransportationDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
|
|
||||||
await MyCareersWidgetDIVLeftArrowIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await MyCareersWidgetDIVCardTwoSelectButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await MyCareersWidgetDIVLearnMoreTitle.getText()).toEqual('Administrative Services Managers');
|
|
||||||
await BackLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors');
|
|
||||||
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
|
|
||||||
expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
//expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Interest'); EDM-1726
|
|
||||||
//expect(await FirstOccupationCardBestFitIcon.getText()).toContain('Best Fit'); EDM-1726
|
|
||||||
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
|
|
||||||
await CarrouselRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers');
|
|
||||||
expect(await AircraftCargoHandlingSupervisors.getText()).toEqual('Aircraft Cargo Handling Supervisors');
|
|
||||||
expect(await AirfieldOperationsSpecialists.getText()).toEqual('Airfield Operations Specialists');
|
|
||||||
|
|
||||||
await CarrouselRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AppraisersAndAsessorsOfRealEstate.getText()).toEqual('Appraisers and Assessors of Real Estate');
|
|
||||||
expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval');
|
|
||||||
expect(await ArchitecturalAndEngineeringManagers.getText()).toEqual('Architectural and Engineering Managers');
|
|
||||||
await CarrouselRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters');
|
|
||||||
expect(await AuthorizingOfficialDesignatingRepresentative.getText()).toEqual('Authorizing Official/Designating Representative');
|
|
||||||
expect(await BiofuelsProductionManagers.getText()).toEqual('Biofuels Production Managers');
|
|
||||||
await CarrouselRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await BiofuelsBiodieselTechnologyAndProductDevelopmentManagers.getText()).toEqual('Biofuels/Biodiesel Technology and Product Development Managers');
|
|
||||||
expect(await BiomassPowerPlantManagers.getText()).toEqual('Biomass Power Plant Managers');
|
|
||||||
await ViewMoreLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await PageTitle.getText()).toEqual('My Careers');
|
|
||||||
expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors');
|
|
||||||
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
|
|
||||||
expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollowingCard.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
|
|
||||||
expect(await AirTrafficControllers.getText()).toEqual('Air Traffic Controllers');
|
|
||||||
browser.executeScript('window.scrollTo(0, 255);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AircraftCargoHandlingSupervisors.getText()).toEqual('Aircraft Cargo Handling Supervisors');
|
|
||||||
expect(await AirfieldOperationsSpecialists.getText()).toEqual('Airfield Operations Specialists');
|
|
||||||
expect(await AppraisersAndAsessorsOfRealEstate.getText()).toEqual('Appraisers and Assessors of Real Estate');
|
|
||||||
expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval');
|
|
||||||
browser.executeScript('window.scrollTo(0, 725);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ArchitecturalAndEngineeringManagers.getText()).toEqual('Architectural and Engineering Managers');
|
|
||||||
expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters');
|
|
||||||
expect(await AuthorizingOfficialDesignatingRepresentative.getText()).toEqual('Authorizing Official/Designating Representative');
|
|
||||||
expect(await BiofuelsProductionManagers.getText()).toEqual('Biofuels Production Managers');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await BiofuelsBiodieselTechnologyAndProductDevelopmentManagers.getText()).toEqual('Biofuels/Biodiesel Technology and Product Development Managers');
|
|
||||||
expect(await BiomassPowerPlantManagers.getText()).toEqual('Biomass Power Plant Managers');
|
|
||||||
expect(await BrownfieldRedevelopmentSpecialistsAndSiteManagers.getText()).toEqual('Brownfield Redevelopment Specialists and Site Managers');
|
|
||||||
expect(await BudgetAnalysts.getText()).toEqual('Budget Analysts');
|
|
||||||
expect(await NavigationFooterBackArrowLink.getText()).toEqual('«');
|
|
||||||
expect(await NavigationFooterOneLink.getText()).toEqual('1');
|
|
||||||
expect(await NavigationFooterTwoLink.getText()).toEqual('2');
|
|
||||||
expect(await NavigationFooterThreeLink.getText()).toEqual('3');
|
|
||||||
expect(await NavigationFooterFourLink.getText()).toEqual('4');
|
|
||||||
expect(await NavigationFooterFiveLink.getText()).toEqual('5');
|
|
||||||
expect(await NavigationFooterNextLink.getText()).toEqual('...');
|
|
||||||
expect(await NavigationFooterForwardArrowLink.getText()).toEqual('»');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await FilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await FilterTitle.getText()).toEqual('Filter');
|
|
||||||
expect(await MyResultsHeader.getText()).toEqual('My Results');
|
|
||||||
expect(await InterestSurveyResults.getText()).toContain('Interest Survey Results (');
|
|
||||||
expect(await SkillsAssessmentResults.getText()).toContain('Skills Matcher Results (');
|
|
||||||
await SkillsAssessmentResultsCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await MyFollowing.getText()).toContain('My Following (');
|
|
||||||
expect(await JobPrepHeader.getText()).toEqual('Job Prep');
|
|
||||||
expect(await MayRequireHighSchoolDiplomaOrGED.getText()).toContain('May Require High School Diploma or GED (');
|
|
||||||
await MayRequireHighSchoolDiplomaOrGEDCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await HighSchoolDiploma.getText()).toContain('High School Diploma (');
|
|
||||||
expect(await VocationalTrainingOrAssociatesDegrees.getText()).toContain('Vocational Training or Associates Degree (');
|
|
||||||
expect(await FourYearBachelorDegrees.getText()).toContain('4 Year Bachelor Degree (');
|
|
||||||
expect(await GraduateSchoolOrProfessionalDegree.getText()).toContain('Graduate School or Professional Degree (');
|
|
||||||
expect(await FitHeader.getText()).toEqual('Fit');
|
|
||||||
expect(await Best.getText()).toContain('Best (');
|
|
||||||
await BestCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await Great.getText()).toContain('Great (');
|
|
||||||
expect(await Good.getText()).toContain('Good (');
|
|
||||||
await GoodCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CategoryHeader.getText()).toEqual('Category');
|
|
||||||
expect(await BrightOutlook.getText()).toContain('Bright Outlook (');
|
|
||||||
expect(await Green.getText()).toContain('Green (');
|
|
||||||
expect(await Apprenticeships.getText()).toContain('Apprenticeship (');
|
|
||||||
expect(await Following.getText()).toContain('Following (');
|
|
||||||
await FollowingCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await SortHeader.getText()).toEqual('Sort');
|
|
||||||
expect(await AtoZ.getText()).toEqual('A to Z');
|
|
||||||
expect(await ZtoA.getText()).toEqual('Z to A');
|
|
||||||
await ZtoARadioButton.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await FilterButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await FilterBubbleOne.getText()).toEqual('Job PrepX');
|
|
||||||
expect(await FilterBubbleTwo.getText()).toEqual('FitX');
|
|
||||||
expect(await FilterBubbleThree.getText()).toEqual('My ResultsX');
|
|
||||||
expect(await FilterBubbleFour.getText()).toEqual('CategoryX');
|
|
||||||
expect(await FilterBubbleFive.getText()).toEqual('Z to AX');
|
|
||||||
expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers');
|
|
||||||
expect(await WholesaleAndRetailBuyersExceptFarmProducts.getText()).toEqual('Wholesale and Retail Buyers, Except Farm Products');
|
|
||||||
expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers');
|
|
||||||
expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers');
|
|
||||||
browser.executeScript('window.scrollTo(0, 255);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SupplyChainManagers.getText()).toEqual('Supply Chain Managers');
|
|
||||||
expect(await StorageAndDistributionManagers.getText()).toEqual('Storage and Distribution Managers');
|
|
||||||
expect(await SolarSalesRepresentativesAndAssessors.getText()).toEqual('Solar Sales Representatives and Assessors');
|
|
||||||
expect(await SecurityManagers.getText()).toEqual('Security Managers');
|
|
||||||
browser.executeScript('window.scrollTo(0, 725);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SecurityManagementSpecialists.getText()).toEqual('Security Management Specialists');
|
|
||||||
expect(await SecurityControlAssessor.getText()).toEqual('Security Control Assessor');
|
|
||||||
expect(await SalesRepresentativesWholesaleAndManufacturingTechnicalAndScientificProducts.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products');
|
|
||||||
expect(await Roofers.getText()).toEqual('Roofers');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await RiskManagementSpecialists.getText()).toEqual('Risk Management Specialists');
|
|
||||||
expect(await ReinforcingIronAndRebarWorkers.getText()).toEqual('Reinforcing Iron and Rebar Workers');
|
|
||||||
expect(await QualityControlSystemsManagers.getText()).toEqual('Quality Control Systems Managers');
|
|
||||||
expect(await PropertyRealEstateAndCommunityAssociationManagers.getText()).toEqual('Property, Real Estate, and Community Association Managers');
|
|
||||||
expect(await NavigationFooterBackArrowLink.getText()).toEqual('«');
|
|
||||||
expect(await NavigationFooterOneLink.getText()).toEqual('1');
|
|
||||||
expect(await NavigationFooterTwoLink.getText()).toEqual('2');
|
|
||||||
expect(await NavigationFooterThreeLink.getText()).toEqual('3');
|
|
||||||
expect(await NavigationFooterFourLink.getText()).toEqual('4');
|
|
||||||
expect(await NavigationFooterFiveLink.getText()).toEqual('5');
|
|
||||||
expect(await NavigationFooterForwardArrowLink.getText()).toEqual('»');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await JobPrepFilterButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await FilterBubbleOne.getText()).toEqual('FitX');
|
|
||||||
expect(await FilterBubbleTwo.getText()).toEqual('My ResultsX');
|
|
||||||
expect(await FilterBubbleThree.getText()).toEqual('CategoryX');
|
|
||||||
expect(await FilterBubbleFour.getText()).toEqual('Z to AX');
|
|
||||||
expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers');
|
|
||||||
expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers');
|
|
||||||
expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers');
|
|
||||||
expect(await SupplyChainManagers.getText()).toEqual('Supply Chain Managers');
|
|
||||||
browser.executeScript('window.scrollTo(0, 255);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await StorageAndDistributionManagers.getText()).toEqual('Storage and Distribution Managers');
|
|
||||||
expect(await SolarSalesRepresentativesAndAssessors.getText()).toEqual('Solar Sales Representatives and Assessors');
|
|
||||||
expect(await SecurityManagers.getText()).toEqual('Security Managers');
|
|
||||||
expect(await SecurityManagementSpecialists.getText()).toEqual('Security Management Specialists');
|
|
||||||
browser.executeScript('window.scrollTo(0, 725);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SecurityControlAssessor.getText()).toEqual('Security Control Assessor');
|
|
||||||
expect(await SalesRepresentativesWholesaleAndManufacturingTechnicalAndScientificProducts.getText()).toEqual('Sales Representatives, Wholesale and Manufacturing, Technical and Scientific Products');
|
|
||||||
expect(await Roofers.getText()).toEqual('Roofers');
|
|
||||||
expect(await RiskManagementSpecialists.getText()).toEqual('Risk Management Specialists');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ReinforcingIronAndRebarWorkers.getText()).toEqual('Reinforcing Iron and Rebar Workers');
|
|
||||||
expect(await QualityControlSystemsManagers.getText()).toEqual('Quality Control Systems Managers');
|
|
||||||
expect(await PropertyRealEstateAndCommunityAssociationManagers.getText()).toEqual('Property, Real Estate, and Community Association Managers');
|
|
||||||
expect(await ProgramManager.getText()).toEqual('Program Manager');
|
|
||||||
expect(await NavigationFooterBackArrowLink.getText()).toEqual('«');
|
|
||||||
expect(await NavigationFooterOneLink.getText()).toEqual('1');
|
|
||||||
expect(await NavigationFooterTwoLink.getText()).toEqual('2');
|
|
||||||
expect(await NavigationFooterThreeLink.getText()).toEqual('3');
|
|
||||||
expect(await NavigationFooterFourLink.getText()).toEqual('4');
|
|
||||||
expect(await NavigationFooterFiveLink.getText()).toEqual('5');
|
|
||||||
expect(await NavigationFooterForwardArrowLink.getText()).toEqual('»');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await BackLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 1250);').then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await FilterBubbleOne.getText()).toEqual('FitX');
|
|
||||||
expect(await FilterBubbleTwo.getText()).toEqual('My ResultsX');
|
|
||||||
expect(await FilterBubbleThree.getText()).toEqual('CategoryX');
|
|
||||||
expect(await FilterBubbleFour.getText()).toEqual('Z to AX');
|
|
||||||
expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers');
|
|
||||||
expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers');
|
|
||||||
expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers');
|
|
||||||
await WidgetFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await BestCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await GoodCheckBox.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await Following.getText()).toContain('Following (');
|
|
||||||
await FollowingCheckBox.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await FilterButtonTwo.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await FilterBubbleOne.getText()).toEqual('My ResultsX');
|
|
||||||
expect(await FilterBubbleTwo.getText()).toEqual('Z to AX');
|
|
||||||
expect(await WindEngergyProjectManagers.getText()).toEqual('Wind Energy Project Managers');
|
|
||||||
expect(await TreasurersAndControllers.getText()).toEqual('Treasurers and Controllers');
|
|
||||||
expect(await TransportationEngineers.getText()).toEqual('Transportation Engineers');
|
|
||||||
await RemoveZtoAFilterButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await FilterBubbleOne.getText()).toEqual('My ResultsX');
|
|
||||||
expect(await ArchitectsExceptLandscapeAndNaval.getText()).toEqual('Architects, Except Landscape and Naval');
|
|
||||||
expect(await ArchitecturalDrafters.getText()).toEqual('Architectural Drafters');
|
|
||||||
expect(await AuthorizingOfficialDesignatingRepresentative.getText()).toEqual('Authorizing Official/Designating Representative');
|
|
||||||
await RemoveShowMyResultsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await AccountantsAndAuditors.getText()).toEqual('Accountants and Auditors');
|
|
||||||
expect(await AdministrativeLawJudgesAdjudicatorsAndHearingOfficers.getText()).toEqual('Administrative Law Judges, Adjudicators, and Hearing Officers');
|
|
||||||
expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await AdministrativeLawJudgesAdjudicatorsAndHearingOfficersCard.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(AdministrativeLawJudgesAdjudicatorsAndHearingOfficersFollow.getCssValue('color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await AdministrativeServicesManagers.getText()).toEqual('Administrative Services Managers');
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//myJourneysWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['myJourneysWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,419 +0,0 @@
|
|||||||
//myJourneysWidget_spec.js
|
|
||||||
|
|
||||||
describe('My Journeys Widget script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
MyJourneysWidget();
|
|
||||||
MyJourneysPage();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function MyJourneysWidget() {
|
|
||||||
it(': MyJourneys, should scroll to My Journeys widget on dashboard select 4th journey, view, then validate journey', async function () {
|
|
||||||
var WidgetTitle = element(by.css('#myjourneys > .jrnys_lead-body-copy > span:nth-child(1)'));
|
|
||||||
var LatestJourneyTitle = element(by.css('.borderTop .jrnys_body-copy'));
|
|
||||||
var LatestJourneyLearnMoreLink = element(by.css('.borderTop > #appendHere > .jrnys_support-text'));
|
|
||||||
var LatestJourneyStepCount = element(by.css('.borderTop'));
|
|
||||||
var ThirdJourneyInfo = element(by.css('.hideSmallRange > div'));
|
|
||||||
var SecondJourneyInfo = element(by.css('.hideMidRange > div'));
|
|
||||||
var SelectedJourneyTitle = element(by.css('.col-md-12 > .ng-binding'));
|
|
||||||
var SelectedJourneySubTitle = element(by.css('.select-waypointTitle'));
|
|
||||||
var SelectedJourneySubText = element(by.css('.details-resourceRowTitle'))
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
var SelectedJourneyResourceTitleOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleFive = element(by.css('.col-md-12:nth-child(6) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeFive = element(by.css('.col-md-12:nth-child(6) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleSix = element(by.css('.col-md-12:nth-child(7) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeSix = element(by.css('.col-md-12:nth-child(7) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleSeven = element(by.css('.col-md-12:nth-child(8) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeSeven = element(by.css('.col-md-12:nth-child(8) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleEight = element(by.css('.col-md-12:nth-child(9) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeEight = element(by.css('.col-md-12:nth-child(9) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleNine = element(by.css('.col-md-12:nth-child(10) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeNine = element(by.css('.col-md-12:nth-child(10) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceNone = element(by.css('.col-md-12 > .col-md-12'));
|
|
||||||
var SelectedJourneyRightArrow = element(by.css('.glyphicon-menu-right'));
|
|
||||||
var OldestJourneyInfo = element(by.css('.journeyListWidgetJourneyContainer:nth-child(4) > div'));
|
|
||||||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 3473);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('My Journeys');
|
|
||||||
expect(await LatestJourneyTitle.getText()).toContain('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
expect(await LatestJourneyLearnMoreLink.getText()).toContain('Learn More');
|
|
||||||
expect(await LatestJourneyStepCount.getText()).toContain('5 steps (0 Complete)');
|
|
||||||
expect(await ThirdJourneyInfo.getText()).toContain('8 to Airfield Operations Specialists through College');
|
|
||||||
expect(await ThirdJourneyInfo.getText()).toContain('Learn More');
|
|
||||||
expect(await ThirdJourneyInfo.getText()).toContain('7 steps (0 Complete)');
|
|
||||||
expect(await SecondJourneyInfo.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
||||||
expect(await SecondJourneyInfo.getText()).toContain('Learn More');
|
|
||||||
expect(await SecondJourneyInfo.getText()).toContain('5 steps (0 Complete)');
|
|
||||||
expect(await OldestJourneyInfo.getText()).toContain('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
|
|
||||||
expect(await OldestJourneyInfo.getText()).toContain('Learn More');
|
|
||||||
expect(await OldestJourneyInfo.getText()).toContain('13 steps (0 Complete)');
|
|
||||||
await SecondJourneyInfo.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneyTitle.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('10');
|
|
||||||
expect(await SelectedJourneySubText.getText()).toEqual('Try these resources');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('cnn');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('10th Grade Class Science Project');
|
|
||||||
expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('11');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('This is CNN');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('just juan testing');
|
|
||||||
expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('fdg');
|
|
||||||
expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('cnn');
|
|
||||||
expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('12');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('cnn');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('Computer Security Graduate Certificate');
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Computer and Information Systems Managers (Business, Management and Administration)');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML');
|
|
||||||
expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('Save');
|
|
||||||
expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('Gave');
|
|
||||||
expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleFive.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeFive.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleSix.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeSix.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleSeven.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeSeven.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Computer and Information Systems Managers (Business, Management and Administration)');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML');
|
|
||||||
expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleFive.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeFive.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleSix.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeSix.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleSeven.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeSeven.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleEight.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeEight.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleNine.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
expect(await SelectedJourneyResourceTypeNine.getText()).toEqual('Type:');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await BackLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 3473);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('My Journeys');
|
|
||||||
expect(await LatestJourneyTitle.getText()).toContain('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
expect(await LatestJourneyLearnMoreLink.getText()).toContain('Learn More');
|
|
||||||
expect(await LatestJourneyStepCount.getText()).toContain('5 steps (0 Complete)');
|
|
||||||
expect(await ThirdJourneyInfo.getText()).toContain('8 to Airfield Operations Specialists through College');
|
|
||||||
expect(await ThirdJourneyInfo.getText()).toContain('Learn More');
|
|
||||||
expect(await ThirdJourneyInfo.getText()).toContain('7 steps (0 Complete)');
|
|
||||||
expect(await SecondJourneyInfo.getText()).toContain('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
||||||
expect(await SecondJourneyInfo.getText()).toContain('Learn More');
|
|
||||||
expect(await SecondJourneyInfo.getText()).toContain('5 steps (0 Complete)');
|
|
||||||
expect(await OldestJourneyInfo.getText()).toContain('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
|
|
||||||
expect(await OldestJourneyInfo.getText()).toContain('Learn More');
|
|
||||||
expect(await OldestJourneyInfo.getText()).toContain('13 steps (0 Complete)');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function MyJourneysPage() {
|
|
||||||
it(': MyJourneysPage, should navigate to My Journeys page, view first latest journey on map', async function () {
|
|
||||||
var MyJourneysHeaderLink = element(by.css('#nbMyJourneys span'));
|
|
||||||
var PageTitle = element(by.css('.jrnys_lead-body-copy'));
|
|
||||||
var PageSubTitle = element(by.css('.col-md-10 .ng-scope:nth-child(1)'));
|
|
||||||
var SavedJourneyTitleOne = element(by.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]"));
|
|
||||||
var SelectedJourneyBubbleOne = element(by.css('#mCSB_6_container > .firstWaypoint .lblClass'));
|
|
||||||
var SelectedJourneyBubbleTwo = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(2) .lblClass'));
|
|
||||||
var SelectedJourneyBubbleThree = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(3) .lblClass'));
|
|
||||||
var SelectedJourneyBubbleFourOne = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(4) .lblClass:nth-child(1)'));
|
|
||||||
var SelectedJourneyBubbleFourTwo = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(4) .lblClass:nth-child(2)'));
|
|
||||||
var SelectedJourneyBubbleFourThree = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(4) .lblClass:nth-child(3)'));
|
|
||||||
var SelectedJourneyBubbleFiveOne = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(1)'));
|
|
||||||
var SelectedJourneyBubbleFiveTwo = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(2)'));
|
|
||||||
var SelectedJourneyBubbleFiveThree = element(by.css('#mCSB_6_container > .fullSize-Journey:nth-child(5) .lblClass:nth-child(3)'));
|
|
||||||
var SavedJourneyTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]"));
|
|
||||||
var SavedJourneyTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]"));
|
|
||||||
var SavedJourneyTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]"));
|
|
||||||
var SelectedJourneyTitle = element(by.css('.col-md-12 > .ng-binding'));
|
|
||||||
var SelectedJourneySubTitle = element(by.css('.select-waypointTitle'));
|
|
||||||
var SelectedJourneySubText = element(by.css('.details-resourceRowTitle'))
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
var SelectedJourneyResourceTitleOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeOne = element(by.css('.col-md-12:nth-child(2) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeTwo = element(by.css('.col-md-12:nth-child(3) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeThree = element(by.css('.col-md-12:nth-child(4) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceTitleFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTitleRow'));
|
|
||||||
var SelectedJourneyResourceTypeFour = element(by.css('.col-md-12:nth-child(5) > .col-md-10 > .relatedResourceTypeRow'));
|
|
||||||
var SelectedJourneyResourceNone = element(by.css('.col-md-12 > .col-md-12'));
|
|
||||||
var SelectedJourneyRightArrow = element(by.css('.glyphicon-menu-right'));
|
|
||||||
var JourneyLearnMoreSubTitle = element(by.css('.details-resourceRowTitle'));
|
|
||||||
var ViewOnMapButton = element(by.css('.col-md-4 > .btn-info'));
|
|
||||||
var JourneyViewOnMapTitle = element(by.css('div:nth-child(2) > .ng-binding'));
|
|
||||||
var JourneyTitleOnMap = element(by.css('#journey-view-single > .side-bar-child-text'));
|
|
||||||
var EditJourneyLinkText = element(by.linkText('Edit Journey'));
|
|
||||||
var JourneyClusterOne = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyPathwayOne = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneyClusterTwo = element(by.css('#journeyViewToolTip_1 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyPathwayTwo = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneyClusterThree = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyPathwayThree = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneyClusterFour = element(by.css('#journeyViewToolTip_3 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyPathwayFour = element(by.css('#journeyViewToolTip_3 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneyClusterFive = element(by.css('#journeyViewToolTip_4 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyPathwayFive = element(by.css('#journeyViewToolTip_4 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var HowAmIDoingButton = element(by.css('.btn-success'));
|
|
||||||
var DIVTitle = element(by.css('h2'));
|
|
||||||
var DIVSubTitle = element(by.css('p:nth-child(7)'));
|
|
||||||
var DIVOKButton = element(by.css('.confirm'));
|
|
||||||
var DIVCancelButton = element(by.css('.cancel'));
|
|
||||||
var RemoveJourneyButton = element(by.css('#saveJourneyButton'));
|
|
||||||
|
|
||||||
await MyJourneysHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
await expect(PageTitle.getText()).toEqual('My Saved Journeys');
|
|
||||||
expect(await PageSubTitle.getText()).toEqual('Select a Journey to show it on the map');
|
|
||||||
expect(await SavedJourneyTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
expect(await SelectedJourneyBubbleOne.getText()).toEqual('11');
|
|
||||||
expect(await SelectedJourneyBubbleTwo.getText()).toEqual('12');
|
|
||||||
expect(await SelectedJourneyBubbleThree.getText()).toEqual('M.U.R.P.');
|
|
||||||
expect(await SelectedJourneyBubbleFourOne.getText()).toEqual('Personal');
|
|
||||||
expect(await SelectedJourneyBubbleFourTwo.getText()).toEqual('Fitness');
|
|
||||||
expect(await SelectedJourneyBubbleFourThree.getText()).toEqual('Trainer');
|
|
||||||
expect(await SelectedJourneyBubbleFiveOne.getText()).toEqual('Fitness and');
|
|
||||||
expect(await SelectedJourneyBubbleFiveTwo.getText()).toEqual('Wellness');
|
|
||||||
expect(await SelectedJourneyBubbleFiveThree.getText()).toEqual('Coordinators');
|
|
||||||
expect(await SavedJourneyTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College');
|
|
||||||
expect(await SavedJourneyTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
||||||
expect(await SavedJourneyTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
|
|
||||||
await SavedJourneyTitleOne.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneyTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('11');
|
|
||||||
expect(await SelectedJourneySubText.getText()).toEqual('Try these resources');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('This is CNN');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('just juan testing');
|
|
||||||
expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('fdg');
|
|
||||||
expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleFour.getText()).toEqual('cnn');
|
|
||||||
expect(await SelectedJourneyResourceTypeFour.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('12');
|
|
||||||
expect(await SelectedJourneySubText.getText()).toEqual('Try these resources');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('cnn');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('M.U.R.P.');
|
|
||||||
expect(await SelectedJourneySubText.getText()).toEqual('Try these resources');
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('Personal Fitness Trainer');
|
|
||||||
expect(await SelectedJourneySubText.getText()).toEqual('Try these resources');
|
|
||||||
expect(await SelectedJourneyResourceNone.getText()).toEqual('Sorry, no related resources!');
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneySubTitle.getText()).toEqual('Fitness and Wellness Coordinators');
|
|
||||||
expect(await SelectedJourneySubText.getText()).toEqual('Try these resources');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Fitness and Wellness Coordinators (Education and Training)');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML');
|
|
||||||
expect(await SelectedJourneyResourceTitleTwo.getText()).toEqual('test');
|
|
||||||
expect(await SelectedJourneyResourceTypeTwo.getText()).toEqual('Type:');
|
|
||||||
expect(await SelectedJourneyResourceTitleThree.getText()).toEqual('222');
|
|
||||||
expect(await SelectedJourneyResourceTypeThree.getText()).toEqual('Type:');
|
|
||||||
} else {
|
|
||||||
expect(await SelectedJourneyResourceTitleOne.getText()).toEqual('Fitness and Wellness Coordinators (Education and Training)');
|
|
||||||
expect(await SelectedJourneyResourceTypeOne.getText()).toEqual('Type: HTML');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await SelectedJourneyRightArrow.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await JourneyLearnMoreSubTitle.getText()).toEqual('Try these resources');
|
|
||||||
await ViewOnMapButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneyViewOnMapTitle.getText()).toEqual('Journey View');
|
|
||||||
expect(await JourneyTitleOnMap.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
expect(await EditJourneyLinkText.getText()).toEqual('Edit Journey');
|
|
||||||
expect(await JourneyClusterOne.getText()).toEqual('HS');
|
|
||||||
expect(await JourneyPathwayOne.getText()).toEqual('11');
|
|
||||||
expect(await JourneyClusterTwo.getText()).toEqual('HS');
|
|
||||||
expect(await JourneyPathwayTwo.getText()).toEqual('12');
|
|
||||||
expect(await JourneyClusterThree.getText()).toEqual('Public Administration');
|
|
||||||
expect(await JourneyPathwayThree.getText()).toEqual('M.U.R.P.');
|
|
||||||
expect(await JourneyClusterFour.getText()).toEqual('International Fitness Professional Association');
|
|
||||||
expect(await JourneyPathwayFour.getText()).toEqual('Personal Fitness Trainer');
|
|
||||||
expect(await JourneyClusterFive.getText()).toEqual('Administration & Admin Support');
|
|
||||||
expect(await JourneyPathwayFive.getText()).toEqual('Fitness and Wellness Coordinators');
|
|
||||||
await MyJourneysHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
await SavedJourneyTitleOne.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
await HowAmIDoingButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Oops!');
|
|
||||||
expect(await DIVSubTitle.getText()).toEqual("Sorry, we can't give you a quiz for this.");
|
|
||||||
await DIVOKButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await RemoveJourneyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Are you sure?');
|
|
||||||
expect(await DIVSubTitle.getText()).toEqual('You will not be able to recover this journey!');
|
|
||||||
await DIVCancelButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SelectedJourneyTitle.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//myResourcesWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['myResourcesWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
//myResourcesWidget_spec.js
|
|
||||||
|
|
||||||
describe('My Resources Widget script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
MyResourcesWidget();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function MyResourcesWidget() {
|
|
||||||
it(': MyResourcesWidget, Should interact with the My Resources Widget', async function () {
|
|
||||||
var MyResourcesWidgetTitle = element(by.css('#id > .ng-scope > .jrnys_lead-body-copy'));
|
|
||||||
var MyResourcesViewAllLink = element(by.css('#id > .ng-scope .text-color-7a'));
|
|
||||||
var MyResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
|
||||||
var MyResourcesDIVOneTitle = element(by.css('.col-xs-9 > .ng-binding'));
|
|
||||||
var MyResourcesDIVOneEllipsis = element(by.css('.glyphicon-option-vertical'));
|
|
||||||
var MyResourcesDIVOneFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span'));
|
|
||||||
var MyResourcesDIVOneLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)'));
|
|
||||||
var MyResourcesDIVCloseXIcon = element(by.css('.close'));
|
|
||||||
var MyResourcesOneTitle = element(by.css('.hotTitles'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 2362);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourcesWidgetTitle.getText()).toEqual('My Resources View All');
|
|
||||||
await MyResourcesViewAllLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourcesDIVTitle.getText()).toEqual('My Resources');
|
|
||||||
expect(await MyResourcesDIVOneTitle.getText()).toEqual('Test Doc');
|
|
||||||
await MyResourcesDIVOneEllipsis.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourcesDIVOneFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await MyResourcesDIVOneLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
await MyResourcesDIVCloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyResourcesOneTitle.getText()).toEqual('Test Doc');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//profileAndMyProgressWidgets_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['profileAndMyProgressWidgets_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,483 +0,0 @@
|
|||||||
//profileAndMyProgressWidgets_spec.js
|
|
||||||
|
|
||||||
const { buildPath } = require("selenium-webdriver/http");
|
|
||||||
|
|
||||||
describe('Profile And My Progress Widget Scripts', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
ProfileWidget();
|
|
||||||
MyProgressWidget();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function ProfileWidget() {
|
|
||||||
it(': ProfileWidget, should expand profile widget, edit About Me widget, then validate Role Model and Education Widgets', async function () {
|
|
||||||
var ProfileWidgetExpandCollapseIcon = element(by.css('span > .fa'));
|
|
||||||
var ConnectionsLink = element(by.css('.col-md-3:nth-child(2) .jrnys_support-text'));
|
|
||||||
var FollowersLink = element(by.css('.col-md-3:nth-child(3) .jrnys_support-text'));
|
|
||||||
var FollowersDivTitle = element(by.css('.default-color2 > h3'));
|
|
||||||
var FollowersDivSubText = element(by.css('.col-md-12:nth-child(1)'));
|
|
||||||
var FollowersDivGotItButton = element(by.css('.btn-lg'));
|
|
||||||
//About Me Widget
|
|
||||||
var AboutMeWidgetTitle = element(by.css('#aboutMeFull > .jrnys_lead-body-copy'));
|
|
||||||
var AboutMePencil = element(by.css('#aboutMeFull .fa-pencil'));
|
|
||||||
var ABoutMeInputArea = element(by.id('inputArea'));
|
|
||||||
//Role Model Widget
|
|
||||||
var RoleModelWidgetTitle = element(by.css('td > .jrnys_lead-body-copy'));
|
|
||||||
var RoleModelNameOne = element(by.css('.inner-content-padding > .textSize:nth-child(1)'));
|
|
||||||
var RoleModelNameTwo = element(by.css('.textSize:nth-child(2)'));
|
|
||||||
//Education Widget
|
|
||||||
var EducationWidgetTitle = element(by.css('#education > .jrnys_lead-body-copy'));
|
|
||||||
var EducationStartEndDate = element(by.css('.col-xs-4 > .ng-binding:nth-child(1)'));
|
|
||||||
var EducationSchoolName = element(by.css('.col-xs-8'));
|
|
||||||
|
|
||||||
expect(await ConnectionsLink.getText()).toEqual('CONNECTIONS');
|
|
||||||
await FollowersLink.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await FollowersDivTitle.getText()).toEqual('This feature is on its way!');
|
|
||||||
expect(await FollowersDivSubText.getText()).toEqual("Love Journeys? Then you'll love what is coming next.");
|
|
||||||
await FollowersDivGotItButton.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await ProfileWidgetExpandCollapseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//About Me Widget
|
|
||||||
expect(await AboutMeWidgetTitle.getText()).toEqual('About Me');
|
|
||||||
browser.actions().mouseMove(element(by.css('#aboutMeFull > .jrnys_lead-body-copy'))).perform().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await AboutMePencil.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await ABoutMeInputArea.clear().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await ABoutMeInputArea.sendKeys('This is my automated bio, there are many like it but this one is mine.');
|
|
||||||
await AboutMePencil.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 772);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
//Role Model Widget
|
|
||||||
expect(await RoleModelWidgetTitle.getText()).toEqual('Role Model');
|
|
||||||
expect(await RoleModelNameOne.getText()).toEqual('Elon Musk');
|
|
||||||
expect(await RoleModelNameTwo.getText()).toEqual('Emma Watson');
|
|
||||||
//Education Widget
|
|
||||||
expect(await EducationWidgetTitle.getText()).toEqual('Education');
|
|
||||||
expect(await EducationStartEndDate.getText()).toEqual('06/2005');
|
|
||||||
expect(await EducationSchoolName.getText()).toEqual('SUNNYSIDE ELEMENTARY');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await ProfileWidgetExpandCollapseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function MyProgressWidget() {
|
|
||||||
it(': MyProgressWidget, should interact with My Progress widget, navigate to Interest Survey, toggle language to Spanish then back to English and complete survey', async function () {
|
|
||||||
//My Progress Widget
|
|
||||||
var MyProgressWidgetTitle = element(by.css('.yourProgressTitle'));
|
|
||||||
var ProgressLevel = element(by.css('.myProgressLevel'));
|
|
||||||
var ProgressWidgetExpandIcon = element(by.css('.full-width .ng-scope'));
|
|
||||||
//Account Creation
|
|
||||||
var ActionOneCompleted = element(by.css('.col-md-3:nth-child(1) > .ng-scope'));
|
|
||||||
var ActionTwo = element(by.css('.col-md-3:nth-child(2) > .ng-scope'));
|
|
||||||
var ActionTwoCompleted = element(by.css('.col-md-3:nth-child(2) > .ng-scope'));
|
|
||||||
var ActionTwoRetake = element(by.css('.col-md-3:nth-child(2) .redo'));
|
|
||||||
var ActionThreeCompleted = element(by.css('.col-md-3:nth-child(3) > .ng-scope'));
|
|
||||||
var ActionThreeRetake = element(by.css('.col-md-3:nth-child(3) .redo'));
|
|
||||||
var ActionFourCompleted = element(by.css('.col-md-3:nth-child(4) > .ng-scope'));
|
|
||||||
var ActionFourKeepExploring = element(by.linkText('Keep Exploring'));
|
|
||||||
//Interest Survey
|
|
||||||
var PageTitle = element(by.css('.jrnys_lead-body-copy'));
|
|
||||||
var EnglishLanguageButton = element(by.css('.btn-xs:nth-child(1)'));
|
|
||||||
var SpanishLanguageButton = element(by.css('.btn:nth-child(2)'));
|
|
||||||
var DescriptiveTextOne = element(by.css('.col-md-4:nth-child(1) > .ng-binding:nth-child(1)'));
|
|
||||||
var DescriptiveTextTwo = element(by.css('.col-md-4:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var DescriptiveTextThree = element(by.css('.col-md-4:nth-child(3) > .ng-binding:nth-child(1)'));
|
|
||||||
var LanguageAlertDIV = element(by.css('p:nth-child(7)'));
|
|
||||||
var LanguageAlterCancelButton = element(by.css('.cancel'));
|
|
||||||
var LanguageAlterConfirmButton = element(by.css('.confirm'));
|
|
||||||
var DislikeEmojiIcon = element(by.id('emoji_0_0'));
|
|
||||||
var DislikeEmojiText = element(by.id('emoji_lbl_0_0'));
|
|
||||||
var MehEmojiIcon = element(by.id('emoji_0_1'));
|
|
||||||
var MehEmojiText = element(by.id('emoji_lbl_0_1'));
|
|
||||||
var UnsureEmojiIcon = element(by.id('emoji_0_2'));
|
|
||||||
var UnsureEmojiText = element(by.id('emoji_lbl_0_2'));
|
|
||||||
var LikeItEmojiIcon = element(by.id('emoji_0_3'));
|
|
||||||
var LikeItEmojiText = element(by.id('emoji_lbl_0_3'));
|
|
||||||
var LoveItEmojiIcon = element(by.id('emoji_0_4'));
|
|
||||||
var LoveItEmojiText = element(by.id('emoji_lbl_0_4'));
|
|
||||||
var PreviousQuestion = element(by.linkText('< Previous Question'));
|
|
||||||
var PreguntaAnterior = element(by.linkText('< Pregunta Anterior'));
|
|
||||||
var CancelButton = element(by.css('.btn-md'));
|
|
||||||
//Skills Matcher
|
|
||||||
var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)'));
|
|
||||||
//Explore Careers
|
|
||||||
var CareerExplorationPageTitle = element(by.css('.col-sm-12'));
|
|
||||||
var SkillsFilterButton = element(by.css('div:nth-child(3) > .filter-category:nth-child(3)'));
|
|
||||||
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
|
|
||||||
var WidgetTitle = element(by.css('.row > .jrnys_lead-body-copy'));
|
|
||||||
var WidgetDescription = element(by.css('span:nth-child(2)'));
|
|
||||||
var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var AgricultureFoodAndNaturalResourcesTwo = element(by.css('.col-md-4:nth-child(2) #\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 .ng-binding'));
|
|
||||||
var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectureAndConstructionTwo = element(by.css('.col-md-4:nth-child(1) #b3ebc784-a26e-4134-87ea-87a44d90049a .ng-binding'));
|
|
||||||
var ArtsAVTechnologyAndCommunications = element(by.css('#\\31 48161d3-2bf8-4703-bf6b-17f05cafc9f0 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BusinessManagementAndAdministrationTwo = element(by.css('.col-md-4:nth-child(3) #\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 .ng-binding'));
|
|
||||||
var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var PreviousLinkText = element(by.css('.col-xs-2:nth-child(2)'));
|
|
||||||
var NextLinkText = element(by.linkText('Next'));
|
|
||||||
//Skills Filter Applied
|
|
||||||
var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
//My Progress Widget
|
|
||||||
expect(await MyProgressWidgetTitle.getText()).toEqual('MY PROGRESS');
|
|
||||||
expect(await ProgressLevel.getText()).toEqual('Level: Scout');
|
|
||||||
await ProgressWidgetExpandIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Account Creation
|
|
||||||
expect(await ActionOneCompleted.getText()).toContain('Account Creation');
|
|
||||||
expect(await ActionOneCompleted.getText()).toContain('Completed');
|
|
||||||
expect(await ActionTwo.getText()).toContain('Interest Survey');
|
|
||||||
expect(await ActionTwoCompleted.getText()).toContain('Completed');
|
|
||||||
expect(await ActionTwoRetake.getText()).toEqual('Retake');
|
|
||||||
expect(await ActionThreeCompleted.getText()).toContain('Skills Matcher');
|
|
||||||
expect(await ActionThreeCompleted.getText()).toContain('Completed');
|
|
||||||
expect(await ActionThreeRetake.getText()).toEqual('Retake');
|
|
||||||
expect(await ActionFourCompleted.getText()).toContain('Explore Careers');
|
|
||||||
expect(await ActionFourCompleted.getText()).toContain('Completed');
|
|
||||||
expect(await ActionFourKeepExploring.getText()).toEqual('Keep Exploring');
|
|
||||||
await ActionTwoRetake.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Interest Survey page - validate English text
|
|
||||||
expect(await PageTitle.getText()).toEqual('Interest Survey');
|
|
||||||
expect(await EnglishLanguageButton.getText()).toEqual('English');
|
|
||||||
expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SpanishLanguageButton.getText()).toEqual('Español');
|
|
||||||
expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
expect(await DescriptiveTextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!");
|
|
||||||
expect(await DescriptiveTextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.');
|
|
||||||
expect(await DescriptiveTextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!');
|
|
||||||
expect(await DislikeEmojiText.getText()).toEqual('Dislike');
|
|
||||||
expect(await MehEmojiText.getText()).toEqual('Meh');
|
|
||||||
expect(await UnsureEmojiText.getText()).toEqual('Unsure');
|
|
||||||
expect(await LikeItEmojiText.getText()).toEqual('Like it');
|
|
||||||
expect(await LoveItEmojiText.getText()).toEqual('Love it!');
|
|
||||||
expect(await CancelButton.getText()).toEqual('Cancel Test');
|
|
||||||
await LikeItEmojiIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
await PreviousQuestion.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
await SpanishLanguageButton.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
//Interest Survey page - Spanish text
|
|
||||||
expect(await LanguageAlertDIV.getText()).toEqual('Changing the language setting will result in starting the survey over again. Do you want to change languages and start at question 1?');
|
|
||||||
expect(await LanguageAlterCancelButton.getText()).toEqual('Cancel');
|
|
||||||
expect(await LanguageAlterConfirmButton.getText()).toEqual('Change');
|
|
||||||
await LanguageAlterConfirmButton.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await PageTitle.getText()).toEqual('Interest Survey');
|
|
||||||
expect(await EnglishLanguageButton.getText()).toEqual('English');
|
|
||||||
expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
expect(await SpanishLanguageButton.getText()).toEqual('Español');
|
|
||||||
expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(72, 201, 176, 1)'); //journey green: active
|
|
||||||
expect(await DescriptiveTextOne.getText()).toEqual('¡En menos de 10 minutos te conectamos con las mejores carreras para ti!');
|
|
||||||
expect(await DescriptiveTextTwo.getText()).toEqual('Por cada opción, selecciona la emocion que indica como te siendes sobre este tema.');
|
|
||||||
expect(await DescriptiveTextThree.getText()).toEqual('Indica cómo te sientes realmente, se sincero. ¡no hay respuesta incorrecta!');
|
|
||||||
expect(await DislikeEmojiText.getText()).toEqual('Me disgusta mucho');
|
|
||||||
expect(await MehEmojiText.getText()).toEqual('Me disgusta');
|
|
||||||
expect(await UnsureEmojiText.getText()).toEqual('No estoy seguro');
|
|
||||||
expect(await LikeItEmojiText.getText()).toEqual('Me gusta');
|
|
||||||
expect(await LoveItEmojiText.getText()).toEqual('Me gusta mucho');
|
|
||||||
expect(await CancelButton.getText()).toEqual('Cancelar Encuesta');
|
|
||||||
await LoveItEmojiIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
await PreguntaAnterior.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
await EnglishLanguageButton.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await LanguageAlertDIV.getText()).toEqual('Cambiando la configuración de idioma resultará a comenzar la encuesta nuevamente. ¿Quieres cambiar de idioma y comenzar la encuesta en la pregunta 1?');
|
|
||||||
expect(await LanguageAlterCancelButton.getText()).toEqual('Cancelar');
|
|
||||||
expect(await LanguageAlterConfirmButton.getText()).toEqual('Cambiar');
|
|
||||||
await LanguageAlterConfirmButton.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
//Interest Survey page - validate English text
|
|
||||||
expect(await PageTitle.getText()).toEqual('Interest Survey');
|
|
||||||
expect(await EnglishLanguageButton.getText()).toEqual('English');
|
|
||||||
expect(EnglishLanguageButton.getCssValue('background-color')).toBe('rgba(72, 201, 176, 1)'); //journey green: active
|
|
||||||
expect(await SpanishLanguageButton.getText()).toEqual('Español');
|
|
||||||
expect(SpanishLanguageButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
expect(await DescriptiveTextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!");
|
|
||||||
expect(await DescriptiveTextTwo.getText()).toEqual('For each option, select the emotion that matches how you feel about the activity.');
|
|
||||||
expect(await DescriptiveTextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!');
|
|
||||||
expect(await DislikeEmojiText.getText()).toEqual('Dislike');
|
|
||||||
expect(await MehEmojiText.getText()).toEqual('Meh');
|
|
||||||
expect(await UnsureEmojiText.getText()).toEqual('Unsure');
|
|
||||||
expect(await LikeItEmojiText.getText()).toEqual('Like it');
|
|
||||||
expect(await LoveItEmojiText.getText()).toEqual('Love it!');
|
|
||||||
expect(await CancelButton.getText()).toEqual('Cancel Test');
|
|
||||||
await LoveItEmojiIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await PreviousQuestion.getText()).toEqual('< Previous Question');
|
|
||||||
await DislikeEmojiIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
await MehEmojiIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
await UnsureEmojiIcon.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await CancelButton.getText()).toEqual('Cancel Test');
|
|
||||||
await CancelButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
browser.waitForAngular();
|
|
||||||
});
|
|
||||||
await ProgressWidgetExpandIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Skills Matcher
|
|
||||||
expect(await ActionThreeRetake.getText()).toEqual('Retake');
|
|
||||||
await ActionThreeRetake.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Skills Matcher Page
|
|
||||||
expect(await PageTitle.getText()).toEqual('Skills Matcher');
|
|
||||||
expect(await DescriptiveTextOne.getText()).toEqual("In less than 10 minutes you'll be matched to some exciting careers!");
|
|
||||||
expect(await DescriptiveTextTwo.getText()).toEqual('For each option, choose the skill level you have done in the example.');
|
|
||||||
expect(await DescriptiveTextThree.getText()).toEqual('Say how you really feel, there are no wrong answers!');
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Administration and Management');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);');
|
|
||||||
expect(await CancelButton.getText()).toEqual('Cancel Assessment');
|
|
||||||
await CancelButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
await ProgressWidgetExpandIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Career Exploration
|
|
||||||
expect(await ActionFourKeepExploring.getText()).toEqual('Keep Exploring');
|
|
||||||
await ActionFourKeepExploring.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Career Exploration Page
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
//Skills Filter Applied
|
|
||||||
await SkillsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SkillsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Removed Skills Filter
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await InterestsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Interests Filter Appplied
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await InterestsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Removed Interests Filter
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue: non-active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await ArtsAVTechnologyAndCommunications.getText()).toEqual('Arts, A/V Technology & Communications');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
//Both Filters Applied
|
|
||||||
await SkillsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await InterestsFilterButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CareerExplorationPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetDescription.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await AgricultureFoodAndNaturalResourcesTwo.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await ArchitectureAndConstructionTwo.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
expect(await BusinessManagementAndAdministrationTwo.getText()).toEqual('Business Management & Administration');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//skillsMatcherResultsWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['skillsMatcherResultsWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,842 +0,0 @@
|
|||||||
//skillsMatcherResultsWidget_spec.js
|
|
||||||
|
|
||||||
describe('Skills Matcher Results Widget Script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
SkillsMatcherResultsWidget();
|
|
||||||
SkillsMatcherRetake();
|
|
||||||
SkillsMatcherCareerExploration();
|
|
||||||
InterestSurveyResultsCreateJourney();
|
|
||||||
DeleteCreatedJourney();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function SkillsMatcherResultsWidget() {
|
|
||||||
it(': SkillsMatcherResultsWidget, should validate Skills Matcher Results widget', async function () {
|
|
||||||
var SkillsMatcherResultsWidgetTitle = element(by.css('.bigScreenHeader'));
|
|
||||||
var BestFitSubHeader = element(by.css('div:nth-child(2) > b'));
|
|
||||||
var SkillsResultsOneTitle = element(by.css('.ng-scope:nth-child(4) > div > div > .ng-binding:nth-child(1)'));
|
|
||||||
var SkillsResultsOneDescription = element(by.css('.ng-scope:nth-child(4) .skillProfilerResultTruncateText'));
|
|
||||||
var SkillsResultsTwoTitle = element(by.css('.skillProfilerResultsSpacing:nth-child(5) > div > div > .ng-binding'));
|
|
||||||
var SkillsResultsTwoDescription = element(by.css('.ng-scope:nth-child(5) .skillProfilerResultTruncateText'));
|
|
||||||
var SkillsResultsThreeTitle = element(by.css('.ng-scope:nth-child(6) > div > div > .ng-binding'));
|
|
||||||
var SkillsResultsThreeDescription = element(by.css('.ng-scope:nth-child(6) .skillProfilerResultTruncateText'));
|
|
||||||
var SkillsResultsIcon = element(by.css('div:nth-child(7) > div:nth-child(1) > .hideIconLabels'));
|
|
||||||
var SkillsRetakeIcon = element(by.css('div:nth-child(7) > div:nth-child(2) > .hideIconLabels'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 592);').then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await SkillsMatcherResultsWidgetTitle.getText()).toEqual('Skills Matcher Results');
|
|
||||||
expect(await BestFitSubHeader.getText()).toEqual('BEST FIT');
|
|
||||||
expect(await SkillsResultsOneTitle.getText()).toEqual('Building and Construction');
|
|
||||||
expect(await SkillsResultsOneDescription.getText()).toEqual('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.');
|
|
||||||
expect(await SkillsResultsTwoTitle.getText()).toEqual('Foreign Language');
|
|
||||||
expect(await SkillsResultsTwoDescription.getText()).toEqual('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.');
|
|
||||||
expect(await SkillsResultsThreeTitle.getText()).toEqual('Management of Financial Resources');
|
|
||||||
expect(await SkillsResultsThreeDescription.getText()).toEqual('Making spending decisions and keeping track of what is spent.');
|
|
||||||
expect(await SkillsResultsIcon.getText()).toEqual('Results');
|
|
||||||
expect(await SkillsRetakeIcon.getText()).toEqual('Retake');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SkillsMatcherRetake() {
|
|
||||||
it(': SkillsMatcherRetake, should retake Skills Matcher', async function () {
|
|
||||||
var InterestRetakeLink = element(by.css('div:nth-child(2) > .fa-tasks'));
|
|
||||||
var SkillsMatcherPageTitle = element(by.css('.jrnys_lead-body-copy'));
|
|
||||||
var SkillsQuestion = element(by.css('.questionText > .ng-binding:nth-child(1)'));
|
|
||||||
var SkillsSubQuestion = element(by.css('.questionText > .ng-binding:nth-child(2)'));
|
|
||||||
var BeginnerIcon = element(by.id('emoji_0_0'));
|
|
||||||
var BasicIcon = element(by.id('emoji_0_1'));
|
|
||||||
var SkilledIcon = element(by.id('emoji_0_2'));
|
|
||||||
var AdvancedIcon = element(by.id('emoji_0_3'));
|
|
||||||
var ExpertIcon = element(by.id('emoji_0_4'));
|
|
||||||
var CancelAssessment = element(by.css('.btn-md'));
|
|
||||||
var PreviousQuestion = element(by.linkText('< Previous Question'));
|
|
||||||
var SkillsMatcherResultPageTitle = element(by.css('.surveyContainer > .col-xs-offset-1'));
|
|
||||||
var YourTop3SkillsWidgetTitle = element(by.css('.fullHeight > .jrnys_lead-body-copy'));
|
|
||||||
var BestFitHeader = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .jrnys_lead-body-copy'));
|
|
||||||
var BestFitSubTextHeaderOne = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(2) > .ng-binding'));
|
|
||||||
var BestFitSubTextOne = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(2)'));
|
|
||||||
var BestFitSubTextHeaderTwo = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(3) > .ng-binding'));
|
|
||||||
var BestFitSubTextTwo = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(3)'));
|
|
||||||
var BestFitSubTextHeaderThree = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(4) > .ng-binding'));
|
|
||||||
var BestFitSubTextThree = element(by.css('.ng-scope:nth-child(1) > .row > div > div > .ng-binding:nth-child(4)'));
|
|
||||||
var GreatFitHeader = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .jrnys_lead-body-copy'));
|
|
||||||
var GreatFitSubTextHeaderOne = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(2) > .ng-binding'));
|
|
||||||
var GreatFitSubTextOne = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(2)'));
|
|
||||||
var GreatFitSubTextHeaderTwo = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(3) > .ng-binding'));
|
|
||||||
var GreatFitSubTextTwo = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(3)'));
|
|
||||||
var GreatFitSubTextHeaderThree = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(4) > .ng-binding'));
|
|
||||||
var GreatFitSubTextThree = element(by.css('.ng-scope:nth-child(2) > .row > div > div > .ng-binding:nth-child(4)'));
|
|
||||||
var GoodFitHeader = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .jrnys_lead-body-copy'));
|
|
||||||
var GoodFitSubTextHeaderOne = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(2) > .ng-binding'));
|
|
||||||
var GoodFitSubTextOne = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(2)'));
|
|
||||||
var GoodFitSubTextHeaderTwo = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(3) > .ng-binding'));
|
|
||||||
var GoodFitSubTextTwo = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(3)'));
|
|
||||||
var GoodFitSubTextHeaderThree = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(4) > .ng-binding'));
|
|
||||||
var GoodFitSubTextThree = element(by.css('.ng-scope:nth-child(3) > .row > div > div > .ng-binding:nth-child(4)'));
|
|
||||||
var ViewAllLink = element(by.linkText('View All'));
|
|
||||||
var ViewAllDIVBestFitHeader = element(by.css('.row:nth-child(1) > .col-xs-10 > .jrnys_lead-body-copy'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextOne = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(2)'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextTwo = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(3)'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextThree = element(by.css('.row:nth-child(1) > .col-xs-10 > .ng-binding:nth-child(4)'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextFour = element(by.css('.row:nth-child(1) .ng-binding:nth-child(5)'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextFive = element(by.css('.row:nth-child(1) .ng-binding:nth-child(6)'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextSix = element(by.css('.row:nth-child(1) .ng-binding:nth-child(7)'));
|
|
||||||
var ViewAllDIVBestFitSubTextHeaderSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8) > .ng-binding'));
|
|
||||||
var ViewAllDIVBestFitSubTextSeven = element(by.css('.row:nth-child(1) .ng-binding:nth-child(8)'));
|
|
||||||
var ViewAllDIVGreatFitHeader = element(by.css('.row:nth-child(2) .jrnys_lead-body-copy'));
|
|
||||||
var ViewAllDIVGreatFitSubTextHeaderOne = element(by.css('.row:nth-child(2) .ng-binding:nth-child(2) > .ng-binding'));
|
|
||||||
var ViewAllDIVGreatFitSubTextOne = element(by.css('.row:nth-child(2) .ng-binding:nth-child(2)'));
|
|
||||||
var ViewAllDIVGreatFitSubTextHeaderTwo = element(by.css('.row:nth-child(2) .ng-binding:nth-child(3) > .ng-binding'));
|
|
||||||
var ViewAllDIVGreatFitSubTextTwo = element(by.css('.row:nth-child(2) .ng-binding:nth-child(3)'));
|
|
||||||
var ViewAllDIVGreatFitSubTextHeaderThree = element(by.css('.row:nth-child(2) .ng-binding:nth-child(4) > .ng-binding'));
|
|
||||||
var ViewAllDIVGreatFitSubTextThree = element(by.css('.row:nth-child(2) .ng-binding:nth-child(4)'));
|
|
||||||
var ViewAllDIVGreatFitSubTextHeaderFour = element(by.css('.row:nth-child(2) .ng-binding:nth-child(5) > .ng-binding'));
|
|
||||||
var ViewAllDIVGreatFitSubTextFour = element(by.css('.row:nth-child(2) .ng-binding:nth-child(5)'));
|
|
||||||
var ViewAllDIVGreatFitSubTextHeaderFive = element(by.css('.row:nth-child(2) .ng-binding:nth-child(6) > .ng-binding'));
|
|
||||||
var ViewAllDIVGreatFitSubTextFive = element(by.css('.row:nth-child(2) .ng-binding:nth-child(6)'));
|
|
||||||
var ViewAllDIVGreatFitSubTextHeaderSix = element(by.css('.row:nth-child(2) .ng-binding:nth-child(7) > .ng-binding'));
|
|
||||||
var ViewAllDIVGreatFitSubTextSix = element(by.css('.row:nth-child(2) .ng-binding:nth-child(7)'));
|
|
||||||
var ViewAllDIVGoodFitHeader = element(by.css('.row:nth-child(3) > .col-xs-10 > .jrnys_lead-body-copy'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(2) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(2)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(3) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(3)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(4) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(4)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(5) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(5)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(6) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(6)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderSix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(7) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextSix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(7)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderSeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(8) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextSeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(8)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderEight = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(9) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextEight = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(9)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderNine = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(10) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextNine = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(10)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(11) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(11)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderEleven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(12) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextEleven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(12)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwelve = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(13) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwelve = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(13)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderThirteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(14) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextThirteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(14)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderFourteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(15) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextFourteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(15)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderFifteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(16) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextFifteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(16)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderSixteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(17) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextSixteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(17)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderSeventeen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(18) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextSeventeen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(18)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderEighteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(19) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextEighteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(19)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderNineteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(20) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextNineteen = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(20)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwenty = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(21) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwenty = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(21)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentyOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(22) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentyOne = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(22)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentyTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(23) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentyTwo = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(23)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentyThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(24) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentyThree = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(24)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentyFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(25) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentyFour = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(25)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentyFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(26) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentyFive = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(26)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentySix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(27) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentySix = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(27)'));
|
|
||||||
var ViewAllDIVGoodFitSubTextHeaderTwentySeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(28) > .ng-binding'));
|
|
||||||
var ViewAllDIVGoodFitSubTextTwentySeven = element(by.css('.row:nth-child(3) > .col-xs-10 > .ng-binding:nth-child(28)'));
|
|
||||||
var ViewAllDIVXCloseIcon = element(by.css('.close'));
|
|
||||||
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 592);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
|
|
||||||
await InterestRetakeLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await SkillsMatcherPageTitle.getText()).toEqual('Skills Matcher');
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Administration and Management');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about business planning and leadership?');
|
|
||||||
expect(await CancelAssessment.getText()).toEqual('Cancel Assessment');
|
|
||||||
await SkilledIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Biology');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about plant, animal and cell functions?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Body Coordination');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you coordinate moving your arms, legs, and torso together?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Building and Construction');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about construction materials, methods, and tools?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Chemistry');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know chemistry?');
|
|
||||||
await SkilledIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Clerical');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How much do you know about administrative tasks and processes?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Complex Problem Solving');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How good are you at figuring out the best way to solve a problem?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Computers and Electronics');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How effective are you at using electronic equipment?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Customer and Personal Service');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to handle customer needs and resolve service problems?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
await PreviousQuestion.click();
|
|
||||||
browser.sleep(2500);
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Economics and Accounting');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know banking and financial systems?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Fine Arts');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theory and techniques of an art form such as music, painting, drama, or other?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Foreign Language');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know a foreign language?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Helping People');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How good are you at understanding how to help people?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Instructing');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How skilled are you at teaching people how to do something?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Management of Financial Resources');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('What level of financial decision-maker are you?');
|
|
||||||
await ExpertIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Mathematics');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('What is your level of math skill?');
|
|
||||||
await SkilledIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Mechanical');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you design, use, repair, and maintain machines?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Medicine and Dentistry');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know how to provide health care?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Memorization');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How good is your memory?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Monitoring');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you assess your or others’ work?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Negotiation');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you persuade others to see different points of view or compromise?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Operations Analysis');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze needs and requirements, then make a plan that meets them?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Personnel and Human Resources');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and procedures for recruiting, hiring, and training employees?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Production and Processing');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you oversee manufacturing and distribution processes?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Programming');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you write computer programs?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Psychology');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the methods of research, assessment, and treatment of human behavior?');
|
|
||||||
await SkilledIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Public Safety and Security');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the equipment, policies, procedures, and strategies used to promote security operations?');
|
|
||||||
await SkilledIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Quality Control Analysis');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you develop and use testing processes?');
|
|
||||||
await AdvancedIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Repairing');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you repair machines or systems using the needed tools?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Sales and Marketing');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you perform marketing strategies and tactics?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Science');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you use scientific rules and methods to solve problems?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Sociology and Anthropology');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the theories of group behavior, societal trends and influences, and human culture?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Speaking');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you convey information when you speak?');
|
|
||||||
await SkilledIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Systems Analysis');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you analyze systems?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Teaching and Course Design');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods of instruction?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Telecommunications');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you understand telecom systems?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Therapy and Counseling');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well do you know the principles and methods used in counseling?');
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Time Management');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual("How well do you manage your and others' time?");
|
|
||||||
await BasicIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Troubleshooting');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual('How well can you identify and fix problems in machines or technology?');
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
expect(await SkillsQuestion.getText()).toEqual('Writing');
|
|
||||||
expect(await SkillsSubQuestion.getText()).toEqual("How well does your writing effectively communicate to an audience's particular need?");
|
|
||||||
await BeginnerIcon.click();
|
|
||||||
browser.sleep(10000);
|
|
||||||
//Skills Matcher Results Page
|
|
||||||
expect(await SkillsMatcherResultPageTitle.getText()).toEqual('Skills Matcher Results');
|
|
||||||
expect(await YourTop3SkillsWidgetTitle.getText()).toEqual('Your Top 3 Skills View All');
|
|
||||||
expect(await BestFitHeader.getText()).toEqual('BEST FIT');
|
|
||||||
expect(await BestFitSubTextHeaderOne.getText()).toEqual('Building and Construction');
|
|
||||||
expect(await BestFitSubTextOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.');
|
|
||||||
expect(await BestFitSubTextHeaderTwo.getText()).toEqual('Foreign Language');
|
|
||||||
expect(await BestFitSubTextTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.');
|
|
||||||
expect(await BestFitSubTextHeaderThree.getText()).toEqual('Management of Financial Resources');
|
|
||||||
expect(await BestFitSubTextThree.getText()).toContain('Making spending decisions and keeping track of what is spent.');
|
|
||||||
expect(await GreatFitHeader.getText()).toEqual('GREAT FIT');
|
|
||||||
expect(await GreatFitSubTextHeaderOne.getText()).toEqual('Administration and Management');
|
|
||||||
expect(await GreatFitSubTextOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.');
|
|
||||||
expect(await GreatFitSubTextHeaderTwo.getText()).toEqual('Chemistry');
|
|
||||||
expect(await GreatFitSubTextTwo.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.');
|
|
||||||
expect(await GreatFitSubTextHeaderThree.getText()).toEqual('Mathematics');
|
|
||||||
expect(await GreatFitSubTextThree.getText()).toContain('Using math to solve problems.');
|
|
||||||
expect(await GoodFitHeader.getText()).toEqual('GOOD FIT');
|
|
||||||
expect(await GoodFitSubTextHeaderOne.getText()).toEqual('Biology');
|
|
||||||
expect(await GoodFitSubTextOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.');
|
|
||||||
expect(await GoodFitSubTextHeaderTwo.getText()).toEqual('Body Coordination');
|
|
||||||
expect(await GoodFitSubTextTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.');
|
|
||||||
expect(await GoodFitSubTextHeaderThree.getText()).toEqual('Clerical');
|
|
||||||
expect(await GoodFitSubTextThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.');
|
|
||||||
await ViewAllLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ViewAllDIVBestFitHeader.getText()).toEqual('BEST FIT');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderOne.getText()).toEqual('Building and Construction');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextOne.getText()).toContain('Knowledge of materials, methods, and the tools involved in the construction or repair of houses, buildings, or other structures such as highways and roads.');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderTwo.getText()).toEqual('Foreign Language');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextTwo.getText()).toContain('Knowledge of the structure and content of a foreign (non-English) language including the meaning and spelling of words, rules of composition and grammar, and pronunciation.');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderThree.getText()).toEqual('Management of Financial Resources');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextThree.getText()).toContain('Making spending decisions and keeping track of what is spent.');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderFour.getText()).toEqual('Operations Analysis');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextFour.getText()).toContain('Figuring out what a product or service needs to be able to do.');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderFive.getText()).toEqual('Personnel and Human Resources');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextFive.getText()).toContain('Knowledge of principles and procedures for personnel recruitment, selection, training, compensation and benefits, labor relations and negotiation, and personnel information systems.');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderSix.getText()).toEqual('Programming');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextSix.getText()).toContain('Writing computer programs.');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextHeaderSeven.getText()).toEqual('Quality Control Analysis');
|
|
||||||
expect(await ViewAllDIVBestFitSubTextSeven.getText()).toContain('Testing how well a product or service works.');
|
|
||||||
browser.actions().mouseMove(ViewAllDIVGreatFitSubTextSix).perform().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await ViewAllDIVGreatFitHeader.getText()).toEqual('GREAT FIT');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextHeaderOne.getText()).toEqual('Administration and Management');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextOne.getText()).toContain('Knowledge of business and management principles involved in strategic planning, resource allocation, human resources modeling, leadership technique, production methods, and coordination of people and resources.');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextHeaderTwo.getText()).toEqual('Chemistry');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextTwo.getText()).toContain('Knowledge of the chemical composition, structure, and properties of substances and of the chemical processes and transformations that they undergo. This includes uses of chemicals and their interactions, danger signs, production techniques, and disposal methods.');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextHeaderThree.getText()).toEqual('Mathematics');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextThree.getText()).toContain('Using math to solve problems.');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextHeaderFour.getText()).toEqual('Psychology');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextFour.getText()).toContain('Knowledge of human behavior and performance; individual differences in ability, personality, and interests; learning and motivation; psychological research methods; and the assessment and treatment of behavioral and affective disorders.');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextHeaderFive.getText()).toEqual('Public Safety and Security');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextFive.getText()).toContain('Knowledge of relevant equipment, policies, procedures, and strategies to promote effective local, state, or national security operations for the protection of people, data, property, and institutions.');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextHeaderSix.getText()).toEqual('Speaking');
|
|
||||||
expect(await ViewAllDIVGreatFitSubTextSix.getText()).toContain('Talking to others.');
|
|
||||||
browser.actions().mouseMove(ViewAllDIVGoodFitSubTextEleven).perform().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await ViewAllDIVGoodFitHeader.getText()).toEqual('GOOD FIT');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderOne.getText()).toEqual('Biology');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextOne.getText()).toContain('Knowledge of plant and animal organisms, their tissues, cells, functions, interdependencies, and interactions with each other and the environment.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwo.getText()).toEqual('Body Coordination');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwo.getText()).toContain('Moving your arms, legs, and mid-section together while your whole body is moving.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderThree.getText()).toEqual('Clerical');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextThree.getText()).toContain('Knowledge of administrative and clerical procedures and systems such as word processing, managing files and records, stenography and transcription, designing forms, and other office procedures and terminology.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderFour.getText()).toEqual('Complex Problem Solving');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextFour.getText()).toContain('Noticing a problem and figuring out the best way to solve it.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderFive.getText()).toEqual('Computers and Electronics');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextFive.getText()).toContain('Knowledge of circuit boards, processors, chips, electronic equipment, and computer hardware and software, including applications and programming.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderSix.getText()).toEqual('Customer and Personal Service');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextSix.getText()).toContain('Knowledge of principles and processes for providing customer and personal services. This includes customer needs assessment, meeting quality standards for services, and evaluation of customer satisfaction.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderSeven.getText()).toEqual('Economics and Accounting');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextSeven.getText()).toContain('Knowledge of economic and accounting principles and practices, the financial markets, banking and the analysis and reporting of financial data.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderEight.getText()).toEqual('Fine Arts');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextEight.getText()).toContain('Knowledge of the theory and techniques required to compose, produce, and perform works of music, dance, visual arts, drama, and sculpture.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderNine.getText()).toEqual('Helping People');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextNine.getText()).toContain('Looking for ways to help people.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTen.getText()).toEqual('Instructing');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTen.getText()).toContain('Teaching people how to do something.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderEleven.getText()).toEqual('Mechanical');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextEleven.getText()).toContain('Knowledge of machines and tools, including their designs, uses, repair, and maintenance.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwelve.getText()).toEqual('Medicine and Dentistry');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwelve.getText()).toContain('Knowledge of the information and techniques needed to diagnose and treat human injuries, diseases, and deformities. This includes symptoms, treatment alternatives, drug properties and interactions, and preventive health-care measures.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderThirteen.getText()).toEqual('Memorization');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextThirteen.getText()).toContain('Remembering words, numbers, pictures, or steps.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderFourteen.getText()).toEqual('Monitoring');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextFourteen.getText()).toContain('Keeping track of how well people and/or groups are doing in order to make improvements.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderFifteen.getText()).toEqual('Negotiation');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextFifteen.getText()).toContain('Bringing people together to solve differences.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderSixteen.getText()).toEqual('Production and Processing');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextSixteen.getText()).toContain('Knowledge of raw materials, production processes, quality control, costs, and other techniques for maximizing the effective manufacture and distribution of goods.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderSeventeen.getText()).toEqual('Repairing');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextSeventeen.getText()).toContain('Repairing machines or systems using the right tools.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderEighteen.getText()).toEqual('Sales and Marketing');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextEighteen.getText()).toContain('Knowledge of principles and methods for showing, promoting, and selling products or services. This includes marketing strategy and tactics, product demonstration, sales techniques, and sales control systems.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderNineteen.getText()).toEqual('Science');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextNineteen.getText()).toContain('Using scientific rules and strategies to solve problems.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwenty.getText()).toEqual('Sociology and Anthropology');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwenty.getText()).toContain('Knowledge of group behavior and dynamics, societal trends and influences, human migrations, ethnicity, cultures and their history and origins.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentyOne.getText()).toEqual('Systems Analysis');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentyOne.getText()).toContain('Figuring out how a system should work and how changes in the future will affect it.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentyTwo.getText()).toEqual('Teaching and Course Design');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentyTwo.getText()).toContain('Knowledge of principles and methods for curriculum and training design, teaching and instruction for individuals and groups, and the measurement of training effects.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentyThree.getText()).toEqual('Telecommunications');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentyThree.getText()).toContain('Knowledge of transmission, broadcasting, switching, control, and operation of telecommunications systems.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentyFour.getText()).toEqual('Therapy and Counseling');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentyFour.getText()).toContain('Knowledge of principles, methods, and procedures for diagnosis, treatment, and rehabilitation of physical and mental dysfunctions, and for career counseling and guidance.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentyFive.getText()).toEqual('Time Management');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentyFive.getText()).toContain('Managing your time and the time of other people.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentySix.getText()).toEqual('Troubleshooting');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentySix.getText()).toContain('Figuring out what is causing equipment, machines, wiring, or computer programs to not work.');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextHeaderTwentySeven.getText()).toEqual('Writing');
|
|
||||||
expect(await ViewAllDIVGoodFitSubTextTwentySeven.getText()).toContain('Writing things for co-workers or customers.');
|
|
||||||
await ViewAllDIVXCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await ExploreCareersButton.getText()).toEqual('Explore Careers');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SkillsMatcherCareerExploration() {
|
|
||||||
it(': SkillsMatcherRetake, should interact with Skills Matcher widget and validate results', async function () {
|
|
||||||
var ExploreCareersButton = element(by.css('div:nth-child(2) > .btn'));
|
|
||||||
var CareerExplortaionPageTitle = element(by.css('.col-sm-12'));
|
|
||||||
var SkillsFilterButton = element(by.css('.filter-category-on:nth-child(3)'));
|
|
||||||
var InterestsFilterButton = element(by.css('.filter-category:nth-child(4)'));
|
|
||||||
var WidgetText = element(by.css('.row > .jrnys_lead-body-copy'));
|
|
||||||
var WidgetSubText = element(by.css('span:nth-child(2)'));
|
|
||||||
var AgricultureFoodAndNaturalResources = element(by.css('#\\34 f4b40f7-4d4a-4dbd-98ad-900e43307920 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ArchitectureAndConstruction = element(by.css('#b3ebc784-a26e-4134-87ea-87a44d90049a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var BusinessManagementAndAdministration = element(by.css('#\\35 db8efa4-0809-4e9e-8096-db5d5d1dafd5 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CyberSecurity = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CyberSecuritySelectButton = element(by.css('#\\37 22f5c71-9689-4f5d-817e-286843e3335a > #territoryCardContainer .btn'));
|
|
||||||
var CybersecurityManagementMGT = element(by.css('#\\37 087ce2a-5602-4e7a-ac42-250182301aa3 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var CybersecurityManagementMGTSelectButton = element(by.css('#\\37 087ce2a-5602-4e7a-ac42-250182301aa3 > #territoryCardContainer .btn'));
|
|
||||||
var RiskManagementRSK = element(by.css('#e727aac1-d5d9-4051-aa13-ab45854de0b8 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ExecutiveCyberLeadershipEXL = element(by.css('#f2578611-4857-459f-8292-f2b67bbea212 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var EducationAndTraining = element(by.css('#f5ef3fd0-e006-4326-a127-9a51cd68b62d > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var Finance = element(by.css('#\\36 ad08707-5c2b-44c7-b293-015236495276 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var DisabledPreviousLinkText = element(by.css('.col-xs-2:nth-child(2)'));
|
|
||||||
var PreviousLinkText = element(by.linkText('Previous'));
|
|
||||||
var NextLinkText = element(by.linkText('Next'));
|
|
||||||
var GovernmentAndPublicAdministration = element(by.css('#bdd9f0af-f808-40d9-b1ae-7dc0d75b4364 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var HumanServices = element(by.css('#\\33 2cf59de-d8b7-463c-86a1-5a872fca4293 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var LawPublicSafetyCorrectionsAndSecurity = element(by.css('#\\39 b4c9702-28fe-420a-aafb-0e99e61194ea > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var Manufacturing = element(by.css('#cf36dc0b-5825-4723-b8f4-06dc14276d9b > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ScienceTechnologyEngineeringAndMath = element(by.css('#d66f2e0f-2632-4cef-8245-ed2b6137b22f > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var TransportaionDistributionAndLogistics = element(by.css('.territoryCardTitleText > .ng-binding'));
|
|
||||||
var DisabledNextLinkText = element(by.css('.col-xs-2:nth-child(3)'));
|
|
||||||
var MarketingSalesAndService = element(by.css('#\\38 d94c030-7c25-4491-8706-57a9a83a5221 > #territoryCardContainer .territoryCardTitleText > .ng-binding'));
|
|
||||||
var ClusterLinkText = element(by.linkText('Clusters'));
|
|
||||||
var PathwaysLinkText = element(by.linkText('Pathways'));
|
|
||||||
var CommunicationsSecurityCOMSECManager = element(by.css('.territoryCardTitleText > .ng-binding'));
|
|
||||||
var CommunicationsSecurityCOMSECManagerLearnMoreIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(1) > .territoryCardActionBarText'));
|
|
||||||
var CommunicationsSecurityCOMSECManagerMapIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(2) > .territoryCardActionBarText'));
|
|
||||||
var CommunicationsSecurityCOMSECManagerJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)'));
|
|
||||||
var CommunicationsSecurityCOMSECManagerVideoIcon = element(by.css('.territoryCardActionBarItemContainer:nth-child(4) > .territoryCardActionBarText'));
|
|
||||||
|
|
||||||
await ExploreCareersButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await NextLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await Manufacturing.getText()).toEqual('Manufacturing');
|
|
||||||
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
|
|
||||||
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await NextLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await TransportaionDistributionAndLogistics.getText()).toEqual('Transportation, Distribution & Logistics');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
await PreviousLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await GovernmentAndPublicAdministration.getText()).toEqual('Government & Public Administration');
|
|
||||||
expect(await HumanServices.getText()).toEqual('Human Services');
|
|
||||||
expect(await LawPublicSafetyCorrectionsAndSecurity.getText()).toEqual('Law, Public Safety, Corrections & Security');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await Manufacturing.getText()).toEqual('Manufacturing');
|
|
||||||
expect(await MarketingSalesAndService.getText()).toEqual('Marketing, Sales & Service');
|
|
||||||
expect(await ScienceTechnologyEngineeringAndMath.getText()).toEqual('Science, Technology, Engineering & Math');
|
|
||||||
expect(await PreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await PreviousLinkText.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await CareerExplortaionPageTitle.getText()).toEqual('Career Exploration');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a cluster below.');
|
|
||||||
expect(await AgricultureFoodAndNaturalResources.getText()).toEqual('Agriculture, Food & Natural Resources');
|
|
||||||
expect(await ArchitectureAndConstruction.getText()).toEqual('Architecture & Construction');
|
|
||||||
expect(await BusinessManagementAndAdministration.getText()).toEqual('Business Management & Administration');
|
|
||||||
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CyberSecurity.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await EducationAndTraining.getText()).toEqual('Education & Training');
|
|
||||||
expect(await Finance.getText()).toEqual('Finance');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await NextLinkText.getText()).toEqual('Next');
|
|
||||||
await CyberSecuritySelectButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await ClusterLinkText.getText()).toEqual('Clusters');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters > Pathways');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, select a pathway below.');
|
|
||||||
expect(await CybersecurityManagementMGT.getText()).toEqual('Cybersecurity Management (MGT)');
|
|
||||||
expect(await RiskManagementRSK.getText()).toEqual('Risk Management (RSK)');
|
|
||||||
expect(await ExecutiveCyberLeadershipEXL.getText()).toEqual('Executive Cyber Leadership (EXL)');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
await CybersecurityManagementMGTSelectButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 0);').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(SkillsFilterButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green - active
|
|
||||||
expect(await SkillsFilterButton.getText()).toEqual('Skills');
|
|
||||||
expect(InterestsFilterButton.getCssValue('background-color')).toBe('rgba(60, 162, 223, 1)'); //blue - non active
|
|
||||||
expect(await InterestsFilterButton.getText()).toEqual('Interests');
|
|
||||||
expect(await ClusterLinkText.getText()).toEqual('Clusters');
|
|
||||||
expect(await PathwaysLinkText.getText()).toEqual('Pathways');
|
|
||||||
expect(await WidgetText.getText()).toEqual('Clusters > Pathways > Occupations');
|
|
||||||
expect(await WidgetSubText.getText()).toEqual('To start your career exploration, click the Learn More icon of an occupation below.');
|
|
||||||
expect(await CommunicationsSecurityCOMSECManager.getText()).toEqual('Communications Security (COMSEC) Manager');
|
|
||||||
expect(await CommunicationsSecurityCOMSECManagerLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await CommunicationsSecurityCOMSECManagerMapIcon.getText()).toEqual('Map');
|
|
||||||
expect(await CommunicationsSecurityCOMSECManagerJourneymanIcon.getText()).toEqual('Journey');
|
|
||||||
expect(await CommunicationsSecurityCOMSECManagerVideoIcon.getText()).toEqual('Video');
|
|
||||||
expect(await DisabledPreviousLinkText.getText()).toEqual('Previous');
|
|
||||||
expect(await DisabledNextLinkText.getText()).toEqual('Next');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function InterestSurveyResultsCreateJourney() {
|
|
||||||
it(': InterestSurveyResultsCreateJourney, should create a Journey to Top Interest Survey Result', async function () {
|
|
||||||
var CommunicationsSecurityCOMSECManagerJourneymanIcon = element(by.css('.territoryCardActionBarText:nth-child(3)'));
|
|
||||||
var JourneySideBarHeaderOne = element(by.css('.side-bar-child-text > span'));
|
|
||||||
var JourneyInfoIcon = element(by.css('span > .journey-info-circle'));
|
|
||||||
var JourneyInfoDIVTitle = element(by.css('.col-lg-12 > .ng-binding'));
|
|
||||||
var JourneyInfoDIVSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
|
||||||
var JourneyInfoDIVXCloseIcon = element(by.css('.fa-times'));
|
|
||||||
var JourneyEntryPoint = element(by.css('.journeyInput'));
|
|
||||||
var SelectEntryPointDropDown = element(by.css('.ng-scope:nth-child(5) > .sidebarScrollListTxt > .ng-binding'));
|
|
||||||
var StartYourJourneyButton = element(by.css('.journeyStartBtnEnable'));
|
|
||||||
var JourneysActionTitleHeader = element(by.css('div:nth-child(2) > .ng-binding'));
|
|
||||||
var JourneyResultTitle = element(by.css('#journeyitem0 .side-bar-child-text'));
|
|
||||||
var JourneyDetailIcon = element(by.css('#tab-content-0 .journey-info-circle'));
|
|
||||||
var JourneyEntryPointCluster = element(by.css('#journeyViewToolTip_0 .ng-binding:nth-child(1)'));
|
|
||||||
var JourneyEntryPointPathway = element(by.css('#journeyViewToolTip_0 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyEntryPointOccupation = element(by.css('#journeyViewToolTip_0 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneyCollegeStop = element(by.css('#journeyViewToolTip_1 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneyExitPointCluster = element(by.css('#journeyViewToolTip_2 .ng-binding:nth-child(1)'));
|
|
||||||
var JourneyExitPointPathway = element(by.css('#journeyViewToolTip_2 .sidebarDescriptionAncestorTxt > .sidebarDescriptionAncestorTxt'));
|
|
||||||
var JourneyExitPointOccupation = element(by.css('#journeyViewToolTip_2 .side-bar-journey-detail-child-txt:nth-child(5)'));
|
|
||||||
var JourneySaveIcon = element(by.css('div:nth-child(3) > div > .mapActionBarActive > .fas'));
|
|
||||||
var JourneyStopDIVTitle = element(by.css('.row:nth-child(1) > .col-md-12:nth-child(1)'));
|
|
||||||
var JourneyStopDIVTitleCardOne = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(1) .waypointCardTitle'));
|
|
||||||
var JourneyStopDIVTitleCardTwo = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(2) .waypointCardTitle'));
|
|
||||||
var JourneyStopDIVTitleCardThree = element(by.css('.item:nth-child(4) > .ng-scope:nth-child(3) .waypointCardTitle'));
|
|
||||||
var JourneyStopDIVSubText = element(by.css('#addWaypointsModalAddedWaypointsCarousel .ng-scope'));
|
|
||||||
var JourneyStopDIVSkipLink = element(by.css('.btn-inverse'));
|
|
||||||
var JourneySavedTitle = element(by.css('#sideBarTabJourneyItemHeader > .side-bar-child-text'));
|
|
||||||
|
|
||||||
await CommunicationsSecurityCOMSECManagerJourneymanIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await JourneySideBarHeaderOne.getText()).toEqual('Create Your Journey');
|
|
||||||
await JourneyInfoIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await JourneyInfoDIVTitle.getText()).toEqual('Create Your Journey');
|
|
||||||
expect(await JourneyInfoDIVSubText.getText()).toEqual('A Journey is your driving direction. Enter a starting location, such as your current grade, as well as the destination you are trying to reach, like an occupation. From there we will provide you with possible pathways to reach your goal.');
|
|
||||||
await JourneyInfoDIVXCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await JourneyEntryPoint.click();
|
|
||||||
browser.waitForAngular();
|
|
||||||
await JourneyEntryPoint.sendKeys('Electrical Engineer');
|
|
||||||
await SelectEntryPointDropDown.click();
|
|
||||||
browser.waitForAngular();
|
|
||||||
await StartYourJourneyButton.click();
|
|
||||||
browser.waitForAngular();
|
|
||||||
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
|
|
||||||
expect(await JourneyResultTitle.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College');
|
|
||||||
await JourneyDetailIcon.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneyEntryPointCluster.getText()).toEqual('STEM');
|
|
||||||
expect(await JourneyEntryPointPathway.getText()).toEqual('Engineering & Technology');
|
|
||||||
expect(await JourneyEntryPointOccupation.getText()).toEqual('Electrical Engineering Technologists');
|
|
||||||
expect(await JourneyCollegeStop.getText()).toEqual('College');
|
|
||||||
expect(await JourneyExitPointCluster.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await JourneyExitPointPathway.getText()).toEqual('Cybersecurity Management (MGT)');
|
|
||||||
expect(await JourneyExitPointOccupation.getText()).toEqual('Communications Security (COMSEC) Manager');
|
|
||||||
await JourneySaveIcon.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneyStopDIVTitle.getText()).toEqual('Now that you have saved a journey, feel free to add any additional certification(s) to your journey by selecting from below!');
|
|
||||||
expect(await JourneyStopDIVTitleCardOne.getText()).toEqual('EC Council Certified Chief Information Security Officer');
|
|
||||||
expect(await JourneyStopDIVTitleCardTwo.getText()).toEqual('GIAC Reverse Engineering Malware');
|
|
||||||
expect(await JourneyStopDIVTitleCardThree.getText()).toEqual('Systems Security Certified Practitioner');
|
|
||||||
expect(await JourneyStopDIVSubText.getText()).toEqual('Your added stops will show up here.');
|
|
||||||
expect(await JourneyStopDIVSkipLink.getText()).toEqual('Skip');
|
|
||||||
await JourneyStopDIVSkipLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneySavedTitle.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College');
|
|
||||||
expect(await JourneyEntryPointCluster.getText()).toEqual('STEM');
|
|
||||||
expect(await JourneyEntryPointPathway.getText()).toEqual('Engineering & Technology');
|
|
||||||
expect(await JourneyEntryPointOccupation.getText()).toEqual('Electrical Engineering Technologists');
|
|
||||||
expect(await JourneyCollegeStop.getText()).toEqual('College');
|
|
||||||
expect(await JourneyExitPointCluster.getText()).toEqual('Cyber Security');
|
|
||||||
expect(await JourneyExitPointPathway.getText()).toEqual('Cybersecurity Management (MGT)');
|
|
||||||
expect(await JourneyExitPointOccupation.getText()).toEqual('Communications Security (COMSEC) Manager');
|
|
||||||
expect(await JourneysActionTitleHeader.getText()).toEqual('Journey Search Results');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeleteCreatedJourney() {
|
|
||||||
it(': DeleteCreatedJourney, should navigate to My Journeys and delete recently created Journey', async function () {
|
|
||||||
var MyJourneysHeaderLink = element(by.css('#nbMyJourneys span'));
|
|
||||||
var MyJourneysPageTitle = element(by.css('.jrnys_lead-body-copy'));
|
|
||||||
var MyJourneysPageSubText = element(by.css('.col-md-10 .ng-scope:nth-child(1)'));
|
|
||||||
var MyJourneysSelectCreatedJourney = element(by.xpath("//span[contains(.,'Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College')]"));
|
|
||||||
var NinethGradeBubble = element(by.css('#mCSB_1_container > .firstWaypoint .lblClass'));
|
|
||||||
var TenthGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(2) .lblClass'));
|
|
||||||
var EleventhGradeBubble = element(by.css('#mCSB_1_container > .fullSize-Journey:nth-child(3) .lblClass'));
|
|
||||||
var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info'));
|
|
||||||
var MyJourneysTitleRow = element(by.css('.col-md-12 > .ng-binding'));
|
|
||||||
var MyJourneysWayPointTitleRow = element(by.css('.select-waypointTitle'));
|
|
||||||
var MyJourneysRightArrow = element(by.css('.glyphicon-menu-right'));
|
|
||||||
var MyJourneysRemoveJourneyButton = element(by.css('#saveJourneyButton'));
|
|
||||||
var MyJourneysDIVTite = element(by.css('h2'));
|
|
||||||
var MyJourneysDIVSubText = element(by.css('p:nth-child(7)'));
|
|
||||||
var MyJourneysDIVCancelButton = element(by.css('.cancel'));
|
|
||||||
var MyJourneysDIVOKButton = element(by.css('.confirm'));
|
|
||||||
var MyJourneysViewOnMap = element(by.css('.col-md-4 > .btn-info'));
|
|
||||||
var MyJourneysHowAmIDoingButton = element(by.css('.btn-success'));
|
|
||||||
var MyJourneysSubText = element(by.css('.details-resourceRowTitle'));
|
|
||||||
var MySavedJourneysTitleOne = element(by.xpath("//span[contains(.,'11 to Fitness and Wellness Coordinators through M.U.R.P.')]"));
|
|
||||||
var MySavedJourneysTitleTwo = element(by.xpath("//span[contains(.,'8 to Airfield Operations Specialists through College')]"));
|
|
||||||
var MySavedJourneysTitleThree = element(by.xpath("//span[contains(.,'10 to Computer and Information Systems Managers through Computer Security Graduate Certificate')]"));
|
|
||||||
var MySavedJourneysTitleFour = element(by.xpath("//span[contains(.,'2 to Natural Sciences Managers through Geology M.A.T./M.S.T.')]"));
|
|
||||||
|
|
||||||
await MyJourneysHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyJourneysPageTitle.getText()).toEqual('My Saved Journeys');
|
|
||||||
expect(await MyJourneysPageSubText.getText()).toEqual('Select a Journey to show it on the map');
|
|
||||||
expect(await MyJourneysSelectCreatedJourney.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College');
|
|
||||||
expect(await NinethGradeBubble.getText()).toEqual('Electrical');
|
|
||||||
expect(await TenthGradeBubble.getText()).toEqual('College');
|
|
||||||
expect(await EleventhGradeBubble.getText()).toEqual('Communication');
|
|
||||||
await MyJourneysSelectCreatedJourney.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyJourneysTitleRow.getText()).toEqual('Electrical Engineering Technologists to Communications Security (COMSEC) Manager through College');
|
|
||||||
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Electrical Engineering Technologists');
|
|
||||||
await MyJourneysRightArrow.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('College');
|
|
||||||
await MyJourneysRightArrow.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
expect(await MyJourneysWayPointTitleRow.getText()).toEqual('Communications Security (COMSEC) Manager');
|
|
||||||
expect(await MyJourneysRemoveJourneyButton.getText()).toEqual('Remove Journey');
|
|
||||||
expect(await MyJourneysViewOnMap.getText()).toEqual('View On Map');
|
|
||||||
expect(await MyJourneysHowAmIDoingButton.getText()).toEqual('How am I doing?');
|
|
||||||
expect(await MyJourneysSubText.getText()).toEqual('Try these resources');
|
|
||||||
await MyJourneysRemoveJourneyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyJourneysDIVTite.getText()).toEqual('Are you sure?');
|
|
||||||
expect(await MyJourneysDIVSubText.getText()).toEqual('You will not be able to recover this journey!');
|
|
||||||
expect(await MyJourneysDIVCancelButton.getText()).toEqual('Cancel');
|
|
||||||
expect(await MyJourneysDIVOKButton.getText()).toEqual('Yes, delete it!');
|
|
||||||
await MyJourneysDIVOKButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MyJourneysDIVTite.getText()).toEqual('Deleted!');
|
|
||||||
expect(await MyJourneysDIVSubText.getText()).toEqual('Your journey has been deleted.');
|
|
||||||
await MyJourneysDIVOKButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await MyJourneysHeaderLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MySavedJourneysTitleOne.getText()).toEqual('11 to Fitness and Wellness Coordinators through M.U.R.P.');
|
|
||||||
expect(await MySavedJourneysTitleTwo.getText()).toEqual('8 to Airfield Operations Specialists through College');
|
|
||||||
expect(await MySavedJourneysTitleThree.getText()).toEqual('10 to Computer and Information Systems Managers through Computer Security Graduate Certificate');
|
|
||||||
expect(await MySavedJourneysTitleFour.getText()).toEqual('2 to Natural Sciences Managers through Geology M.A.T./M.S.T.');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//topCareerWidget_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['topcareerWidget_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,971 +0,0 @@
|
|||||||
//topCareerWidget_spec.js
|
|
||||||
|
|
||||||
const { WebElement } = require("selenium-webdriver");
|
|
||||||
|
|
||||||
describe('Top Career Widget script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
EditTopCareer();
|
|
||||||
TopCareerWidget();
|
|
||||||
|
|
||||||
//Sign Out*/
|
|
||||||
SignOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
function EditTopCareer() {
|
|
||||||
it(': EditTopCareer, should edit Top Career', async function () {
|
|
||||||
var WidgetTitle = element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'));
|
|
||||||
var TopCareerEditIcon = element(by.css('.full-width .fa-pencil'));
|
|
||||||
var TopCareerDIvXRemoveLink = element(by.css('.col-xs-1 > .glyphicon'));
|
|
||||||
var TopCareerDIVCancelButton = element(by.css('.row:nth-child(12) .btn-alt-info'));
|
|
||||||
var TopCareerGreenText = element(by.css('.default-color:nth-child(2)'));
|
|
||||||
var TopCareerGreenSubText = element(by.css('.textPosition'));
|
|
||||||
var TopCareerDIVAddButton = element(by.css('.resetBtn'));
|
|
||||||
var TopCareerDIVTitle = element(by.css('h2'));
|
|
||||||
var TopCareerDIVSubTitle = element(by.css('.row:nth-child(5) > .col-lg-8'));
|
|
||||||
var TopCareerDIVHandle = element(by.css('.col-lg-8 > label'));
|
|
||||||
var TopCareerDIVTextBox = element(by.id('searchBox'));
|
|
||||||
var TopCareerDIVSelection = element(by.xpath('//div[2]/div/ul/li[3]/a/span'));
|
|
||||||
var TopCareerDIVSaveButton = element(by.css('.row:nth-child(12) #photoBtn'));
|
|
||||||
var TopCareerLink = element(by.css('td>.jrnys_support-text'));
|
|
||||||
var TopCareerDescription = element(by.css('.jrEllipsis3Lines'));
|
|
||||||
|
|
||||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await WidgetTitle.getText()).toEqual('Top Career');
|
|
||||||
browser.actions().mouseMove(element(by.css('.widget-padding:nth-child(2) > .jrnys_lead-body-copy'))).perform().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerEditIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerDIvXRemoveLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerDIVCancelButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopCareerGreenText.getText()).toEqual('Top Career');
|
|
||||||
expect(await TopCareerGreenSubText.getText()).toEqual("Head in the clouds? Share what Career you’re thinking about!");
|
|
||||||
await TopCareerDIVAddButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopCareerDIVTitle.getText()).toEqual('Dream big, reach higher!');
|
|
||||||
expect(await TopCareerDIVSubTitle.getText()).toEqual("Journeys is a place that helps make dreams come true. What's your dream job?");
|
|
||||||
expect(await TopCareerDIVHandle.getText()).toEqual('Job Title');
|
|
||||||
await TopCareerDIVTextBox.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerDIVTextBox.sendKeys('Computer');
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.actions().mouseMove(TopCareerDIVSelection).perform().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerDIVSelection.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await TopCareerDIVSaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopCareerLink.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopCareerDescription.getText()).toEqual('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function TopCareerWidget() {
|
|
||||||
it(': TopCareerWidget, should validate the Top Career widget', async function () {
|
|
||||||
var TopCareerLink = element(by.css('td>.jrnys_support-text'));
|
|
||||||
var LearnMoreTitle = element(by.css('td > div:nth-child(1) > .jrnys_lead-body-copy'));
|
|
||||||
var DescriptionDetail = element(by.css('.info-icon:nth-child(2) > .journey-info-circle'));
|
|
||||||
var DescriptionHeader = element(by.css('.col-lg-12 > .ng-binding'));
|
|
||||||
var DescriptionSubText = element(by.css('.col-lg-12:nth-child(3)'));
|
|
||||||
var CloseXIcon = element(by.css('.close'));
|
|
||||||
var BackLink = element(by.css('.btn-primary-back-mod'));
|
|
||||||
//At A Glance
|
|
||||||
var AtAGlanceLink = element(by.css('tr:nth-child(3) > td:nth-child(1) > .text-color-7a'));
|
|
||||||
var AtAGlanceDIVTitle = element(by.css('.widgetHeaderContainer > .jrnys_lead-body-copy'));
|
|
||||||
var TypicalDegreeHeader = element(by.css('.row-height:nth-child(1) .jrnys_support-text'));
|
|
||||||
var TypicalDegreeData = element(by.css('.row-height:nth-child(1) .col-sm-offset-4'));
|
|
||||||
var AverageAnnualSalaryHeader = element(by.css('.row-height:nth-child(2) .jrnys_support-text'))
|
|
||||||
var AverageAnnualSalaryData = element(by.css('.row-height:nth-child(2) .dataFontSize'));
|
|
||||||
var ProjectedGrowthHeader = element(by.css('.row-height:nth-child(3) .jrnys_support-text'));
|
|
||||||
var ProjectedGrowthPath = element(by.css('.col-sm-offset-4 > span'));
|
|
||||||
var ProjectedGrowthData = element(by.css('.row-height:nth-child(3) .col-sm-offset-4'));
|
|
||||||
var ProjectedJobOpeningsHeader = element(by.css('.row-height:nth-child(4) .jrnys_support-text'));
|
|
||||||
var ProjectedJobOpeningsData = element(by.css('.row-height:nth-child(4) .dataFontSize'));
|
|
||||||
var CurrentlyEmployedHeader = element(by.css('.row-height:nth-child(5) .jrnys_support-text'));
|
|
||||||
var CurrentlyEmployedData = element(by.css('.row-height:nth-child(5) .dataFontSize'));
|
|
||||||
//Personality
|
|
||||||
var PersonalityLink = element(by.css('tr:nth-child(4) > td:nth-child(1) > .text-color-7a'));
|
|
||||||
var PersonalityDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
|
||||||
var PersonalityDescriptionOne = element(by.css('.ng-scope:nth-child(1) > tbody td > .ng-binding'));
|
|
||||||
var PersonalityDescriptionTwo = element(by.css('.ng-scope:nth-child(1) > tbody > tr:nth-child(2) div'));
|
|
||||||
var PersonalityBulletOne = element(by.css('.ng-scope:nth-child(3) > td .ng-binding'));
|
|
||||||
var PersonalityBulletTwo = element(by.css('.ng-scope:nth-child(4) > td .ng-binding'));
|
|
||||||
var PersonalityBulletThree = element(by.css('.ng-scope:nth-child(5) > td .ng-binding'));
|
|
||||||
var PersonalityBulletFour = element(by.css('.ng-scope:nth-child(6) > td .ng-binding'));
|
|
||||||
var PersonalityBulletFive = element(by.css('.ng-scope:nth-child(7) .ng-binding'));
|
|
||||||
var PersonalityBulletSix = element(by.css('.ng-scope:nth-child(8) .ng-binding'));
|
|
||||||
//Wages
|
|
||||||
var WagesLink = element(by.css('tr:nth-child(5) > td:nth-child(1) > .text-color-7a'));
|
|
||||||
var WagesDIVTitle = element(by.css('.widget-padding > div > .jrnys_lead-body-copy'));
|
|
||||||
var WagesIIcon = element(by.css('.journey-info-circle'));
|
|
||||||
var WagesBackOfDIVTitle = element(by.css('table:nth-child(2) .jrnys_lead-body-copy'));
|
|
||||||
var WagesBackOfDIVTextOne = element(by.css('td > .ng-binding:nth-child(2)'));
|
|
||||||
var WagesBackOfDIVTextTwo = element(by.css('td:nth-child(1) > div:nth-child(3)'));
|
|
||||||
var WagesBackOfDIVTextThree = element(by.linkText('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0'));
|
|
||||||
var WagesBackOfDIVTextFour = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm19all.zip'));
|
|
||||||
var WagesBackOfDIVTextFive = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm18all.zip'));
|
|
||||||
var WagesBackOfDIVTextSix = element(by.linkText('https://www.bls.gov/oes/special.requests/oesm17all.zip'));
|
|
||||||
var WagesBackOfDIVXCloseIcon = element(by.css('.fa-times-rectangle'));
|
|
||||||
var CurrentDataNationalHeader = element(by.css('g:nth-child(2) > g:nth-child(2) > text'));
|
|
||||||
var CurrentDataLocalHeader = element(by.css('g:nth-child(3) > g > text'));
|
|
||||||
//var WagesTypeText = element(by.xpath('/html/body/div[1]/div/div/div[2]/ul/li[4]/occupation-wages/div/div[2]/div/table/tbody/tr/td/div/div/div[1]/div/svg/g[3]/g/text'));//Can't ID
|
|
||||||
var WagesHighText = element(by.css('g:nth-child(6) > text'));
|
|
||||||
var WagesMedianText = element(by.css('g:nth-child(7) > text'));
|
|
||||||
var WagesLowText = element(by.css('g:nth-child(8) > text'));
|
|
||||||
var Wages0Text = element(by.css('g:nth-child(4) > g:nth-child(1) > text'));
|
|
||||||
var WagesXAxisOneText = element(by.css('g:nth-child(4) > g:nth-child(2) > text'));
|
|
||||||
var WagesXAxisTwoText = element(by.css('g:nth-child(3) > text'));
|
|
||||||
var WagesXAxisThreeText = element(by.css('g:nth-child(4) > text'));
|
|
||||||
var WagesXAxisFourText = element(by.css('g:nth-child(5) > text'));
|
|
||||||
var WagesFilterIcon = element(by.css('.fa-sliders-h'));
|
|
||||||
var ZipCodeTextBoxText = element(by.css('.dropdown-menu tr:nth-child(1) > td:nth-child(1)'));
|
|
||||||
var ZipCodeTextBox = element(by.css('.ng-valid-maxlength'));
|
|
||||||
var ZipCodeApplyButton = element(by.css('tr:nth-child(1) .btn'));
|
|
||||||
var StateDropDownText = element(by.css('.dropdown-menu tr:nth-child(2) > td:nth-child(1)'));
|
|
||||||
var StateDropDownApplyButton = element(by.css('tr:nth-child(2) .btn'));
|
|
||||||
var WagesHighTextTwo = element(by.css('g:nth-child(7) > text'));
|
|
||||||
var WagesMedianTextTwo = element(by.css('g:nth-child(8) > text'));
|
|
||||||
var WagesLowTextTwo = element(by.css('g:nth-child(9) > text'));
|
|
||||||
var WagesXAxisFiveText = element(by.css('g:nth-child(6) > text'));
|
|
||||||
var RateTypeText = element(by.css('.dropdown-menu tr:nth-child(3) > td:nth-child(1)'));
|
|
||||||
var HourlyButton = element(by.xpath("//button[contains(.,'Hourly')]"));
|
|
||||||
var AnnualButton = element(by.xpath("//button[contains(.,'Annual')]"));
|
|
||||||
//College Pathways
|
|
||||||
var CollegPathwaysLink = element(by.css('tr:nth-child(3) > td:nth-child(2) > .text-color-7a'));
|
|
||||||
var CollegePathwaysDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
|
||||||
var ComputerApplicationsMinorCollegeWide = element(by.css('#\\36 3f93734-c4e9-48cd-8ff4-041e10760da5 #territoryCardMobileTitle'));
|
|
||||||
var ComputerScienceBS = element(by.css('#a6e09aef-a938-4c2b-aa90-c6d6b2499de7 #territoryCardMobileTitle'));
|
|
||||||
var ComputerScienceMinor = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 #territoryCardMobileTitle'));
|
|
||||||
var ComputerScienceMinorDescription = element(by.xpath("//territory-card[@id='fd59401c-391c-4fe4-979a-440cf9648e22']/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div"));
|
|
||||||
var ComputerScienceMinorInstitutionsHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var ComputerScienceMinorInstitutionsData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(1) .ng-binding'));
|
|
||||||
var ComputerScienceMinorCoursesHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(3) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var ComputerScienceMinorCoursesData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(3) .ng-binding'));
|
|
||||||
var ComputerScienceMinorOccupationsHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(5) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var ComputerScienceMinorOccupationsData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(5) .ng-binding'));
|
|
||||||
var ComputerScienceMinorAverageAnnualSalaryHeader = element(by.css('.territoryCardBackOfCardItemRow:nth-child(7) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var ComputerScienceMinorAverageAnnualSalaryData = element(by.css('.territoryCardBackOfCardItemRow:nth-child(7) .ng-binding'));
|
|
||||||
var ComputerScienceMinorEllipsisIcon = element(by.css('#fd59401c-391c-4fe4-979a-440cf9648e22 .territoryCardIcon > .fas'));
|
|
||||||
var ComputerScienceMinorFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
|
|
||||||
var ComputerScienceMinorLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerScienceMinorMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerScienceMinorJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerScienceMinorAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
|
|
||||||
var CollegePathwaysRightScrollIcon = element(by.css('.table-height:nth-child(2) .right > .glyphicon'));
|
|
||||||
var ComputerScienceMS = element(by.css('#a8803504-ea19-4643-8569-b5fae3db34d9 #territoryCardMobileTitle'));
|
|
||||||
//Certificates
|
|
||||||
var CertificatesLink = element(by.css('tr:nth-child(4) > td:nth-child(2) > .text-color-7a'));
|
|
||||||
var CertificatesDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
|
||||||
var CertifiedLabVIEWArchitect = element(by.css('#\\35 179bed9-a8e1-44af-b525-3e8ad0dcb31e #territoryCardMobileTitle'));
|
|
||||||
var CertifiedLabVIEWArchitectDescription = element(by.xpath("//territory-card[@id='5179bed9-a8e1-44af-b525-3e8ad0dcb31e']/div/table/tbody/tr[3]/td/div/div[2]/territory-card-at-a-glance-back/div/div"));
|
|
||||||
var CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersHeader = element(by.css('.ng-scope:nth-child(2) > .ng-scope > table:nth-child(1) .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(1) .ng-binding'));
|
|
||||||
var CertifiedLabVIEWArchitectOccupationsHeader = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(3) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var CertifiedLabVIEWArchitectOccupationsData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(3) .ng-binding'));
|
|
||||||
var CertifiedLabVIEWArchitectResourcesHeader = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(5) .territoryCardBackOfCardItemText:nth-child(1)'));
|
|
||||||
var CertifiedLabVIEWArchitectResourcesData = element(by.css('table:nth-child(1) > tbody > .territoryCardBackOfCardItemRow:nth-child(5) .ng-binding'));
|
|
||||||
var CertifiedAssociateLabVIEWDeveloper = element(by.css('#\\38 8e24eb9-a695-4048-917d-f45bd0015675 #territoryCardMobileTitle'));
|
|
||||||
var AvayaCertifiedExpert = element(by.css('#\\31 82f070b-18f9-4276-bb91-3128c4d0cf2c #territoryCardMobileTitle'));
|
|
||||||
var CertificatesRightScrollIcon = element(by.xpath('//career-certificate-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
|
||||||
var CertifiedBiometricsProfessional = element(by.css('#\\33 dc99d7b-8e65-4337-8d77-9168ff3c441f #territoryCardMobileTitle'));
|
|
||||||
var CertifiedSoftwareDevelopmentProfessional = element(by.css('#b087b0eb-5b23-432e-816e-7fd06cf51aa1 #territoryCardMobileTitle'));
|
|
||||||
var MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter = element(by.css('#\\34 e91a2cb-c425-4881-9af7-cea1617cdddc #territoryCardMobileTitle'));
|
|
||||||
//Institutions
|
|
||||||
var InstitutionsLink = element(by.css('tr:nth-child(5) > td:nth-child(2) > .text-color-7a'));
|
|
||||||
var InstitutionsDIVTitle = element(by.xpath('//recommended-colleges/div/div/div'));
|
|
||||||
var UniversityOfSanDiego = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(1) #territoryCardMobileTitle'));
|
|
||||||
var NationalUniversity = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(2) #territoryCardMobileTitle'));
|
|
||||||
var PointLomaNazareneUniversity = element(by.css('.item:nth-child(1) > .col-xs-12:nth-child(3) #territoryCardMobileTitle'));
|
|
||||||
var InstitutionsRightScrollIcon = element(by.css('#recommendedColleges .right > .glyphicon'));
|
|
||||||
var UniversityOfCaliforniaSanDiego = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(1) #territoryCardMobileTitle'));
|
|
||||||
var SanDiegoStateUniversity = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(2) #territoryCardMobileTitle'));
|
|
||||||
var SanDiegoStateUniversity4YearHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var SanDiegoStateUniversity4YearData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > div:nth-child(2)'));
|
|
||||||
var SanDiegoStateUniversityUndergradHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div:nth-child(1)'));
|
|
||||||
var SanDiegoStateUniversityUndergradData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(3) > td:nth-child(2) > div.territoryCardBackOfCardItemText.ng-binding'));
|
|
||||||
var SanDiegoStateUniversityLocationHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText'));
|
|
||||||
var SanDiegoStateUniversityLocationData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(5) > td.territoryCardBackOfCardItemText > div'));
|
|
||||||
var SanDiegoStateUniversityClassroomHeader = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText'));
|
|
||||||
var SanDiegoStateUniversityClassroomData = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(2) > territory-card-at-a-glance-back > div > div.ng-scope > div > table > tbody > tr:nth-child(7) > td.territoryCardBackOfCardItemText > div'));
|
|
||||||
var SanDiegoStateUniversityEllipsisIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(1) > td:nth-child(3) > div > i'));
|
|
||||||
var SanDiegoStateUniversityFollowIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(1) > div.territoryCardItemText'));
|
|
||||||
var SanDiegoStateUniversityLearnMoreIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(2) > div.territoryCardBackOfCardItemText'));
|
|
||||||
var SanDiegoStateUniversityAtAGlanceIcon = element(by.css('#recommendedColleges > div > div > div.item.text-center.ng-isolate-scope.active > div:nth-child(2) > div > college-territory-card > territory-card > div > table > tbody > tr:nth-child(3) > td > div > div:nth-child(1) > territory-card-more-back > div > div > div:nth-child(6) > div.territoryCardBackOfCardItemText'));
|
|
||||||
var CaliforniaStateUniversitySanMarcos = element(by.css('.item:nth-child(2) > .col-xs-12:nth-child(3) #territoryCardMobileTitle'));
|
|
||||||
//Top Resources
|
|
||||||
var TopResourcesLink = element(by.css('tr:nth-child(3) > td:nth-child(3) > .text-color-7a'));
|
|
||||||
var TopResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
var TopResourcesTitleOne = element(by.css('.panel:nth-child(1) .ng-binding'));
|
|
||||||
var TopResourcesTitleTwo = element(by.css('.panel:nth-child(2) .ng-binding'));
|
|
||||||
var TopResourcesTitleTwoFollow = element(by.css('.panel:nth-child(2) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)'));
|
|
||||||
var TopResourcesTitleTwoLearnMore = element(by.css('.panel:nth-child(2) .row:nth-child(2) div:nth-child(2) span:nth-child(2)'));
|
|
||||||
var TopResourcesTitleThree = element(by.css('.panel:nth-child(3) .ng-binding'));
|
|
||||||
var TopResourcesTitleThreeFollow = element(by.css('.panel:nth-child(3) .col-xs-10:nth-child(1) > div:nth-child(1) span:nth-child(2)'));
|
|
||||||
var TopResourcesTitleThreeLearnMore = element(by.css('.panel:nth-child(3) .row:nth-child(2) div:nth-child(2) span:nth-child(2)'));
|
|
||||||
var TopResourcesTitleFour = element(by.css('.panel:nth-child(4) .ng-binding'));
|
|
||||||
var TopResourcesTitleFive = element(by.css('.panel:nth-child(5) .ng-binding'));
|
|
||||||
var TopResourcesTitleSix = element(by.css('.panel:nth-child(6) .ng-binding'));
|
|
||||||
//Find Opportunities
|
|
||||||
var FindOpportunitiesLink = element(by.css('tr:nth-child(4) > td:nth-child(3) > .text-color-7a'));
|
|
||||||
var FindOpportunitiesDIVTitle = element(by.css('.col-xs-12 > h6:nth-child(1) > .ng-binding'));
|
|
||||||
var SubmitResourceLink = element(by.css('tr:nth-child(5) > td:nth-child(3) > .text-color-7a'));
|
|
||||||
var SubmitResourceDIVTitle = element(by.css('.jrnys_lead-body-copy > .col-xs-12'));
|
|
||||||
var SubmitResourceDIVSubTextOne = element(by.css('.subtitle'));
|
|
||||||
var TotalInJourneysHeader = element(by.css('.total-display'));
|
|
||||||
var TotalInJourneysData = element(by.css('.submit-count:nth-child(2)'));
|
|
||||||
var MySubmittedResourcesDIVTitle = element(by.css('.col-sm-12 > .ng-binding'));
|
|
||||||
var MySubmittedResourcesTitle = element(by.css('.row > .row .ng-binding'));
|
|
||||||
var MySubmittedResourcesEllipsisIcon = element(by.css('.glyphicon-option-vertical'));
|
|
||||||
var MySubmittedResourcesFollowIcon = element(by.css('div:nth-child(1) > .text-color-4b > span'));
|
|
||||||
var MySubmittedResourcesLearnMoreIcon = element(by.css('div:nth-child(2) > .text-color-4b > span:nth-child(2)'));
|
|
||||||
var MySubmittedResourcesDIVXCloseIcon = element(by.css('div:nth-child(2) > .close'));
|
|
||||||
var ForThisMapPointHeader = element(by.css('.row:nth-child(4) .col-xs-8'));
|
|
||||||
var ForThisMapPointData = element(by.css('.submit-count:nth-child(1)'));
|
|
||||||
var SubmitResourceDIVSubTextTwo = element(by.css('.row:nth-child(6) > .col-sm-12'));
|
|
||||||
var SubmitAResourceDIVButton = element(by.css('.row:nth-child(7) .btn'));
|
|
||||||
var SubmitAResourceDIVTitle = element(by.css('h3'));
|
|
||||||
var SubmitAResourceDIVCloseXIcon = element(by.css('.btn-blue-RoundTabsinfo'));
|
|
||||||
//Nearby Places
|
|
||||||
var NearbyPlacesLink = element(by.css('tr:nth-child(3) > td:nth-child(4) > .text-color-7a'));
|
|
||||||
var NearbyPlacesDIVTitle = element(by.css('.ng-scope > .fullHeight > .ng-binding'));
|
|
||||||
var ComputerAndInformationSystemsManagers = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 #territoryCardMobileTitle'));
|
|
||||||
var ComputerAndInformationSystemsManagersEllipsisIcon = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardIcon > .fas'));
|
|
||||||
var ComputerAndInformationSystemsManagersFollowIcon = element(by.css('.territoryCardBackOfCardContainer > .territoryCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersLearnMoreIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(2) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersMapIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(3) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersJourneyIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(4) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersVideoIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(5) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAtAGlanceIcon = element(by.css('.territoryCardBackOfCardContainer:nth-child(6) > .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersDescription = element(by.css('#\\35 d1377f6-b0bc-4750-945e-1f0d12df3807 .territoryCardDescriptionText:nth-child(1)'));
|
|
||||||
var ComputerAndInformationSystemsManagersTypicalDegreeHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(1) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersTypicalDegreeDataOne = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(2) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersTypicalDegreeDataTwo = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(3) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersTypicalDegreeDataThree = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-scope:nth-child(4) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualSalaryHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(16) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualSalaryData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(17) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(19) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataOne = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemText > .ng-binding:nth-child(1)'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataTwo = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .ng-binding:nth-child(3)'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(22) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope tr:nth-child(23) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedHeader = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope .territoryCardBackOfCardItemRow:nth-child(25) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedData = element(by.css('.ng-scope > .ng-scope > .ng-scope > .ng-scope tr:nth-child(26) .territoryCardBackOfCardItemText'));
|
|
||||||
var ComputerNetworkArchitects = element(by.css('#fb2fabe5-621b-477e-948c-64d1fef31b95 #territoryCardMobileTitle'));
|
|
||||||
var NearbyPlacesRightScroll = element(by.xpath('//career-occupation-carousel/div/div/table/tbody/tr/td/div/div/a[2]/span'));
|
|
||||||
var ComputerNetworkSupportSpecialists = element(by.css('#b645081d-8b86-44b2-8d68-155c064edced #territoryCardMobileTitle'));
|
|
||||||
var ComputerOccupationsAllOther = element(by.css('#e3e72eef-7bc8-4384-a3dd-6e766992dfc0 #territoryCardMobileTitle'));
|
|
||||||
var ComputerProgrammers = element(by.css('#\\33 ce39f29-0e17-4472-8dba-682356e8df07 #territoryCardMobileTitle'));
|
|
||||||
var ComputerScienceTeachersPostsecondary = element(by.css('#e867c7f0-c5e9-43ac-9dd3-82dd4dd62660 #territoryCardMobileTitle'));
|
|
||||||
var DataWarehousingSpecialist = element(by.css('#\\34 9618b26-751c-4c6c-bb52-1773b0c84e68 #territoryCardMobileTitle'));
|
|
||||||
var DatabaseAdministrator = element(by.css('#\\31 25099b5-7514-4a28-8c5f-776a0edd13c2 #territoryCardMobileTitle'));
|
|
||||||
var DatabaseArchitects = element(by.css('#\\32 f5c1341-aaec-41f7-8d76-7fbe9c0497fa #territoryCardMobileTitle'));
|
|
||||||
var GraphicDesigners = element(by.css('#cc7cc408-71ef-4390-b425-d03e24f8253a #territoryCardMobileTitle'));
|
|
||||||
var InformationSecurityAnalysts = element(by.css('#\\31 fe39d9e-c19d-45eb-bfef-f44e759a56d6 #territoryCardMobileTitle'));
|
|
||||||
var MultimediaArtistsAndAnimators = element(by.css('#\\32 a294540-b4cc-4886-a4de-edb17e7a748e #territoryCardMobileTitle'));
|
|
||||||
var NetworkAndComputerSystemsAdministrators = element(by.css('#ce3ef31a-9e4e-4ab8-a950-61b07731ad66 #territoryCardMobileTitle'));
|
|
||||||
var SoftwareDevelopersApplications = element(by.css('#\\32 26a35d5-9f4d-4f3e-8327-bce9c771d0e6 #territoryCardMobileTitle'));
|
|
||||||
var SoftwareDevelopersSystemsSoftware = element(by.css('#d1ab3735-cd9e-46aa-9046-76cd7122f4a8 #territoryCardMobileTitle'));
|
|
||||||
var TelecommunicationsEngineeringSpecialists = element(by.css('#\\35 3a78dab-253e-4962-a9a7-282e9b23493c #territoryCardMobileTitle'));
|
|
||||||
//Knowledge
|
|
||||||
var KnowledgeLink = element(by.css('tr:nth-child(4) > td:nth-child(4) > .text-color-7a'))
|
|
||||||
var DIVTitle = element(by.css('h6 > .ng-binding'));
|
|
||||||
var ImportanceHeader = element(by.css('thead .text-color-7a'));
|
|
||||||
var DescriptionOne = element(by.css('tbody:nth-child(3) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a'));
|
|
||||||
var DescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatTwo = element(by.css('.ng-scope:nth-child(2) > .text-center'));
|
|
||||||
var DescriptionThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatThree = element(by.css('.ng-scope:nth-child(3) > .text-center'));
|
|
||||||
var DescriptionFour = element(by.css('tbody > .ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatFour = element(by.css('.ng-scope:nth-child(4) > .text-color-7a'));
|
|
||||||
var DescriptionFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatFive = element(by.css('.ng-scope:nth-child(5) > .text-center'));
|
|
||||||
var DescriptionSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatSix = element(by.css('.ng-scope:nth-child(6) > .text-center'));
|
|
||||||
var DescriptionSeven = element(by.css('.ng-scope:nth-child(7) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatSeven = element(by.css('.ng-scope:nth-child(7) > .text-center'));
|
|
||||||
var CloseXImage = element(by.css('.fa-times-circle'));
|
|
||||||
//Skills
|
|
||||||
var SkillsLink = element(by.css('tr:nth-child(5) > td:nth-child(4) > .text-color-7a'));
|
|
||||||
var DescriptionEight = element(by.css('.ng-scope:nth-child(8) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatEight = element(by.css('.ng-scope:nth-child(8) > .text-center'));
|
|
||||||
//Ability
|
|
||||||
var AbilityLink = element(by.css('tr:nth-child(3) > td:nth-child(5) > .text-color-7a'));
|
|
||||||
//Tasks
|
|
||||||
var TasksLink = element(by.css('tr:nth-child(4) > td:nth-child(5) > .text-color-7a'));
|
|
||||||
var TasksCategoryHeader = element(by.css('thead .text-color-7a:nth-child(2)'));
|
|
||||||
var TasksImportanceHeader = element(by.css('thead .text-color-7a:nth-child(3)'));
|
|
||||||
var TasksDescriptionOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding:nth-child(1)'));
|
|
||||||
var TasksCategoryDataOne = element(by.css('.ng-scope:nth-child(1) > .text-color-7a:nth-child(2)'));
|
|
||||||
var TasksImportanceDataOne = element(by.css('.ng-scope:nth-child(1) > .text-center:nth-child(3)'));
|
|
||||||
var TasksDescriptionTwo = element(by.css('.ng-scope:nth-child(2) > .ng-binding:nth-child(1)'));
|
|
||||||
var TasksCategoryDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(2)'));
|
|
||||||
var TasksImportanceDataTwo = element(by.css('.ng-scope:nth-child(2) > .text-center:nth-child(3)'));
|
|
||||||
var TasksDescriptionThree = element(by.css('tbody > .ng-scope:nth-child(3) > .ng-binding:nth-child(1)'));
|
|
||||||
var TasksCategoryDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(2)'));
|
|
||||||
var TasksImportanceDataThree = element(by.css('.ng-scope:nth-child(3) > .text-center:nth-child(3)'));
|
|
||||||
var TasksDescriptionFour = element(by.css('.ng-scope:nth-child(4) > .ng-binding:nth-child(1)'));
|
|
||||||
var TasksCategoryDataFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(2)'));
|
|
||||||
var TasksImportanceDataFour = element(by.css('.ng-scope:nth-child(4) > .text-center:nth-child(3)'));
|
|
||||||
var TasksDescriptionFive = element(by.css('.ng-scope:nth-child(5) > .ng-binding:nth-child(1)'));
|
|
||||||
var TasksCategoryDataFive = element(by.css('.ng-scope:nth-child(5) > .text-color-7a:nth-child(2)'));
|
|
||||||
var TasksImportanceDataFive = element(by.css('.ng-scope:nth-child(5) > .text-center:nth-child(3)'));
|
|
||||||
var TasksDescriptionSix = element(by.css('.ng-scope:nth-child(6) > .ng-binding:nth-child(1)'));
|
|
||||||
var TasksCategoryDataSix = element(by.css('.ng-scope:nth-child(6) > .text-color-7a:nth-child(2)'));
|
|
||||||
var TasksImportanceDataSix = element(by.css('.ng-scope:nth-child(6) > .text-center:nth-child(3)'));
|
|
||||||
//Technology
|
|
||||||
var TechnologyLink = element(by.css('td:nth-child(5) > .ng-scope'));
|
|
||||||
var TechnologyDescriptionOne = element(by.css('tbody:nth-child(2) > .ng-scope:nth-child(1) > .ng-binding'));
|
|
||||||
var TechnologyStatOne = element(by.css('.ng-scope:nth-child(1) > .text-left > .ng-binding:nth-child(1)'));
|
|
||||||
//Work Activities
|
|
||||||
var WorkActivitiesLink = element(by.css('td:nth-child(6) > .text-color-7a'));
|
|
||||||
var DescriptionNine = element(by.css('.ng-scope:nth-child(9) > .ng-binding:nth-child(1)'));
|
|
||||||
var ImportanceStatNine = element(by.css('.ng-scope:nth-child(9) > .text-center'));
|
|
||||||
|
|
||||||
//Jump to Learn More Page
|
|
||||||
await TopCareerLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Description
|
|
||||||
expect(await LearnMoreTitle.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await DescriptionDetail.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DescriptionHeader.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('Conduct research into fundamental computer and information science as theorists, designers, or inventors. Develop solutions to problems in the field of computer hardware and software.');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('Other Jobs:');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('Computer Scientist; Computer Specialist; Control System Computer Scientist; HPC Applications Manager (High Performance Computing Applications Manager); Research Scientist; Scientific Programmer Analyst');
|
|
||||||
expect(await DescriptionSubText.getText()).toContain('O*NET SOC: 15-1111.00');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await BackLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//At A Glance Link
|
|
||||||
expect(await AtAGlanceLink.getText()).toEqual('AT A GLANCE');
|
|
||||||
await AtAGlanceLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await AtAGlanceDIVTitle.getText()).toEqual('At A Glance');
|
|
||||||
expect(await TypicalDegreeHeader.getText()).toEqual('Typical Degree');
|
|
||||||
expect(await TypicalDegreeData.getText()).toContain('College (4 Year) - 1%');
|
|
||||||
expect(await TypicalDegreeData.getText()).toContain('Doctoral degree - 1%');
|
|
||||||
expect(await TypicalDegreeData.getText()).toContain("Master's degree - 1%");
|
|
||||||
expect(await AverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary');
|
|
||||||
expect(await AverageAnnualSalaryData.getText()).toEqual('$114,520');
|
|
||||||
expect(await ProjectedGrowthHeader.getText()).toEqual('Projected Growth');
|
|
||||||
expect(await ProjectedGrowthPath.getText()).toEqual(' ABOVE AVERAGE');
|
|
||||||
expect(await ProjectedGrowthData.getText()).toContain('19.2%');
|
|
||||||
expect(await ProjectedJobOpeningsHeader.getText()).toEqual('Projected Job Openings');
|
|
||||||
expect(await ProjectedJobOpeningsData.getText()).toEqual('2,500');
|
|
||||||
expect(await CurrentlyEmployedHeader.getText()).toEqual('Currently Employed');
|
|
||||||
expect(await CurrentlyEmployedData.getText()).toEqual('27,900');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Personality Link
|
|
||||||
await PersonalityLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await PersonalityDIVTitle.getText()).toEqual('Personality');
|
|
||||||
expect(await PersonalityDescriptionOne.getText()).toEqual('People interested in this work like activities that include ideas, thinking, and figuring things out.');
|
|
||||||
expect(await PersonalityDescriptionTwo.getText()).toEqual('They do well at jobs that need:');
|
|
||||||
expect(await PersonalityBulletOne.getText()).toEqual('Analytical Thinking');
|
|
||||||
expect(await PersonalityBulletTwo.getText()).toEqual('Cooperation');
|
|
||||||
expect(await PersonalityBulletThree.getText()).toEqual('Attention to Detail');
|
|
||||||
expect(await PersonalityBulletFour.getText()).toEqual('Independence');
|
|
||||||
expect(await PersonalityBulletFive.getText()).toEqual('Achievement/Effort');
|
|
||||||
expect(await PersonalityBulletSix.getText()).toEqual('Initiative');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Wages Link
|
|
||||||
await WagesLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await WagesDIVTitle.getText()).toEqual('Wages');
|
|
||||||
await WagesIIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await WagesBackOfDIVTitle.getText()).toEqual('Wages');
|
|
||||||
expect(await WagesBackOfDIVTextOne.getText()).toEqual('The graph is reflecting data based on BLS statistics of year 2019.');
|
|
||||||
expect(await WagesBackOfDIVTextTwo.getText()).toEqual('For more information please visit:');
|
|
||||||
expect(await WagesBackOfDIVTextThree.getText()).toEqual('https://beta.bls.gov/dataQuery/find?st=0&r=20&fq=cg:[Occupation]&more=0');
|
|
||||||
expect(await WagesBackOfDIVTextFour.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm19all.zip');
|
|
||||||
expect(await WagesBackOfDIVTextFive.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm18all.zip');
|
|
||||||
expect(await WagesBackOfDIVTextSix.getText()).toEqual('https://www.bls.gov/oes/special.requests/oesm17all.zip');
|
|
||||||
await WagesBackOfDIVXCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toEqual('San Diego-Carlsbad, CA Metro Area');
|
|
||||||
//expect(await WagesTypeText.getText()).toEqual('4');//Can't ID
|
|
||||||
expect(await WagesHighText.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianText.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowText.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ZipCodeTextBoxText.getText()).toEqual('Zip Code');
|
|
||||||
await ZipCodeTextBox.click();
|
|
||||||
await ZipCodeTextBox.clear();
|
|
||||||
await ZipCodeTextBox.sendKeys('85013').then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await ZipCodeApplyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Phoenix-Mesa-Scottsdale, AZ');
|
|
||||||
expect(await WagesHighText.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianText.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowText.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await StateDropDownText.getText()).toEqual('Or State');
|
|
||||||
element(by.cssContainingText('option', 'Oregon')).click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await StateDropDownApplyButton.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
|
||||||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
expect(await WagesXAxisFiveText.getText()).toEqual('$250,000');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await RateTypeText.getText()).toEqual('Rate Type');
|
|
||||||
expect(await HourlyButton.getText()).toEqual('Hourly');
|
|
||||||
expect(HourlyButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
expect(await AnnualButton.getText()).toEqual('Annual');
|
|
||||||
expect(AnnualButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
await HourlyButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
|
||||||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$20');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$40');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$60');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$80');
|
|
||||||
expect(await WagesXAxisFiveText.getText()).toEqual('$100');
|
|
||||||
await WagesFilterIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(HourlyButton.getCssValue('background-color')).toBe('rgba(26, 188, 156, 1)'); //journey green: active
|
|
||||||
expect(AnnualButton.getCssValue('background-color')).toBe('rgba(52, 152, 219, 1)'); //blue: non-active
|
|
||||||
await AnnualButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CurrentDataNationalHeader.getText()).toEqual('National');
|
|
||||||
expect(await CurrentDataLocalHeader.getText()).toContain('Oregon');
|
|
||||||
expect(await WagesHighTextTwo.getText()).toEqual('High');
|
|
||||||
expect(await WagesMedianTextTwo.getText()).toEqual('Median');
|
|
||||||
expect(await WagesLowTextTwo.getText()).toEqual('Low');
|
|
||||||
expect(await Wages0Text.getText()).toEqual('$0');
|
|
||||||
expect(await WagesXAxisOneText.getText()).toEqual('$50,000');
|
|
||||||
expect(await WagesXAxisTwoText.getText()).toEqual('$100,000');
|
|
||||||
expect(await WagesXAxisThreeText.getText()).toEqual('$150,000');
|
|
||||||
expect(await WagesXAxisFourText.getText()).toEqual('$200,000');
|
|
||||||
expect(await WagesXAxisFiveText.getText()).toEqual('$250,000');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//College Pathways Link
|
|
||||||
await CollegPathwaysLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CollegePathwaysDIVTitle.getText()).toEqual('College Pathways');
|
|
||||||
expect(await ComputerApplicationsMinorCollegeWide.getText()).toEqual('Computer Applications Minor—College-Wide');
|
|
||||||
expect(await ComputerScienceBS.getText()).toEqual('Computer Science B.S.');
|
|
||||||
expect(await ComputerScienceMinor.getText()).toEqual('Computer Science Minor');
|
|
||||||
await ComputerScienceMinor.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerScienceMinorDescription.getText()).toEqual('The computer science program is designed to provide students with the educational background required for a professional career in the computing industry and for further study at the graduate level. The program includes a core of required courses and an elective program of courses over a wide range of topics. Seniors work in teams to carry out community-based projects during the two-term capstone course in software engineering. A minor in computer science is available within the Maseeh College of Engineering and Computer Science in the area of computer science. To earn a minor in computer science, a student must complete 36 credits.');
|
|
||||||
expect(await ComputerScienceMinorInstitutionsHeader.getText()).toEqual('Institutions');
|
|
||||||
expect(await ComputerScienceMinorInstitutionsData.getText()).toEqual('2,407');
|
|
||||||
expect(await ComputerScienceMinorCoursesHeader.getText()).toEqual('Courses');
|
|
||||||
expect(await ComputerScienceMinorCoursesData.getText()).toEqual('5');
|
|
||||||
expect(await ComputerScienceMinorOccupationsHeader.getText()).toEqual('Occupations');
|
|
||||||
expect(await ComputerScienceMinorOccupationsData.getText()).toEqual('77');
|
|
||||||
expect(await ComputerScienceMinorAverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary');
|
|
||||||
expect(await ComputerScienceMinorAverageAnnualSalaryData.getText()).toEqual('$99,362');
|
|
||||||
await ComputerScienceMinor.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await ComputerScienceMinorEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerScienceMinorFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await ComputerScienceMinorLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await ComputerScienceMinorMapIcon.getText()).toEqual('Map');
|
|
||||||
expect(await ComputerScienceMinorJourneyIcon.getText()).toEqual('Journey');
|
|
||||||
expect(await ComputerScienceMinorAtAGlanceIcon.getText()).toEqual('At A Glance');
|
|
||||||
await CollegePathwaysRightScrollIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerScienceMS.getText()).toEqual('Computer Science M.S.');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Certificates Link
|
|
||||||
await CertificatesLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CertificatesDIVTitle.getText()).toEqual('Certificates');
|
|
||||||
expect(await CertifiedLabVIEWArchitect.getText()).toEqual('Certified LabVIEW Architect');
|
|
||||||
await CertifiedLabVIEWArchitect.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CertifiedLabVIEWArchitectDescription.getText()).toEqual("The Certified LabVIEW Architect is the final step in the three-part NI LabVIEW certification process. The exam for this step presents a set of high-level requirements and tests the user's ability to build a sensible VI hierarchy and project plan for delivering an application that fulfills those requirements. You can use this certification to assess and validate an individual's LabVIEW development and project management skills for the purpose of project staffing or career advancement.");
|
|
||||||
expect(await CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersHeader.getText()).toEqual('Institutions & training providers');
|
|
||||||
expect(await CertifiedLabVIEWArchitectInstitutionsAndTrainingProvidersData.getText()).toEqual('0');
|
|
||||||
expect(await CertifiedLabVIEWArchitectOccupationsHeader.getText()).toEqual('Occupations');
|
|
||||||
expect(await CertifiedLabVIEWArchitectOccupationsData.getText()).toEqual('0');
|
|
||||||
expect(await CertifiedLabVIEWArchitectResourcesHeader.getText()).toEqual('Resources');
|
|
||||||
expect(await CertifiedLabVIEWArchitectResourcesData.getText()).toEqual('0');
|
|
||||||
expect(await CertifiedAssociateLabVIEWDeveloper.getText()).toEqual('Certified Associate LabVIEW Developer');
|
|
||||||
expect(await AvayaCertifiedExpert.getText()).toEqual('Avaya Certified Expert');
|
|
||||||
await CertificatesRightScrollIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await CertifiedBiometricsProfessional.getText()).toEqual('Certified Biometrics Professional');
|
|
||||||
expect(await CertifiedSoftwareDevelopmentProfessional.getText()).toEqual('Certified Software Development Professional');
|
|
||||||
expect(await MicrosoftServerVirtualizationWithWindowsServerHyperVAndSystemCenter.getText()).toEqual('Microsoft Server Virtualization with Windows Server Hyper-V and System Center');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Institutions Link
|
|
||||||
await InstitutionsLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await InstitutionsDIVTitle.getText()).toEqual('Institutions View All');
|
|
||||||
expect(await UniversityOfSanDiego.getText()).toEqual('University of San Diego');
|
|
||||||
expect(await NationalUniversity.getText()).toEqual('National University');
|
|
||||||
expect(await PointLomaNazareneUniversity.getText()).toEqual('Point Loma Nazarene University');
|
|
||||||
await InstitutionsRightScrollIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await UniversityOfCaliforniaSanDiego.getText()).toEqual('University of California-San Diego');
|
|
||||||
expect(await SanDiegoStateUniversity.getText()).toEqual('San Diego State University');
|
|
||||||
await SanDiegoStateUniversity.click().then(function() {
|
|
||||||
browser.sleep(2500)
|
|
||||||
});
|
|
||||||
expect(await SanDiegoStateUniversity4YearHeader.getText()).toEqual('4 Year');
|
|
||||||
expect(await SanDiegoStateUniversity4YearData.getText()).toEqual('Public');
|
|
||||||
expect(await SanDiegoStateUniversityUndergradHeader.getText()).toEqual('Undergraduate Students');
|
|
||||||
expect(await SanDiegoStateUniversityUndergradData.getText()).toEqual('30,018');
|
|
||||||
expect(await SanDiegoStateUniversityLocationHeader.getText()).toContain('Location');
|
|
||||||
expect(await SanDiegoStateUniversityLocationData.getText()).toEqual('City');
|
|
||||||
expect(await SanDiegoStateUniversityClassroomHeader.getText()).toContain('Classrooms');
|
|
||||||
expect(await SanDiegoStateUniversityClassroomData.getText()).toEqual('Large');
|
|
||||||
await SanDiegoStateUniversity.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SanDiegoStateUniversityEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SanDiegoStateUniversityFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await SanDiegoStateUniversityLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await SanDiegoStateUniversityAtAGlanceIcon.getText()).toEqual('At A Glance');
|
|
||||||
expect(await CaliforniaStateUniversitySanMarcos.getText()).toEqual('California State University-San Marcos');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Top Resources Link
|
|
||||||
expect(await TopResourcesLink.getText()).toEqual('TOP RESOURCES');
|
|
||||||
await TopResourcesLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesDIVTitle.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await TopResourcesTitleOne.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
|
||||||
expect(await TopResourcesTitleTwo.getText()).toEqual('How to Become a Research Scientist');
|
|
||||||
expect(await TopResourcesTitleThree.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
await TopResourcesTitleThree.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesTitleThreeFollow.getText()).toEqual('Follow');
|
|
||||||
expect(await TopResourcesTitleThreeLearnMore.getText()).toEqual('Learn More');
|
|
||||||
expect(await TopResourcesTitleFour.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesTitleFive.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesTitleSix.getText()).toEqual('Arduino download link for Thinkabitlab');
|
|
||||||
} else {
|
|
||||||
expect(await TopResourcesTitleOne.getText()).toEqual('How to Become a Research Scientist');
|
|
||||||
expect(await TopResourcesTitleTwo.getText()).toEqual('Computer and Information Research Scientists (Information Technology)');
|
|
||||||
await TopResourcesTitleTwo.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TopResourcesTitleTwoFollow.getText()).toEqual('Follow');
|
|
||||||
expect(await TopResourcesTitleTwoLearnMore.getText()).toEqual('Learn More');
|
|
||||||
expect(await TopResourcesTitleThree.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesTitleFour.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
expect(await TopResourcesTitleFive.getText()).toEqual('Computer and Information Research Scientists');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Find Opportunities Link
|
|
||||||
expect(await FindOpportunitiesLink.getText()).toEqual('FIND OPPORTUNITIES');
|
|
||||||
await FindOpportunitiesLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await FindOpportunitiesDIVTitle.getText()).toContain('Job Listings: ');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Submit A Resource Link
|
|
||||||
expect(await SubmitResourceLink.getText()).toEqual('SUBMIT A RESOURCE');
|
|
||||||
await SubmitResourceLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await SubmitResourceDIVTitle.getText()).toEqual('Submit a Resource');
|
|
||||||
expect(await SubmitResourceDIVSubTextOne.getText()).toEqual("Here's a summary of your submitted Resources");
|
|
||||||
expect(await TotalInJourneysHeader.getText()).toContain('Total in Journeys');
|
|
||||||
expect(await TotalInJourneysData.getText()).toContain('1');
|
|
||||||
await TotalInJourneysData.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await MySubmittedResourcesDIVTitle.getText()).toEqual('My Submitted Resources');
|
|
||||||
await JourneysGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await MySubmittedResourcesTitle.getText()).toEqual('Test Doc');
|
|
||||||
} else {
|
|
||||||
expect(await MySubmittedResourcesTitle.getText()).toEqual('Recommended Careers Doc');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await MySubmittedResourcesTitle.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MySubmittedResourcesFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await MySubmittedResourcesLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
await MySubmittedResourcesEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await MySubmittedResourcesDIVXCloseIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ForThisMapPointHeader.getText()).toContain('For this map point');
|
|
||||||
expect(await ForThisMapPointData.getText()).toContain('0');
|
|
||||||
//expect(await SubmitResourceDIVSubTextTwo.getText()).toEqual('Help expand the system by submitting a resource.'); //CAN'T LOCATE TEXT
|
|
||||||
expect(await SubmitAResourceDIVButton.getText()).toEqual('Submit a Resource');
|
|
||||||
await SubmitAResourceDIVButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await SubmitAResourceDIVTitle.getText()).toEqual('Submit a Resource');
|
|
||||||
await SubmitAResourceDIVCloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.executeScript('window.scrollTo(0, 1885);').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Nearby Places Link
|
|
||||||
expect(await NearbyPlacesLink.getText()).toEqual('NEARBY PLACES');
|
|
||||||
await NearbyPlacesLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await NearbyPlacesDIVTitle.getText()).toEqual('Nearby Places');
|
|
||||||
expect(await ComputerAndInformationSystemsManagers.getText()).toEqual('Computer and Information Systems Managers');
|
|
||||||
await ComputerAndInformationSystemsManagersEllipsisIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerAndInformationSystemsManagersFollowIcon.getText()).toEqual('Follow');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersLearnMoreIcon.getText()).toEqual('Learn More');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersMapIcon.getText()).toEqual('Map');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersJourneyIcon.getText()).toEqual('Journey');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersVideoIcon.getText()).toEqual('Video');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAtAGlanceIcon.getText()).toEqual('At A Glance');
|
|
||||||
await ComputerAndInformationSystemsManagersAtAGlanceIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerAndInformationSystemsManagersDescription.getText()).toEqual('Plan, direct, or coordinate activities in such fields as electronic data processing, information systems, systems analysis, and computer programming.');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeHeader.getText()).toEqual('Typical Degree');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataOne.getText()).toEqual('College (4 Year) - 48%');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataTwo.getText()).toEqual('Some college - 26%');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersTypicalDegreeDataThree.getText()).toEqual("Master's degree - 14%");
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualSalaryHeader.getText()).toEqual('Average Annual Salary');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualSalaryData.getText()).toEqual('$139,220');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthHeader.getText()).toEqual('Projected Growth');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataOne.getText()).toEqual('12%');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedGrowthDataTwo.getText()).toEqual('ABOVE AVERAGE');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsHeader.getText()).toEqual('Projected Job Openings');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualProjectedJobOpeningsData.getText()).toEqual('32,500');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedHeader.getText()).toEqual('Currently Employed');
|
|
||||||
expect(await ComputerAndInformationSystemsManagersAverageAnnualCurrentlyemployedData.getText()).toEqual('367,600');
|
|
||||||
expect(await ComputerNetworkArchitects.getText()).toEqual('Computer Network Architects');
|
|
||||||
expect(await ComputerNetworkSupportSpecialists.getText()).toEqual('Computer Network Support Specialists');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await ComputerOccupationsAllOther.getText()).toEqual('Computer Occupations, All Other');
|
|
||||||
expect(await ComputerProgrammers.getText()).toEqual('Computer Programmers');
|
|
||||||
expect(await ComputerScienceTeachersPostsecondary.getText()).toEqual('Computer Science Teachers, Postsecondary');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DataWarehousingSpecialist.getText()).toEqual('Data Warehousing Specialists');
|
|
||||||
expect(await DatabaseAdministrator.getText()).toEqual('Database Administrators');
|
|
||||||
expect(await DatabaseArchitects.getText()).toEqual('Database Architects');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await GraphicDesigners.getText()).toEqual('Graphic Designers');
|
|
||||||
expect(await InformationSecurityAnalysts.getText()).toEqual('Information Security Analysts');
|
|
||||||
expect(await MultimediaArtistsAndAnimators.getText()).toEqual('Multimedia Artists and Animators');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//EDM-1890 Nearby Places widget ">" doesn't take action on 4th attempt
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await NetworkAndComputerSystemsAdministrators.getText()).toEqual('Network and Computer Systems Administrators');
|
|
||||||
expect(await SoftwareDevelopersApplications.getText()).toEqual('Software Developers, Applications');
|
|
||||||
expect(await SoftwareDevelopersSystemsSoftware.getText()).toEqual('Software Developers, Systems Software');
|
|
||||||
await NearbyPlacesRightScroll.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await TelecommunicationsEngineeringSpecialists.getText()).toEqual('Telecommunications Engineering Specialists');
|
|
||||||
await CloseXIcon.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Knowledge Link
|
|
||||||
await KnowledgeLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Knowledge');
|
|
||||||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await DescriptionOne.getText()).toEqual('Computers and Electronics');
|
|
||||||
expect(await ImportanceStatOne.getText()).toEqual('89%');
|
|
||||||
expect(await DescriptionTwo.getText()).toEqual('Mathematics');
|
|
||||||
expect(await ImportanceStatTwo.getText()).toEqual('77%');
|
|
||||||
expect(await DescriptionThree.getText()).toEqual('Engineering and Technology');
|
|
||||||
expect(await ImportanceStatThree.getText()).toEqual('74%');
|
|
||||||
expect(await DescriptionFour.getText()).toEqual('English Language');
|
|
||||||
expect(await ImportanceStatFour.getText()).toEqual('72%');
|
|
||||||
expect(await DescriptionFive.getText()).toEqual('Administration and Management');
|
|
||||||
expect(await ImportanceStatFive.getText()).toEqual('58%');
|
|
||||||
expect(await DescriptionSix.getText()).toEqual('Design');
|
|
||||||
expect(await ImportanceStatSix.getText()).toEqual('57%');
|
|
||||||
expect(await DescriptionSeven.getText()).toEqual('Telecommunications');
|
|
||||||
expect(await ImportanceStatSeven.getText()).toEqual('52%');
|
|
||||||
await CloseXImage.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Skills Link
|
|
||||||
await SkillsLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Skills');
|
|
||||||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await DescriptionOne.getText()).toEqual('Complex Problem Solving');
|
|
||||||
expect(await ImportanceStatOne.getText()).toEqual('75%');
|
|
||||||
expect(await DescriptionTwo.getText()).toEqual('Critical Thinking');
|
|
||||||
expect(await ImportanceStatTwo.getText()).toEqual('75%');
|
|
||||||
expect(await DescriptionThree.getText()).toEqual('Judgment and Decision Making');
|
|
||||||
expect(await ImportanceStatThree.getText()).toEqual('75%');
|
|
||||||
expect(await DescriptionFour.getText()).toEqual('Active Listening');
|
|
||||||
expect(await ImportanceStatFour.getText()).toEqual('69%');
|
|
||||||
expect(await DescriptionFive.getText()).toEqual('Reading Comprehension');
|
|
||||||
expect(await ImportanceStatFive.getText()).toEqual('69%');
|
|
||||||
expect(await DescriptionSix.getText()).toEqual('Systems Analysis');
|
|
||||||
expect(await ImportanceStatSix.getText()).toEqual('69%');
|
|
||||||
expect(await DescriptionSeven.getText()).toEqual('Programming');
|
|
||||||
expect(await ImportanceStatSeven.getText()).toEqual('66%');
|
|
||||||
expect(await DescriptionEight.getText()).toEqual('Systems Evaluation');
|
|
||||||
expect(await ImportanceStatEight.getText()).toEqual('66%');
|
|
||||||
await CloseXImage.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Ability Link
|
|
||||||
await AbilityLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Ability');
|
|
||||||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await DescriptionOne.getText()).toEqual('Deductive Reasoning');
|
|
||||||
expect(await ImportanceStatOne.getText()).toEqual('78%');
|
|
||||||
expect(await DescriptionTwo.getText()).toEqual('Inductive Reasoning');
|
|
||||||
expect(await ImportanceStatTwo.getText()).toEqual('78%');
|
|
||||||
expect(await DescriptionThree.getText()).toEqual('Oral Comprehension');
|
|
||||||
expect(await ImportanceStatThree.getText()).toEqual('75%');
|
|
||||||
await CloseXImage.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Tasks Link
|
|
||||||
await TasksLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Tasks');
|
|
||||||
expect(await TasksCategoryHeader.getText()).toEqual('Category');
|
|
||||||
expect(await TasksImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await TasksDescriptionOne.getText()).toEqual('Analyze problems to develop solutions involving computer hardware and software.');
|
|
||||||
expect(await TasksCategoryDataOne.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceDataOne.getText()).toEqual('81%');
|
|
||||||
expect(await TasksDescriptionTwo.getText()).toEqual('Apply theoretical expertise and innovation to create or apply new technology, such as adapting principles for applying computers to new uses.');
|
|
||||||
expect(await TasksCategoryDataTwo.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceDataTwo.getText()).toEqual('72%');
|
|
||||||
expect(await TasksDescriptionThree.getText()).toEqual('Assign or schedule tasks to meet work priorities and goals.');
|
|
||||||
expect(await TasksCategoryDataThree.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceDataThree.getText()).toEqual('69%');
|
|
||||||
expect(await TasksDescriptionFour.getText()).toEqual('Meet with managers, vendors, and others to solicit cooperation and resolve problems.');
|
|
||||||
expect(await TasksCategoryDataFour.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceDataFour.getText()).toEqual('66%');
|
|
||||||
expect(await TasksDescriptionFive.getText()).toEqual('Design computers and the software that runs them.');
|
|
||||||
expect(await TasksCategoryDataFive.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceDataFive.getText()).toEqual('66%');
|
|
||||||
expect(await TasksDescriptionSix.getText()).toEqual('Conduct logical analyses of business, scientific, engineering, and other technical problems, formulating mathematical models of problems for solution by computers.');
|
|
||||||
expect(await TasksCategoryDataSix.getText()).toEqual('Core');
|
|
||||||
expect(await TasksImportanceDataSix.getText()).toEqual('65%');
|
|
||||||
await CloseXImage.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Technology Link
|
|
||||||
await TechnologyLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Technology');
|
|
||||||
expect(await TechnologyDescriptionOne.getText()).toEqual('Development environment software');
|
|
||||||
expect(await TechnologyStatOne.getText()).toEqual('Ada ;');
|
|
||||||
await CloseXImage.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Work Activities Link
|
|
||||||
await WorkActivitiesLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Work Activities');
|
|
||||||
expect(await ImportanceHeader.getText()).toEqual('Importance');
|
|
||||||
expect(await DescriptionOne.getText()).toEqual('Interacting With Computers');
|
|
||||||
expect(await ImportanceStatOne.getText()).toEqual('99%');
|
|
||||||
expect(await DescriptionTwo.getText()).toEqual('Getting Information');
|
|
||||||
expect(await ImportanceStatTwo.getText()).toEqual('91%');
|
|
||||||
expect(await DescriptionThree.getText()).toEqual('Making Decisions and Solving Problems');
|
|
||||||
expect(await ImportanceStatThree.getText()).toEqual('91%');
|
|
||||||
expect(await DescriptionFour.getText()).toEqual('Analyzing Data or Information');
|
|
||||||
expect(await ImportanceStatFour.getText()).toEqual('89%');
|
|
||||||
expect(await DescriptionFive.getText()).toEqual('Updating and Using Relevant Knowledge');
|
|
||||||
expect(await ImportanceStatFive.getText()).toEqual('89%');
|
|
||||||
expect(await DescriptionSix.getText()).toEqual('Thinking Creatively');
|
|
||||||
expect(await ImportanceStatSix.getText()).toEqual('88%');
|
|
||||||
expect(await DescriptionSeven.getText()).toEqual('Documenting/Recording Information');
|
|
||||||
expect(await ImportanceStatSeven.getText()).toEqual('84%');
|
|
||||||
expect(await DescriptionEight.getText()).toEqual('Communicating with Supervisors, Peers, or Subordinates');
|
|
||||||
expect(await ImportanceStatEight.getText()).toEqual('83%');
|
|
||||||
expect(await DescriptionNine.getText()).toEqual('Identifying Objects, Actions, and Events');
|
|
||||||
expect(await ImportanceStatNine.getText()).toEqual('83%');
|
|
||||||
await CloseXImage.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
//userProfile_config.js
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
framework: 'jasmine',
|
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
|
||||||
specs: ['userProfile_spec.js'],
|
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
defaultTimeoutInterval: 360000
|
|
||||||
},
|
|
||||||
|
|
||||||
capabilities: {
|
|
||||||
browserName: 'chrome'
|
|
||||||
},
|
|
||||||
|
|
||||||
onPrepare: function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
browser.driver.manage().window().maximize();
|
|
||||||
},
|
|
||||||
|
|
||||||
params: {
|
|
||||||
login: 'https://app-qa.journeysmap.com/Journey/index.html#/login',
|
|
||||||
username: 'QA_AutomatedRegression',
|
|
||||||
nonAngularURL: 'https://app-qa.journeysmap.com/UI/User/Profile'
|
|
||||||
}
|
|
||||||
|
|
||||||
/*multiCapabilities: [{
|
|
||||||
browserName: 'chrome'
|
|
||||||
}, {
|
|
||||||
browserName: 'firefox'
|
|
||||||
}]/*, {
|
|
||||||
browserName: 'internet explorer'
|
|
||||||
}], {
|
|
||||||
browserName: 'safari'
|
|
||||||
}]*/
|
|
||||||
}
|
|
||||||
@@ -1,506 +0,0 @@
|
|||||||
//userProfile_spec.js
|
|
||||||
|
|
||||||
describe('User Profile script', function () {
|
|
||||||
//login-journeysmap landing page
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
|
|
||||||
//Open browser
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('Login');
|
|
||||||
});
|
|
||||||
|
|
||||||
//Sign In
|
|
||||||
SignIn(UserNameTextBox, PasswordTextBox);
|
|
||||||
|
|
||||||
it('should have a title', async function () {
|
|
||||||
await expect(browser.getTitle()).toEqual('My Dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
function SignIn(UserNameTextBox, PasswordTextBox) {
|
|
||||||
it('SignIn, should sign into journeysmap.com', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var JourneysGreeting = element(by.css('.dropdown'));
|
|
||||||
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(1500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('Hi, ');
|
|
||||||
expect(await JourneysGreeting.getText()).toContain('_Automated');
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
UserProfile();
|
|
||||||
SignOut();
|
|
||||||
//LogBackInToResetTestCase(); //CAN'T GET SCRIPT TO SUCCESSFULLY SAVE EDIT PROFILE RESET TO REMOVE EMAIL AND MIDDLE INITIAL
|
|
||||||
});
|
|
||||||
|
|
||||||
function UserProfile() {
|
|
||||||
it(': UserProfile, Should interact with the Account Information page', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var ProfileLink = element(by.linkText('Profile'));
|
|
||||||
//Account Information Page
|
|
||||||
var PageTitle = element(by.css('#title'));
|
|
||||||
//Personal Information block
|
|
||||||
var PersonalInformationTitle = element(by.css('div > .col-12 > h4'));
|
|
||||||
var AccountInformationGreeting = element(by.css('.navbar-nav:nth-child(2) > .nav-item:nth-child(1)'));
|
|
||||||
var UserNameText = element(by.css('h5'));
|
|
||||||
var UserEmailHeader = element(by.css('.col-lg-4 .col-3'));
|
|
||||||
var UserEmailText = element(by.css('.col-lg-4 .col-7'));
|
|
||||||
var UserRoleHeader = element(by.css('.col-12:nth-child(3) > .row > .col-3'));
|
|
||||||
var UserRoleText = element(by.css('.col-12:nth-child(3) > .row > .col-7'));
|
|
||||||
var UserBirthDateHeader = element(by.css('.col-12:nth-child(4) .col-3'));
|
|
||||||
var UserBirthDateText = element(by.css('.col-12:nth-child(4) .col-7'));
|
|
||||||
var UserZipCodeHeader = element(by.css('.col-lg-2 .col-3'));
|
|
||||||
var UserZipCodeText = element(by.css('.col-lg-2 .col-7'));
|
|
||||||
//My Connection block
|
|
||||||
var MyConnectionTitleRow = element(by.css('.ng-untouched h4'));
|
|
||||||
var ConnectionCodeHeader = element(by.css('.text-muted:nth-child(1)'));
|
|
||||||
var ConnectionCodeText = element(by.name('newConnectionCode'));
|
|
||||||
var ConnectionCodeButton = element(by.css('.col-md-3 > .btn'));
|
|
||||||
//Edit Profile
|
|
||||||
var EditProfileTile = element(by.css('.col-md-3:nth-child(1) tr:nth-child(1) > td'));
|
|
||||||
var DIVTitle = element(by.css('.ng-star-inserted .bg-secondary'));
|
|
||||||
var FirstNameHeader = element(by.css('.col-12:nth-child(1) .col-4'));
|
|
||||||
var FirstNameTextBox = element(by.name('FirstName'));
|
|
||||||
var MiddleInitialHeader = element(by.css('.col-12:nth-child(2) > .row > .col-4'));
|
|
||||||
var MiddleInitialTextBox = element(by.name('MI'));
|
|
||||||
var LastNameHeader = element(by.css('.col-12:nth-child(3) .col-4'));
|
|
||||||
var LastNameTextBox = element(by.name('LastName'));
|
|
||||||
var EmailHeader = element(by.css('.col-12:nth-child(4) .col-4'));
|
|
||||||
var EmailTextBox = element(by.name('Email'));
|
|
||||||
var BirthDateHeader = element(by.css('.col-12:nth-child(5) .col-4'));
|
|
||||||
var BirthDateTextBox = element(by.name('BirthDate'));
|
|
||||||
var ZipCodeHeader = element(by.css('.col-12:nth-child(6) .col-4'));
|
|
||||||
var ZipCodeTextBox = element(by.name('ZipCode'));
|
|
||||||
var RoleHeader = element(by.css('.col-12:nth-child(7) .col-4'));
|
|
||||||
var RoleTextBox = element(by.name('Role'));
|
|
||||||
var UsernameHeader = element(by.css('.col-12:nth-child(8) .col-4'));
|
|
||||||
var UsernameTextBox = element(by.name('UserName'));
|
|
||||||
var CancelButton = element(by.css('.btn-outline-primary'));
|
|
||||||
var SaveButton = element(by.css('.btn:nth-child(2)'));
|
|
||||||
//Chage Password
|
|
||||||
var ChangePasswordTile = element(by.css('.col-md-3:nth-child(2) tr:nth-child(1) > td'));
|
|
||||||
var EnterCurrentPasswordHeader = element(by.css('.col-lg-8 > div:nth-child(1) > .text-muted'));
|
|
||||||
var EnterCurrentPasswordTextBox = element(by.name('CurrentPassword'));
|
|
||||||
var EnterNewPasswordHeader = element(by.css('div:nth-child(2) > .text-muted'));
|
|
||||||
var EnterNewPasswordTextBox = element(by.name('NewPassword1'));
|
|
||||||
var ReenterNewPasswordHeader = element(by.css('div:nth-child(3) > .text-muted'));
|
|
||||||
var ReenterNewPasswordTextBox = element(by.name('NewPassword2'));
|
|
||||||
//My Connections
|
|
||||||
var MyConnectionTile = element(by.css('.col-md-3:nth-child(3) tr:nth-child(1) > td'));
|
|
||||||
var ConnectionCodeDIVHeader = element(by.css('th:nth-child(1)'));
|
|
||||||
var ConnectionCodeDIVText = element(by.css('.ng-star-inserted > td:nth-child(1)'));
|
|
||||||
var ConnectionTypeHeader = element(by.css('th:nth-child(2)'));
|
|
||||||
var ConnectionTypeText = element(by.css('td:nth-child(2)'));
|
|
||||||
var NameHeader = element(by.css('th:nth-child(3)'));
|
|
||||||
var NameText = element(by.css('td:nth-child(3)'));
|
|
||||||
var OrganizationHeader = element(by.css('th:nth-child(4)'));
|
|
||||||
var OrganizationText = element(by.css('td:nth-child(4)'));
|
|
||||||
var JoinDateHeader = element(by.css('th:nth-child(5)'));
|
|
||||||
var JoinDateText = element(by.css('td:nth-child(5)'));
|
|
||||||
var ExitDateHeader = element(by.css('th:nth-child(6)'));
|
|
||||||
var ExitDateText = element(by.css('td:nth-child(6)'));
|
|
||||||
var CloseButton = element(by.css('.ng-star-inserted .btn'));
|
|
||||||
//Edit Security Question
|
|
||||||
var EditSecurityQuestionTile = element(by.css('.col-md-3:nth-child(4) tr:nth-child(1) > td'));
|
|
||||||
var SelectASecurityQuestionHeader = element(by.css('.col-lg-8 > div:nth-child(1) > .text-muted'));
|
|
||||||
var AnswerSecurityQuestionHeader = element(by.css('div:nth-child(2) > .text-muted'));
|
|
||||||
var AnswerSecurityAnswerTextBox = element(by.name('Answer'));
|
|
||||||
var BackToDashboardLink = element(by.linkText('BACK TO DASHBOARD'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
browser.actions().mouseMove(ProfileLink).perform().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await ProfileLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
browser.waitForAngularEnabled(false);
|
|
||||||
browser.get(browser.params.nonAngularURL);
|
|
||||||
//Account Information Page
|
|
||||||
expect(await PageTitle.getText()).toEqual('Account Information');
|
|
||||||
//Personal Information block
|
|
||||||
expect(await PersonalInformationTitle.getText()).toEqual('Personal Information');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await UserNameText.getText()).toEqual('Qa_Automated Regression');
|
|
||||||
} else {
|
|
||||||
expect(await UserNameText.getText()).toEqual('Prod_Automated Regression');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await UserEmailHeader.getText()).toEqual('Email');
|
|
||||||
expect(await UserEmailText.getText()).toEqual('');
|
|
||||||
expect(await UserRoleHeader.getText()).toEqual('Role');
|
|
||||||
expect(await UserRoleText.getText()).toEqual('Student');
|
|
||||||
expect(await UserBirthDateHeader.getText()).toEqual('Birthdate');
|
|
||||||
expect(await UserBirthDateText.getText()).toEqual('2000-02-15');
|
|
||||||
expect(await UserZipCodeHeader.getText()).toEqual('Zip Code');
|
|
||||||
expect(await UserZipCodeText.getText()).toEqual('92123');
|
|
||||||
//My Connection block
|
|
||||||
expect(await MyConnectionTitleRow.getText()).toEqual('Make Connection');
|
|
||||||
expect(await ConnectionCodeHeader.getText()).toEqual('Connection Code');
|
|
||||||
await ConnectionCodeText.sendKeys('1G8HNBQ7').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await ConnectionCodeButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toContain('Fail to connect.');
|
|
||||||
expect(alertDialog.getText()).toContain('Class not found');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
});
|
|
||||||
//Edit Profile
|
|
||||||
expect(await EditProfileTile.getText()).toContain('EDIT');
|
|
||||||
expect(await EditProfileTile.getText()).toContain('PROFILE');
|
|
||||||
await EditProfileTile.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Edit Personal Information');
|
|
||||||
expect(await FirstNameHeader.getText()).toEqual('First Name');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await FirstNameTextBox.getAttribute('value')).toEqual('Qa_Automated');
|
|
||||||
} else {
|
|
||||||
expect(await FirstNameTextBox.getAttribute('value')).toEqual('Prod_Automated');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await MiddleInitialHeader.getText()).toEqual('Middle Initial');
|
|
||||||
expect(await MiddleInitialTextBox.getAttribute('value')).toEqual('');
|
|
||||||
expect(await LastNameHeader.getText()).toEqual('Last Name');
|
|
||||||
expect(await LastNameTextBox.getAttribute('value')).toEqual('Regression');
|
|
||||||
expect(await EmailHeader.getText()).toEqual('Email');
|
|
||||||
expect(await EmailTextBox.getAttribute('value')).toEqual('');
|
|
||||||
expect(await BirthDateHeader.getText()).toEqual('Birthdate');
|
|
||||||
expect(await BirthDateTextBox.getAttribute('value')).toEqual('2000-02-15');
|
|
||||||
expect(await ZipCodeHeader.getText()).toEqual('Zip Code');
|
|
||||||
expect(await ZipCodeTextBox.getAttribute('value')).toEqual('92123');
|
|
||||||
expect(await RoleHeader.getText()).toEqual('Role');
|
|
||||||
expect(await RoleTextBox.getAttribute('value')).toEqual('Student');
|
|
||||||
expect(await UsernameHeader.getText()).toEqual('Username');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await UsernameTextBox.getAttribute('value')).toEqual('QA_AutomatedRegression');
|
|
||||||
} else {
|
|
||||||
expect(await UsernameTextBox.getAttribute('value')).toEqual('PROD_AutomatedRegression');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await CancelButton.getText()).toEqual('CANCEL');
|
|
||||||
expect(await SaveButton.getText()).toEqual('SAVE');
|
|
||||||
await MiddleInitialTextBox.sendKeys('G').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EmailTextBox.sendKeys('AutomatedRegression@edmin.com').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toEqual('Personal information is updated.');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await PersonalInformationTitle.getText()).toEqual('Personal Information');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await UserNameText.getText()).toEqual('Qa_Automated G. Regression');
|
|
||||||
} else {
|
|
||||||
expect(await UserNameText.getText()).toEqual('Prod_Automated G. Regression');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await UserEmailHeader.getText()).toEqual('Email');
|
|
||||||
expect(await UserEmailText.getText()).toEqual('AutomatedRegression@edmin.com');
|
|
||||||
expect(await UserRoleHeader.getText()).toEqual('Role');
|
|
||||||
expect(await UserRoleText.getText()).toEqual('Student');
|
|
||||||
expect(await UserBirthDateHeader.getText()).toEqual('Birthdate');
|
|
||||||
expect(await UserBirthDateText.getText()).toEqual('2000-02-15');
|
|
||||||
expect(await UserZipCodeHeader.getText()).toEqual('Zip Code');
|
|
||||||
expect(await UserZipCodeText.getText()).toEqual('92123');
|
|
||||||
//Change Password
|
|
||||||
expect(await ChangePasswordTile.getText()).toContain('CHANGE');
|
|
||||||
expect(await ChangePasswordTile.getText()).toContain('PASSWORD');
|
|
||||||
await ChangePasswordTile.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('Change Password');
|
|
||||||
expect(await EnterCurrentPasswordHeader.getText()).toEqual('Enter Current Password');
|
|
||||||
await EnterCurrentPasswordTextBox.sendKeys('EDminAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
expect(await EnterNewPasswordHeader.getText()).toEqual('Enter New Password');
|
|
||||||
await EnterNewPasswordTextBox.sendKeys('edmin123').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
expect(await ReenterNewPasswordHeader.getText()).toEqual('Reenter New Password');
|
|
||||||
await ReenterNewPasswordTextBox.sendKeys('edmin123').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
expect(await CancelButton.getText()).toEqual('CANCEL');
|
|
||||||
expect(await SaveButton.getText()).toEqual('SAVE');
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toContain('Your old password was incorrect. Try again.');
|
|
||||||
expect(alertDialog.getText()).toContain('Fail to update authentication.');
|
|
||||||
expect(alertDialog.getText()).toContain('Current password is incorrrect');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
});
|
|
||||||
await EnterCurrentPasswordTextBox.clear().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EnterCurrentPasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EnterNewPasswordTextBox.clear().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EnterNewPasswordTextBox.sendKeys('EDmin123').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toContain('New Password failed.');
|
|
||||||
expect(alertDialog.getText()).toContain('Please provide Current Password and ensure New Passwords fields match.');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
});
|
|
||||||
await EnterNewPasswordTextBox.clear().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EnterNewPasswordTextBox.sendKeys('edmin123').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toEqual('Password change saved.');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
});
|
|
||||||
//My Connections
|
|
||||||
expect(await MyConnectionTile.getText()).toContain('MY');
|
|
||||||
expect(await MyConnectionTile.getText()).toContain('CONNECTIONS');
|
|
||||||
await MyConnectionTile.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await DIVTitle.getText()).toEqual('My Connections');
|
|
||||||
expect(await ConnectionCodeDIVHeader.getText()).toContain('CONNECTION');
|
|
||||||
expect(await ConnectionCodeDIVHeader.getText()).toContain('CODE');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await ConnectionCodeDIVText.getText()).toEqual('QYS2VMLJ');
|
|
||||||
} else {
|
|
||||||
expect(await ConnectionCodeDIVText.getText()).toEqual('C5KWI9W7');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await ConnectionTypeHeader.getText()).toContain('CONNECTION');
|
|
||||||
expect(await ConnectionTypeHeader.getText()).toContain('TYPE');
|
|
||||||
expect(await ConnectionTypeText.getText()).toEqual('Class');
|
|
||||||
expect(await NameHeader.getText()).toEqual('NAME');
|
|
||||||
expect(await NameText.getText()).toEqual('Connection P-1');
|
|
||||||
expect(await OrganizationHeader.getText()).toEqual('ORGANIZATION');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await OrganizationText.getText()).toEqual('Art Of Eight');
|
|
||||||
} else {
|
|
||||||
expect(await OrganizationText.getText()).toEqual('ProdLoadTest');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await JoinDateHeader.getText()).toEqual('JOIN DATE');
|
|
||||||
expect(await JoinDateText.getText()).toEqual('2019-05-29');
|
|
||||||
expect(await ExitDateHeader.getText()).toEqual('EXIT DATE');
|
|
||||||
expect(await ExitDateText.getText()).toEqual('');
|
|
||||||
expect(await CloseButton.getText()).toEqual('CLOSE');
|
|
||||||
await CloseButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
//Edit Security Question
|
|
||||||
expect(await EditSecurityQuestionTile.getText()).toContain('EDIT');
|
|
||||||
expect(await EditSecurityQuestionTile.getText()).toContain('SECURITY');
|
|
||||||
expect(await EditSecurityQuestionTile.getText()).toContain('QUESTION');
|
|
||||||
await EditSecurityQuestionTile.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
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(1500);
|
|
||||||
});
|
|
||||||
expect(await AnswerSecurityQuestionHeader.getText()).toContain('Answer Security Question');
|
|
||||||
await AnswerSecurityAnswerTextBox.sendKeys('Chevy Luv').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
expect(await CancelButton.getText()).toContain('CANCEL');
|
|
||||||
expect(await SaveButton.getText()).toContain('SAVE');
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toEqual('Security questions is updated.');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
//<<<<RESET TEST CASE>>>>
|
|
||||||
//Password
|
|
||||||
await ChangePasswordTile.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await EnterCurrentPasswordTextBox.sendKeys('edmin123').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EnterNewPasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await ReenterNewPasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toEqual('Password change saved.');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
});
|
|
||||||
//Back to Dashboard
|
|
||||||
expect(await BackToDashboardLink.getText()).toContain('BACK TO DASHBOARD');
|
|
||||||
await BackToDashboardLink.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function SignOut() {
|
|
||||||
it(': SignOut; should log out of journeysmap.', async function () {
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var SignOutButton = element(by.css('.dropDownFAEdits:nth-child(5) > .btn'));
|
|
||||||
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1000);
|
|
||||||
});
|
|
||||||
await SignOutButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
//Back to Edit Profile to remove Email and MI (script issue)
|
|
||||||
function LogBackInToResetTestCase() {
|
|
||||||
it('should sign back into journeysmap.com and reset profile email & middle initial', async function () {
|
|
||||||
var PageGreetingText = element(by.css('td > div > div:nth-child(1)'));
|
|
||||||
var UserNameTextBox = element(by.css('#txtU'));
|
|
||||||
var PasswordTextBox = element(by.css('#txtP'));
|
|
||||||
var NextButton = element(by.css('.btn'));
|
|
||||||
var ProfileImage = element(by.css('.roundCenterBackgroundImage'));
|
|
||||||
var ProfileLink = element(by.linkText('Profile'));
|
|
||||||
//Account Information Page
|
|
||||||
var PageTitle = element(by.css('#title'));
|
|
||||||
//Personal Information block
|
|
||||||
var PersonalInformationTitle = element(by.css('div > .col-12 > h4'));
|
|
||||||
var AccountInformationGreeting = element(by.css('.navbar-nav:nth-child(2) > .nav-item:nth-child(1)'));
|
|
||||||
var UserNameText = element(by.css('h5'));
|
|
||||||
var UserEmailHeader = element(by.css('.col-lg-4 .col-3'));
|
|
||||||
var UserEmailText = element(by.css('.col-lg-4 .col-7'));
|
|
||||||
var UserRoleHeader = element(by.css('.col-12:nth-child(3) > .row > .col-3'));
|
|
||||||
var UserRoleText = element(by.css('.col-12:nth-child(3) > .row > .col-7'));
|
|
||||||
var UserBirthDateHeader = element(by.css('.col-12:nth-child(4) .col-3'));
|
|
||||||
var UserBirthDateText = element(by.css('.col-12:nth-child(4) .col-7'));
|
|
||||||
var UserZipCodeHeader = element(by.css('.col-lg-2 .col-3'));
|
|
||||||
var UserZipCodeText = element(by.css('.col-lg-2 .col-7'));
|
|
||||||
//Edit Profile
|
|
||||||
var EditProfileTile = element(by.css('.col-md-3:nth-child(1) tr:nth-child(1) > td'));
|
|
||||||
var MiddleInitialHeader = element(by.css('.col-12:nth-child(2) > .row > .col-4'));
|
|
||||||
var MiddleInitialTextBox = element(by.name('MI'));
|
|
||||||
var EmailHeader = element(by.css('.col-12:nth-child(4) .col-4'));
|
|
||||||
var EmailTextBox = element(by.name('Email'));
|
|
||||||
var SaveButton = element(by.css('.btn:nth-child(2)'));
|
|
||||||
var ResetProfileImage = element(by.css('.dropdown-toggle > .jmRoundCenterImage'));
|
|
||||||
var ResetSignOutButton = element(by.css('li > .btn'));
|
|
||||||
|
|
||||||
browser.get(browser.params.login).then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
|
|
||||||
browser.sleep(2500);
|
|
||||||
await UserNameTextBox.sendKeys(browser.params.username).then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
await NextButton.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
browser.waitForAngular();
|
|
||||||
browser.getCurrentUrl();
|
|
||||||
});
|
|
||||||
await ProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
browser.actions().mouseMove(ProfileLink).perform().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await ProfileLink.click().then(function() {
|
|
||||||
browser.sleep(5000);
|
|
||||||
});
|
|
||||||
//Account Information Page
|
|
||||||
browser.waitForAngularEnabled(false);
|
|
||||||
browser.get(browser.params.nonAngularURL);
|
|
||||||
expect(await PageTitle.getText()).toEqual('Account Information');
|
|
||||||
await EditProfileTile.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await MiddleInitialHeader.getText()).toEqual('Middle Initial');
|
|
||||||
expect(await MiddleInitialTextBox.getAttribute('value')).toEqual('G');
|
|
||||||
expect(await EmailHeader.getText()).toEqual('Email');
|
|
||||||
expect(await EmailTextBox.getAttribute('value')).toEqual('AutomatedRegression@edmin.com');
|
|
||||||
await MiddleInitialTextBox.clear().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await EmailTextBox.clear().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await SaveButton.click().then(function() {
|
|
||||||
browser.sleep(2500);
|
|
||||||
var alertDialog = browser.switchTo().alert();
|
|
||||||
expect(alertDialog.getText()).toEqual('Personal information is updated.');
|
|
||||||
browser.switchTo().alert().accept();
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
expect(await PersonalInformationTitle.getText()).toEqual('Personal Information');
|
|
||||||
await AccountInformationGreeting.getText().then(async function(actualText) {
|
|
||||||
if(actualText.indexOf('Qa_Automated') !== -1) {
|
|
||||||
expect(await UserNameText.getText()).toEqual('Qa_Automated Regression');
|
|
||||||
} else {
|
|
||||||
expect(await UserNameText.getText()).toEqual('Prod_Automated Regression');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
expect(await UserEmailHeader.getText()).toEqual('Email');
|
|
||||||
expect(await UserEmailText.getText()).toEqual('');
|
|
||||||
expect(await UserRoleHeader.getText()).toEqual('Role');
|
|
||||||
expect(await UserRoleText.getText()).toEqual('Student');
|
|
||||||
expect(await UserBirthDateHeader.getText()).toEqual('Birthdate');
|
|
||||||
expect(await UserBirthDateText.getText()).toEqual('2000-02-15');
|
|
||||||
expect(await UserZipCodeHeader.getText()).toEqual('Zip Code');
|
|
||||||
expect(await UserZipCodeText.getText()).toEqual('92123');
|
|
||||||
await ResetProfileImage.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
await ResetSignOutButton.click().then(function() {
|
|
||||||
browser.sleep(1500);
|
|
||||||
});
|
|
||||||
browser.get(browser.params.login);
|
|
||||||
browser.sleep(2500);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user