itemengine-cypress-automation 1.0.30 → 1.0.32
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/FillInTheGapsDropdown/fillInTheGapsDropdownAdditionalSettings.js +1 -415
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownAdditionalSettingsBasic.js +423 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownAllOrNothingScoring.js +48 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdown/{fillInTheGapsDropdownAutoScoredScoring.js → fillInTheGapsDropdownAllOrNothingScoringWithAlternateAnswer.js} +1 -37
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialDifferentWeights.js +59 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdown/{fillInTheGapsDropdownScoringPartialDifferentWeights.js → fillInTheGapsDropdownPartialDifferentWeightsWithAlternateAnswer.js} +1 -47
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialEqualWeights.js +1 -63
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialEqualWeightsWithAlternateAnswer.js +73 -0
- package/package.json +1 -1
@@ -4,7 +4,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
4
4
|
let optionsForResponse1 = ['Correct answer 1', 'Alternate correct answer 1', 'Incorrect answer 1', 'Incorrect answer 2'];
|
5
5
|
let optionsForResponse2 = ['Correct answer 2', 'Alternate correct answer 2', 'Incorrect answer 1', 'Incorrect answer 2'];
|
6
6
|
|
7
|
-
describe('Fill in the gaps - dropdown
|
7
|
+
describe('Fill in the gaps - dropdown: Partial - equal weights scoring', () => {
|
8
8
|
before(() => {
|
9
9
|
cy.loginAs('admin');
|
10
10
|
})
|
@@ -33,68 +33,6 @@ describe('Fill in the gaps - dropdown scoring section partial - equal weights',
|
|
33
33
|
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsScoring('fill in the gaps - dropdown')
|
34
34
|
});
|
35
35
|
|
36
|
-
describe('Question preview: Partial - equal weights with alternate answer and match from all responses - \"false\"', () => {
|
37
|
-
abortEarlySetup();
|
38
|
-
before(() => {
|
39
|
-
cy.log('Navigate to fill in the gaps - dropdown question type, adding correct answer responses and alternate answer responses, adding points and switch to preview tab');
|
40
|
-
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
41
|
-
cy.barsPreLoaderWait();
|
42
|
-
fillInTheGapsDropdownPage.steps.addResponseTokenInQuestionField();
|
43
|
-
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
44
|
-
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
45
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Correct answer 1');
|
46
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Correct answer 2');
|
47
|
-
fillInTheGapsDropdownPage.steps.allotPoints('10');
|
48
|
-
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
49
|
-
fillInTheGapsDropdownPage.alternateAnswerButton()
|
50
|
-
.click();
|
51
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Alternate correct answer 1');
|
52
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Alternate correct answer 2');
|
53
|
-
fillInTheGapsDropdownPage.steps.allotPoints('6');
|
54
|
-
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
55
|
-
fillInTheGapsDropdownPage.partialEqualWeightsCheckbox()
|
56
|
-
.click();
|
57
|
-
fillInTheGapsDropdownPage.steps.expandAdditonalSettings();
|
58
|
-
fillInTheGapsDropdownPage.allowStudentsToCheckAnswerCheckbox()
|
59
|
-
.click();
|
60
|
-
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
61
|
-
});
|
62
|
-
|
63
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - dropdown')
|
64
|
-
});
|
65
|
-
|
66
|
-
describe('Question preview: Partial - equal weights with alternate answer and match from all responses - \"true\"', () => {
|
67
|
-
abortEarlySetup();
|
68
|
-
before(() => {
|
69
|
-
cy.log('Navigate to fill in the gaps - dropdown question type, adding correct answer responses and alternate answer responses and points for both correct and alternate answer');
|
70
|
-
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
71
|
-
cy.barsPreLoaderWait();
|
72
|
-
fillInTheGapsDropdownPage.steps.addResponseTokenInQuestionField();
|
73
|
-
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
74
|
-
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
75
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Correct answer 1');
|
76
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Correct answer 2');
|
77
|
-
fillInTheGapsDropdownPage.steps.allotPoints('10');
|
78
|
-
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
79
|
-
fillInTheGapsDropdownPage.alternateAnswerButton()
|
80
|
-
.click();
|
81
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Alternate correct answer 1');
|
82
|
-
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Alternate correct answer 2');
|
83
|
-
fillInTheGapsDropdownPage.steps.allotPoints('6');
|
84
|
-
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
85
|
-
fillInTheGapsDropdownPage.matchFromAllResponsesCheckbox()
|
86
|
-
.click();
|
87
|
-
fillInTheGapsDropdownPage.partialEqualWeightsCheckbox()
|
88
|
-
.click();
|
89
|
-
fillInTheGapsDropdownPage.steps.expandAdditonalSettings();
|
90
|
-
fillInTheGapsDropdownPage.allowStudentsToCheckAnswerCheckbox()
|
91
|
-
.click();
|
92
|
-
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
93
|
-
});
|
94
|
-
|
95
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - dropdown')
|
96
|
-
});
|
97
|
-
|
98
36
|
describe('Partial Equal Weights: Round down score', () => {
|
99
37
|
abortEarlySetup();
|
100
38
|
before(() => {
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { fillInTheGapsDropdownPage, fillInTheGapsScoring } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
let optionsForResponse1 = ['Correct answer 1', 'Alternate correct answer 1', 'Incorrect answer 1', 'Incorrect answer 2'];
|
5
|
+
let optionsForResponse2 = ['Correct answer 2', 'Alternate correct answer 2', 'Incorrect answer 1', 'Incorrect answer 2'];
|
6
|
+
|
7
|
+
describe('Fill in the gaps - dropdown: Partial equal weights scoring with alternate answer', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Question preview: Partial - equal weights with alternate answer and match from all responses - \"false\"', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Navigate to fill in the gaps - dropdown question type, adding correct answer responses and alternate answer responses, adding points and switch to preview tab');
|
16
|
+
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
fillInTheGapsDropdownPage.steps.addResponseTokenInQuestionField();
|
19
|
+
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
20
|
+
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
21
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Correct answer 1');
|
22
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Correct answer 2');
|
23
|
+
fillInTheGapsDropdownPage.steps.allotPoints('10');
|
24
|
+
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
25
|
+
fillInTheGapsDropdownPage.alternateAnswerButton()
|
26
|
+
.click();
|
27
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Alternate correct answer 1');
|
28
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Alternate correct answer 2');
|
29
|
+
fillInTheGapsDropdownPage.steps.allotPoints('6');
|
30
|
+
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
31
|
+
fillInTheGapsDropdownPage.partialEqualWeightsCheckbox()
|
32
|
+
.click();
|
33
|
+
fillInTheGapsDropdownPage.steps.expandAdditonalSettings();
|
34
|
+
fillInTheGapsDropdownPage.allowStudentsToCheckAnswerCheckbox()
|
35
|
+
.click();
|
36
|
+
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
37
|
+
});
|
38
|
+
|
39
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - dropdown')
|
40
|
+
});
|
41
|
+
|
42
|
+
describe('Question preview: Partial - equal weights with alternate answer and match from all responses - \"true\"', () => {
|
43
|
+
abortEarlySetup();
|
44
|
+
before(() => {
|
45
|
+
cy.log('Navigate to fill in the gaps - dropdown question type, adding correct answer responses and alternate answer responses and points for both correct and alternate answer');
|
46
|
+
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
47
|
+
cy.barsPreLoaderWait();
|
48
|
+
fillInTheGapsDropdownPage.steps.addResponseTokenInQuestionField();
|
49
|
+
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
50
|
+
fillInTheGapsDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
51
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Correct answer 1');
|
52
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Correct answer 2');
|
53
|
+
fillInTheGapsDropdownPage.steps.allotPoints('10');
|
54
|
+
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
55
|
+
fillInTheGapsDropdownPage.alternateAnswerButton()
|
56
|
+
.click();
|
57
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, 'Alternate correct answer 1');
|
58
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, 'Alternate correct answer 2');
|
59
|
+
fillInTheGapsDropdownPage.steps.allotPoints('6');
|
60
|
+
fillInTheGapsDropdownPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
61
|
+
fillInTheGapsDropdownPage.matchFromAllResponsesCheckbox()
|
62
|
+
.click();
|
63
|
+
fillInTheGapsDropdownPage.partialEqualWeightsCheckbox()
|
64
|
+
.click();
|
65
|
+
fillInTheGapsDropdownPage.steps.expandAdditonalSettings();
|
66
|
+
fillInTheGapsDropdownPage.allowStudentsToCheckAnswerCheckbox()
|
67
|
+
.click();
|
68
|
+
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
69
|
+
});
|
70
|
+
|
71
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - dropdown')
|
72
|
+
});
|
73
|
+
});
|