itemengine-cypress-automation 1.0.295-applitools-219e3f5.0 → 1.0.295-applitools-1a2329c.0
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/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -1
 - package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -2
 - package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
 - package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +3 -3
 - package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +3 -3
 - package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
 - package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +3 -3
 - package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
 - package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
 - package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
 - package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
 - package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
 - package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
 - package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
 - package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
 - package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -2
 - package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
 - package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +2 -2
 - package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -5
 - package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -3
 - package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +5 -5
 - package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +7 -7
 - package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +4 -4
 - package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
 - package/package.json +1 -1
 
| 
         @@ -77,7 +77,7 @@ describe('Create item page - Grid fill : Preview contents', () => { 
     | 
|
| 
       77 
77 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(gridFillPage.questionInstructionsText(), 'visible');
         
     | 
| 
       78 
78 
     | 
    
         
             
                        });
         
     | 
| 
       79 
79 
     | 
    
         | 
| 
       80 
     | 
    
         
            -
                        it( 
     | 
| 
      
 80 
     | 
    
         
            +
                        it(`Grid fill - ${view} Grid matrix should be displayed with 4 rows and 6 columns and 24 cells should be present`, () => {
         
     | 
| 
       81 
81 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(gridFillPage.gridWrapperPreviewTab(), 'visible');
         
     | 
| 
       82 
82 
     | 
    
         
             
                            gridFillPage.steps.verifyRowsCountPreviewTab(4);
         
     | 
| 
       83 
83 
     | 
    
         
             
                            gridFillPage.steps.verifyColumnsCountPreviewTab(6);
         
     | 
| 
         @@ -82,14 +82,14 @@ describe('Create item page - List ordering - Preview contents in all views', () 
     | 
|
| 
       82 
82 
     | 
    
         
             
                            }
         
     | 
| 
       83 
83 
     | 
    
         
             
                        });
         
     | 
| 
       84 
84 
     | 
    
         | 
| 
       85 
     | 
    
         
            -
                        it( 
     | 
| 
      
 85 
     | 
    
         
            +
                        it(`List ordering: dropdown - ${view} - Question instructions should be visible`, () => {
         
     | 
| 
       86 
86 
     | 
    
         
             
                            utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
         
     | 
| 
       87 
87 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
         
     | 
| 
       88 
88 
     | 
    
         
             
                            cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Options with image, bold text, and equation`);
         
     | 
| 
       89 
89 
     | 
    
         
             
                        });
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
91 
     | 
    
         
             
                        if (view !== 'Grading view' && view !== 'Correct answer view') {
         
     | 
| 
       92 
     | 
    
         
            -
                            it(` 
     | 
| 
      
 92 
     | 
    
         
            +
                            it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
         
     | 
| 
       93 
93 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithImageInPreviewTab(0);
         
     | 
| 
       94 
94 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(1);
         
     | 
| 
       95 
95 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(2);
         
     | 
| 
         @@ -119,7 +119,7 @@ describe('Create item page - List ordering: All or nothing ', () => { 
     | 
|
| 
       119 
119 
     | 
    
         
             
                        };
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
                        if (view === 'Question preview' || view === 'Item preview') {
         
     | 
| 
       122 
     | 
    
         
            -
                            it( 
     | 
| 
      
 122 
     | 
    
         
            +
                            it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       123 
123 
     | 
    
         
             
                                listOrderingPage.steps.verifyPreviewScore(0, 20);
         
     | 
| 
       124 
124 
     | 
    
         
             
                                listOrderingPage.steps.switchToGradingView();
         
     | 
| 
       125 
125 
     | 
    
         
             
                                listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
         
     | 
| 
         @@ -129,7 +129,7 @@ describe('Create item page - List ordering: All or nothing ', () => { 
     | 
|
| 
       129 
129 
     | 
    
         
             
                            });
         
     | 
| 
       130 
130 
     | 
    
         
             
                        };
         
     | 
| 
       131 
131 
     | 
    
         | 
| 
       132 
     | 
    
         
            -
                        it( 
     | 
| 
      
 132 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       133 
133 
     | 
    
         
             
                            listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
         
     | 
| 
       134 
134 
     | 
    
         
             
                            listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
         
     | 
| 
       135 
135 
     | 
    
         
             
                            listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
         
     | 
| 
         @@ -152,7 +152,7 @@ describe('Create item page - List ordering: All or nothing ', () => { 
     | 
|
| 
       152 
152 
     | 
    
         
             
                            listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
         
     | 
| 
       153 
153 
     | 
    
         
             
                        });
         
     | 
| 
       154 
154 
     | 
    
         | 
| 
       155 
     | 
    
         
            -
                        it( 
     | 
| 
      
 155 
     | 
    
         
            +
                        it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       156 
156 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       157 
157 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       158 
158 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -178,7 +178,7 @@ describe('Create item page - List ordering: All or nothing ', () => { 
     | 
|
| 
       178 
178 
     | 
    
         
             
                            listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
         
     | 
| 
       179 
179 
     | 
    
         
             
                        });
         
     | 
| 
       180 
180 
     | 
    
         | 
| 
       181 
     | 
    
         
            -
                        it(`${view}: List ordering:Reorder as a separate list - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
         
     | 
| 
      
 181 
     | 
    
         
            +
                        it(`${view}: List ordering:Reorder as a separate list - When the user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
         
     | 
| 
       182 
182 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       183 
183 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       184 
184 
     | 
    
         
             
                            };
         
     | 
    
        package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js
    CHANGED
    
    | 
         @@ -81,7 +81,7 @@ describe('Create item page - List ordering - Preview contents in all views', () 
     | 
|
| 
       81 
81 
     | 
    
         
             
                            }
         
     | 
| 
       82 
82 
     | 
    
         
             
                        });
         
     | 
| 
       83 
83 
     | 
    
         | 
| 
       84 
     | 
    
         
            -
                        it( 
     | 
| 
      
 84 
     | 
    
         
            +
                        it('Question instructions should be visible', () => {
         
     | 
| 
       85 
85 
     | 
    
         
             
                            utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
         
     | 
| 
       86 
86 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
         
     | 
| 
       87 
87 
     | 
    
         
             
                        });
         
     | 
| 
         @@ -93,7 +93,7 @@ describe('Create item page - List ordering - Preview contents in all views', () 
     | 
|
| 
       93 
93 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithEquationTextInOptionsContainerPreviewTabSeperateList(2);
         
     | 
| 
       94 
94 
     | 
    
         
             
                            });
         
     | 
| 
       95 
95 
     | 
    
         | 
| 
       96 
     | 
    
         
            -
                            it( 
     | 
| 
      
 96 
     | 
    
         
            +
                            it('User should be able to drop the options in the dropzone containing image, bold text and equation options in the list', () => {
         
     | 
| 
       97 
97 
     | 
    
         
             
                                listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
         
     | 
| 
       98 
98 
     | 
    
         
             
                                listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
         
     | 
| 
       99 
99 
     | 
    
         
             
                                listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
         
     | 
| 
         @@ -104,7 +104,7 @@ describe('Create item page - List ordering - Preview contents in all views', () 
     | 
|
| 
       104 
104 
     | 
    
         
             
                                listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
         
     | 
| 
       105 
105 
     | 
    
         
             
                            });
         
     | 
| 
       106 
106 
     | 
    
         
             
                        } else if (view === 'Grading view') {
         
     | 
| 
       107 
     | 
    
         
            -
                            it( 
     | 
| 
      
 107 
     | 
    
         
            +
                            it('The order of the responses should be as per the submitted response', () => {
         
     | 
| 
       108 
108 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithBoldTextInDropzonePreviewTabSeperateList(0);
         
     | 
| 
       109 
109 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithImageInDropzonePreviewTabSeperateList(1);
         
     | 
| 
       110 
110 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithEquationTextInDropzonePreviewTabSeperateList(2);
         
     | 
| 
         @@ -125,7 +125,7 @@ describe('Create item page - List ordering - Preview contents in all views', () 
     | 
|
| 
       125 
125 
     | 
    
         
             
                                listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
         
     | 
| 
       126 
126 
     | 
    
         
             
                            });
         
     | 
| 
       127 
127 
     | 
    
         
             
                        } else {
         
     | 
| 
       128 
     | 
    
         
            -
                            it( 
     | 
| 
      
 128 
     | 
    
         
            +
                            it('The order of the options should be as per the correct answer order', () => {
         
     | 
| 
       129 
129 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
         
     | 
| 
       130 
130 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
         
     | 
| 
       131 
131 
     | 
    
         
             
                                listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
         
     | 
| 
         @@ -105,7 +105,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       105 
105 
     | 
    
         
             
                            });
         
     | 
| 
       106 
106 
     | 
    
         
             
                        };
         
     | 
| 
       107 
107 
     | 
    
         | 
| 
       108 
     | 
    
         
            -
                        it( 
     | 
| 
      
 108 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, then correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
         
     | 
| 
       109 
109 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       110 
110 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       111 
111 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -124,7 +124,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       124 
124 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       125 
125 
     | 
    
         
             
                        });
         
     | 
| 
       126 
126 
     | 
    
         | 
| 
       127 
     | 
    
         
            -
                        it( 
     | 
| 
      
 127 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
         
     | 
| 
       128 
128 
     | 
    
         
             
                            matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
         
     | 
| 
       129 
129 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       130 
130 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
         @@ -143,7 +143,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       143 
143 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       144 
144 
     | 
    
         
             
                        });
         
     | 
| 
       145 
145 
     | 
    
         | 
| 
       146 
     | 
    
         
            -
                        it( 
     | 
| 
      
 146 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
         
     | 
| 
       147 
147 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       148 
148 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       149 
149 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -165,7 +165,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       165 
165 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       166 
166 
     | 
    
         
             
                        });
         
     | 
| 
       167 
167 
     | 
    
         | 
| 
       168 
     | 
    
         
            -
                        it( 
     | 
| 
      
 168 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
         
     | 
| 
       169 
169 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       170 
170 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       171 
171 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -98,7 +98,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       98 
98 
     | 
    
         
             
                            });
         
     | 
| 
       99 
99 
     | 
    
         
             
                        };
         
     | 
| 
       100 
100 
     | 
    
         | 
| 
       101 
     | 
    
         
            -
                        it( 
     | 
| 
      
 101 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
         
     | 
| 
       102 
102 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       103 
103 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       104 
104 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -119,7 +119,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       119 
119 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       120 
120 
     | 
    
         
             
                        });
         
     | 
| 
       121 
121 
     | 
    
         | 
| 
       122 
     | 
    
         
            -
                        it( 
     | 
| 
      
 122 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
         
     | 
| 
       123 
123 
     | 
    
         
             
                            matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
         
     | 
| 
       124 
124 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       125 
125 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
         @@ -138,7 +138,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       138 
138 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       139 
139 
     | 
    
         
             
                        });
         
     | 
| 
       140 
140 
     | 
    
         | 
| 
       141 
     | 
    
         
            -
                        it( 
     | 
| 
      
 141 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with some correct, some incomplete and some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
         
     | 
| 
       142 
142 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       143 
143 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       144 
144 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -160,7 +160,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       160 
160 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       161 
161 
     | 
    
         
             
                        });
         
     | 
| 
       162 
162 
     | 
    
         | 
| 
       163 
     | 
    
         
            -
                        it( 
     | 
| 
      
 163 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
         
     | 
| 
       164 
164 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       165 
165 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       166 
166 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -182,7 +182,7 @@ describe('Create item page - Matching: All or nothing ', () => { 
     | 
|
| 
       182 
182 
     | 
    
         
             
                            matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
         
     | 
| 
       183 
183 
     | 
    
         
             
                        });
         
     | 
| 
       184 
184 
     | 
    
         | 
| 
       185 
     | 
    
         
            -
                        it( 
     | 
| 
      
 185 
     | 
    
         
            +
                        it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
         
     | 
| 
       186 
186 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       187 
187 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       188 
188 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -101,7 +101,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => { 
     | 
|
| 
       101 
101 
     | 
    
         
             
                            });
         
     | 
| 
       102 
102 
     | 
    
         
             
                        };
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
                        it( 
     | 
| 
      
 104 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section', () => {
         
     | 
| 
       105 
105 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       106 
106 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       107 
107 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -124,7 +124,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => { 
     | 
|
| 
       124 
124 
     | 
    
         
             
                            multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
         
     | 
| 
       125 
125 
     | 
    
         
             
                        });
         
     | 
| 
       126 
126 
     | 
    
         | 
| 
       127 
     | 
    
         
            -
                        it( 
     | 
| 
      
 127 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
         
     | 
| 
       128 
128 
     | 
    
         
             
                            multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
         
     | 
| 
       129 
129 
     | 
    
         
             
                            multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
         
     | 
| 
       130 
130 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
         @@ -148,7 +148,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => { 
     | 
|
| 
       148 
148 
     | 
    
         
             
                            multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
         
     | 
| 
       149 
149 
     | 
    
         
             
                        });
         
     | 
| 
       150 
150 
     | 
    
         | 
| 
       151 
     | 
    
         
            -
                        it( 
     | 
| 
      
 151 
     | 
    
         
            +
                        it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses and no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
         
     | 
| 
       152 
152 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       153 
153 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       154 
154 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -101,7 +101,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => { 
     | 
|
| 
       101 
101 
     | 
    
         
             
                            });
         
     | 
| 
       102 
102 
     | 
    
         
             
                        };
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
                        it( 
     | 
| 
      
 104 
     | 
    
         
            +
                        it('When the user selects "Grading" view without attempting the question, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with a preview of the entire grid with correct answers', () => {
         
     | 
| 
       105 
105 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       106 
106 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       107 
107 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -118,7 +118,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => { 
     | 
|
| 
       118 
118 
     | 
    
         
             
                            multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       119 
119 
     | 
    
         
             
                        });
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
     | 
    
         
            -
                        it( 
     | 
| 
      
 121 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to "Grading" view, incorrect icons should be displayed besides all incorrect responses, a status message with text "Your answer is incorrect" and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
         
     | 
| 
       122 
122 
     | 
    
         
             
                            multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
         
     | 
| 
       123 
123 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       124 
124 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
         @@ -136,7 +136,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => { 
     | 
|
| 
       136 
136 
     | 
    
         
             
                            multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       137 
137 
     | 
    
         
             
                        });
         
     | 
| 
       138 
138 
     | 
    
         | 
| 
       139 
     | 
    
         
            -
                        it( 
     | 
| 
      
 139 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with incorrect responses, then the user should be awarded 0 points and on switching to "Grading" view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text "Your answer is incorrect" and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
         
     | 
| 
       140 
140 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       141 
141 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       142 
142 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -159,7 +159,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => { 
     | 
|
| 
       159 
159 
     | 
    
         
             
                            multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       160 
160 
     | 
    
         
             
                        });
         
     | 
| 
       161 
161 
     | 
    
         | 
| 
       162 
     | 
    
         
            -
                        it( 
     | 
| 
      
 162 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to "Grading" view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text "Your answer is incorrect" and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
         
     | 
| 
       163 
163 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       164 
164 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       165 
165 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -106,13 +106,13 @@ describe('Create item page - Multiple selection grid: Preview contents', () => { 
     | 
|
| 
       106 
106 
     | 
    
         
             
                        });
         
     | 
| 
       107 
107 
     | 
    
         | 
| 
       108 
108 
     | 
    
         
             
                        if (view !== 'Grading view' && view !== 'Correct answer view') {
         
     | 
| 
       109 
     | 
    
         
            -
                            it(` 
     | 
| 
      
 109 
     | 
    
         
            +
                            it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
         
     | 
| 
       110 
110 
     | 
    
         
             
                                multipleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
         
     | 
| 
       111 
111 
     | 
    
         
             
                                multipleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
         
     | 
| 
       112 
112 
     | 
    
         
             
                                multipleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
         
     | 
| 
       113 
113 
     | 
    
         
             
                            });
         
     | 
| 
       114 
114 
     | 
    
         | 
| 
       115 
     | 
    
         
            -
                            it(` 
     | 
| 
      
 115 
     | 
    
         
            +
                            it(`User should be able to select options in the ${view}`, () => {
         
     | 
| 
       116 
116 
     | 
    
         
             
                                multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       117 
117 
     | 
    
         
             
                            });
         
     | 
| 
       118 
118 
     | 
    
         
             
                        } else if (view === 'Grading view') {
         
     | 
| 
         @@ -123,7 +123,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => { 
     | 
|
| 
       123 
123 
     | 
    
         
             
                                multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 4, column: 1 });
         
     | 
| 
       124 
124 
     | 
    
         
             
                            });
         
     | 
| 
       125 
125 
     | 
    
         | 
| 
       126 
     | 
    
         
            -
                            it(' 
     | 
| 
      
 126 
     | 
    
         
            +
                            it('The content in the grid should not be editable', () => {
         
     | 
| 
       127 
127 
     | 
    
         
             
                                multipleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
         
     | 
| 
       128 
128 
     | 
    
         
             
                            });
         
     | 
| 
       129 
129 
     | 
    
         
             
                        } else {
         
     | 
| 
         @@ -107,7 +107,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       107 
107 
     | 
    
         
             
                            });
         
     | 
| 
       108 
108 
     | 
    
         
             
                        };
         
     | 
| 
       109 
109 
     | 
    
         | 
| 
       110 
     | 
    
         
            -
                        it( 
     | 
| 
      
 110 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
         
     | 
| 
       111 
111 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       112 
112 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       113 
113 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -128,7 +128,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       128 
128 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
         
     | 
| 
       129 
129 
     | 
    
         
             
                        });
         
     | 
