itemengine-cypress-automation 1.0.342-save-as-you-go-updates-184015f.0 → 1.0.343-IEI-5600-IEI-5708-9440b5e.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/AudioResponseNew/editTabBasicSection.js +16 -4
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
- package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
- package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +0 -20
- package/cypress/pages/components/createQuestionBasePage.js +0 -7
- package/cypress/pages/components/defaultToolDropdown.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
- package/cypress/pages/desmos3DGraphingPage.js +4 -149
- package/cypress/pages/desmosGeometryPage.js +4 -184
- package/cypress/pages/graphingPage.js +4 -26
- package/cypress/pages/gridFillPage.js +6 -16
- package/cypress/pages/listOrderingPage.js +1 -32
- package/cypress/pages/matchingPage.js +7 -26
- package/cypress/pages/numberLineLabelPage.js +0 -26
- package/cypress/pages/numberLinePage.js +0 -15
- package/cypress/pages/textEntryMathPage.js +0 -21
- package/cypress/pages/thinkSpherePage.js +316 -5
- package/cypress/pages/uploadResponsePage.js +1 -2
- package/cypress/pages/videoResponsePage.js +0 -3
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +13 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -12,8 +12,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
15
|
textEntryMathPage.steps.addResponseArea();
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
@@ -207,66 +205,4 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
207
205
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
206
|
});
|
209
207
|
});
|
210
|
-
|
211
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
|
212
|
-
abortEarlySetup();
|
213
|
-
before(() => {
|
214
|
-
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
215
|
-
cy.barsPreLoaderWait();
|
216
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
217
|
-
textEntryMathPage.steps.addResponseArea();
|
218
|
-
textEntryMathPage.steps.addResponseArea();
|
219
|
-
textEntryMathPage.steps.addResponseArea();
|
220
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
221
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
222
|
-
equationEditorFlyout.steps.clearAll();
|
223
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
224
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
225
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
226
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
227
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
228
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
229
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
230
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
231
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
232
|
-
textEntryMathPage.steps.allotPoints(12);
|
233
|
-
textEntryMathPage.steps.addAlternativeAnswerAccordion(1);
|
234
|
-
textEntryMathPage.steps.allotPoints(12);
|
235
|
-
textEntryMathPage.steps.expandAdditionalSettings();
|
236
|
-
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
237
|
-
textEntryMathPage.steps.switchToPreviewTab();
|
238
|
-
});
|
239
|
-
|
240
|
-
it('When user attempts the question with responses from the correct accordion then full score should be awarded', () => {
|
241
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
242
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
243
|
-
equationEditorFlyout.steps.clearAll();
|
244
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
245
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
246
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
247
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
248
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
249
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
250
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
251
|
-
textEntryMathPage.steps.verifyPreviewScore(12, 12);
|
252
|
-
textEntryMathPage.steps.switchToGradingView();
|
253
|
-
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExist();
|
254
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
255
|
-
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
256
|
-
});
|
257
|
-
|
258
|
-
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
259
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
260
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
261
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
262
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
263
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
264
|
-
equationEditorFlyout.steps.clearAll();
|
265
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
266
|
-
textEntryMathPage.steps.switchToGradingView();
|
267
|
-
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExist();
|
268
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
269
|
-
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
270
|
-
});
|
271
|
-
});
|
272
208
|
});
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
@@ -13,8 +13,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
15
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
20
18
|
textEntryMathPage.steps.addResponseArea();
|
@@ -255,67 +253,4 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
255
253
|
cy.checkAccessibility(textEntryMathPage.previewTabQuestionWrapper());
|
256
254
|
});
|
257
255
|
});
|
258
|
-
|
259
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
|
260
|
-
abortEarlySetup();
|
261
|
-
before(() => {
|
262
|
-
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
263
|
-
cy.barsPreLoaderWait();
|
264
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
265
|
-
textEntryMathPage.steps.addResponseArea();
|
266
|
-
textEntryMathPage.steps.addResponseArea();
|
267
|
-
textEntryMathPage.steps.addResponseArea();
|
268
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
269
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
270
|
-
equationEditorFlyout.steps.clearAll();
|
271
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
272
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
273
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
274
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
275
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
276
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
277
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
278
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
279
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
280
|
-
textEntryMathPage.steps.allotPoints(21);
|
281
|
-
textEntryMathPage.steps.addAlternativeAnswerAccordion(1);
|
282
|
-
textEntryMathPage.steps.allotPoints(12);
|
283
|
-
textEntryMathPage.steps.expandAdditionalSettings();
|
284
|
-
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
285
|
-
textEntryMathPage.steps.switchToPreviewTab();
|
286
|
-
});
|
287
|
-
|
288
|
-
it('When user attempts the question with responses from the correct accordion i.e select an option, then the user should be awarded full points specified for correct points accordion and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
289
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
290
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
291
|
-
equationEditorFlyout.steps.clearAll();
|
292
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
293
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
294
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
295
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
296
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
297
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
298
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
299
|
-
textEntryMathPage.steps.verifyPreviewScore(21, 21);
|
300
|
-
textEntryMathPage.steps.switchToGradingView();
|
301
|
-
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExist();
|
302
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
303
|
-
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
304
|
-
});
|
305
|
-
|
306
|
-
it('When user attempts the question with responses from the alternative accordion then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
307
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
308
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
309
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
310
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
311
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
312
|
-
equationEditorFlyout.steps.clearAll();
|
313
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
314
|
-
textEntryMathPage.steps.verifyPreviewScore(12, 21);
|
315
|
-
textEntryMathPage.steps.switchToGradingView();
|
316
|
-
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExist();
|
317
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
318
|
-
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
319
|
-
});
|
320
|
-
});
|
321
256
|
});
|
@@ -12,8 +12,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
15
|
textEntryMathPage.steps.addResponseArea();
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
@@ -13,8 +13,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
15
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
20
18
|
textEntryMathPage.steps.addResponseArea();
|
@@ -13,8 +13,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
15
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
20
18
|
textEntryMathPage.steps.addResponseArea();
|
@@ -12,8 +12,6 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
15
|
textEntryMathPage.steps.addResponseArea();
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
@@ -121,8 +119,6 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
121
119
|
abortEarlySetup();
|
122
120
|
before(() => {
|
123
121
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
124
|
-
cy.barsPreLoaderWait();
|
125
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
126
122
|
textEntryMathPage.steps.addResponseArea();
|
127
123
|
textEntryMathPage.steps.addResponseArea();
|
128
124
|
textEntryMathPage.steps.addResponseArea();
|
@@ -208,8 +204,6 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
208
204
|
abortEarlySetup();
|
209
205
|
before(() => {
|
210
206
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
211
|
-
cy.barsPreLoaderWait();
|
212
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
213
207
|
textEntryMathPage.steps.addResponseArea();
|
214
208
|
textEntryMathPage.steps.addResponseArea();
|
215
209
|
textEntryMathPage.steps.addResponseArea();
|
@@ -327,8 +321,6 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
327
321
|
abortEarlySetup();
|
328
322
|
before(() => {
|
329
323
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
330
|
-
cy.barsPreLoaderWait();
|
331
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
332
324
|
textEntryMathPage.steps.addResponseArea();
|
333
325
|
textEntryMathPage.steps.addResponseArea();
|
334
326
|
textEntryMathPage.steps.addResponseArea();
|
@@ -12,8 +12,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
15
|
textEntryMathPage.steps.addResponseArea();
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
@@ -12,8 +12,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
15
|
textEntryMathPage.steps.addResponseArea();
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
@@ -13,8 +13,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
13
13
|
abortEarlySetup();
|
14
14
|
before(() => {
|
15
15
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.addResponseArea();
|
20
18
|
textEntryMathPage.steps.addResponseArea();
|
@@ -13,7 +13,6 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
|
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
15
|
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
16
|
textEntryMathPage.steps.addResponseArea();
|
18
17
|
textEntryMathPage.steps.addResponseArea();
|
19
18
|
textEntryMathPage.steps.addResponseArea();
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js
CHANGED
@@ -12,8 +12,6 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
15
|
textEntryMathPage.steps.addResponseArea();
|
18
16
|
textEntryMathPage.steps.addResponseArea();
|
19
17
|
textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
@@ -19,8 +19,6 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
19
19
|
switch (view) {
|
20
20
|
case 'Question preview':
|
21
21
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
22
|
-
cy.barsPreLoaderWait();
|
23
|
-
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
24
22
|
textEntryMathPage.steps.addResponseArea();
|
25
23
|
textEntryMathPage.steps.addResponseArea();
|
26
24
|
textEntryMathPage.steps.addResponseArea();
|
@@ -92,9 +92,11 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
92
92
|
textEntryMathPage.steps.switchToEditTab();
|
93
93
|
textEntryMathPage.steps.deleteAResponseArea(0);
|
94
94
|
textEntryMathPage.steps.deleteAResponseArea(0);
|
95
|
-
utilities.verifyElementVisibilityState(textEntryMathPage.errorMessage(), '
|
95
|
+
utilities.verifyElementVisibilityState(textEntryMathPage.errorMessage(), 'exist');
|
96
96
|
});
|
97
97
|
|
98
|
+
textEntryMathPage.tests.verifyErrorMessageCSSAndA11y();
|
99
|
+
|
98
100
|
textEntryMathPage.tests.addResponseAreaAndVerifyMinimumOneAreaRequiredErrorMessageNotExist();
|
99
101
|
|
100
102
|
textEntryMathPage.tests.verifyQuestionInputFieldPlaceholderText();
|
@@ -198,30 +200,4 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
198
200
|
utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), 1);
|
199
201
|
});
|
200
202
|
});
|
201
|
-
|
202
|
-
describe('User should be able to edit incomplete authored question', () => {
|
203
|
-
abortEarlySetup();
|
204
|
-
before(() => {
|
205
|
-
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
206
|
-
cy.barsPreLoaderWait();
|
207
|
-
textEntryMathPage.steps.saveAQuestionWithIncompleteAuthoring();
|
208
|
-
textEntryMathPage.steps.editItem();
|
209
|
-
});
|
210
|
-
|
211
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
212
|
-
utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.questionWarningIcon(), 'exist');
|
213
|
-
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
214
|
-
});
|
215
|
-
|
216
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
217
|
-
textEntryMathPage.steps.addResponseArea();
|
218
|
-
textEntryMathPage.steps.allotPoints(10);
|
219
|
-
textEntryMathPage.steps.verifyErrorMessageIsNotDisplayed();
|
220
|
-
textEntryMathPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
221
|
-
});
|
222
|
-
|
223
|
-
it('Warning icon should not be visible', () => {
|
224
|
-
textEntryMathPage.steps.verifyWarningIconNotExist();
|
225
|
-
});
|
226
|
-
});
|
227
203
|
});
|
@@ -29,7 +29,7 @@ describe("Create Review Item", () => {
|
|
29
29
|
cy.deleteThinkSphereItem('~zzz item name');
|
30
30
|
cy.createThinkSphereItem('~zzz item name');
|
31
31
|
thinkSpherePage.steps.navigateToReviewItemsPage();
|
32
|
-
})
|
32
|
+
});
|
33
33
|
|
34
34
|
after(() => {
|
35
35
|
cy.deleteThinkSphereItem('~zzz item name');
|
@@ -151,7 +151,7 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
|
|
151
151
|
});
|
152
152
|
});
|
153
153
|
|
154
|
-
it
|
154
|
+
it('Accessibility of Image Upload Section After upload', { tags: 'a11y' }, () => {
|
155
155
|
cy.checkAccessibility(thinkSpherePage.imageUploadSection(), { timeout: 15000 });
|
156
156
|
});
|
157
157
|
});
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { thinkSpherePage } from '../../../pages/thinkSpherePage';
|
2
|
+
import { browseItemsPage } from "../../../pages/components/browseItemsPage";
|
2
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
4
|
import utilities from "../../../support/helpers/utilities";
|
5
|
+
const css = Cypress.env('css');
|
4
6
|
|
5
7
|
const editedStrategies = [
|
6
8
|
'Edited strategy 1',
|
@@ -60,11 +62,15 @@ const editedFontSize = 'Normal';
|
|
60
62
|
describe('Edit Question and edit item', () => {
|
61
63
|
before(() => {
|
62
64
|
cy.loginAs('admin');
|
63
|
-
cy.deleteThinkSphereItem('~zzz item name');
|
64
|
-
cy.createThinkSphereItem('~zzz item name');
|
65
|
+
cy.deleteThinkSphereItem('~zzz item name test test test');
|
66
|
+
cy.createThinkSphereItem('~zzz item name test test test', true);
|
65
67
|
thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
|
66
68
|
});
|
67
69
|
|
70
|
+
after(() => {
|
71
|
+
cy.deleteThinkSphereItem('~zzz item name test test test');
|
72
|
+
});
|
73
|
+
|
68
74
|
describe('Edit question', () => {
|
69
75
|
abortEarlySetup();
|
70
76
|
it('When user edits the question instructions, then the changes should be saved successfully and edited question instruction should get displayed in preview side', () => {
|
@@ -72,66 +78,23 @@ describe('Edit Question and edit item', () => {
|
|
72
78
|
thinkSpherePage.steps.clearQuestionInstructionsInputField();
|
73
79
|
thinkSpherePage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
74
80
|
thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
|
75
|
-
|
76
|
-
|
81
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
82
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('Edit question instructions');
|
77
83
|
});
|
78
84
|
|
79
85
|
it('When user edits the question instructions image, then the changes should be saved successfully and edited question instruction image should get displayed in preview side', () => {
|
86
|
+
thinkSpherePage.steps.switchToEditTab();
|
80
87
|
thinkSpherePage.steps.clickOnEditQuestionIcon();
|
81
|
-
cy.wait(1000);
|
82
88
|
thinkSpherePage.steps.uploadFile('uploads/image.png');
|
83
89
|
thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
|
84
|
-
|
85
|
-
|
90
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
91
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
86
92
|
});
|
87
93
|
|
88
|
-
|
89
|
-
thinkSpherePage.steps.clickOnEditQuestionIcon();
|
90
|
-
editedStrategies.forEach((strategy, index) => {
|
91
|
-
thinkSpherePage.steps.addOptionText('strategy', index, strategy);
|
92
|
-
});
|
93
|
-
cy.wait(2000);
|
94
|
-
editedSentenceStarters.forEach((sentenceStarter, index) => {
|
95
|
-
thinkSpherePage.steps.addOptionText('sentenceStarter', index, sentenceStarter);
|
96
|
-
});
|
97
|
-
cy.wait(2000);
|
98
|
-
thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
|
99
|
-
editedStrategies.forEach((label, index) => {
|
100
|
-
utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), index), label);
|
101
|
-
});
|
102
|
-
thinkSpherePage.steps.expandChooseStarterDropdown();
|
103
|
-
editedSentenceStarters.forEach((label, index) => {
|
104
|
-
utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.chooseStartersListOptionLabels(), index), label);
|
105
|
-
});
|
106
|
-
utilities.clickOnBody();
|
107
|
-
});
|
108
|
-
|
109
|
-
it('When user select unselect the strategies and sentence starers, then the changes should be saved successfully and selected strategies and sentence starers should get displayed in preview side', () => {
|
110
|
-
thinkSpherePage.steps.clickOnEditQuestionIcon();
|
111
|
-
editedStrategies.forEach((strategy, index) => {
|
112
|
-
if(!selectStrategies.includes(strategy)){
|
113
|
-
thinkSpherePage.steps.selectOption('strategy', index);
|
114
|
-
}
|
115
|
-
});
|
116
|
-
cy.wait(2000);
|
117
|
-
editedSentenceStarters.forEach((sentenceStarter, index) => {
|
118
|
-
if(!selectSentenceStarters.includes(sentenceStarter)){
|
119
|
-
thinkSpherePage.steps.selectOption('sentenceStarter', index);
|
120
|
-
}
|
121
|
-
});
|
122
|
-
cy.wait(2000);
|
123
|
-
thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
|
124
|
-
selectStrategies.forEach((label, index) => {
|
125
|
-
utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), index), label);
|
126
|
-
});
|
127
|
-
thinkSpherePage.steps.expandChooseStarterDropdown();
|
128
|
-
selectSentenceStarters.forEach((label, index) => {
|
129
|
-
utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.chooseStartersListOptionLabels(), index), label);
|
130
|
-
});
|
131
|
-
utilities.clickOnBody();
|
132
|
-
});
|
94
|
+
thinkSpherePage.tests.verifyStrategiesAndSentenceStartersSection({editedStrategies, editedSentenceStarters, selectStrategies, selectSentenceStarters});
|
133
95
|
|
134
96
|
it('When user updates the solve phase toolbar options and controls, then it should get updated successfully', () => {
|
97
|
+
thinkSpherePage.steps.switchToEditTab();
|
135
98
|
thinkSpherePage.steps.clickOnEditQuestionIcon();
|
136
99
|
thinkSpherePage.steps.expandCustomizeToolsAndControls();
|
137
100
|
thinkSpherePage.steps.selectTools(newSelectedToolbarOptions, 0);
|
@@ -151,9 +114,9 @@ describe('Edit Question and edit item', () => {
|
|
151
114
|
thinkSpherePage.steps.clickOnImageRadioButton();
|
152
115
|
thinkSpherePage.steps.uploadWhiteBoardImage('uploads/highlightImage.jpg');
|
153
116
|
thinkSpherePage.steps.addInputToOpacityInputField(whiteBoardImageOpacity);
|
154
|
-
thinkSpherePage.
|
155
|
-
cy.wait(2000);
|
117
|
+
thinkSpherePage.steps.addImageAlternativeTextInputFieldText(alternateTextForImage);
|
156
118
|
thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
|
119
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
157
120
|
});
|
158
121
|
|
159
122
|
it('When user updates solve phase data, then updated solve phase data should reflect to user when revisit to edit the question', () => {
|
@@ -180,6 +143,134 @@ describe('Edit Question and edit item', () => {
|
|
180
143
|
thinkSpherePage.steps.clickOnEditThinkSphereItem();
|
181
144
|
thinkSpherePage.steps.expandAdditionalSettings();
|
182
145
|
utilities.verifyInnerText(thinkSpherePage.fontSizeDropdown(), editedFontSize);
|
146
|
+
thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
|
147
|
+
});
|
148
|
+
});
|
149
|
+
|
150
|
+
describe('Edit review question', () => {
|
151
|
+
abortEarlySetup();
|
152
|
+
before(() => {
|
153
|
+
browseItemsPage.steps.clickOnAddReviewItem();
|
154
|
+
thinkSpherePage.steps.createReviewQuestion();
|
155
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
156
|
+
thinkSpherePage.steps.clickOnReviewTab();
|
157
|
+
});
|
158
|
+
|
159
|
+
it('\'Question instruction\' section should be present', () => {
|
160
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('Edit question instructions');
|
161
|
+
});
|
162
|
+
|
163
|
+
it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
|
164
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
|
165
|
+
'border-radius': '12px',
|
166
|
+
'background-color': css.color.questionInstructionBG,
|
167
|
+
'padding': '10px 170px 10px 27px',
|
168
|
+
'font-size': css.fontSize.heading,
|
169
|
+
'font-weight': css.fontWeight.regular,
|
170
|
+
});
|
171
|
+
});
|
172
|
+
|
173
|
+
it('Question instruction image should visibile in the preview', () => {
|
174
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
175
|
+
});
|
176
|
+
|
177
|
+
it('CSS of question instruction image section', { tags: 'css' }, () => {
|
178
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
|
179
|
+
'width': '143px',
|
180
|
+
'height': '110px',
|
181
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
182
|
+
'background-color': css.color.primaryBtn,
|
183
|
+
});
|
184
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
|
185
|
+
'width': '24px',
|
186
|
+
'height': '24px',
|
187
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
188
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
189
|
+
'border-radius': '4px',
|
190
|
+
'background-color': css.color.primaryBtn,
|
191
|
+
});
|
192
|
+
});
|
193
|
+
|
194
|
+
it('When user clicks on expand question instruction image then it should open in the popup', () => {
|
195
|
+
thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
|
196
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
197
|
+
thinkSpherePage.steps.verifyQuestionImagePopup();
|
198
|
+
});
|
199
|
+
|
200
|
+
it('CSS of question instruction image popup', { tags: 'css' }, () => {
|
201
|
+
utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
|
202
|
+
'border-radius': '8px',
|
203
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
204
|
+
'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
|
205
|
+
});
|
206
|
+
utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
|
207
|
+
'background-color': css.color.primaryBtn,
|
208
|
+
'font-size': css.fontSize.normal,
|
209
|
+
'font-weight': css.fontWeight.semibold,
|
210
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
211
|
+
'color': css.color.primaryBtnBorder,
|
212
|
+
});
|
213
|
+
});
|
214
|
+
|
215
|
+
it('When user clicks on close expand image popup button then it should remove the popup', () => {
|
216
|
+
thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
|
217
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
|
218
|
+
});
|
219
|
+
|
220
|
+
it('\'Check your math\' section header should be present', () => {
|
221
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.checkYourMathHeading(), 'visible');
|
222
|
+
utilities.verifyInnerText(thinkSpherePage.checkYourMathHeading(), 'Check your math');
|
223
|
+
});
|
224
|
+
|
225
|
+
it('CSS of \'Check your math\' section header', { tags: 'css' }, () => {
|
226
|
+
utilities.verifyCSS(thinkSpherePage.checkYourMathHeading(), {
|
227
|
+
'color': css.color.primaryBtnBorder,
|
228
|
+
'font-size': css.fontSize.heading,
|
229
|
+
'font-weight': css.fontWeight.semibold,
|
230
|
+
});
|
231
|
+
});
|
232
|
+
|
233
|
+
it('\'The problem is asking me to\' section header should be present', () => {
|
234
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingToMeTextWrapper(), 'visible');
|
235
|
+
utilities.verifyInnerText(thinkSpherePage.problemAskingToMeTextWrapper(), 'The problem is asking me to...');
|
236
|
+
});
|
237
|
+
|
238
|
+
it('Review question should be present', () => {
|
239
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.reviewQuestionWrapper(), 'visible');
|
240
|
+
});
|
241
|
+
|
242
|
+
it('CSS of \'The problem is asking me to\' section', { tags: 'css' }, () => {
|
243
|
+
utilities.verifyCSS(thinkSpherePage.problemAskingToMeTextWrapper(), {
|
244
|
+
'color': css.color.primaryBtnBorder,
|
245
|
+
'font-size': css.fontSize.normal,
|
246
|
+
'font-weight': css.fontWeight.bold,
|
247
|
+
});
|
248
|
+
utilities.verifyCSS(thinkSpherePage.reviewComponentWrapper(), {
|
249
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
250
|
+
'border-radius': '12px'
|
251
|
+
});
|
252
|
+
});
|
253
|
+
|
254
|
+
it('When User type in the \'The problem is asking me to\' in the plan tab, then it should render in the \'The problem is asking me to\' in the review tab', () => {
|
255
|
+
thinkSpherePage.steps.clickOnPlanTab();
|
256
|
+
thinkSpherePage.steps.verifyProblemAskingTextAreaFunctionality('This is a test text for the problem.');
|
257
|
+
thinkSpherePage.steps.clickOnReviewTab();
|
258
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.problemStatementWrapper(), 'visible');
|
259
|
+
utilities.verifyInnerText(thinkSpherePage.problemStatementWrapper(), 'This is a test text for the problem.');
|
260
|
+
});
|
261
|
+
|
262
|
+
it('CSS of \'The problem is asking me to\' section statement', { tags: 'css' }, () => {
|
263
|
+
utilities.verifyCSS(thinkSpherePage.problemStatementWrapper(), {
|
264
|
+
'color': css.color.text,
|
265
|
+
'font-size': css.fontSize.default,
|
266
|
+
'font-weight': css.fontWeight.regular,
|
267
|
+
});
|
268
|
+
});
|
269
|
+
|
270
|
+
it('When switch to grading view then it should show the correct answer for review question', () => {
|
271
|
+
thinkSpherePage.steps.switchToGradingView();
|
272
|
+
thinkSpherePage.steps.verifyCorrectAnswerLabel();
|
273
|
+
thinkSpherePage.steps.switchToStudentView();
|
183
274
|
});
|
184
275
|
});
|
185
276
|
});
|
@@ -265,6 +265,8 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
265
265
|
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
266
266
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
267
267
|
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset());
|
268
|
+
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
269
|
+
});
|
268
270
|
});
|
269
271
|
|
270
272
|
describe('Save a edited category', () => {
|