itemengine-cypress-automation 1.0.68 → 1.0.69
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/fixtures/theme/ilc.json +2 -1
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/additionalSettingsPanel.js +46 -14
- package/cypress/pages/components/autoScoredAdditionalSettings.js +6 -6
- package/cypress/pages/components/autoScoredPreviewBase.js +6 -8
- package/cypress/pages/components/autoScoredScoringSection.js +22 -18
- package/cypress/pages/components/autoScoredScoringSectionMultipleResponsesType.js +60 -9
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +7 -7
- package/cypress/pages/components/createQuestionBasePage.js +8 -2
- package/cypress/pages/components/draggableOptionsContainer.js +2 -1
- package/cypress/pages/components/equationEditorFlyout.js +2 -1
- package/cypress/pages/components/essayResponseCommonComponents.js +10 -4
- package/cypress/pages/components/figOverImageCommonComponent.js +2 -1
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +34 -14
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -1
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +7 -7
- package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +10 -0
- package/cypress/pages/components/mcqQuestionCommonComponents.js +1 -1
- package/cypress/pages/components/mcqScoringComponent.js +1 -1
- package/cypress/pages/components/previewScoringAndShowCorrectAnswerComponent.js +20 -18
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBase.js +30 -1
- package/cypress/pages/components/setPointsPopupBase.js +2 -1
- package/cypress/pages/components/uploadImageSectionComponent.js +8 -8
- package/cypress/pages/createItemPage.js +83 -1
- package/cypress/pages/dialogBoxBase.js +3 -7
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +5 -4
- package/cypress/pages/essayResponsePage.js +1 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -0
- package/cypress/pages/fillInTheGapsScoring.js +215 -317
- package/cypress/pages/highlightImagePage.js +6 -4
- package/cypress/pages/highlightPage.js +1 -2
- package/cypress/pages/index.js +4 -0
- package/cypress/pages/listMatchingPage.js +5 -4
- package/cypress/pages/listMatchingScoring.js +274 -272
- package/cypress/pages/listOrderingPage.js +23 -14
- package/cypress/pages/listSortingPage.js +7 -9
- package/cypress/pages/multipleSelectionPage.js +2 -1
- package/cypress/pages/shortTextResponsePage.js +9 -0
- package/cypress/pages/singleSelectionPage.js +1 -0
- package/cypress/pages/uploadResponsePage.js +296 -15
- package/cypress/pages/videoResponsePage.js +5 -6
- package/package.json +1 -1
@@ -560,10 +560,8 @@ const steps = {
|
|
560
560
|
|
561
561
|
verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked: () => {
|
562
562
|
cy.log('After deselecting Show correct answer checkbox, the question preview should return to the previous state');
|
563
|
-
previewScoringAndShowCorrectAnswerComponent.
|
564
|
-
|
565
|
-
.should('not.be.checked');
|
566
|
-
autoScoredPreviewBase.correctIncorectAnswerLabel()
|
563
|
+
previewScoringAndShowCorrectAnswerComponent.steps.uncheckShowCorrectAnswerCheckbox();
|
564
|
+
autoScoredPreviewBase.correctIncorrectAnswerLabel()
|
567
565
|
.should('not.exist');
|
568
566
|
highlightImagePage.steps.verifyCorrectIncorrectBorderNotVisible();
|
569
567
|
},
|
@@ -1209,6 +1207,8 @@ const tests = {
|
|
1209
1207
|
it('When user has provided minimum score awarded (if attempted) points, then in Preview tab on entering incorrect answer, minimum score should be provided for the question', () => {
|
1210
1208
|
cy.log('Switch to edit tab and set minimum score if attempted points')
|
1211
1209
|
createQuestionBasePage.steps.switchToEditTab();
|
1210
|
+
scoringSectionBase.steps.expandMinimumScoringDropdown();
|
1211
|
+
scoringSectionBase.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
1212
1212
|
scoringSectionBase.steps.allotMinimumScoreAwardedIfAttempted('1')
|
1213
1213
|
createQuestionBasePage.steps.switchToPreviewTab()
|
1214
1214
|
highlightImagePage.steps.highlightARegionInPreviewTab(2);
|
@@ -1271,6 +1271,8 @@ const tests = {
|
|
1271
1271
|
it('When user has defined both penalty points and minimum score awarded (if attempted) points', () => {
|
1272
1272
|
cy.log('Pre-step: Switch to edit tab and set minimum score awarded (if attempted) points and Penalty points');
|
1273
1273
|
createQuestionBasePage.steps.switchToEditTab();
|
1274
|
+
scoringSectionBase.steps.expandMinimumScoringDropdown();
|
1275
|
+
scoringSectionBase.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
1274
1276
|
scoringSectionBase.steps.allotMinimumScoreAwardedIfAttempted(1);
|
1275
1277
|
autoScoredScoringSectionMultipleResponsesType.steps.allotPenaltyPoints(3);
|
1276
1278
|
|
@@ -210,8 +210,7 @@ const steps = {
|
|
210
210
|
},
|
211
211
|
|
212
212
|
closeTextSelectionDropdown: () => {
|
213
|
-
|
214
|
-
.scrollIntoView({ offset: { top: 200, left: 0 } })
|
213
|
+
cy.get('body')
|
215
214
|
.click();
|
216
215
|
utilities.verifyElementVisibilityState(highlightPage.textSelectionDropdownList(), 'notExist');
|
217
216
|
},
|
package/cypress/pages/index.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from './multipleSelectionPage';
|
2
|
+
export * from './singleSelectionPage';
|
2
3
|
export * from './createItemPage';
|
3
4
|
export * from './selectQuestionResourceToolPage';
|
4
5
|
export * from './dialogBoxBase';
|
@@ -28,6 +29,9 @@ export * from './audioPlayerPage';
|
|
28
29
|
export * from './highlightImagePage';
|
29
30
|
export * from './fillInTheGapsOverImageDropdownPage';
|
30
31
|
export * from './fillInTheGapsOverImageTextPage';
|
32
|
+
export * from './multipleSelectionGridPage';
|
33
|
+
export * from './singleSelectionGridPage';
|
34
|
+
export * from './feedbackScalePage';
|
31
35
|
export * from './itemPreviewPage';
|
32
36
|
export * from './studentViewPage';
|
33
37
|
export * from './gradingViewPage';
|
@@ -23,6 +23,7 @@ const selectors = {
|
|
23
23
|
...draggableOptionsContainer,
|
24
24
|
...studentResponseAndLayoutComponent,
|
25
25
|
...answerNumerationComponent,
|
26
|
+
...additionalSettingsPanel,
|
26
27
|
|
27
28
|
//Options section
|
28
29
|
addOptionButton: () => cy.get('.add-option-wrapper-cls .ngie-button').eq(1),
|
@@ -1038,7 +1039,7 @@ const steps = {
|
|
1038
1039
|
switch (placementOption) {
|
1039
1040
|
case 'Bottom':
|
1040
1041
|
listMatchingPage.questionPreviewWrapper()
|
1041
|
-
|
1042
|
+
.should('have.class', 'placement-bottom');
|
1042
1043
|
break;
|
1043
1044
|
case 'Top':
|
1044
1045
|
listMatchingPage.questionPreviewWrapper()
|
@@ -1108,7 +1109,7 @@ const steps = {
|
|
1108
1109
|
listMatchingPage.ResponseColumnHeaderInputField()
|
1109
1110
|
.clear();
|
1110
1111
|
},
|
1111
|
-
|
1112
|
+
|
1112
1113
|
verifyStemFieldErrorMessage: () => {
|
1113
1114
|
listMatchingPage.stemWrapper()
|
1114
1115
|
.each(($element) => {
|
@@ -1411,7 +1412,7 @@ const tests = {
|
|
1411
1412
|
listMatchingPage.minimumScoreIfAttemptedLabel()
|
1412
1413
|
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
1413
1414
|
listMatchingPage.rounddownScoreCheckboxLabel()
|
1414
|
-
.verifyCSS(css.color.
|
1415
|
+
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
1415
1416
|
});
|
1416
1417
|
|
1417
1418
|
it('Accessibility of \'Penalty Points\' and \'Minimum score awarded (if attempted)\' input field and \'Round down score\' checkbox', { tags: 'a11y' }, () => {
|
@@ -1479,7 +1480,7 @@ const tests = {
|
|
1479
1480
|
listMatchingPage.minimumScoreIfAttemptedLabel()
|
1480
1481
|
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
1481
1482
|
listMatchingPage.rounddownScoreCheckboxLabel()
|
1482
|
-
.verifyCSS(css.color.
|
1483
|
+
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semiboldF);
|
1483
1484
|
});
|
1484
1485
|
|
1485
1486
|
it('Accessibility of \'Points per response\', \'Penalty Points\' and \'Minimum score awarded (if attempted)\' input fields and \'Round down score\' checkbox', { tags: 'a11y' }, () => {
|