| 
       130 
130 
     | 
    
         | 
| 
       131 
     | 
    
         
            -
                        it( 
     | 
| 
      
 131 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       132 
132 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
         
     | 
| 
       133 
133 
     | 
    
         
             
                            numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
         
     | 
| 
       134 
134 
     | 
    
         
             
                            numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8, 7]);
         
     | 
| 
         @@ -152,7 +152,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       152 
152 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
         
     | 
| 
       153 
153 
     | 
    
         
             
                        });
         
     | 
| 
       154 
154 
     | 
    
         | 
| 
       155 
     | 
    
         
            -
                        it( 
     | 
| 
      
 155 
     | 
    
         
            +
                        it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       156 
156 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       157 
157 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       158 
158 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -177,7 +177,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       177 
177 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
         
     | 
| 
       178 
178 
     | 
    
         
             
                        });
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
       180 
     | 
    
         
            -
                        it( 
     | 
| 
      
 180 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       181 
181 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       182 
182 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       183 
183 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -210,7 +210,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       210 
210 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
         
     | 
| 
       211 
211 
     | 
    
         
             
                        });
         
     | 
| 
       212 
212 
     | 
    
         | 
| 
       213 
     | 
    
         
            -
                        it( 
     | 
| 
      
 213 
     | 
    
         
            +
                        it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
         
     | 
| 
       214 
214 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       215 
215 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       216 
216 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -143,7 +143,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       143 
143 
     | 
    
         
             
                            numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -8);
         
     | 
| 
       144 
144 
     | 
    
         
             
                        });
         
     | 
| 
       145 
145 
     | 
    
         | 
| 
       146 
     | 
    
         
            -
                        it( 
     | 
| 
      
 146 
     | 
    
         
            +
                        it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
         
     | 
| 
       147 
147 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
         
     | 
| 
       148 
148 
     | 
    
         
             
                            numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 7);
         
     | 
| 
       149 
149 
     | 
    
         
             
                            numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [7]);
         
     | 
| 
         @@ -185,7 +185,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       185 
185 
     | 
    
         
             
                            numberLinePage.steps.verifyRayOnNumberLinePreviewTab('right', range, 7);
         
     | 
| 
       186 
186 
     | 
    
         
             
                        });
         
     | 
| 
       187 
187 
     | 
    
         | 
| 
       188 
     | 
    
         
            -
                        it( 
     | 
| 
      
 188 
     | 
    
         
            +
                        it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
         
     | 
| 
       189 
189 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
         
     | 
| 
       190 
190 
     | 
    
         
             
                            numberLinePage.steps.confirmReset();
         
     | 
| 
       191 
191 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
         
     | 
| 
         @@ -201,7 +201,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       201 
201 
     | 
    
         
             
                            numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -5);
         
     | 
| 
       202 
202 
     | 
    
         
             
                        });
         
     | 
| 
       203 
203 
     | 
    
         | 
| 
       204 
     | 
    
         
            -
                        it( 
     | 
| 
      
 204 
     | 
    
         
            +
                        it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
         
     | 
| 
       205 
205 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
         
     | 
| 
       206 
206 
     | 
    
         
             
                            numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 6);
         
     | 
| 
       207 
207 
     | 
    
         
             
                            numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
         
     | 
    
        package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js
    CHANGED
    
    | 
         @@ -109,7 +109,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       109 
109 
     | 
    
         
             
                            });
         
     | 
| 
       110 
110 
     | 
    
         
             
                        };
         
     | 
| 
       111 
111 
     | 
    
         | 
| 
       112 
     | 
    
         
            -
                        it( 
     | 
| 
      
 112 
     | 
    
         
            +
                        it('Number line Vertical - When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
         
     | 
| 
       113 
113 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       114 
114 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       115 
115 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -127,7 +127,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       127 
127 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
         
     | 
| 
       128 
128 
     | 
    
         
             
                        });
         
     | 
| 
       129 
129 
     | 
    
         | 
| 
       130 
     | 
    
         
            -
                        it( 
     | 
| 
      
 130 
     | 
    
         
            +
                        it('Number line Vertical - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       131 
131 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
         
     | 
| 
       132 
132 
     | 
    
         
             
                            numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 8);
         
     | 
| 
       133 
133 
     | 
    
         
             
                            numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [8, 7]);
         
     | 
| 
         @@ -150,7 +150,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       150 
150 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
         
     | 
| 
       151 
151 
     | 
    
         
             
                        });
         
     | 
| 
       152 
152 
     | 
    
         | 
