itemengine-cypress-automation 1.0.29 → 1.0.30

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.
Files changed (15) hide show
  1. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -292
  2. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
  3. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js +1 -180
  4. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingWithAlternateAnswer.js +186 -0
  5. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsScoring.js +0 -87
  6. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsWithAlternateAnswer.js +95 -0
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsScoring.js +0 -86
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsWithAlternateAnswer.js +94 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsScoring.js +0 -75
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsWithAlternateAnswer.js +83 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAllOrNothingwithAlternateAnswer.js +74 -0
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAutoScoredAllOrNothingScoring.js +0 -67
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsScoring.js +0 -74
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsWithAlternateAnswer.js +82 -0
  15. package/package.json +1 -1
@@ -0,0 +1,82 @@
1
+ import { fillInTheGapsDragAndDropPage, fillInTheGapsScoring } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - Fill in the Gaps: Drag and Drop - Standard options layout - Partial equal weights scoring', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer and \'Match from all responses property - \"false\"\'', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points and switch to preview tab');
13
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
14
+ cy.barsPreLoaderWait();
15
+ fillInTheGapsDragAndDropPage.addOptionButton()
16
+ .click();
17
+ fillInTheGapsDragAndDropPage.addOptionButton()
18
+ .click();
19
+ fillInTheGapsDragAndDropPage.addOptionButton()
20
+ .click();
21
+ fillInTheGapsDragAndDropPage.addOptionButton()
22
+ .click();
23
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
24
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
25
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
26
+ fillInTheGapsDragAndDropPage.steps.allotPoints('10');
27
+ fillInTheGapsDragAndDropPage.alternateAnswerButton()
28
+ .click();
29
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
30
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
31
+ fillInTheGapsDragAndDropPage.steps.allotPoints('6');
32
+ fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
33
+ .click();
34
+ fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
35
+ fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
36
+ .click();
37
+ fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
38
+ .click();
39
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
40
+ });
41
+
42
+ fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
43
+ });
44
+
45
+ describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
46
+ abortEarlySetup();
47
+ before(() => {
48
+ cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points, check match for all responses checkbox and switch to preview tab');
49
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
50
+ cy.barsPreLoaderWait();
51
+ fillInTheGapsDragAndDropPage.addOptionButton()
52
+ .click();
53
+ fillInTheGapsDragAndDropPage.addOptionButton()
54
+ .click();
55
+ fillInTheGapsDragAndDropPage.addOptionButton()
56
+ .click();
57
+ fillInTheGapsDragAndDropPage.addOptionButton()
58
+ .click();
59
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
60
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
61
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
62
+ fillInTheGapsDragAndDropPage.steps.allotPoints('10');
63
+ fillInTheGapsDragAndDropPage.alternateAnswerButton()
64
+ .click();
65
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
66
+ fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
67
+ fillInTheGapsDragAndDropPage.steps.allotPoints('6');
68
+ fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
69
+ .click();
70
+ fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
71
+ .click();
72
+ fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
73
+ fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
74
+ .click();
75
+ fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
76
+ .click();
77
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
78
+ });
79
+
80
+ fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
81
+ });
82
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {