itemengine-cypress-automation 1.0.257 → 1.0.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/Gzip/gzip.js +128 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +17 -20
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAudioPlayerStyle.js +53 -54
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +0 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +37 -38
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -6
- package/cypress/e2e/ILC/CkEditorInsertImage/upload.js +2 -2
- package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +2 -2
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +5 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +3 -5
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +12 -0
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +3 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTempleteLayout.js +172 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorPreviewTabContents.smoke.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -1
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +12 -26
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +2 -2
- package/cypress/pages/components/ckEditorInsertImageComponent.js +2 -2
- package/cypress/pages/components/equationEditorFlyout.js +2 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +2 -5
- package/deploy/e2e/deploy.yaml +2 -2
- package/deploy/smoke/deploy.yaml +2 -2
- package/package.json +3 -2
| @@ -0,0 +1,172 @@ | |
| 1 | 
            +
            import { textEntryMathPage } from "../../../pages";
         | 
| 2 | 
            +
            import abortEarlySetup from "../../../support/helpers/abortEarly";
         | 
| 3 | 
            +
            import utilities from "../../../support/helpers/utilities";
         | 
| 4 | 
            +
            import { equationEditorFlyout } from "../../../pages/components/equationEditorFlyout";
         | 
| 5 | 
            +
            import { equationEditorCategoriesAndSymbols } from "../../../fixtures/equationEditorCategoriesAndSymbols ";
         | 
| 6 | 
            +
            const defaultSelectedCategories = ['Numpad', 'Keypad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices', 'Set notation', 'Delimiters', 'Trig', 'Measurement', 'Calculus', 'Other symbols', 'Greek symbols'];
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            describe('Create Item page - Text entry math: Layout', () => {
         | 
| 9 | 
            +
                before(() => {
         | 
| 10 | 
            +
                    cy.loginAs('admin');
         | 
| 11 | 
            +
                });
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                describe('Layout content and Functionality in edit tab', () => {
         | 
| 14 | 
            +
                    abortEarlySetup();
         | 
| 15 | 
            +
                    before(() => {
         | 
| 16 | 
            +
                        cy.log('Navigating to Text entry math question type');
         | 
| 17 | 
            +
                        textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
         | 
| 18 | 
            +
                        cy.barsPreLoaderWait();
         | 
| 19 | 
            +
                        textEntryMathPage.steps.addResponseArea();
         | 
| 20 | 
            +
                        textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
         | 
| 21 | 
            +
                        textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, 'one');
         | 
| 22 | 
            +
                    });
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                    it('\'Layout\' accordion with accordion icon should be displayed and by default it should be in collapse state', () => {
         | 
| 25 | 
            +
                        utilities.verifyInnerText(textEntryMathPage.layoutAccordion(), 'Layout');
         | 
| 26 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.layoutAccordion(), 'visible');
         | 
| 27 | 
            +
                        textEntryMathPage.steps.verifyLayoutAccordionCollapsed();
         | 
| 28 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.layoutAccordionExpandIcon(), 'visible');
         | 
| 29 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 30 | 
            +
                    });
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                    it('User should be able to collapse and expand the \'Layout\' accordion', () => {
         | 
| 33 | 
            +
                        textEntryMathPage.steps.collapseLayoutAccordion();
         | 
| 34 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 35 | 
            +
                    });
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                    it('\'Response container\' label and \'Math template\' label should be display', () => {
         | 
| 38 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.responseContainerLabel(), 'visible');
         | 
| 39 | 
            +
                        utilities.verifyInnerText(textEntryMathPage.responseContainerLabel(), 'Response container');
         | 
| 40 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.mathTemplateLabel(), 'visible');
         | 
| 41 | 
            +
                        utilities.verifyInnerText(textEntryMathPage.mathTemplateLabel(), 'Math template');
         | 
| 42 | 
            +
                    });
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                    it('Math template inputfield should be display and by default inputfield should be empty', () => {
         | 
| 45 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.inputFieldLayoutAccordion(), 'visible');
         | 
| 46 | 
            +
                        utilities.verifyInnerText(textEntryMathPage.inputFieldLayoutAccordion(), '');
         | 
| 47 | 
            +
                    });
         | 
| 48 | 
            +
                });
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                describe('Layout content and Functionality in preview tab', () => {
         | 
| 51 | 
            +
                    abortEarlySetup();
         | 
| 52 | 
            +
                    before(() => {
         | 
| 53 | 
            +
                        cy.log('Navigating to Text entry math question type');
         | 
| 54 | 
            +
                        textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
         | 
| 55 | 
            +
                        cy.barsPreLoaderWait();
         | 
| 56 | 
            +
                        textEntryMathPage.steps.addResponseArea();
         | 
| 57 | 
            +
                        textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
         | 
| 58 | 
            +
                        textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, 'one');
         | 
| 59 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 60 | 
            +
                    });
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                    it('When the user insert placeholder text inside the input field without adding response field then the placeholder text should be visible in preview tab and placeholder text should be editable', () => {
         | 
| 63 | 
            +
                        textEntryMathPage.steps.focusInLayoutInputField();
         | 
| 64 | 
            +
                        textEntryMathPage.steps.insertTextInEquationEditorTextArea('added two response field');
         | 
| 65 | 
            +
                        equationEditorFlyout.steps.clickOnOkButton();
         | 
| 66 | 
            +
                        textEntryMathPage.steps.switchToPreviewTab();
         | 
| 67 | 
            +
                        utilities.verifyTextContent(textEntryMathPage.responseInputFieldMathTemplatePreviewTab(), 'added two response field');
         | 
| 68 | 
            +
                        textEntryMathPage.steps.verifyResponseFieldEditable();
         | 
| 69 | 
            +
                    });
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                    it('When the user click on the \'response\' button,then the text container should be visible in preview tab', () => {
         | 
| 72 | 
            +
                        textEntryMathPage.steps.switchToEditTab();
         | 
| 73 | 
            +
                        textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
         | 
| 74 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 75 | 
            +
                        textEntryMathPage.steps.focusInLayoutInputField();
         | 
| 76 | 
            +
                        equationEditorFlyout.steps.clearAll();
         | 
| 77 | 
            +
                        textEntryMathPage.steps.addResponseContainer();
         | 
| 78 | 
            +
                        textEntryMathPage.steps.addResponseContainer();
         | 
| 79 | 
            +
                        equationEditorFlyout.steps.clickOnOkButton();
         | 
| 80 | 
            +
                        textEntryMathPage.steps.switchToPreviewTab();
         | 
| 81 | 
            +
                        utilities.verifyElementCount(textEntryMathPage.mathTemplateResponseContainerPreviewTab(), 2);
         | 
| 82 | 
            +
                    });
         | 
| 83 | 
            +
             | 
| 84 | 
            +
                    it('When the user remove response container,then the response container should be removed from preview tab', () => {
         | 
| 85 | 
            +
                        textEntryMathPage.steps.switchToEditTab();
         | 
| 86 | 
            +
                        textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
         | 
| 87 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 88 | 
            +
                        textEntryMathPage.steps.focusInLayoutInputField();
         | 
| 89 | 
            +
                        equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.numPad.symbols.clear.ariaLabel);
         | 
| 90 | 
            +
                        equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.numPad.symbols.clear.ariaLabel);
         | 
| 91 | 
            +
                        equationEditorFlyout.steps.clickOnOkButton();
         | 
| 92 | 
            +
                        textEntryMathPage.steps.switchToPreviewTab();
         | 
| 93 | 
            +
                        utilities.verifyElementCount(textEntryMathPage.mathTemplateResponseContainerPreviewTab(), 1);
         | 
| 94 | 
            +
                    });
         | 
| 95 | 
            +
             | 