| 
       153 
     | 
    
         
            -
                        it( 
     | 
| 
      
 153 
     | 
    
         
            +
                        it('Number line Vertical - When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       154 
154 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       155 
155 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       156 
156 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -174,7 +174,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       174 
174 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
         
     | 
| 
       175 
175 
     | 
    
         
             
                        });
         
     | 
| 
       176 
176 
     | 
    
         | 
| 
       177 
     | 
    
         
            -
                        it( 
     | 
| 
      
 177 
     | 
    
         
            +
                        it('Number line Vertical - When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       178 
178 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       179 
179 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       180 
180 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -206,7 +206,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       206 
206 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
         
     | 
| 
       207 
207 
     | 
    
         
             
                        });
         
     | 
| 
       208 
208 
     | 
    
         | 
| 
       209 
     | 
    
         
            -
                        it( 
     | 
| 
      
 209 
     | 
    
         
            +
                        it('Number line Vertical - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
         
     | 
| 
       210 
210 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       211 
211 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       212 
212 
     | 
    
         
             
                            }
         
     | 
    
        package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js
    CHANGED
    
    | 
         @@ -71,7 +71,7 @@ describe('Create item page - Number line vertical: Grading view, Correct answer 
     | 
|
| 
       71 
71 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(numberLinePage.correctAnswersLabel(), 'visible');
         
     | 
| 
       72 
72 
     | 
    
         
             
                        });
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
       74 
     | 
    
         
            -
                        it(' 
     | 
| 
      
 74 
     | 
    
         
            +
                        it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
         
     | 
| 
       75 
75 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLinePreviewTab(range,  [-4, -5]);
         
     | 
| 
       76 
76 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
         
     | 
| 
       77 
77 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [2]);
         
     | 
| 
         @@ -150,7 +150,7 @@ describe('Create item page - Number line vertical: Grading view, Correct answer 
     | 
|
| 
       150 
150 
     | 
    
         
             
                            });
         
     | 
| 
       151 
151 
     | 
    
         
             
                        });
         
     | 
| 
       152 
152 
     | 
    
         | 
| 
       153 
     | 
    
         
            -
                        it(' 
     | 
| 
      
 153 
     | 
    
         
            +
                        it('The correct answer set by user should be displayed in the correct answer view', () => {
         
     | 
| 
       154 
154 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLinePreviewTab(range, [-4, -5, 2]);
         
     | 
| 
       155 
155 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
         
     | 
| 
       156 
156 
     | 
    
         
             
                            numberLinePage.steps.verifyCorrectRayOnVerticalNumberLinePreviewTab('left', range, -7);
         
     | 
    
        package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js
    CHANGED
    
    | 
         @@ -85,7 +85,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       85 
85 
     | 
    
         
             
                            numberLinePage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
         
     | 
| 
       86 
86 
     | 
    
         
             
                        });
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
       88 
     | 
    
         
            -
                        it( 
     | 
| 
      
 88 
     | 
    
         
            +
                        it('By default, all controls should be in disabled state', () => {
         
     | 
| 
       89 
89 
     | 
    
         
             
                            controlOptions.forEach((controlOption) => {
         
     | 
| 
       90 
90 
     | 
    
         
             
                                utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab(controlOption));
         
     | 
| 
       91 
91 
     | 
    
         
             
                            });
         
     | 
| 
         @@ -135,7 +135,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       135 
135 
     | 
    
         
             
                            numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('down', range, -8);
         
     | 
| 
       136 
136 
     | 
    
         
             
                        });
         
     | 
| 
       137 
137 
     | 
    
         | 
| 
       138 
     | 
    
         
            -
                        it( 
     | 
| 
      
 138 
     | 
    
         
            +
                        it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
         
     | 
| 
       139 
139 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
         
     | 
| 
       140 
140 
     | 
    
         
             
                            numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 8);
         
     | 
| 
       141 
141 
     | 
    
         
             
                            numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [8]);
         
     | 
| 
         @@ -177,7 +177,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       177 
177 
     | 
    
         
             
                            numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('up', range, 8);
         
     | 
| 
       178 
178 
     | 
    
         
             
                        });
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
       180 
     | 
    
         
            -
                        it( 
     | 
| 
      
 180 
     | 
    
         
            +
                        it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
         
     | 
| 
       181 
181 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
         
     | 
| 
       182 
182 
     | 
    
         
             
                            numberLinePage.steps.confirmReset();
         
     | 
| 
       183 
183 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
         
     | 
| 
         @@ -193,7 +193,7 @@ describe('Create item page: Number line - Preview contents in all views', () => 
     | 
|
| 
       193 
193 
     | 
    
         
             
                            numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('down', range, -6);
         
     | 
| 
       194 
194 
     | 
    
         
             
                        });
         
     | 
| 
       195 
195 
     | 
    
         | 
| 
       196 
     | 
    
         
            -
                        it( 
     | 
| 
      
 196 
     | 
    
         
            +
                        it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
         
     | 
| 
       197 
197 
     | 
    
         
             
                            numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
         
     | 
| 
       198 
198 
     | 
    
         
             
                            numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 6);
         
     | 
| 
       199 
199 
     | 
    
         
             
                            numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [6]);
         
     | 
| 
         @@ -106,7 +106,7 @@ describe('Create Item page - Number line label: All or nothing ', () => { 
     | 
|
| 
       106 
106 
     | 
    
         
             
                            });
         
     | 
| 
       107 
107 
     | 
    
         
             
                        };
         
     | 
| 
       108 
108 
     | 
    
         | 
| 
       109 
     | 
    
         
            -
                        it( 
     | 
| 
      
 109 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
         
     | 
| 
       110 
110 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       111 
111 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       112 
112 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -124,7 +124,7 @@ describe('Create Item page - Number line label: All or nothing ', () => { 
     | 
|
| 
       124 
124 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       125 
125 
     | 
    
         
             
                        });
         
     | 
| 
       126 
126 
     | 
    
         | 
| 
       127 
     | 
    
         
            -
                        it( 
     | 
| 
      
 127 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       128 
128 
     | 
    
         
             
                            numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 0);
         
     | 
| 
       129 
129 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
         
     | 
| 
       130 
130 
     | 
    
         
             
                            numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 4);
         
     | 
| 
         @@ -146,7 +146,7 @@ describe('Create Item page - Number line label: All or nothing ', () => { 
     | 
|
| 
       146 
146 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       147 
147 
     | 
    
         
             
                        });
         
     | 
| 
       148 
148 
     | 
    
         | 
| 
       149 
     | 
    
         
            -
                        it( 
     | 
| 
      
 149 
     | 
    
         
            +
                        it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       150 
150 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       151 
151 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       152 
152 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -174,7 +174,7 @@ describe('Create Item page - Number line label: All or nothing ', () => { 
     | 
|
| 
       174 
174 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       175 
175 
     | 
    
         
             
                        });
         
     | 
| 
       176 
176 
     | 
    
         | 
| 
       177 
     | 
    
         
            -
                        it( 
     | 
| 
      
 177 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       178 
178 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       179 
179 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       180 
180 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -205,7 +205,7 @@ describe('Create Item page - Number line label: All or nothing ', () => { 
     | 
|
| 
       205 
205 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       206 
206 
     | 
    
         
             
                        });
         
     | 
| 
       207 
207 
     | 
    
         | 
| 
       208 
     | 
    
         
            -
                        it( 
     | 
| 
      
 208 
     | 
    
         
            +
                        it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
         
     | 
| 
       209 
209 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       210 
210 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       211 
211 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -107,7 +107,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       107 
107 
     | 
    
         
             
                            });
         
     | 
| 
       108 
108 
     | 
    
         
             
                        };
         
     | 
