itemengine-cypress-automation 1.0.29 → 1.0.31
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettings.js +963 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesClickAndDrop.js +669 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesEditTabScoringTypes.js +205 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsAllOrNothing.js +143 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachCell.js +145 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachResponse.js +141 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenCell.js +165 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenResponses.js +420 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedSetCorrectAnswerCheckboxes.js +266 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesHeaderSection.js +83 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScored.js +184 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesResponseOptionsSection.js +112 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesRowsAndCategoriesSection.js +569 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSetCorrectAnswerSection.js +130 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardAllOrNothing.js +186 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachCell.js +145 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachResponse.js +140 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardSetCorrectAnswerCheckboxes.js +234 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenCell.js +165 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenResponse.js +420 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSwitchingCases.js +45 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -292
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js +1 -180
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingWithAlternateAnswer.js +186 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsScoring.js +0 -87
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsWithAlternateAnswer.js +95 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsScoring.js +0 -86
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsWithAlternateAnswer.js +94 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsScoring.js +0 -75
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsWithAlternateAnswer.js +83 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAllOrNothingwithAlternateAnswer.js +74 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAutoScoredAllOrNothingScoring.js +0 -67
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsScoring.js +0 -74
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsWithAlternateAnswer.js +82 -0
- 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
|
+
});
|