itemengine-cypress-automation 1.0.160 → 1.0.161-questionInsructionSelectorFix-4160992.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/allOrNothingForAllViews.smoke.js +24 -0
  2. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +25 -0
  3. package/cypress/pages/components/questionInstructionsComponent.js +1 -1
  4. package/cypress/pages/matchingPage.js +17 -444
  5. package/package.json +2 -2
  6. package/cypress/e2e/ILC/Matching/additionalSettings.js +0 -339
  7. package/cypress/e2e/ILC/Matching/clickAndDrop.js +0 -634
  8. package/cypress/e2e/ILC/Matching/studentViewSettings.js +0 -453
  9. package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +0 -260
  10. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosFourFunctionCalculatorEditTabBasicSection.js +0 -0
  11. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosFourFunctionCalculatorPreviewContents.smoke.js +0 -0
  12. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosGeometryToolEditTabBasicSection.js +0 -0
  13. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosGeometryToolPreviewContents.smoke.js +0 -0
  14. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosGraphingCalculatorEditTabBasicSection.js +0 -0
  15. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosGraphingCalculatorPreviewContents.smoke.js +0 -0
  16. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosMatrixCalculatorEditTabBasicSection.js +0 -0
  17. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosMatrixCalculatorPreviewContents.smoke.js +0 -0
  18. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosScientificCalculatorEditTabBasicSection.js +0 -0
  19. /package/cypress/e2e/ILC/{ThirdPartyDesmos → Desmos}/desmosScientificCalculatorPreviewContents.smoke.js +0 -0
  20. /package/cypress/e2e/ILC/{ThirdPartyDesmosGraphing → DesmosGraphing}/additionalSettings.js +0 -0
  21. /package/cypress/e2e/ILC/{ThirdPartyDesmosGraphing → DesmosGraphing}/editTabBasic.js +0 -0
  22. /package/cypress/e2e/ILC/{ThirdPartyDesmosGraphing → DesmosGraphing}/editTabScoring.js +0 -0
  23. /package/cypress/e2e/ILC/{ThirdPartyDesmosGraphing → DesmosGraphing}/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -0
  24. /package/cypress/e2e/ILC/{ThirdPartyDesmosGraphing → DesmosGraphing}/previewTabContent.smoke.js +0 -0
  25. /package/cypress/e2e/ILC/{ThirdPartyDesmosGraphing → DesmosGraphing}/studentViewSettings.js +0 -0
  26. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/3DGraphingCalculatorEditTabBasicSection.js +0 -0
  27. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/3DGraphingCalculatorPreviewTabContents.smoke.js +0 -0
  28. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/casCalculatorEditTabBasicSection.js +0 -0
  29. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/casCalculatorPreviewTabContents.smoke.js +0 -0
  30. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/geometryCalculatorEditTabBasicSection.js +0 -0
  31. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/geometryCalculatorPreviewTabContents.smoke.js +0 -0
  32. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/graphingCalculatorEditTabBasicSection.js +0 -0
  33. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/graphingCalculatorPreviewTabContents.smoke.js +0 -0
  34. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/probablityCalculatorEditTabBasicSection.js +0 -0
  35. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/probablityCalculatorPreviewTabContents.smoke.js +0 -0
  36. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/scientificCalculatorEditTabBasicSection.js +0 -0
  37. /package/cypress/e2e/ILC/{ThirdPartyGeoGebra → GeoGebraTools}/scientificCalculatorPreviewTabContents.smoke.js +0 -0
  38. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/additionalSettings.js +0 -0
  39. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/editTabScoringSection.js +0 -0
  40. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -0
  41. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/headerSection.js +0 -0
  42. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/insertResourceLink.js +0 -0
  43. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/previewTabContent.smoke.js +0 -0
  44. /package/cypress/e2e/ILC/{ThirdPartyGeogebraActivity → GeogebraActivity}/questionInstructions.js +0 -0
@@ -63,6 +63,8 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
63
63
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
64
64
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
65
65
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
66
+ fillInTheGapsOverImageDragAndDropPage.steps.expandMaxCapacityPerDropzoneDropdown();
67
+ fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
66
68
  fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
67
69
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
68
70
  fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(20);
@@ -182,6 +184,28 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
182
184
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
183
185
  });
184
186
 
187
+ it('When the user attempts the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer, 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 should be displayed along with numeration', () => {
188
+ if (view === 'Grading view') {
189
+ studentViewPage.steps.clearResponses();
190
+ };
191
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 1, 'Stem': 2 });
192
+ if (view === 'Grading view') {
193
+ studentViewPage.steps.submitResponse();
194
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
195
+ studentViewPage.steps.clickOnGoToGradingViewButton();
196
+ gradingViewPage.steps.verifyGradingViewScore(0, 20);
197
+ };
198
+ if (view === 'Question preview' || view === 'Item preview') {
199
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 20);
200
+ fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
201
+ };
202
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
203
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
204
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
205
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
206
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
207
+ });
208
+
185
209
  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
210
  if (view === 'Grading view') {
187
211
  studentViewPage.steps.clearResponses();
@@ -59,6 +59,8 @@ describe('Create item page - Matching: All or nothing ', () => {
59
59
  matchingPage.steps.addMultipleOptionFields(2);
60
60
  matchingPage.steps.enterTextInPromptInputField(promptTextArray);
61
61
  matchingPage.steps.enterTextInOptionInputField(optionsArray);
62
+ matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
63
+ matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
62
64
  matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Elephant', dropzoneIndex: 0 }, { optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
63
65
  matchingPage.steps.switchToPreviewTab();
64
66
  break;
@@ -176,6 +178,29 @@ describe('Create item page - Matching: All or nothing ', () => {
176
178
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
177
179
  });
178
180
 
181
+ it('When the user attempts the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer, 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 should be displayed along with numeration', () => {
182
+ if (view === 'Grading view') {
183
+ studentViewPage.steps.clearResponses();
184
+ };
185
+ matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Elephant', dropzoneIndex: 0 }, { optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
186
+ if (view === 'Grading view') {
187
+ studentViewPage.steps.submitResponse();
188
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
189
+ studentViewPage.steps.clickOnGoToGradingViewButton();
190
+ gradingViewPage.steps.verifyGradingViewScore(0, 20);
191
+ };
192
+ if (view === 'Question preview' || view === 'Item preview') {
193
+ matchingPage.steps.verifyPreviewScore(0, 20);
194
+ matchingPage.steps.switchToGradingView();
195
+ };
196
+ matchingPage.steps.verifyCorrectOptionIcon(0);
197
+ matchingPage.steps.verifyIncorrectOptionIcon(0, 1);
198
+ matchingPage.steps.verifyCorrectOptionIcon(1);
199
+ matchingPage.steps.verifyCorrectOptionIcon(2);
200
+ matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
201
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
202
+ });
203
+
179
204
  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', () => {
180
205
  if (view === 'Grading view') {
181
206
  studentViewPage.steps.clearResponses();
@@ -6,7 +6,7 @@ const css = Cypress.env('css');
6
6
  const selectors = {
7
7
  questionInstructionsLabelEditTab: () => cy.get('.edit-question-instruction-label'),
8
8
  questionInstructionsInputField: () => cy.get('[title="Question Instructions"]'),
9
- questionInstructionsText: () => cy.get('.question-instruction:visible'),
9
+ questionInstructionsText: () => cy.get('.question-instruction'),
10
10
  questionInstructionsWrapper: () => cy.get('.edit-question-instruction-wrapper')
11
11
  }
12
12