This commit is contained in:
2023-08-15 11:21:57 -07:00
parent 1925b8fdf8
commit 8a77453f0c

View File

@@ -23,8 +23,8 @@ describe('Framework script', function () {
it('ExACT; should log in to ExACT.', async function () { it('ExACT; should log in to ExACT.', async function () {
var EC = protractor.ExpectedConditions; var EC = protractor.ExpectedConditions;
var LoginButton = element(by.css('.btn')); var LoginButton = element(by.css('.btn'));
var EdGateLogo = element(by.css('p > img')); var EdGateLogo = element(by.css('.logo'));
var CopyrightText = element(by.css('#footer-branding > p:nth-child(2)')); var CopyrightText = element(by.css('.logincopyright > p'));
browser.wait(EC.visibilityOf(EdGateLogo), 30000).then(function() { browser.wait(EC.visibilityOf(EdGateLogo), 30000).then(function() {
browser.sleep(1500); browser.sleep(1500);
@@ -53,13 +53,13 @@ describe('Framework script', function () {
//Dashboard //Dashboard
Dashboard(); Dashboard();
CorrelationCoverage(); //CorrelationCoverage();
FrameworksManagementPage(); FrameworksManagementPage();
CreateOrganizationFramework(); //CreateOrganizationFramework();
ViewFrameworksStandards(); ViewFrameworksStandards();
AlgebraOne11139c2HChildStandard(); AlgebraOne11139c2HChildStandard();
EditFramework(); EditFramework();
UpdatedFrameworksManagementPage(); /*UpdatedFrameworksManagementPage();
EditFrameworkBackToDefault(); EditFrameworkBackToDefault();
ResetFrameworksManagementPage(); ResetFrameworksManagementPage();
DeleteCreatedFramework(); DeleteCreatedFramework();
@@ -1420,6 +1420,7 @@ function AlgebraOne11139c2HChildStandard() {
var ConceptsTabListArrowIconFour = element(by.css('.list-group-item:nth-child(4) > .fa')); var ConceptsTabListArrowIconFour = element(by.css('.list-group-item:nth-child(4) > .fa'));
var ConceptsTabListAddButtonFive = element(by.css('.btn-success')); var ConceptsTabListAddButtonFive = element(by.css('.btn-success'));
var ConceptsTabListLabelFive = element(by.css('.list-group-item:nth-child(5) > div:nth-child(3)')); var ConceptsTabListLabelFive = element(by.css('.list-group-item:nth-child(5) > div:nth-child(3)'));
var ConceptsTabListButtonFive = element(by.css('.list-group-item:nth-child(5) > .badge'));
var ConceptsTabListLabelFiveAlt = element(by.css('.list-group-item:nth-child(5)')); var ConceptsTabListLabelFiveAlt = element(by.css('.list-group-item:nth-child(5)'));
var ConceptsTabListArrowIconFive = element(by.css('.list-group-item:nth-child(5) > .fa')); var ConceptsTabListArrowIconFive = element(by.css('.list-group-item:nth-child(5) > .fa'));
//AutoAlign tab //AutoAlign tab
@@ -1520,7 +1521,7 @@ function AlgebraOne11139c2HChildStandard() {
expect(await TaggedConceptsDataFive.getText()).toEqual('Mathematics | Measurement | General'); expect(await TaggedConceptsDataFive.getText()).toEqual('Mathematics | Measurement | General');
expect(await TaggedConceptsDataSix.getText()).toEqual('Mathematics | Statistics Probability | General'); expect(await TaggedConceptsDataSix.getText()).toEqual('Mathematics | Statistics Probability | General');
expect(await TaggedConceptsDataSeven.getText()).toEqual('Mathematics | Algebra | Systems of Equations | General/Creating'); expect(await TaggedConceptsDataSeven.getText()).toEqual('Mathematics | Algebra | Systems of Equations | General/Creating');
expect(await TaggedConceptsDataEight.getText()).toEqual('Mathematics | Algebra | Equations/Inequalities & Functions | Writing/Linear - Note: for writing equations from word problems'); expect(await TaggedConceptsDataEight.getText()).toEqual('Mathematics | Algebra | Equations/Inequalities & Functions | Writing/Linear - Note: for writing equations from word problems');
expect(await TaggedConceptsDataNine.getText()).toEqual('Mathematics | General'); expect(await TaggedConceptsDataNine.getText()).toEqual('Mathematics | General');
//View Item Info DIV - Button //View Item Info DIV - Button
expect(ViewDIVCloseButton.getCssValue('background-color')).toBe('rgba(108, 117, 125, 1)'); //charcoal expect(ViewDIVCloseButton.getCssValue('background-color')).toBe('rgba(108, 117, 125, 1)'); //charcoal
@@ -1632,7 +1633,7 @@ function AlgebraOne11139c2HChildStandard() {
expect(ConceptsTabRemoveXCloseIconSeven.isPresent()).toBe(true); expect(ConceptsTabRemoveXCloseIconSeven.isPresent()).toBe(true);
expect(ConceptsTabRemoveButtonSeven.getCssValue('background-color')).toBe('rgba(220, 53, 69, 1)'); //red expect(ConceptsTabRemoveButtonSeven.getCssValue('background-color')).toBe('rgba(220, 53, 69, 1)'); //red
expect(await ConceptsTabRemoveButtonSeven.getText()).toEqual('Remove'); expect(await ConceptsTabRemoveButtonSeven.getText()).toEqual('Remove');
expect(await ConceptsTabTaggedConceptsDataEight.getText()).toContain('Mathematics | Algebra | Equations/Inequalities & Functions | Writing/Linear - Note: for writing equations from word problems'); expect(await ConceptsTabTaggedConceptsDataEight.getText()).toContain('Mathematics | Algebra | Equations/Inequalities & Functions | Writing/Linear - Note: for writing equations from word problems Remove');
expect(ConceptsTabRemoveXCloseIconEight.isPresent()).toBe(true); expect(ConceptsTabRemoveXCloseIconEight.isPresent()).toBe(true);
expect(ConceptsTabRemoveButtonEight.getCssValue('background-color')).toBe('rgba(220, 53, 69, 1)'); //red expect(ConceptsTabRemoveButtonEight.getCssValue('background-color')).toBe('rgba(220, 53, 69, 1)'); //red
expect(await ConceptsTabRemoveButtonEight.getText()).toEqual('Remove'); expect(await ConceptsTabRemoveButtonEight.getText()).toEqual('Remove');
@@ -1654,22 +1655,26 @@ function AlgebraOne11139c2HChildStandard() {
expect(await ConceptsTabFilterConceptsDropdown.getAttribute('placeholder')).toEqual('Enter Term...'); expect(await ConceptsTabFilterConceptsDropdown.getAttribute('placeholder')).toEqual('Enter Term...');
expect(ConceptsTabFilterButton.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green expect(ConceptsTabFilterButton.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await ConceptsTabFilterButton.getText()).toEqual('Filter'); expect(await ConceptsTabFilterButton.getText()).toEqual('Filter');
expect(await ConceptsTabListLabelOne.getText()).toEqual('Language Arts'); expect(await ConceptsTabListLabelOne.getText()).toEqual('Arts Education');
expect(ConceptsTabListButtonOne.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green expect(ConceptsTabListButtonOne.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await ConceptsTabListButtonOne.getText()).toEqual('1359'); expect(await ConceptsTabListButtonOne.getText()).toEqual('1196');
expect(ConceptsTabListArrowIconOne.isDisplayed()).toBe(true); expect(ConceptsTabListArrowIconOne.isDisplayed()).toBe(true);
expect(await ConceptsTabListLabelTwo.getText()).toEqual('Mathematics'); expect(await ConceptsTabListLabelTwo.getText()).toEqual('Career Technical Education');
expect(ConceptsTabListButtonTwo.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green expect(ConceptsTabListButtonTwo.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await ConceptsTabListButtonTwo.getText()).toEqual('1219'); expect(await ConceptsTabListButtonTwo.getText()).toEqual('2440');
expect(ConceptsTabListArrowIconTwo.isDisplayed()).toBe(true); expect(ConceptsTabListArrowIconTwo.isDisplayed()).toBe(true);
expect(await ConceptsTabListLabelThree.getText()).toEqual('Science'); expect(await ConceptsTabListLabelThree.getText()).toEqual('English Language Learners');
expect(ConceptsTabListButtonThree.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green expect(ConceptsTabListButtonThree.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await ConceptsTabListButtonThree.getText()).toEqual('2108'); expect(await ConceptsTabListButtonThree.getText()).toEqual('869');
expect(ConceptsTabListArrowIconThree.isDisplayed()).toBe(true); expect(ConceptsTabListArrowIconThree.isDisplayed()).toBe(true);
expect(await ConceptsTabListLabelFour.getText()).toEqual('Social Studies'); expect(await ConceptsTabListLabelFour.getText()).toEqual('Health and PE');
expect(ConceptsTabListButtonFour.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green expect(ConceptsTabListButtonFour.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await ConceptsTabListButtonFour.getText()).toEqual('2188'); expect(await ConceptsTabListButtonFour.getText()).toEqual('814');
expect(ConceptsTabListArrowIconFour.isDisplayed()).toBe(true); expect(ConceptsTabListArrowIconFour.isDisplayed()).toBe(true);
expect(await ConceptsTabListLabelFive.getText()).toEqual('Language Arts');
expect(ConceptsTabListButtonFive.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await ConceptsTabListButtonFive.getText()).toEqual('1359');
expect(ConceptsTabListArrowIconFive.isDisplayed()).toBe(true);
//Edit Framework Item DIV - Buttons //Edit Framework Item DIV - Buttons
expect(EditFrameworkItemDIVSaveButton.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green expect(EditFrameworkItemDIVSaveButton.getCssValue('background-color')).toBe('rgba(1, 160, 78, 1)'); //green
expect(await EditFrameworkItemDIVSaveButton.getText()).toEqual('Save'); expect(await EditFrameworkItemDIVSaveButton.getText()).toEqual('Save');