| 96 | 
            +
                    it('When the user insert placeholder text inside the input field and add the response field then the placeholder text and response container should be visible in preview tab and placeholder text should not be editable', () => {
         | 
| 97 | 
            +
                        textEntryMathPage.steps.switchToEditTab();
         | 
| 98 | 
            +
                        textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
         | 
| 99 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 100 | 
            +
                        textEntryMathPage.steps.focusInLayoutInputField();
         | 
| 101 | 
            +
                        textEntryMathPage.steps.insertTextInEquationEditorTextArea('added two');
         | 
| 102 | 
            +
                        textEntryMathPage.steps.addResponseContainer();
         | 
| 103 | 
            +
                        textEntryMathPage.steps.addResponseContainer();
         | 
| 104 | 
            +
                        textEntryMathPage.steps.insertTextInEquationEditorTextArea('response field');
         | 
| 105 | 
            +
                        equationEditorFlyout.steps.clickOnOkButton();
         | 
| 106 | 
            +
                        textEntryMathPage.steps.switchToPreviewTab();
         | 
| 107 | 
            +
                        textEntryMathPage.steps.verifyResponseFieldNotEditable();
         | 
| 108 | 
            +
                    });
         | 
| 109 | 
            +
                });
         | 
| 110 | 
            +
             | 
| 111 | 
            +
                describe('\'Equation Editor\' flyout', () => {
         | 
| 112 | 
            +
                    abortEarlySetup();
         | 
| 113 | 
            +
                    before(() => {
         | 
| 114 | 
            +
                        textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
         | 
| 115 | 
            +
                        cy.barsPreLoaderWait();
         | 
| 116 | 
            +
                        textEntryMathPage.steps.addResponseArea();
         | 
| 117 | 
            +
                        textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
         | 
| 118 | 
            +
                        textEntryMathPage.steps.expandLayoutAccordion();
         | 
| 119 | 
            +
                    });
         | 
| 120 | 
            +
             | 
| 121 | 
            +
                    it('When the user focus inside the inputfield equation editor flyout should be visible', () => {
         | 
| 122 | 
            +
                        textEntryMathPage.steps.focusInLayoutInputField();
         | 
| 123 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.dialogBox(), 'visible');
         | 
| 124 | 
            +
                    });
         | 
| 125 | 
            +
             | 
| 126 | 
            +
                    it('\'Done\' and \'Cancel\' button should be displayed at the bottom of the flyout', () => {
         | 
| 127 | 
            +
                        utilities.verifyElementVisibilityState(equationEditorFlyout.buttonOk(), 'visible');
         | 
| 128 | 
            +
                        utilities.verifyInnerText(equationEditorFlyout.buttonOk(), 'Done');
         | 
| 129 | 
            +
                    });
         | 
| 130 | 
            +
             | 
| 131 | 
            +
                    it('Equation Editor input field should be displayed and when user focuses in the input field should have cursor', () => {
         | 
| 132 | 
            +
                        equationEditorFlyout.steps.verifyDefaultEquationEditorInputFieldWithCursor();
         | 
| 133 | 
            +
                    });
         | 
| 134 | 
            +
             | 
| 135 | 
            +
                    it('All the default selected categories in the \'Equation Editor\' section should be displayed and first category must be selected by default in the \'Equation Editor\' flyout', () => {
         | 
| 136 | 
            +
                        equationEditorFlyout.steps.verifyEquationEditorCategoryTiles(defaultSelectedCategories);
         | 
| 137 | 
            +
                        equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(equationEditorCategoriesAndSymbols['numPad'].displayName);
         | 
| 138 | 
            +
                    });
         | 
| 139 | 
            +
             | 
| 140 | 
            +
                    it('\'response\' button should be visible', () => {
         | 
| 141 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.addResponseContainerButton(), 'visible');
         | 
| 142 | 
            +
                        utilities.verifyTextContent(textEntryMathPage.addResponseContainerButton(), '+ response');
         | 
| 143 | 
            +
                    });
         | 
| 144 | 
            +
             | 