| 
       109 
109 
     | 
    
         | 
| 
       110 
     | 
    
         
            -
                        it( 
     | 
| 
      
 110 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
         
     | 
| 
       111 
111 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       112 
112 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       113 
113 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -125,7 +125,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       125 
125 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       126 
126 
     | 
    
         
             
                        });
         
     | 
| 
       127 
127 
     | 
    
         | 
| 
       128 
     | 
    
         
            -
                        it( 
     | 
| 
      
 128 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       129 
129 
     | 
    
         
             
                            numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'vertical', range, 0);
         
     | 
| 
       130 
130 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [0]);
         
     | 
| 
       131 
131 
     | 
    
         
             
                            numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'vertical', range, 4);
         
     | 
| 
         @@ -147,7 +147,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       147 
147 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       148 
148 
     | 
    
         
             
                        });
         
     | 
| 
       149 
149 
     | 
    
         | 
| 
       150 
     | 
    
         
            -
                        it( 
     | 
| 
      
 150 
     | 
    
         
            +
                        it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       151 
151 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       152 
152 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       153 
153 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -175,7 +175,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       175 
175 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       176 
176 
     | 
    
         
             
                        });
         
     | 
| 
       177 
177 
     | 
    
         | 
| 
       178 
     | 
    
         
            -
                        it( 
     | 
| 
      
 178 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
         
     | 
| 
       179 
179 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       180 
180 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       181 
181 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -206,7 +206,7 @@ describe('Create Item page - Number line: All or nothing ', () => { 
     | 
|
| 
       206 
206 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
         
     | 
| 
       207 
207 
     | 
    
         
             
                        });
         
     | 
| 
       208 
208 
     | 
    
         | 
| 
       209 
     | 
    
         
            -
                        it( 
     | 
| 
      
 209 
     | 
    
         
            +
                        it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
         
     | 
| 
       210 
210 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       211 
211 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       212 
212 
     | 
    
         
             
                            }
         
     | 
    
        package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js
    CHANGED
    
    | 
         @@ -90,7 +90,7 @@ describe('Create item page: Number line label - Preview contents in all views', 
     | 
|
| 
       90 
90 
     | 
    
         
             
                            numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'vertical', range, -9);
         
     | 
| 
       91 
91 
     | 
    
         
             
                        });
         
     | 
| 
       92 
92 
     | 
    
         | 
| 
       93 
     | 
    
         
            -
                        it( 
     | 
| 
      
 93 
     | 
    
         
            +
                        it('The user should be able to change the plotted label on the number line', () => {
         
     | 
| 
       94 
94 
     | 
    
         
             
                            numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Solve the following', 'vertical', range, 5);
         
     | 
| 
       95 
95 
     | 
    
         
             
                            numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [5]);
         
     | 
| 
       96 
96 
     | 
    
         
             
                        });
         
     | 
