itemengine-cypress-automation 1.0.578-IEI-7105-c0daa6d.0 → 1.0.579-IEI-7105-043279f.0
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/Matching/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -3
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +3 -11
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@ describe('Create Item page - Matching: Draggable options section', () => {
|
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
describe
|
|
113
|
+
describe('Standard options layout - Preview tab contents', () => {
|
|
114
114
|
abortEarlySetup();
|
|
115
115
|
before(() => {
|
|
116
116
|
matchingPage.steps.navigateToCreateQuestion('matching');
|
|
@@ -208,7 +208,7 @@ describe('Create Item page - Matching : Question Instructions and prompt section
|
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
describe
|
|
211
|
+
describe('Prompt - Preview tab section', () => {
|
|
212
212
|
abortEarlySetup();
|
|
213
213
|
before(() => {
|
|
214
214
|
cy.log('Navigating to Matching question type');
|
|
@@ -266,7 +266,7 @@ describe('Create Item page - Matching : Question Instructions and prompt section
|
|
|
266
266
|
matchingPage.steps.verifyPromptHeaderTextPreviewTab('Header');
|
|
267
267
|
});
|
|
268
268
|
|
|
269
|
-
it
|
|
269
|
+
it('When user clears text in prompt header input field then prompt header should be removed in preview tab', () => {
|
|
270
270
|
matchingPage.steps.switchToEditTab();
|
|
271
271
|
matchingPage.steps.clearAndFocusOutOfPromptHeaderInputField();
|
|
272
272
|
matchingPage.steps.switchToPreviewTab();
|
|
@@ -274,7 +274,7 @@ describe('Create Item page - Matching : Question Instructions and prompt section
|
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
if (imageExpandEnhancement === 'true') {
|
|
277
|
-
it
|
|
277
|
+
it('When user add large image in question instruction, user should be able to expand the image in preview tab', () => {
|
|
278
278
|
matchingPage.steps.switchToEditTab();
|
|
279
279
|
matchingPage.steps.clearPromptInputField(0);
|
|
280
280
|
matchingPage.steps.focusInPromptInputField(0);
|
|
@@ -21,7 +21,7 @@ describe('Create Item page - Number line label : Question instructions and label
|
|
|
21
21
|
numberLineLabelPage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
describe
|
|
24
|
+
describe('Question instructions input field - Preview tab', () => {
|
|
25
25
|
abortEarlySetup();
|
|
26
26
|
before(() => {
|
|
27
27
|
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
|
@@ -454,14 +454,7 @@ const tests = {
|
|
|
454
454
|
createQuestionBasePage.steps.switchToPreviewTab();
|
|
455
455
|
draggableOptionContainer.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(optionsAfterDeleting);
|
|
456
456
|
});
|
|
457
|
-
it
|
|
458
|
-
// const imagePath = 'images/largeImage.png';
|
|
459
|
-
// cy.log('Pre-step : Switching to \'Edit\' tab')
|
|
460
|
-
// createQuestionBasePage.steps.switchToEditTab();
|
|
461
|
-
// optionsWrapperComponent.steps.addOption();
|
|
462
|
-
// optionsWrapperComponent.steps.uploadImageInOption(2, imagePath);
|
|
463
|
-
// createQuestionBasePage.steps.switchToPreviewTab();
|
|
464
|
-
// utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.optionContainerItemListPreviewTab().find('svg'), 2), 'visible');
|
|
457
|
+
it('When user add large image in option, the option container should have expand icon', () => {
|
|
465
458
|
createQuestionBasePage.steps.switchToEditTab();
|
|
466
459
|
optionsWrapperComponent.steps.addOption();
|
|
467
460
|
optionsWrapperComponent.steps.focusInOptionsInputField(2)
|
|
@@ -470,10 +463,9 @@ const tests = {
|
|
|
470
463
|
createQuestionBasePage.steps.switchToPreviewTab();
|
|
471
464
|
optionsWrapperComponent.steps.verifyExpandIconInImage();
|
|
472
465
|
optionsWrapperComponent.steps.clickExpandIconInImage();
|
|
473
|
-
cy.wait(1000); //Added wait as this is failing due to page updating
|
|
474
466
|
utilities.verifyInnerText(optionsWrapperComponent.closeImagePopup(), 'Close');
|
|
475
|
-
|
|
476
|
-
|
|
467
|
+
optionsWrapperComponent.steps.closeImagePopup();
|
|
468
|
+
optionsWrapperComponent.steps.verifyExpandIconInImage();
|
|
477
469
|
});
|
|
478
470
|
},
|
|
479
471
|
|