itemengine-cypress-automation 1.0.590-IEI-7054-19ec80b.0 → 1.0.590
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.
|
@@ -506,7 +506,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
|
506
506
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(2);
|
|
507
507
|
listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
|
|
508
508
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
509
|
-
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct
|
|
509
|
+
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
|
510
510
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed'], ['2', '3', '4', '1']);
|
|
511
511
|
};
|
|
512
512
|
});
|
|
@@ -713,7 +713,13 @@ const steps = {
|
|
|
713
713
|
* @param {string} fileSize size of the file being uploaded
|
|
714
714
|
*/
|
|
715
715
|
verifyUploadingFilesMessage: (fileName, fileSize) => {
|
|
716
|
-
|
|
716
|
+
drawingResponsePage.insertImageContainer()
|
|
717
|
+
.should('be.visible')
|
|
718
|
+
.and(($el) => {
|
|
719
|
+
const text = $el.text();
|
|
720
|
+
expect(text).to.include('Uploading files. Please wait...');
|
|
721
|
+
expect(text).to.include(`${fileName} - ${fileSize}`);
|
|
722
|
+
});
|
|
717
723
|
},
|
|
718
724
|
|
|
719
725
|
/**
|
|
@@ -32,7 +32,7 @@ const selectors = {
|
|
|
32
32
|
dropzoneSettingsSetForAllDropzoneLabel: () => cy.get('[data-ngie-testid="set-for-all-dropzones-checkbox"] [class*="label"]'),
|
|
33
33
|
dropzoneSettingsSetForAllDropzoneCheckbox: () => cy.get('[data-ngie-testid="set-for-all-dropzones-checkbox"] input'),
|
|
34
34
|
//Specify correct answer section
|
|
35
|
-
dropzoneSpecifyCorrectAnswerSection: () => cy.get('
|
|
35
|
+
dropzoneSpecifyCorrectAnswerSection: () => cy.get('.authoring-droppable-hotspot-wrapper'),
|
|
36
36
|
optionContainerOptionsSpecifyCorrectAnswerSection: () => cy.get('.draggable-selected-item'),
|
|
37
37
|
optionsContainerSpecifyCorrectAnswerSection: () => cy.get('.draggable-wrapper'),
|
|
38
38
|
addAlternateButtonSpecifyCorrectAnswer: () => cy.get('.alternate-option-btn-wrapper button'),
|
|
@@ -96,7 +96,8 @@ const selectors = {
|
|
|
96
96
|
dropzoneNumerationBox: () => cy.get('.answer-numeration-number-box'),
|
|
97
97
|
correctAnswerResponseWrapperWithoutEnumeration: () => cy.get('.dnd-correct-answer-wrapper [class*="ResponseDropZonestyles__ResponseWrapper"]'),
|
|
98
98
|
responseAreaPreviewTab: () => cy.get('[class*="ResponseDropZonestyles__ResponseWrapper"] .cell'),
|
|
99
|
-
droppedOptionPreviewTab: () => cy.get('.response-dropped')
|
|
99
|
+
droppedOptionPreviewTab: () => cy.get('.response-dropped'),
|
|
100
|
+
correctAnswersOptions: () => cy.get('[class*="ResponseComponentstyles__AnswerCell"] .question-text-wrapper'),
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
const steps = {
|
|
@@ -1225,6 +1226,16 @@ const steps = {
|
|
|
1225
1226
|
'border-style': styleName
|
|
1226
1227
|
});
|
|
1227
1228
|
},
|
|
1229
|
+
|
|
1230
|
+
verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount: (correctAnswerArray) => {
|
|
1231
|
+
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.correctAnswersOptions(), correctAnswerArray.length);
|
|
1232
|
+
correctAnswerArray.forEach((correctAnswer, index) => {
|
|
1233
|
+
utilities.verifyTextContent(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.dropzoneNumerationBox(), index), index + 1);
|
|
1234
|
+
correctAnswer.forEach((answerOption) => {
|
|
1235
|
+
utilities.verifyTextContent(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.correctAnswersOptions(), index), answerOption);
|
|
1236
|
+
});
|
|
1237
|
+
});
|
|
1238
|
+
},
|
|
1228
1239
|
}
|
|
1229
1240
|
|
|
1230
1241
|
const tests = {
|