| 
         @@ -60,7 +60,7 @@ describe('Preview tab contents for all views', () => { 
     | 
|
| 
       60 
60 
     | 
    
         
             
                            }
         
     | 
| 
       61 
61 
     | 
    
         
             
                        });
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
       63 
     | 
    
         
            -
                        it( 
     | 
| 
      
 63 
     | 
    
         
            +
                        it('\'Protractor\' should be displayed with \'Acute\' angle, \'30 percent\' opacity, \'Alternative text\' and in \'Orange\' color', () => {
         
     | 
| 
       64 
64 
     | 
    
         
             
                            protractorPage.steps.verifyAcuteAngleTypeInPreviewTab();
         
     | 
| 
       65 
65 
     | 
    
         
             
                            protractorPage.steps.verifyPreviewTabColorAndOpacityOfProtractor(3, 0.3);
         
     | 
| 
       66 
66 
     | 
    
         
             
                            protractorPage.steps.verifyAlternativeTextInPreviewTab('Measuring tool');
         
     | 
| 
         @@ -58,7 +58,7 @@ describe('Preview tab contents for all views', () => { 
     | 
|
| 
       58 
58 
     | 
    
         
             
                            }
         
     | 
| 
       59 
59 
     | 
    
         
             
                        });
         
     | 
| 
       60 
60 
     | 
    
         | 
| 
       61 
     | 
    
         
            -
                        it( 
     | 
| 
      
 61 
     | 
    
         
            +
                        it('\'Reading ruler\' should be displayed with \'30 percent\' opacity and in \'Blue\' color', () => {
         
     | 
| 
       62 
62 
     | 
    
         
             
                            readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
         
     | 
| 
       63 
63 
     | 
    
         
             
                            readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab('0.3');
         
     | 
| 
       64 
64 
     | 
    
         
             
                            readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(2);
         
     | 
| 
         @@ -59,7 +59,7 @@ describe('Preview tab contents for all views', () => { 
     | 
|
| 
       59 
59 
     | 
    
         
             
                            }
         
     | 
| 
       60 
60 
     | 
    
         
             
                        });
         
     | 
| 
       61 
61 
     | 
    
         | 
| 
       62 
     | 
    
         
            -
                        it( 
     | 
| 
      
 62 
     | 
    
         
            +
                        it('\'Ruler\' should be displayed with \'6 in\' length and in \'Orange\' color', () => {
         
     | 
| 
       63 
63 
     | 
    
         
             
                            rulerPage.steps.verifyLengthOfRulerInPreview('6in');
         
     | 
| 
       64 
64 
     | 
    
         
             
                            rulerPage.steps.verifyRotationButtonVisibleInPreviewTab();
         
     | 
| 
       65 
65 
     | 
    
         
             
                            rulerPage.steps.verifyColorOfRulerInPreview(3);
         
     | 
| 
         @@ -97,7 +97,7 @@ describe('Create item page - Short text response: All or nothing', () => { 
     | 
|
| 
       97 
97 
     | 
    
         
             
                            });
         
     | 
| 
       98 
98 
     | 
    
         
             
                        };
         
     | 
| 
       99 
99 
     | 
    
         | 
| 
       100 
     | 
    
         
            -
                        it( 
     | 
| 
      
 100 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, correct/incorret border should not be displayed and correct answer should be displayed below response field', () => {
         
     | 
| 
       101 
101 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       102 
102 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       103 
103 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -113,7 +113,7 @@ describe('Create item page - Short text response: All or nothing', () => { 
     | 
|
| 
       113 
113 
     | 
    
         
             
                            shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
         
     | 
| 
       114 
114 
     | 
    
         
             
                        });
         
     | 
| 
       115 
115 
     | 
    
         | 
| 
       116 
     | 
    
         
            -
                        it( 
     | 
| 
      
 116 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect response, incorrect answer border around response field and correct answer should be displayed in the question preview', () => {
         
     | 
| 
       117 
117 
     | 
    
         
             
                            shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Text');
         
     | 
| 
       118 
118 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       119 
119 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
         @@ -83,7 +83,7 @@ describe('Preview tab contents for all views for Simple calculator', () => { 
     | 
|
| 
       83 
83 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(simpleCalculatorPage.nineButton(), 'visible');
         
     | 
| 
       84 
84 
     | 
    
         
             
                        });
         
     | 
| 
       85 
85 
     | 
    
         | 
| 
       86 
     | 
    
         
            -
                        it( 
     | 
| 
      
 86 
     | 
    
         
            +
                        it('The user should be able to perform basic mathematical operations', () => {
         
     | 
| 
       87 
87 
     | 
    
         
             
                            simpleCalculatorPage.steps.clickOnACalculatorButton('one');
         
     | 
| 
       88 
88 
     | 
    
         
             
                            simpleCalculatorPage.steps.clickOnACalculatorButton('addition');
         
     | 
| 
       89 
89 
     | 
    
         
             
                            simpleCalculatorPage.steps.clickOnACalculatorButton('two');
         
     | 
| 
         @@ -101,7 +101,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => { 
     | 
|
| 
       101 
101 
     | 
    
         
             
                            });
         
     | 
| 
       102 
102 
     | 
    
         
             
                        };
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
                        it( 
     | 
| 
      
 104 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
         
     | 
| 
       105 
105 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       106 
106 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       107 
107 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -122,7 +122,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => { 
     | 
|
| 
       122 
122 
     | 
    
         
             
                            singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
         
     | 
| 
       123 
123 
     | 
    
         
             
                        });
         
     | 
| 
       124 
124 
     | 
    
         | 
| 
       125 
     | 
    
         
            -
                        it( 
     | 
| 
      
 125 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
         
     | 
| 
       126 
126 
     | 
    
         
             
                            singleSelectionPage.steps.checkOptionInPreviewTab(2);
         
     | 
| 
       127 
127 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       128 
128 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
         @@ -101,7 +101,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => { 
     | 
|
| 
       101 
101 
     | 
    
         
             
                            });
         
     | 
| 
       102 
102 
     | 
    
         
             
                        };
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
                        it( 
     | 
| 
      
 104 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers and correct/incorrect status message should not be displayed', () => {
         
     | 
| 
       105 
105 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       106 
106 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       107 
107 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -117,7 +117,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => { 
     | 
|
| 
       117 
117 
     | 
    
         
             
                            singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       118 
118 
     | 
    
         
             
                        });
         
     | 
| 
       119 
119 
     | 
    
         | 
| 
       120 
     | 
    
         
            -
                        it( 
     | 
| 
      
 120 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
         
     | 
| 
       121 
121 
     | 
    
         
             
                            singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
         
     | 
| 
       122 
122 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       123 
123 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
         @@ -135,7 +135,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => { 
     | 
|
| 
       135 
135 
     | 
    
         
             
                            singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       136 
136 
     | 
    
         
             
                        });
         
     | 
| 
       137 
137 
     | 
    
         | 
| 
       138 
     | 
    
         
            -
                        it( 
     | 
| 
      
 138 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with incorrect responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
         
     | 
| 
       139 
139 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       140 
140 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       141 
141 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -158,7 +158,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => { 
     | 
|
| 
       158 
158 
     | 
    
         
             
                            singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
         
     | 
| 
       159 
159 
     | 
    
         
             
                        });
         
     | 
| 
       160 
160 
     | 
    
         | 
| 
       161 
     | 
    
         
            -
                        it( 
     | 
| 
      
 161 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
         
     | 
| 
       162 
162 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       163 
163 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       164 
164 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -126,7 +126,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       126 
126 
     | 
    
         
             
                            });
         
     | 
| 
       127 
127 
     | 
    
         
             
                        };
         
     | 
| 
       128 
128 
     | 
    
         | 
| 
       129 
     | 
    
         
            -
                        it(` 
     | 
| 
      
 129 
     | 
    
         
            +
                        it(`When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
         
     | 
| 
       130 
130 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       131 
131 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       132 
132 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -147,7 +147,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       147 
147 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
         
     | 
| 
       148 
148 
     | 
    
         
             
                        });
         
     | 
| 
       149 
149 
     | 
    
         | 
| 
       150 
     | 
    
         
            -
                        it(` 
     | 
| 
      
 150 
     | 
    
         
            +
                        it(`When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, and \'Your answer is incorrect\' label should be displayed`, () => {
         
     | 
| 
       151 
151 
     | 
    
         
             
                            textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
         
     | 
| 
       152 
152 
     | 
    
         
             
                            textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
         
     | 
| 
       153 
153 
     | 
    
         
             
                            equationEditorFlyout.steps.clickOnOkButton();
         
     | 
| 
         @@ -177,7 +177,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       177 
177 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       178 
178 
     | 
    
         
             
                        });
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
       180 
     | 
    
         
            -
                        it(` 
     | 
| 
      
 180 
     | 
    
         
            +
                        it(`When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed`, () => {
         
     | 
| 
       181 
181 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       182 
182 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       183 
183 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -209,7 +209,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       209 
209 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       210 
210 
     | 
    
         
             
                        });
         
     | 
| 
       211 
211 
     | 
    
         | 
| 
       212 
     | 
    
         
            -
                        it(` 
     | 
| 
      
 212 
     | 
    
         
            +
                        it(`When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed`, () => {
         
     | 
| 
       213 
213 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       214 
214 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       215 
215 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -96,7 +96,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       96 
96 
     | 
    
         
             
                            });
         
     | 
| 
       97 
97 
     | 
    
         
             
                        };
         
     | 
| 
       98 
98 
     | 
    
         | 
| 
       99 
     | 
    
         
            -
                        it( 
     | 
| 
      
 99 
     | 
    
         
            +
                        it(`When the user selects 'Grading' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
         
     | 
| 
       100 
100 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       101 
101 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       102 
102 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -117,7 +117,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       117 
117 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
         
     | 
| 
       118 
118 
     | 
    
         
             
                        });
         
     | 
| 
       119 
119 
     | 
    
         | 
| 
       120 
     | 
    
         
            -
                        it( 
     | 
| 
      
 120 
     | 
    
         
            +
                        it(`When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides all incorrect responses, and 'Your answer is incorrect' label should be displayed`, () => {
         
     | 
| 
       121 
121 
     | 
    
         
             
                            textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
         
     | 
| 
       122 
122 
     | 
    
         
             
                            equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
         
     | 
| 
       123 
123 
     | 
    
         
             
                            equationEditorFlyout.steps.clickOnOkButton();
         
     | 
| 
         @@ -153,7 +153,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       153 
153 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       154 
154 
     | 
    
         
             
                        });
         
     | 
| 
       155 
155 
     | 
    
         | 
| 
       156 
     | 
    
         
            -
                        it( 
     | 
| 
      
 156 
     | 
    
         
            +
                        it(`When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to 'Grading' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and 'Your answer is incorrect' label should be displayed`, () => {
         
     | 
| 
       157 
157 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       158 
158 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       159 
159 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -192,7 +192,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       192 
192 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       193 
193 
     | 
    
         
             
                        });
         
     | 
| 
       194 
194 
     | 
    
         | 
| 
       195 
     | 
    
         
            -
                        it( 
     | 
| 
      
 195 
     | 
    
         
            +
                        it(`When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to 'Grading' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, 'Your answer is incorrect' should be displayed`, () => {
         
     | 
| 
       196 
196 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       197 
197 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       198 
198 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -228,7 +228,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       228 
228 
     | 
    
         
             
                            textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       229 
229 
     | 
    
         
             
                        });
         
     | 
| 
       230 
230 
     | 
    
         | 
| 
       231 
     | 
    
         
            -
                        it( 
     | 
| 
      
 231 
     | 
    
         
            +
                        it(`When user attempts the question correctly, the user should be awarded full points and on switching to 'Grading' view, then correct icons should be displayed beside all the correct responses, and 'Your answer is correct' should be displayed`, () => {
         
     | 
| 
       232 
232 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       233 
233 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       234 
234 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -90,7 +90,7 @@ describe('Create item page - Text entry math: Preview contents', () => { 
     | 
|
| 
       90 
90 
     | 
    
         
             
                                utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), '2');
         
     | 
| 
       91 
91 
     | 
    
         
             
                            });
         
     | 
| 
       92 
92 
     | 
    
         | 
| 
       93 
     | 
    
         
            -
                            it(` 
     | 
| 
      
 93 
     | 
    
         
            +
                            it(`User should able to enter answers in the response fields for ${view}`, () => {
         
     | 
| 
       94 
94 
     | 
    
         
             
                                textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
         
     | 
| 
       95 
95 
     | 
    
         
             
                                equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
         
     | 
| 
       96 
96 
     | 
    
         
             
                                equationEditorFlyout.steps.clickOnOkButton();
         
     | 
| 
         @@ -100,14 +100,14 @@ describe('Create item page - Text entry math: Preview contents', () => { 
     | 
|
| 
       100 
100 
     | 
    
         
             
                                textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
         
     | 
| 
       101 
101 
     | 
    
         
             
                            });
         
     | 
| 
       102 
102 
     | 
    
         
             
                        } else if (view === 'Grading view') {
         
     | 
| 
       103 
     | 
    
         
            -
                            it(` 
     | 
| 
      
 103 
     | 
    
         
            +
                            it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
         
     | 
| 
       104 
104 
     | 
    
         
             
                                textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
         
     | 
| 
       105 
105 
     | 
    
         
             
                                textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
         
     | 
| 
       106 
106 
     | 
    
         
             
                                textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
         
     | 
| 
       107 
107 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
         
     | 
| 
       108 
108 
     | 
    
         
             
                            });
         
     | 
| 
       109 
109 
     | 
    
         
             
                        } else {
         
     | 
| 
       110 
     | 
    
         
            -
                            it(` 
     | 
| 
      
 110 
     | 
    
         
            +
                            it(`The response input fields should be displayed filled with correct answers`, () => {
         
     | 
| 
       111 
111 
     | 
    
         
             
                                textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
         
     | 
| 
       112 
112 
     | 
    
         
             
                                textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
         
     | 
| 
       113 
113 
     | 
    
         
             
                            });
         
     | 
| 
         @@ -120,7 +120,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       120 
120 
     | 
    
         
             
                            });
         
     | 
| 
       121 
121 
     | 
    
         
             
                        };
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
       123 
     | 
    
         
            -
                        it( 
     | 
| 
      
 123 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
         
     | 
| 
       124 
124 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       125 
125 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       126 
126 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -141,7 +141,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       141 
141 
     | 
    
         
             
                            textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
         
     | 
| 
       142 
142 
     | 
    
         
             
                        });
         
     | 
| 
       143 
143 
     | 
    
         | 
| 
       144 
     | 
    
         
            -
                        it( 
     | 
| 
      
 144 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
         
     | 
| 
       145 
145 
     | 
    
         
             
                            textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
         
     | 
| 
       146 
146 
     | 
    
         
             
                            textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
         
     | 
| 
       147 
147 
     | 
    
         
             
                            equationEditorFlyout.steps.clickOnOkButton();
         
     | 
| 
         @@ -171,7 +171,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       171 
171 
     | 
    
         
             
                            textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       172 
172 
     | 
    
         
             
                        });
         
     | 
| 
       173 
173 
     | 
    
         | 
| 
       174 
     | 
    
         
            -
                        it( 
     | 
| 
      
 174 
     | 
    
         
            +
                        it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
         
     | 
| 
       175 
175 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       176 
176 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       177 
177 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -203,7 +203,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       203 
203 
     | 
    
         
             
                            textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       204 
204 
     | 
    
         
             
                        });
         
     | 
| 
       205 
205 
     | 
    
         | 
| 
       206 
     | 
    
         
            -
                        it( 
     | 
| 
      
 206 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with an incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
         
     | 
| 
       207 
207 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       208 
208 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       209 
209 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -232,7 +232,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => { 
     | 
|
| 
       232 
232 
     | 
    
         
             
                            textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
         
     | 
| 
       233 
233 
     | 
    
         
             
                        });
         
     | 
| 
       234 
234 
     | 
    
         | 
| 
       235 
     | 
    
         
            -
                        it( 
     | 
| 
      
 235 
     | 
    
         
            +
                        it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, and \'Your answer is correct\' should be displayed', () => {
         
     | 
| 
       236 
236 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       237 
237 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       238 
238 
     | 
    
         
             
                            }
         
     | 
    
        package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js
    CHANGED
    
    | 
         @@ -250,7 +250,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       250 
250 
     | 
    
         
             
                        textSelectionPage.steps.switchToPreviewTab();
         
     | 
| 
       251 
251 
     | 
    
         
             
                    });
         
     | 
| 
       252 
252 
     | 
    
         | 
| 
       253 
     | 
    
         
            -
                    it(' 
     | 
| 
      
 253 
     | 
    
         
            +
                    it('When the user selects "Grading" view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
         
     | 
| 
       254 
254 
     | 
    
         
             
                        textSelectionPage.steps.verifyPreviewScore(0, 20);
         
     | 
| 
       255 
255 
     | 
    
         
             
                        textSelectionPage.steps.switchToGradingView();
         
     | 
| 
       256 
256 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[0]);
         
     | 
| 
         @@ -260,7 +260,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       260 
260 
     | 
    
         
             
                        textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
         
     | 
| 
       261 
261 
     | 
    
         
             
                    });
         
     | 
| 
       262 
262 
     | 
    
         | 
| 
       263 
     | 
    
         
            -
                    it(' 
     | 
| 
      
 263 
     | 
    
         
            +
                    it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to "Grading" view, incorrect icons should be displayed besides all incorrect responses, a status message with text "Your answer is incorrect" and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       264 
264 
     | 
    
         
             
                        textSelectionPage.steps.resetQuestionPreview();
         
     | 
| 
       265 
265 
     | 
    
         
             
                        textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
         
     | 
| 
       266 
266 
     | 
    
         
             
                        textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[3]);
         
     | 
| 
         @@ -274,7 +274,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       274 
274 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(sentenceTextArray[0]);
         
     | 
| 
       275 
275 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(sentenceTextArray[1]);
         
     | 
| 
       276 
276 
     | 
    
         
             
                        textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
         
     | 
| 
       277 
     | 
    
         
            -
                        /*cy.log('When user clicks on Check answer button after attempting the question incorrectly, then incorrect icons should be displayed besides all incorrect responses, a status message with text  
     | 
| 
      
 277 
     | 
    
         
            +
                        /*cy.log('When user clicks on Check answer button after attempting the question incorrectly, then incorrect icons should be displayed besides all incorrect responses, a status message with text "Your answer is incorrect" should be displayed and correct answer section should not be displayed')
         
     | 
| 
       278 
278 
     | 
    
         
             
                        textSelectionPage.steps.checkAnswer();
         
     | 
| 
       279 
279 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[0]);
         
     | 
| 
       280 
280 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[1]);
         
     | 
| 
         @@ -284,7 +284,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       284 
284 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
         
     | 
| 
       285 
285 
     | 
    
         
             
                    });
         
     | 
| 
       286 
286 
     | 
    
         | 
| 
       287 
     | 
    
         
            -
                    it(' 
     | 
| 
      
 287 
     | 
    
         
            +
                    it('When the user attempts the question partially correct with some correct and some incorrect options, then the user should be awarded 0 points and on switching to "Grading" view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response, a status message with text "Your answer is incorrect" and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       288 
288 
     | 
    
         
             
                        textSelectionPage.steps.resetQuestionPreview();
         
     | 
| 
       289 
289 
     | 
    
         
             
                        textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
         
     | 
| 
       290 
290 
     | 
    
         
             
                        textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
         
     | 
| 
         @@ -298,7 +298,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       298 
298 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(sentenceTextArray[0]);
         
     | 
| 
       299 
299 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(sentenceTextArray[1]);
         
     | 
| 
       300 
300 
     | 
    
         
             
                        textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
         
     | 
| 
       301 
     | 
    
         
            -
                        /*cy.log('When user clicks on Check answer button after he attempts the question partially correct with some correct and some incorrect options, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text  
     | 
| 
      
 301 
     | 
    
         
            +
                        /*cy.log('When user clicks on Check answer button after he attempts the question partially correct with some correct and some incorrect options, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text "Your answer is incorrect" should be displayed and correct answer section should not be displayed')
         
     | 
| 
       302 
302 
     | 
    
         
             
                        textSelectionPage.steps.checkAnswer();
         
     | 
| 
       303 
303 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOption(sentenceTextArray[0]);
         
     | 
| 
       304 
304 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[1]);
         
     | 
| 
         @@ -308,7 +308,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       308 
308 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
         
     | 
| 
       309 
309 
     | 
    
         
             
                    });
         
     | 
| 
       310 
310 
     | 
    
         | 
| 
       311 
     | 
    
         
            -
                    it(' 
     | 
| 
      
 311 
     | 
    
         
            +
                    it('When the user attempts the question correctly then the user should be awarded full points and on switching to "Grading" view, correct icon should be displayed besides the correct answer responses, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
         
     | 
| 
       312 
312 
     | 
    
         
             
                        textSelectionPage.steps.resetQuestionPreview();
         
     | 
| 
       313 
313 
     | 
    
         
             
                        textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
         
     | 
| 
       314 
314 
     | 
    
         
             
                        textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
         
     | 
| 
         @@ -321,7 +321,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti 
     | 
|
| 
       321 
321 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
         
     | 
| 
       322 
322 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();
         
     | 
| 
       323 
323 
     | 
    
         
             
                        textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
         
     | 
| 
       324 
     | 
    
         
            -
                        /*cy.log('When user clicks on Check answer button after he attempts the question correctly, then correct icon should be displayed besides the correct answer responses, a status message with text  
     | 
| 
      
 324 
     | 
    
         
            +
                        /*cy.log('When user clicks on Check answer button after he attempts the question correctly, then correct icon should be displayed besides the correct answer responses, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed')
         
     | 
| 
       325 
325 
     | 
    
         
             
                        textSelectionPage.steps.checkAnswer();
         
     | 
| 
       326 
326 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOption(sentenceTextArray[0]);
         
     | 
| 
       327 
327 
     | 
    
         
             
                        textSelectionPage.steps.verifyCorrectIconForOption(sentenceTextArray[1]);
         
     | 
| 
         @@ -121,7 +121,7 @@ describe('Create item page - Text selection: All or nothing ', () => { 
     | 
|
| 
       121 
121 
     | 
    
         
             
                            });
         
     | 
| 
       122 
122 
     | 
    
         
             
                        };
         
     | 
| 
       123 
123 
     | 
    
         | 
| 
       124 
     | 
    
         
            -
                        it( 
     | 
| 
      
 124 
     | 
    
         
            +
                        it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
         
     | 
| 
       125 
125 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       126 
126 
     | 
    
         
             
                                studentViewPage.steps.submitResponse();
         
     | 
| 
       127 
127 
     | 
    
         
             
                                utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
         
     | 
| 
         @@ -141,7 +141,7 @@ describe('Create item page - Text selection: All or nothing ', () => { 
     | 
|
| 
       141 
141 
     | 
    
         
             
                            textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
         
     | 
| 
       142 
142 
     | 
    
         
             
                        });
         
     | 
| 
       143 
143 
     | 
    
         | 
| 
       144 
     | 
    
         
            -
                        it( 
     | 
| 
      
 144 
     | 
    
         
            +
                        it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       145 
145 
     | 
    
         
             
                            textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
         
     | 
| 
       146 
146 
     | 
    
         
             
                            textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
         
     | 
| 
       147 
147 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
         @@ -163,7 +163,7 @@ describe('Create item page - Text selection: All or nothing ', () => { 
     | 
|
| 
       163 
163 
     | 
    
         
             
                            textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
         
     | 
| 
       164 
164 
     | 
    
         
             
                        });
         
     | 
| 
       165 
165 
     | 
    
         | 
| 
       166 
     | 
    
         
            -
                        it( 
     | 
| 
      
 166 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with some correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       167 
167 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       168 
168 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       169 
169 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -187,7 +187,7 @@ describe('Create item page - Text selection: All or nothing ', () => { 
     | 
|
| 
       187 
187 
     | 
    
         
             
                            textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
         
     | 
| 
       188 
188 
     | 
    
         
             
                        });
         
     | 
| 
       189 
189 
     | 
    
         | 
| 
       190 
     | 
    
         
            -
                        it( 
     | 
| 
      
 190 
     | 
    
         
            +
                        it('When the user attempts the question partially correct with some correct and some incorrect answers then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
         
     | 
| 
       191 
191 
     | 
    
         
             
                            if (view === 'Grading view') {
         
     | 
| 
       192 
192 
     | 
    
         
             
                                studentViewPage.steps.clearResponses();
         
     | 
| 
       193 
193 
     | 
    
         
             
                            };
         
     | 
| 
         @@ -60,7 +60,7 @@ describe('Preview tab contents for all views', () => { 
     | 
|
| 
       60 
60 
     | 
    
         
             
                            }
         
     | 
| 
       61 
61 
     | 
    
         
             
                        });
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
       63 
     | 
    
         
            -
                        it( 
     | 
| 
      
 63 
     | 
    
         
            +
                        it('When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed', () => {
         
     | 
| 
       64 
64 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'visible');
         
     | 
| 
       65 
65 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
         
     | 
| 
       66 
66 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'visible');
         
     | 
| 
         @@ -88,7 +88,7 @@ describe('Preview tab contents for all views', () => { 
     | 
|
| 
       88 
88 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
         
     | 
| 
       89 
89 
     | 
    
         
             
                        });
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
     | 
    
         
            -
                        it( 
     | 
| 
      
 91 
     | 
    
         
            +
                        it('When audio player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
         
     | 
| 
       92 
92 
     | 
    
         
             
                            audioPlayerPage.steps.startPlayback();
         
     | 
| 
       93 
93 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
         
     | 
| 
       94 
94 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'notExist');
         
     | 
| 
         @@ -100,7 +100,7 @@ describe('Preview tab contents for all views', () => { 
     | 
|
| 
       100 
100 
     | 
    
         
             
                            audioPlayerPage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
         
     | 
| 
       101 
101 
     | 
    
         
             
                        });
         
     | 
| 
       102 
102 
     | 
    
         | 
| 
       103 
     | 
    
         
            -
                        it( 
     | 
| 
      
 103 
     | 
    
         
            +
                        it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
         
     | 
| 
       104 
104 
     | 
    
         
             
                            audioPlayerPage.steps.verifyAudioPlaybackTimer('00:45', '00:45');
         
     | 
| 
       105 
105 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
         
     | 
| 
       106 
106 
     | 
    
         
             
                            utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
         
     |