| 145 | 
            +
                    it('When the user insert placeholder text inside the input field then the placeholder text should be visible', () => {
         | 
| 146 | 
            +
                        textEntryMathPage.steps.insertTextInEquationEditorTextArea('new placeholder text');
         | 
| 147 | 
            +
                        equationEditorFlyout.steps.clickOnOkButton();
         | 
| 148 | 
            +
                        utilities.verifyInnerText(textEntryMathPage.inputFieldLayoutAccordion(), 'new placeholder text');
         | 
| 149 | 
            +
                    });
         | 
| 150 | 
            +
             | 
| 151 | 
            +
                    it('When the user click on the \'response\' button,then the inputfield should be visible inside the equation editor text area', () => {
         | 
| 152 | 
            +
                        textEntryMathPage.steps.focusInLayoutInputField();
         | 
| 153 | 
            +
                        equationEditorFlyout.steps.clearAll();
         | 
| 154 | 
            +
                        textEntryMathPage.steps.addResponseContainer();
         | 
| 155 | 
            +
                        textEntryMathPage.steps.addResponseContainer();
         | 
| 156 | 
            +
                        utilities.verifyElementVisibilityState(textEntryMathPage.responseInputFieldMathTemplate(), 'visible');
         | 
| 157 | 
            +
                        utilities.verifyElementCount(textEntryMathPage.responseInputFieldMathTemplate(), 2);
         | 
| 158 | 
            +
                    });
         | 
| 159 | 
            +
             | 
| 160 | 
            +
                    it('When the user remove response container,then the response container inside the equation editor text area should be removed', () => {
         | 
| 161 | 
            +
                        equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.numPad.symbols.clear.ariaLabel);
         | 
| 162 | 
            +
                        equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.numPad.symbols.clear.ariaLabel);
         | 
| 163 | 
            +
                        utilities.verifyElementCount(textEntryMathPage.responseInputFieldMathTemplate(), 1);
         | 
| 164 | 
            +
                    });
         | 
| 165 | 
            +
             | 
| 166 | 
            +
                    it('When the user insert value inside the input field then the value should be visible', () => {
         | 
| 167 | 
            +
                        textEntryMathPage.steps.insertTextInEquationEditorTextArea('added two response field');
         | 
| 168 | 
            +
                        equationEditorFlyout.steps.clickOnOkButton();
         | 
| 169 | 
            +
                        utilities.verifyInnerText(textEntryMathPage.inputFieldLayoutAccordion(), 'added two response field');
         | 
| 170 | 
            +
                    })
         | 
| 171 | 
            +
                });
         | 
| 172 | 
            +
            });
         | 
| @@ -2,7 +2,8 @@ import { audioPlayerPage, itemPreviewPage, studentViewPage } from "../../../page | |
| 2 2 | 
             
            import abortEarlySetup from "../../../support/helpers/abortEarly";
         | 
| 3 3 | 
             
            import utilities from "../../../support/helpers/utilities";
         | 
| 4 4 | 
             
            const css = Cypress.env('css');
         | 
| 5 | 
            -
             | 
| 5 | 
            +
            //Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
         | 
| 6 | 
            +
            let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
         | 
| 6 7 | 
             
            const views = utilities.getViews(previewContentViews);
         | 
| 7 8 | 
             
            var itemReferenceID = "";
         | 
| 8 9 |  | 
| @@ -172,7 +172,8 @@ describe('Create item page - Upload response : Preview contents', () => { | |
| 172 172 | 
             
                        });
         | 
