itemengine-cypress-automation 1.0.435 → 1.0.436-IEI-6661-6650-25a8984.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.
@@ -168,4 +168,36 @@ describe('Create item page - Fill in the gaps with text: Dropzone level alternat
168
168
  utilities.verifyElementNotDisabled(utilities.getNthElement(fillInTheGapsDragAndDropPage.addAlternateButtonSpecifyCorrectAnswer(), 1));
169
169
  });
170
170
  });
171
+
172
+ describe('Dropzone level alternate answer popup - Preview tab', () => {
173
+ abortEarlySetup();
174
+ before(() => {
175
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
176
+ cy.barsPreLoaderWait();
177
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
178
+ fillInTheGapsDragAndDropPage.steps.addOption();
179
+ fillInTheGapsDragAndDropPage.steps.addOption();
180
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
181
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
182
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Roots': 1 });
183
+ fillInTheGapsDragAndDropPage.steps.clickOnAddAlternateButton(0);
184
+ fillInTheGapsDragAndDropPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Leaves']);
185
+ fillInTheGapsDragAndDropPage.steps.saveSelectedAlternateAnswers();
186
+ fillInTheGapsDragAndDropPage.steps.clickOnAddAlternateButton(2);
187
+ fillInTheGapsDragAndDropPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Stem']);
188
+ fillInTheGapsDragAndDropPage.steps.saveSelectedAlternateAnswers();
189
+ fillInTheGapsDragAndDropPage.steps.allotPoints(20);
190
+ });
191
+
192
+ it('When user clicks on the Grading Preview Tab and adds one of the alternate Correct answers, the Correct answer section should not change dynamically', () => {
193
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
194
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
195
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionExist();
196
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Roots']], ['1','2']);
197
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0 });
198
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Roots']], ['1','2']);
199
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
200
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Roots']], ['1','2']);
201
+ });
202
+ });
171
203
  });
@@ -158,4 +158,33 @@ describe('Create item page - Fill in the gaps drop down: Drop down alternate ans
158
158
  fillInTheGapsDropdownPage.steps.cancelDropdownAlternateAnswersPopup();
159
159
  });
160
160
  });
161
+
162
+ describe('Dropzone level alternate answer popup - Preview tab', () => {
163
+ abortEarlySetup();
164
+ before(() => {
165
+ fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
166
+ cy.barsPreLoaderWait();
167
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
168
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
169
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, 'Flower');
170
+ fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(0);
171
+ fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Petal']);
172
+ fillInTheGapsDropdownPage.steps.saveSelectedAlternateAnswers();
173
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, 'Leaf');
174
+ fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(2);
175
+ fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Stem']);
176
+ fillInTheGapsDropdownPage.steps.saveSelectedAlternateAnswers();
177
+ fillInTheGapsDropdownPage.steps.allotPoints(20);
178
+ });
179
+
180
+ it('When user clicks on the Grading Preview Tab and adds one of the alternate Correct answers, the Correct answer section should not change dynamically', () => {
181
+ fillInTheGapsDropdownPage.steps.switchToPreviewTab();
182
+ fillInTheGapsDropdownPage.steps.switchToGradingView();
183
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionExist();
184
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf'], ['1', '2']);
185
+ fillInTheGapsDropdownPage.steps.expandDropdownInPreviewTab(0);
186
+ fillInTheGapsDropdownPage.steps.selectOptionFromDropdownList('Petal');
187
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf'], ['1', '2']);
188
+ });
189
+ });
161
190
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.435",
3
+ "version": "1.0.436-IEI-6661-6650-25a8984.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }