itemengine-cypress-automation 1.0.351 → 1.0.352
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.
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +3 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +1 -0
- package/cypress/e2e/Sessions/scores.js +8 -5
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +2 -2
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +16 -28
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +23 -29
- package/cypress/pages/components/gridQuestionCommonComponent.js +0 -37
- package/cypress/pages/components/imageCanvasComponent.js +5 -4
- package/cypress/pages/drawingResponsePage.js +4 -4
- package/cypress/pages/multipleSelectionPage.js +0 -37
- package/cypress/pages/singleSelectionPage.js +0 -37
- package/cypress/support/commands.js +0 -2
- package/package.json +1 -1
@@ -33,8 +33,6 @@ describe('Edit item - Charts -Line', () => {
|
|
33
33
|
|
34
34
|
it('User should be able to edit correct answer and save the question', () => {
|
35
35
|
chartsLinePage.steps.editItem();
|
36
|
-
chartsLinePage.steps.lockPoint(2);
|
37
|
-
chartsLinePage.steps.unlockPoint(0);
|
38
36
|
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 0, value: 3, range: 10 });
|
39
37
|
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 1, value: 6, range: 10 });
|
40
38
|
chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
|
@@ -19,28 +19,27 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
19
19
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
20
20
|
});
|
21
21
|
|
22
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section
|
22
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section should not be displayed', () => {
|
23
23
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
24
|
-
fillInTheGapsDragAndDropPage.steps.
|
24
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
25
25
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
26
26
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
27
27
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
28
28
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
|
29
|
-
utilities.
|
29
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'notExist');
|
30
30
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
31
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
32
31
|
});
|
33
32
|
|
34
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
33
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, no points should be allocated, and correct answer section should not be displayed', () => {
|
35
34
|
fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
|
36
35
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
37
36
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
38
37
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
39
|
-
fillInTheGapsDragAndDropPage.steps.
|
40
|
-
fillInTheGapsDragAndDropPage.steps.
|
41
|
-
fillInTheGapsDragAndDropPage.steps.
|
42
|
-
fillInTheGapsDragAndDropPage.steps.
|
43
|
-
fillInTheGapsDragAndDropPage.
|
38
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
39
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
40
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
41
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
42
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'notExist');
|
44
43
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
45
44
|
});
|
46
45
|
|
@@ -68,7 +67,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
68
67
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
69
68
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
70
69
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
71
|
-
|
70
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
71
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
72
72
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
73
73
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
74
74
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
@@ -80,7 +80,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
81
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
83
|
-
|
83
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
84
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
84
85
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
85
86
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
86
87
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
@@ -105,7 +106,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
105
106
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
106
107
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
107
108
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
108
|
-
|
109
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
110
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
109
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
110
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
111
113
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -124,27 +126,26 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
124
126
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
125
127
|
});
|
126
128
|
|
127
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section
|
129
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, and correct answers section should not be displayed', () => {
|
128
130
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
129
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
130
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
131
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
132
134
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
133
135
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
|
134
|
-
utilities.
|
136
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'notExist');
|
135
137
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
136
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
137
138
|
});
|
138
139
|
|
139
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
140
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, no points should be allocated, and correct answer section should not be displayed', () => {
|
140
141
|
fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
|
141
142
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
142
143
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
143
144
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
144
|
-
fillInTheGapsDragAndDropPage.steps.
|
145
|
-
fillInTheGapsDragAndDropPage.steps.
|
146
|
-
fillInTheGapsDragAndDropPage.steps.
|
147
|
-
fillInTheGapsDragAndDropPage.steps.
|
145
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
146
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
147
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
148
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
148
149
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
149
150
|
});
|
150
151
|
|
@@ -172,7 +173,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
172
173
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
173
174
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(8, 24);
|
174
175
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
175
|
-
|
176
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
177
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
176
178
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
177
179
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
178
180
|
});
|
@@ -183,7 +185,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
183
185
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
184
186
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(16, 24);
|
185
187
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
186
|
-
|
188
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
189
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
187
190
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
188
191
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
189
192
|
});
|
@@ -206,7 +209,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
206
209
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
207
210
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
208
211
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
209
|
-
|
212
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
213
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
210
214
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
211
215
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
212
216
|
});
|
@@ -81,7 +81,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
|
|
81
81
|
});
|
82
82
|
});
|
83
83
|
|
84
|
-
|
84
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
|
85
|
+
describe.skip('Fill color - Preview tab', () => {
|
85
86
|
const modifiedColor = 'rgb(121, 60, 60)'
|
86
87
|
abortEarlySetup();
|
87
88
|
before(() => {
|
@@ -160,7 +161,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
|
|
160
161
|
});
|
161
162
|
});
|
162
163
|
|
163
|
-
|
164
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
|
165
|
+
describe.skip('Border color - Preview tab', () => {
|
164
166
|
const modifiedColor = 'rgb(121, 60, 60)'
|
165
167
|
abortEarlySetup();
|
166
168
|
before(() => {
|
@@ -310,7 +312,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
|
|
310
312
|
})
|
311
313
|
});
|
312
314
|
|
313
|
-
|
315
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
|
316
|
+
describe.skip('Border style - Preview tab', () => {
|
314
317
|
abortEarlySetup();
|
315
318
|
before(() => {
|
316
319
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
@@ -36,7 +36,8 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown and Dropdo
|
|
36
36
|
});
|
37
37
|
|
38
38
|
it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
|
39
|
-
|
39
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
|
40
|
+
//fillInTheGapsDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
|
40
41
|
cy.log('Choosing an option from dropdown to collapse it')
|
41
42
|
fillInTheGapsDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
42
43
|
});
|
@@ -59,9 +59,9 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
59
59
|
|
60
60
|
fillInTheGapsDropdownPage.tests.verifyAddOptionFunctionalityForDropdownOptions();
|
61
61
|
|
62
|
-
it('When user focus in and out of any of the \'Options\' input field without typing anything, error message should be thrown', () => {
|
62
|
+
it('When user focus in and out of any of the \'Options\' input field without typing anything, error message should not be thrown', () => {
|
63
63
|
fillInTheGapsDropdownPage.steps.focusInAndFocusOutOfDropdownOptionInputField(0);
|
64
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
64
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
65
65
|
});
|
66
66
|
|
67
67
|
it('User should be able to enter text in options input field and \'Error: Option is required.\' error message should disappear', () => {
|
@@ -35,7 +35,6 @@ describe('Create Item page - Fill in the gaps with dropdown: Specify correct ans
|
|
35
35
|
fillInTheGapsDropdownPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
|
36
36
|
|
37
37
|
it('When user has added points and selected an option in dropdown in the \'Correct\' accordion, then the user should be able to add alternative answer for the question using \'Add alternative answer\' button', () => {
|
38
|
-
dialogBoxBase.steps.closeWarningPopup();
|
39
38
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
|
40
39
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, optionsForDropdown[1]);
|
41
40
|
fillInTheGapsDropdownPage.steps.allotPoints(10);
|
@@ -23,29 +23,28 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
|
|
23
23
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
24
24
|
});
|
25
25
|
|
26
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed
|
26
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should not be displayed', () => {
|
27
27
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
28
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
28
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
29
29
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
30
30
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
31
31
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
32
32
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
33
|
-
fillInTheGapsOverImageDragAndDropPage.
|
33
|
+
utilities.verifyElementVisibilityStateWithOption(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'notExist');
|
34
34
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
35
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
36
35
|
});
|
37
36
|
|
38
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
37
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, no points should be allocated, and correct answer section should not be displayed', () => {
|
39
38
|
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
40
39
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
41
40
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
42
41
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
43
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
44
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
45
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
46
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
47
|
-
fillInTheGapsOverImageDragAndDropPage.
|
48
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
42
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
43
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
44
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
45
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
46
|
+
utilities.verifyElementVisibilityStateWithOption(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'notExist');
|
47
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
49
48
|
});
|
50
49
|
|
51
50
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
@@ -135,27 +134,26 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
|
|
135
134
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
136
135
|
});
|
137
136
|
|
138
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed
|
137
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should not be displayed', () => {
|
139
138
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
140
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
139
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
141
140
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
142
141
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
143
142
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
144
143
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
145
|
-
fillInTheGapsOverImageDragAndDropPage.
|
144
|
+
utilities.verifyElementVisibilityStateWithOption(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'notExist');
|
146
145
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
147
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
148
146
|
});
|
149
147
|
|
150
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
148
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, no points should be allocated, and correct answer section should not be displayed', () => {
|
151
149
|
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
152
150
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
153
151
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
154
152
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
155
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
156
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
157
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
158
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
153
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
154
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
155
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
156
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
159
157
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
160
158
|
});
|
161
159
|
|
@@ -434,7 +434,8 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
|
|
434
434
|
});
|
435
435
|
});
|
436
436
|
|
437
|
-
|
437
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5636
|
438
|
+
describe.skip('Option placement in dropzone - Preview tab functionality', () => {
|
438
439
|
abortEarlySetup();
|
439
440
|
before(() => {
|
440
441
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
@@ -29,33 +29,28 @@ describe('Create item page - Fill in the gaps ovr image with dropdown: All or no
|
|
29
29
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
30
30
|
});
|
31
31
|
|
32
|
-
it('When
|
32
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, no correct/incorrect status message should be shown, and the correct answers section with the label \'Correct answers\' should display correct answers with respective option numeration', () => {
|
33
33
|
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
34
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
34
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
35
35
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
36
36
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
37
37
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
38
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
39
38
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
40
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
41
39
|
});
|
42
40
|
|
43
|
-
it('When
|
41
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user interacts with the question in the preview tab, correct icons should be displayed beside all responses, full points should be allocated, and the correct answer section should not be displayed', () => {
|
44
42
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
45
43
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
46
|
-
|
47
|
-
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
45
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(2, optionsForDropdown3);
|
48
46
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
49
47
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }]);
|
50
|
-
|
51
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
52
|
-
|
53
|
-
|
54
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
55
|
-
|
56
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
57
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
58
|
-
});
|
48
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
49
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
50
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
51
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
52
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
53
|
+
});
|
59
54
|
|
60
55
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
61
56
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
@@ -145,32 +140,28 @@ describe('Create item page - Fill in the gaps ovr image with dropdown: All or no
|
|
145
140
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
146
141
|
});
|
147
142
|
|
148
|
-
it('When
|
143
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, no correct/incorrect status message should not be shown', () => {
|
149
144
|
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
150
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
145
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
151
146
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
152
147
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
153
148
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
154
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
155
149
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
157
150
|
});
|
158
151
|
|
159
|
-
it('When
|
152
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user interacts with the question in the preview tab, correct/incorrect icons should not be displayed beside all responses, manually scored label should be displayed', () => {
|
160
153
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
161
154
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
162
155
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
163
156
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(2, optionsForDropdown3);
|
164
157
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
165
158
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }]);
|
166
|
-
|
167
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
168
|
-
|
169
|
-
|
170
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
171
|
-
|
172
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
173
|
-
});
|
159
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
160
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
161
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
164
|
+
});
|
174
165
|
|
175
166
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
176
167
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
@@ -239,4 +230,4 @@ describe('Create item page - Fill in the gaps ovr image with dropdown: All or no
|
|
239
230
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
240
231
|
});
|
241
232
|
});
|
242
|
-
|
233
|
+
});
|
@@ -112,7 +112,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown an
|
|
112
112
|
});
|
113
113
|
|
114
114
|
it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
|
115
|
-
|
115
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
|
116
|
+
//fillInTheGapsOverImageDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
|
116
117
|
cy.log('Choosing an option from dropdown to collapse it')
|
117
118
|
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
118
119
|
});
|
@@ -45,11 +45,11 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
|
|
45
45
|
});
|
46
46
|
|
47
47
|
describe('Validation error messages', () => {
|
48
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please
|
48
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please set points']);
|
49
49
|
|
50
50
|
it('Validation error messages should be displayed below required input fields', () => {
|
51
51
|
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
52
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please
|
52
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please set points'])
|
53
53
|
});
|
54
54
|
|
55
55
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -49,11 +49,11 @@ describe('Create item page - Fill in the gaps over image - text: Header section
|
|
49
49
|
});
|
50
50
|
|
51
51
|
describe('Validation error messages', () => {
|
52
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please
|
52
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please set points']);
|
53
53
|
|
54
54
|
it('Validation error messages should be displayed below required input fields', () => {
|
55
55
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
56
|
-
fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please
|
56
|
+
fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please set points']);
|
57
57
|
});
|
58
58
|
|
59
59
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -23,28 +23,27 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
|
|
23
23
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
24
24
|
});
|
25
25
|
|
26
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section
|
26
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section should not be displayed', () => {
|
27
27
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
28
|
-
fillInTheGapsOverImageTextPage.steps.
|
28
|
+
fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
|
29
29
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
30
30
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
31
31
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
32
32
|
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
|
33
|
-
utilities.
|
33
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'notExist');
|
34
34
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
35
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
36
35
|
});
|
37
36
|
|
38
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
37
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, full points should not be allocated, and correct answer section should not be displayed', () => {
|
39
38
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
40
39
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
|
41
40
|
fillInTheGapsOverImageTextPage.steps.clearAnswerInputFieldPreviewTab(0);
|
42
41
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
43
|
-
fillInTheGapsOverImageTextPage.steps.
|
44
|
-
fillInTheGapsOverImageTextPage.steps.
|
45
|
-
fillInTheGapsOverImageTextPage.steps.
|
46
|
-
fillInTheGapsOverImageTextPage.steps.
|
47
|
-
fillInTheGapsOverImageTextPage.
|
42
|
+
fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
|
43
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
44
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
45
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
46
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'notExist');
|
48
47
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
49
48
|
});
|
50
49
|
|
@@ -52,13 +51,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
|
|
52
51
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
53
52
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
|
54
53
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
55
|
-
fillInTheGapsOverImageTextPage.steps.
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
// fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
60
|
-
// fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
61
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
54
|
+
fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
|
55
|
+
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
56
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
57
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
62
58
|
});
|
63
59
|
|
64
60
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
@@ -146,14 +142,13 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
|
|
146
142
|
|
147
143
|
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
148
144
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
149
|
-
fillInTheGapsOverImageTextPage.steps.
|
145
|
+
fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
|
150
146
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
151
147
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
152
148
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
153
149
|
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
|
154
|
-
utilities.
|
150
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'notExist');
|
155
151
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
157
152
|
});
|
158
153
|
|
159
154
|
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
|
@@ -161,10 +156,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
|
|
161
156
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
|
162
157
|
fillInTheGapsOverImageTextPage.steps.clearAnswerInputFieldPreviewTab(0);
|
163
158
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
164
|
-
fillInTheGapsOverImageTextPage.steps.
|
165
|
-
fillInTheGapsOverImageTextPage.steps.
|
166
|
-
fillInTheGapsOverImageTextPage.steps.
|
167
|
-
fillInTheGapsOverImageTextPage.steps.
|
159
|
+
fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
|
160
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
161
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
162
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
168
163
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
169
164
|
});
|
170
165
|
|
@@ -172,12 +167,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
|
|
172
167
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
173
168
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
|
174
169
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
175
|
-
fillInTheGapsOverImageTextPage.steps.
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
// fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
180
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
170
|
+
fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
|
171
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
172
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
173
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
181
174
|
});
|
182
175
|
|
183
176
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
@@ -38,12 +38,10 @@ describe('Create item page - Fill in the gaps over image with text: Supported fi
|
|
38
38
|
});
|
39
39
|
});
|
40
40
|
|
41
|
-
it('When the user tries to uploads an image with unsupported file type, then an error message
|
41
|
+
it('When the user tries to uploads an image with unsupported file type, then an error message should not be displayed', () => {
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFileWithoutVerification('uploads/sample.heif');
|
43
43
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.errorMessage(), 'notExist');
|
44
|
-
fillInTheGapsOverImageTextPage.
|
44
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.canvasUploadedImage(), 'notExist')
|
45
45
|
});
|
46
|
-
|
47
|
-
fillInTheGapsOverImageTextPage.tests.verifyErrorMessageCSSAndA11y();
|
48
46
|
});
|
49
47
|
});
|