| 173 173 |  | 
| 174 174 | 
             
                        if (view != 'Question preview') {
         | 
| 175 | 
            -
                             | 
| 175 | 
            +
                            //Unable to test this on sorry cypress causing unneccessary failures
         | 
| 176 | 
            +
                            it.skip('On clicking on the file name, user should be able to download the file', () => {
         | 
| 176 177 | 
             
                                cy.verifyUploadFilePreviewDownload('sample.jpg');
         | 
| 177 178 | 
             
                                cy.log('Added wait here to pause till the file download is complete');
         | 
| 178 179 | 
             
                                cy.wait(5000);
         | 
| @@ -10,7 +10,7 @@ describe('Create Item page - GeoGebra: Scientific calculator', () => { | |
| 10 10 | 
             
                describe('Scientific calculator: Header section', () => {
         | 
| 11 11 | 
             
                    abortEarlySetup();
         | 
| 12 12 | 
             
                    before(() => {
         | 
| 13 | 
            -
                        geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator') | 
| 13 | 
            +
                        geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator');
         | 
| 14 14 | 
             
                    });
         | 
| 15 15 |  | 
| 16 16 | 
             
                    geoGebraToolsPage.tests.verifyCreateQuestionPageQuestionTypeHeader('GeoGebra scientific calculator');
         | 
| @@ -19,7 +19,7 @@ describe('Create Item page - GeoGebra: Scientific calculator', () => { | |
| 19 19 | 
             
                describe('Scientific calculator: Edit tab basic section', () => {
         | 
| 20 20 | 
             
                    abortEarlySetup();
         | 
| 21 21 | 
             
                    before(() => {
         | 
| 22 | 
            -
                        geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator') | 
| 22 | 
            +
                        geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator');
         | 
| 23 23 | 
             
                    });
         | 
| 24 24 |  | 
| 25 25 | 
             
                    geoGebraToolsPage.tests.verifyEditTabContents('scientific calculator');
         | 
| @@ -28,7 +28,7 @@ describe('Create Item page - GeoGebra: Scientific calculator', () => { | |
| 28 28 | 
             
                describe('Scientific calculator: edit tab functionality', () => {
         | 
| 29 29 | 
             
                    abortEarlySetup();
         | 
| 30 30 | 
             
                    before(() => {
         | 
| 31 | 
            -
                        geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator') | 
| 31 | 
            +
                        geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator');
         | 
| 32 32 | 
             
                        geoGebraToolsPage.steps.switchToPreviewTab();
         | 
| 33 33 | 
             
                    });
         | 
| 34 34 |  | 
    
        package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorPreviewTabContents.smoke.js
    CHANGED
    
    | @@ -18,7 +18,7 @@ describe('Preview tab contents for all views', () => { | |
| 18 18 | 
             
                        before(() => {
         | 
| 19 19 | 
             
                            switch (view) {
         | 
| 20 20 | 
             
                                case 'Question preview':
         | 
| 21 | 
            -
                                    geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator') | 
| 21 | 
            +
                                    geoGebraToolsPage.steps.navigateToCreateResource('GeoGebra scientific calculator');
         | 
| 22 22 | 
             
                                    geoGebraToolsPage.steps.switchToPreviewTab();
         | 
| 23 23 | 
             
                                    break;
         | 
| 24 24 | 
             
                                case 'Item view':
         | 
| @@ -2,16 +2,13 @@ import utilities from "../../support/helpers/utilities"; | |
| 2 2 | 
             
            import { dialogBoxBase } from "../dialogBoxBase";
         | 
| 3 3 | 
             
            import { createQuestionBasePage } from "../components/createQuestionBasePage.js";
         | 
| 4 4 | 
             
            import { questionInstructionsComponent } from "../components/questionInstructionsComponent";
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            import { audioPlayerPage } from "../audioPlayerPage.js";
         | 
| 5 | 
            +
             | 
| 7 6 | 
             
            const css = Cypress.env('css');
         | 
| 8 7 |  | 
| 9 8 | 
             
            const selectors = {
         | 
| 10 9 | 
             
                ...createQuestionBasePage,
         | 
| 11 10 | 
             
                ...dialogBoxBase,
         | 
| 12 11 | 
             
                ...questionInstructionsComponent,
         | 
| 13 | 
            -
                ...audioResponsePage,
         | 
| 14 | 
            -
                ...audioPlayerPage,
         | 
| 15 12 | 
             
                audioPlayerIcon: () => cy.get('[title="Audio Player"]'),
         | 
| 16 13 | 
             
                tableIcon: () => cy.get('[title="Insert Table"]'),
         | 
| 17 14 | 
             
                linkIcon: () => cy.get('[title="Link (Ctrl+K)"]'),
         | 
| @@ -34,9 +31,9 @@ const selectors = { | |
| 34 31 | 
             
                //Upload section
         | 
| 35 32 | 
             
                uploadLabel: () => cy.get('.upload-audio-label'),
         | 
| 36 33 | 
             
                fileNameLabel: () => cy.get('.filename-audio-label'),
         | 
| 37 | 
            -
                 | 
| 34 | 
            +
                audioPlayerChooseFileButton: () => cy.get('.uploadAudioFile .file-input-btn-wrapper button'),
         | 
| 38 35 | 
             
                noFileChosenLabel: () => cy.get('.selected-file-wrapper'),
         | 
| 39 | 
            -
                uploadedFileNameLabel: () => cy.get('.selected-file-wrapper'),
         | 
| 36 | 
            +
                uploadedFileNameLabel: () => cy.get('.uploadAudioFile .selected-file-wrapper'),
         | 
| 40 37 | 
             
                //Error
         | 
| 41 38 | 
             
                sourceUrlInputFieldErrorMessage: () => cy.get('.error-text-message'),
         | 
| 42 39 | 
             
                uploadFileSectionErrorMessage: () => cy.get('[class*="AudioPlayerFormstyles__ErrorBlock"]'),
         | 
| @@ -103,8 +100,6 @@ const selectors = { | |
| 103 100 | 
             
            const steps = {
         | 
| 104 101 | 
             
                ...createQuestionBasePage.steps,
         | 
| 105 102 | 
             
                ...questionInstructionsComponent.steps,
         | 
| 106 | 
            -
                ...audioResponsePage.steps,
         | 
| 107 | 
            -
                ...audioPlayerPage.steps,
         | 
| 108 103 |  | 
| 109 104 | 
             
                verifyAddAudioURLCheckedState: () => {
         | 
| 110 105 | 
             
                    ckEditorAudioPlayerComponent.addAudioURLRadioButton()
         | 
| @@ -440,17 +435,6 @@ const steps = { | |
| 440 435 | 
             
                        .click();
         | 
| 441 436 | 
             
                },
         | 
| 442 437 |  | 
| 443 | 
            -
                /**
         | 
| 444 | 
            -
                 * Enters text into the source URL input field on the audio player popup.
         | 
| 445 | 
            -
                 * @param {string} text - The text to be entered into the source URL input field.
         | 
| 446 | 
            -
                 * @returns {void}
         | 
| 447 | 
            -
                 */
         | 
| 448 | 
            -
                enterTextInSourceURLInputField: (text) => {
         | 
| 449 | 
            -
                    ckEditorAudioPlayerComponent.sourceUrlInputField()
         | 
| 450 | 
            -
                        .type(text, { delay: 0 })
         | 
| 451 | 
            -
                        .blur();
         | 
| 452 | 
            -
                },
         | 
| 453 | 
            -
             | 
| 454 438 | 
             
                /**
         | 
| 455 439 | 
             
                 * Enters text into the transcript input field on the audio player popup.
         | 
| 456 440 | 
             
                 * @param {string} text - The text to be entered into the transcript input field.
         | 
| @@ -461,11 +445,6 @@ const steps = { | |
| 461 445 | 
             
                        .blur();
         | 
| 462 446 | 
             
                },
         | 
| 463 447 |  | 
| 464 | 
            -
                clearTextInSourceURLInputField: () => {
         | 
| 465 | 
            -
                    ckEditorAudioPlayerComponent.sourceUrlInputField()
         | 
| 466 | 
            -
                        .clear();
         | 
| 467 | 
            -
                },
         | 
| 468 | 
            -
             | 
| 469 448 | 
             
                clickOnUploadAudioFileRadioButton: () => {
         | 
| 470 449 | 
             
                    ckEditorAudioPlayerComponent.uploadAudioFileRadioButton()
         | 
| 471 450 | 
             
                        .click();
         | 
| @@ -493,6 +472,11 @@ const steps = { | |
| 493 472 | 
             
                        .and('not.be.empty');
         | 
| 494 473 | 
             
                },
         | 
| 495 474 |  | 
| 475 | 
            +
                uploadOnlyFile: (file) => {
         | 
| 476 | 
            +
                    ckEditorAudioPlayerComponent.inputTypeFile()
         | 
| 477 | 
            +
                        .attachFile(`uploads/${file}`);
         | 
| 478 | 
            +
                },
         | 
| 479 | 
            +
             | 
| 496 480 | 
             
                /**
         | 
| 497 481 | 
             
                 * Uploads a file to the audio player by attaching the file located at the specified filePath.
         | 
| 498 482 | 
             
                 * @param {string} file name of the file in fixtures/upload folder
         | 
| @@ -501,6 +485,10 @@ const steps = { | |
| 501 485 | 
             
                uploadFile: (file) => {
         | 
| 502 486 | 
             
                    ckEditorAudioPlayerComponent.inputTypeFile()
         | 
| 503 487 | 
             
                        .attachFile(`uploads/${file}`);
         | 
| 488 | 
            +
                    ckEditorAudioPlayerComponent.uploadedFileNameLabel()
         | 
| 489 | 
            +
                        .should('have.text', file);
         | 
| 490 | 
            +
                    ckEditorAudioPlayerComponent.fileUploadProgressBar()
         | 
| 491 | 
            +
                        .should('not.be.visible');
         | 
| 504 492 | 
             
                },
         | 
| 505 493 |  | 
| 506 494 | 
             
                /**
         | 
| @@ -538,8 +526,6 @@ const steps = { | |
| 538 526 |  | 
| 539 527 | 
             
            const tests = {
         | 
| 540 528 | 
             
                ...questionInstructionsComponent.tests,
         | 
| 541 | 
            -
                ...audioResponsePage.tests,
         | 
| 542 | 
            -
                ...audioPlayerPage.tests,
         | 
| 543 529 |  | 
| 544 530 | 
             
                verifyCkEditorToolHeader: (tool) => {
         | 
| 545 531 | 
             
                    let selector;
         | 
| @@ -8,8 +8,8 @@ const selectors = { | |
| 8 8 | 
             
                //Basic
         | 
| 9 9 | 
             
                equationEditorIcon: () => cy.get('.cke_button__nextgeneqneditor_icon:visible'),
         | 
| 10 10 | 
             
                equationEditorLabel: () => cy.get('[class*="EquationEditorstyles__Heading"]'),
         | 
| 11 | 
            -
                okButton: () => cy.get('. | 
| 12 | 
            -
                cancelButton: () => cy.get('. | 
| 11 | 
            +
                okButton: () => cy.get('.action-button').eq(0),
         | 
| 12 | 
            +
                cancelButton: () => cy.get('.action-button').eq(1),
         | 
| 13 13 | 
             
                equationEditorPopUp: () => cy.get('[class*="EquationEditorstyles__EquationEditorContainer"]'),
         | 
| 14 14 | 
             
                equationWrapper: () => cy.get('.cke_widget_ngie_equation [class*="NGMathJax"]'),
         | 
| 15 15 | 
             
                equationInInputField: () => cy.get('[class*="ngie_latex"]').eq(0),
         | 
| @@ -52,13 +52,13 @@ const selectors = { | |
| 52 52 | 
             
                imageInPreviewBox: () => cy.get('[src*="https://cdn.pixabay.com/photo/2016/11/29/03/28/fox-1867062_960_720.jpg"]'),
         | 
| 53 53 | 
             
                //Upload
         | 
| 54 54 | 
             
                sendItToTheServerLabel: () => cy.get('.dialog-input-label').eq(9),
         | 
| 55 | 
            -
                 | 
| 55 | 
            +
                insertImageChooseFileButton: () => cy.get('.dialog-input-area').eq(9),
         | 
| 56 56 | 
             
                sendItToTheServerButton: () => cy.get('[title="Send it to the Server"] .cke_dialog_ui_button'),
         | 
| 57 57 | 
             
            }
         | 
| 58 58 |  | 
| 59 59 | 
             
            const steps = {
         | 
| 60 60 | 
             
                clickChooseFileButton: () => {
         | 
| 61 | 
            -
                    ckEditorInsertImageComponent. | 
| 61 | 
            +
                    ckEditorInsertImageComponent.insertImageChooseFileButton()
         | 
| 62 62 | 
             
                        .click();
         | 
| 63 63 | 
             
                },
         | 
| 64 64 |  | 
| @@ -31,7 +31,8 @@ const selectors = { | |
| 31 31 | 
             
                inputFieldCursor: () => cy.get('.mq-hasCursor'),
         | 
| 32 32 | 
             
                inputFieldFirstEmptyBox: () => cy.get('.next-gen-equation-editor .mq-empty').eq(0),
         | 
| 33 33 | 
             
                categoryTooltip: () => cy.get('.__react_component_tooltip'),
         | 
| 34 | 
            -
                dialogBoxTitle: () => cy.get('#alert-dialog-title')
         | 
| 34 | 
            +
                dialogBoxTitle: () => cy.get('#alert-dialog-title'),
         | 
| 35 | 
            +
                dialogBox: () => cy.get('.next-gen-equation-editor')
         | 
| 35 36 | 
             
            }
         | 
| 36 37 |  | 
| 37 38 | 
             
            const steps = {
         | 
| @@ -1,8 +1,6 @@ | |
| 1 1 | 
             
            import utilities from "../../support/helpers/utilities";
         | 
| 2 2 | 
             
            import { equationEditorCategoriesAndSymbols } from "../../fixtures/equationEditorCategoriesAndSymbols ";
         | 
| 3 | 
            -
            import { equationEditorFlyout, commonComponents } from " | 
| 4 | 
            -
            import { essayResponseCommonComponents } from "../components/essayResponseCommonComponents";
         | 
| 5 | 
            -
            import { createQuestionBasePage } from "../components/createQuestionBasePage";
         | 
| 3 | 
            +
            import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage } from "../components";
         | 
| 6 4 | 
             
            const css = Cypress.env('css');
         | 
| 7 5 | 
             
            const allCategories = Object.values(equationEditorCategoriesAndSymbols)
         | 
| 8 6 | 
             
            const defaultSelectedCategories = ['Numpad', 'Keypad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices'];
         | 
| @@ -170,8 +168,7 @@ const steps = { | |
| 170 168 | 
             
                    equationEditorSectionCommonComponent.equationEditorSectionCategories()
         | 
| 171 169 | 
             
                        .contains(`${categoryName}`)
         | 
| 172 170 | 
             
                        .click();
         | 
| 173 | 
            -
                } | 
| 174 | 
            -
             | 
| 171 | 
            +
                }
         | 
| 175 172 | 
             
            }
         | 
| 176 173 |  | 
| 177 174 | 
             
            const tests = {
         | 
    
        package/deploy/e2e/deploy.yaml
    CHANGED
    
    
    
        package/deploy/smoke/deploy.yaml
    CHANGED
    
    
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "itemengine-cypress-automation",
         | 
| 3 | 
            -
              "version": "1.0. | 
| 3 | 
            +
              "version": "1.0.258",
         | 
| 4 4 | 
             
              "description": "",
         | 
| 5 5 | 
             
              "main": "index.js",
         | 
| 6 6 | 
             
              "scripts": {
         | 
| @@ -33,6 +33,7 @@ | |
| 33 33 | 
             
                "cypress-file-upload": "^5.0.8",
         | 
| 34 34 | 
             
                "cypress-real-events": "^1.7.6",
         | 
| 35 35 | 
             
                "node-fetch": "^3.3.2",
         | 
| 36 | 
            -
                "react-uuid": "^2.0.0"
         | 
| 36 | 
            +
                "react-uuid": "^2.0.0",
         | 
| 37 | 
            +
                "typescript": "^5.6.3"
         | 
| 37 38 | 
             
              }
         | 
| 38 39 | 
             
            }
         |