itemengine-cypress-automation 1.0.218-numberLineFixes-382e88a.0 → 1.0.218
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -2
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +4 -2
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +1 -1
- package/cypress/pages/chartsLinePage.js +10 -0
- package/cypress/pages/components/additionalSettingsPanel.js +0 -1
- package/cypress/pages/components/createQuestionBasePage.js +1 -2
- package/cypress/pages/components/opacityComponent.js +5 -2
- package/cypress/pages/components/optionsWrapperComponent.js +11 -2
- package/cypress/pages/components/questionInputFieldComponent.js +3 -0
- package/cypress/pages/components/questionInstructionsComponent.js +2 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +4 -4
- package/cypress/pages/drawingResponsePage.js +2 -1
- package/cypress/pages/feedbackScalePage.js +2 -1
- package/package.json +2 -2
@@ -90,7 +90,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
90
90
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 0), 'Point 1');
|
91
91
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 1), 'Point 2');
|
92
92
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 2), 'Point 3');
|
93
|
-
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), '
|
93
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), 'Point 4');
|
94
94
|
});
|
95
95
|
|
96
96
|
it('The graph max value should be as set in the Max Y input field and it should affect the chart division', () => {
|
@@ -264,7 +264,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
264
264
|
chartsLinePage.steps.addBarOrPointInChartInPreviewTab();
|
265
265
|
utilities.verifyElementCount(chartsLinePage.previewTabPoint(), 4);
|
266
266
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 3, value: 0, range: 20 });
|
267
|
-
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), '
|
267
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), 'Point 4');
|
268
268
|
});
|
269
269
|
|
270
270
|
it('CSS of newly added point in preview tab', { tags: 'css' }, () => {
|
@@ -418,7 +418,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
418
418
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
419
419
|
});
|
420
420
|
|
421
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
421
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
422
422
|
cy.log('Pre-step: Reset the chart');
|
423
423
|
chartsLinePage.steps.clickOnResetButtonPreviewTab();
|
424
424
|
chartsLinePage.steps.confirmReset();
|
@@ -454,7 +454,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
454
454
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
455
455
|
});
|
456
456
|
|
457
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
457
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
458
458
|
cy.log('Reset the chart');
|
459
459
|
chartsLinePage.steps.clickOnResetButtonPreviewTab();
|
460
460
|
chartsLinePage.steps.confirmReset();
|
@@ -489,7 +489,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
489
489
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
490
490
|
});
|
491
491
|
|
492
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
492
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
493
493
|
cy.log('Reset the chart');
|
494
494
|
chartsLinePage.steps.clickOnResetButtonPreviewTab();
|
495
495
|
chartsLinePage.steps.confirmReset();
|
@@ -525,12 +525,12 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
525
525
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
526
526
|
});
|
527
527
|
|
528
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
528
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
529
529
|
cy.log('Reset the chart');
|
530
530
|
chartsLinePage.steps.clickOnResetButtonPreviewTab();
|
531
531
|
chartsLinePage.steps.confirmReset();
|
532
|
-
chartsLinePage.steps.
|
533
|
-
chartsLinePage.steps.
|
532
|
+
chartsLinePage.steps.hoverAndDeletePointInPreviewTab(0);
|
533
|
+
chartsLinePage.steps.hoverAndDeletePointInPreviewTab(0);
|
534
534
|
chartsLinePage.steps.clickOnUndoButtonPreviewTab();
|
535
535
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
536
536
|
});
|
@@ -574,7 +574,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
574
574
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 0), 'Point 1');
|
575
575
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 1), 'Point 2');
|
576
576
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 2), 'Point 3');
|
577
|
-
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), '
|
577
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), 'Point 4');
|
578
578
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
579
579
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 10 });
|
580
580
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 3, range: 10 });
|
@@ -102,6 +102,8 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
102
102
|
it('When the user selects the \'Equation editor\' formatting option, the \'Equation editor\' section should be displayed below the formatting options. On deselecting \'Equation editor\' formatting option, \'Equation editor\' section should disappear', () => {
|
103
103
|
cy.log('Switching to edit tab')
|
104
104
|
essayResponsePage.steps.switchToEditTab();
|
105
|
+
//Need to remove line 106 once https://redmine.zeuslearning.com/issues/574985 is resolved
|
106
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
105
107
|
essayResponsePage.steps.selectCustomizedFormattingOption(['Equation Editor']);
|
106
108
|
utilities.verifyElementVisibilityState(essayResponsePage.equationEditorSectionCategories(), 'visible');
|
107
109
|
essayResponsePage.steps.deselectCustomizedFormattingOption(['Equation Editor']);
|
@@ -21,7 +21,6 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
21
21
|
cy.barsPreLoaderWait();
|
22
22
|
essayResponsePage.steps.allotPoints(10);
|
23
23
|
essayResponsePage.steps.addTextInQuestionInstructionsInputField('Please write a short essay in the response field displayed below');
|
24
|
-
cy.wait(500);
|
25
24
|
essayResponsePage.steps.clickOnSaveQuestionButton();
|
26
25
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
27
26
|
//Global variable issue, not working inside before
|
@@ -83,7 +82,6 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
83
82
|
cy.barsPreLoaderWait();
|
84
83
|
essayResponsePage.steps.allotPoints(10);
|
85
84
|
essayResponsePage.steps.addTextInQuestionInstructionsInputField('Please write a short essay in the response field displayed below');
|
86
|
-
cy.wait(500);
|
87
85
|
essayResponsePage.steps.clickOnSaveQuestionButton();
|
88
86
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
89
87
|
//Global variable issue, not working inside before
|
@@ -144,7 +144,6 @@ describe('Create item page: Feedback scale - Preview tab contents in all views f
|
|
144
144
|
it('The user should be able to add comment in the comments input field', () => {
|
145
145
|
feedbackScalePage.steps.enterTextInCommentInputField('Excellent worksheet');
|
146
146
|
feedbackScalePage.steps.verifyTextInCommentInputField('Excellent worksheet');
|
147
|
-
cy.wait(500);
|
148
147
|
});
|
149
148
|
} else {
|
150
149
|
it('The submitted feedback button should be in selected state', () => {
|
@@ -204,7 +204,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
204
204
|
fillInTheGapsDragAndDropPage.steps.allotPoints(5);
|
205
205
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
206
206
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Flower': 1, 'Seed': 2 });
|
207
|
-
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7.
|
207
|
+
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7.6667, 23);
|
208
208
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
209
209
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
210
210
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -204,7 +204,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
204
204
|
fillInTheGapsDragAndDropPage.steps.allotPoints(23);
|
205
205
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
206
206
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Stem': 1, 'Leaves': 2 });
|
207
|
-
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7.
|
207
|
+
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7.6667, 23);
|
208
208
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
209
209
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
210
210
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -125,7 +125,8 @@ describe('Create Item page - Fill in the gaps with drag and drop: Draggable opti
|
|
125
125
|
cy.log('Pre step: Set options in group 2 tab, then add new group');
|
126
126
|
fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(0, 'option 3');
|
127
127
|
fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(1, 'option 4');
|
128
|
-
fillInTheGapsDragAndDropPage.steps.addGroup(
|
128
|
+
fillInTheGapsDragAndDropPage.steps.addGroup();
|
129
|
+
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.groupTab(), 3);
|
129
130
|
});
|
130
131
|
|
131
132
|
it('User should be able to delete a group by clicking on the \'Close\' icon button alongside group tab and the name of the group tabs should get updated accordingly', () => {
|
@@ -63,7 +63,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Minimum scorin
|
|
63
63
|
|
64
64
|
it('When the user adds a new dropzone, then \'points for each incorrect option\' should get updated accordingly', () => {
|
65
65
|
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
66
|
-
fillInTheGapsDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.
|
66
|
+
fillInTheGapsDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.6667);
|
67
67
|
});
|
68
68
|
|
69
69
|
it('When the user deletes a dropzone, then \'points for each incorrect option\' should get updated accordingly', () => {
|
@@ -454,7 +454,8 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
454
454
|
.verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
|
455
455
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
456
456
|
'color': css.color.text,
|
457
|
-
|
457
|
+
//Remove this comment once https://redmine.zeuslearning.com/issues/573049 is resolved
|
458
|
+
// 'border-bottom-color': css.color.correctAnswer
|
458
459
|
});
|
459
460
|
});
|
460
461
|
|
@@ -472,7 +473,8 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
472
473
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
473
474
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
474
475
|
'color': css.color.text,
|
475
|
-
|
476
|
+
//Remove this comment once https://redmine.zeuslearning.com/issues/573049 is resolved
|
477
|
+
// 'border-bottom-color': css.color.incorrectAnswer
|
476
478
|
});
|
477
479
|
});
|
478
480
|
|
@@ -23,7 +23,6 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
23
23
|
cy.barsPreLoaderWait();
|
24
24
|
videoResponsePage.steps.allotPoints(10);
|
25
25
|
videoResponsePage.steps.addTextInQuestionInstructionsInputField('Record a video');
|
26
|
-
cy.wait(500);
|
27
26
|
videoResponsePage.steps.clickOnSaveQuestionButton();
|
28
27
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
29
28
|
//Global variable issue, not working inside before
|
@@ -154,7 +153,6 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
154
153
|
cy.barsPreLoaderWait();
|
155
154
|
videoResponsePage.steps.allotPoints(10);
|
156
155
|
videoResponsePage.steps.addTextInQuestionInstructionsInputField('Record a video');
|
157
|
-
cy.wait(500);
|
158
156
|
videoResponsePage.steps.clickOnSaveQuestionButton();
|
159
157
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
160
158
|
//Global variable issue, not working inside before
|
@@ -167,7 +167,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
167
167
|
it('When the user updates the tolerance/threshold value in edit tab then tolerance value should get updated in preview tab and when user attempts the question correctly by setting dots in the dot column as per tolerance range, then user should be awarded full points in preview tab and switching to grading view, correct dot columns should have correct icon and status message \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
168
168
|
chartsDotPlotPage.steps.switchToEditTab();
|
169
169
|
chartsDotPlotPage.steps.setToleranceThresholdValue(2);
|
170
|
-
|
170
|
+
|
171
171
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
172
172
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
173
173
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
@@ -481,6 +481,16 @@ const steps = {
|
|
481
481
|
utilities.triggerMouseout(utilities.getNthElement(chartsLinePage.specifyCorrectAnswerPoint(), pointIndex));
|
482
482
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.specifyCorrectAnswerPointLabel(), pointIndex), pointLabel);
|
483
483
|
},
|
484
|
+
|
485
|
+
/**
|
486
|
+
* @description delete point label
|
487
|
+
* @param {number} pointIndex Index of the point to be deleted
|
488
|
+
*/
|
489
|
+
hoverAndDeletePointInPreviewTab: (pointIndex) => {
|
490
|
+
utilities.triggerMouseover(utilities.getNthElement(chartsLinePage.previewTabPoint(), pointIndex));
|
491
|
+
chartsLinePage.barAndPointTooltipDeleteButton()
|
492
|
+
.click();
|
493
|
+
}
|
484
494
|
}
|
485
495
|
|
486
496
|
const tests = {
|
@@ -170,7 +170,6 @@ const tests = {
|
|
170
170
|
it(`Clicking on \'Font size\' dropdown should open a list of ${Object.keys(fontSizes).length} options - ${Object.keys(fontSizes).join(',')}`, () => {
|
171
171
|
commonComponents.steps.verifyDropdownIsCollapsed();
|
172
172
|
additionalSettingsPanel.steps.expandFontSizeDropdown();
|
173
|
-
cy.wait(200)
|
174
173
|
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
|
175
174
|
Object.keys(fontSizes).forEach((size, index) => {
|
176
175
|
utilities.verifyInnerText(utilities.getNthElement(additionalSettingsPanel.fontSizeListOptionLabels(), index), size);
|
@@ -39,7 +39,7 @@ const steps = {
|
|
39
39
|
},
|
40
40
|
|
41
41
|
switchToPreviewTab: () => {
|
42
|
-
cy.wait(
|
42
|
+
cy.wait(1000);
|
43
43
|
createQuestionBasePage.previewTab()
|
44
44
|
.click()
|
45
45
|
.should('have.attr', 'aria-selected', 'true');
|
@@ -76,7 +76,6 @@ const steps = {
|
|
76
76
|
},
|
77
77
|
|
78
78
|
clickOnSaveQuestionButton: () => {
|
79
|
-
cy.wait(500);
|
80
79
|
createQuestionBasePage.saveQuestionButton()
|
81
80
|
.click();
|
82
81
|
},
|
@@ -46,8 +46,11 @@ const steps = {
|
|
46
46
|
*/
|
47
47
|
enterInputToOpacityInputField: (value) => {
|
48
48
|
opacityComponent.opacityInputField()
|
49
|
-
.clear()
|
50
|
-
|
49
|
+
.clear();
|
50
|
+
opacityComponent.opacityInputField()
|
51
|
+
.type(value);
|
52
|
+
opacityComponent.opacityInputField()
|
53
|
+
.click()
|
51
54
|
.blur();
|
52
55
|
opacityComponent.opacityInputField()
|
53
56
|
.should('have.value', value);
|
@@ -219,8 +219,14 @@ const steps = {
|
|
219
219
|
.within(() => {
|
220
220
|
optionsWrapperComponent.optionsInputField()
|
221
221
|
.eq(index)
|
222
|
-
.clear()
|
223
|
-
|
222
|
+
.clear();
|
223
|
+
optionsWrapperComponent.optionsInputField()
|
224
|
+
.eq(index)
|
225
|
+
.type(textContent, { delay: 500 });
|
226
|
+
optionsWrapperComponent.optionsInputField()
|
227
|
+
.eq(index)
|
228
|
+
.click()
|
229
|
+
.blur();
|
224
230
|
});
|
225
231
|
},
|
226
232
|
|
@@ -234,6 +240,9 @@ const steps = {
|
|
234
240
|
optionsWrapperComponent.optionsInputField()
|
235
241
|
.eq(index)
|
236
242
|
.type(textContent)
|
243
|
+
optionsWrapperComponent.optionsInputField()
|
244
|
+
.eq(index)
|
245
|
+
.click()
|
237
246
|
.blur();
|
238
247
|
});
|
239
248
|
},
|
@@ -53,6 +53,7 @@ const steps = {
|
|
53
53
|
addInputToQuestionInputField: (textInput) => {
|
54
54
|
questionInputFieldComponent.questionInputField()
|
55
55
|
.type(textInput);
|
56
|
+
cy.wait(1000);
|
56
57
|
},
|
57
58
|
|
58
59
|
clearQuestionInputField: () => {
|
@@ -71,6 +72,7 @@ const steps = {
|
|
71
72
|
questionInputFieldComponent.steps.focusInQuestionInputField();
|
72
73
|
questionInputFieldComponent.addResponseAreaButton()
|
73
74
|
.click();
|
75
|
+
cy.wait(1000);
|
74
76
|
},
|
75
77
|
|
76
78
|
verifyQuestionInputFieldPlaceholder: () => {
|
@@ -86,6 +88,7 @@ const steps = {
|
|
86
88
|
clickOnAddResponseAreaButton: () => {
|
87
89
|
questionInputFieldComponent.addResponseAreaButton()
|
88
90
|
.click();
|
91
|
+
cy.wait(1000);
|
89
92
|
},
|
90
93
|
|
91
94
|
verifyResponseAreaButtonDisabled: () => {
|
@@ -15,6 +15,7 @@ const steps = {
|
|
15
15
|
questionInstructionsComponent.questionInstructionsInputField()
|
16
16
|
.type('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
17
17
|
.blur();
|
18
|
+
cy.wait(1000)
|
18
19
|
questionInstructionsComponent.questionInstructionsInputField()
|
19
20
|
.should('have.text', 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
20
21
|
},
|
@@ -48,6 +49,7 @@ const steps = {
|
|
48
49
|
questionInstructionsComponent.questionInstructionsInputField()
|
49
50
|
.type(text)
|
50
51
|
.blur();
|
52
|
+
cy.wait(1000);
|
51
53
|
questionInstructionsComponent.questionInstructionsInputField()
|
52
54
|
.should('have.text', text);
|
53
55
|
},
|
@@ -42,13 +42,13 @@ const steps = {
|
|
42
42
|
.clear();
|
43
43
|
scoringSectionBaseEditTab.pointsInputField()
|
44
44
|
.type(`${points}`);
|
45
|
+
cy.wait(1000);
|
45
46
|
scoringSectionBaseEditTab.pointsInputField()
|
46
47
|
.blur();
|
47
48
|
scoringSectionBaseEditTab.pointsInputField()
|
48
49
|
.should('have.value', points);
|
49
50
|
scoringSectionBaseEditTab.pointsInputField()
|
50
|
-
.
|
51
|
-
scoringSectionBaseEditTab.pointsInputField()
|
51
|
+
.click()
|
52
52
|
.blur();
|
53
53
|
},
|
54
54
|
|
@@ -89,11 +89,11 @@ const steps = {
|
|
89
89
|
.clear()
|
90
90
|
scoringSectionBaseEditTab.minimumPointsInputField()
|
91
91
|
.type(`${points}`)
|
92
|
+
cy.wait(1000)
|
92
93
|
scoringSectionBaseEditTab.minimumPointsInputField()
|
93
94
|
.should('have.value', points);
|
94
95
|
scoringSectionBaseEditTab.minimumPointsInputField()
|
95
|
-
.click()
|
96
|
-
scoringSectionBaseEditTab.minimumPointsInputField()
|
96
|
+
.click()
|
97
97
|
.blur();
|
98
98
|
},
|
99
99
|
|
@@ -71,6 +71,7 @@ const selectors = {
|
|
71
71
|
},
|
72
72
|
previewTabToolbarOptionName: () => cy.get('[class*="tool-name"]:visible'),
|
73
73
|
previewTabSecondaryOptionPopup: () => cy.get('.edit-question-preview-wrapper .drawing-tool-options__options'),
|
74
|
+
previewTabSecondaryPopup: () => cy.get('.drawing-tool-options__options:visible'),
|
74
75
|
previewTabSecondaryOptionPopupTitle: () => cy.get('.edit-question-preview-wrapper .drawing-tool-options__options .drawing-tool-options__options__label'),
|
75
76
|
previewTabSecondaryOptionPopupOptions: () => cy.get('.drawing-tool-options__options .drawing-tool-options__options__options-list__button'),
|
76
77
|
previewTabColorPickerLabel: () => cy.get('.drawing-tool-color-picker__label'),
|
@@ -98,7 +99,7 @@ const selectors = {
|
|
98
99
|
|
99
100
|
//Characters popup
|
100
101
|
charactersPopupTitle: () => cy.get('[class*="characters__title-container"]'),
|
101
|
-
charactersPopupCloseButton: () => cy.get('[class*="
|
102
|
+
charactersPopupCloseButton: () => cy.get('[class*="DrawingToolOptionsstyled__ButtonWrapper"]'),
|
102
103
|
charactersPopupCategoryTitle: () => cy.get('[class*="characters__container"] [class*="options__characters__title"]'),
|
103
104
|
charactersPopupCharactersCategoryWrapper: () => cy.get('[class*="characters__characters-wrapper"]'),
|
104
105
|
charactersPopupCharacterSymbol: () => cy.get('[class*="characters__button"]'),
|
@@ -670,7 +670,8 @@ const steps = {
|
|
670
670
|
*/
|
671
671
|
enterTextInCommentInputField: (text) => {
|
672
672
|
feedbackScalePage.commentInputField()
|
673
|
-
.type(text)
|
673
|
+
.type(text);
|
674
|
+
cy.wait(1000)
|
674
675
|
feedbackScalePage.commentInputField()
|
675
676
|
.click();
|
676
677
|
feedbackScalePage.commentInputField()
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.218
|
3
|
+
"version": "1.0.218",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|