itemengine-cypress-automation 1.0.272-cssUpdates12Dec-92bb2e0.0 → 1.0.273-cssUpdates12Dec-cecd1ee.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +6 -1
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/questionInstructionsComponent.js +5 -0
- package/cypress/pages/singleSelectionPage.js +2 -2
- package/package.json +1 -1
@@ -154,7 +154,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
154
154
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Eagle');
|
155
155
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
156
156
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
|
157
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), '
|
157
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'exist');
|
158
158
|
});
|
159
159
|
|
160
160
|
dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -480,7 +480,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
480
480
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
|
481
481
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(1, groupedOptions[1]);
|
482
482
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
|
483
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), '
|
483
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'exist');
|
484
484
|
});
|
485
485
|
|
486
486
|
dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -47,7 +47,7 @@ describe('Create item page - Drag and drop into categories: Header section and S
|
|
47
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
48
48
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
49
|
dragAndDropIntoCategoriesPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
50
|
-
dragAndDropIntoCategoriesPage.steps.
|
50
|
+
dragAndDropIntoCategoriesPage.steps.verifyOptionsInputFieldErrorMessageDoesNotExist(0);
|
51
51
|
dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
52
52
|
dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerErrorMessage();
|
53
53
|
});
|
@@ -51,7 +51,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
|
|
51
51
|
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 0), 'Error: Image is required.');
|
52
52
|
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 1), 'Error: Please insert a dropzone.');
|
53
53
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
54
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
54
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionsInputFieldErrorMessageDoesNotExist(0);
|
55
55
|
fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
56
56
|
fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorMessage();
|
57
57
|
});
|
@@ -151,7 +151,7 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
151
151
|
utilities.verifyCSS(utilities.getNthElement(multipleSelectionPage.optionsCheckboxWrapperPreviewTab(), 1), {
|
152
152
|
'background-color': css.color.defaultBackground,
|
153
153
|
'color': css.color.activeButtons,
|
154
|
-
'border': `
|
154
|
+
'border': `0px none ${css.color.activeComponentBorder}`
|
155
155
|
});
|
156
156
|
break;
|
157
157
|
case 'Correct answer view':
|
@@ -167,7 +167,8 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
167
167
|
}
|
168
168
|
});
|
169
169
|
|
170
|
-
|
170
|
+
//Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4738 is resolved
|
171
|
+
it.skip('Accessibility of preview tab', { tags: 'a11y' }, () => {
|
171
172
|
cy.checkAccessibility(multipleSelectionPage.questionInstructionsText().parents('[class*="ContentWrapper"]'));
|
172
173
|
});
|
173
174
|
});
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { dialogBoxBase } from "../../../pages";
|
2
2
|
import { singleSelectionPage } from "../../../pages/singleSelectionPage";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
import utilities from "../../../support/helpers/utilities";
|
4
5
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
5
6
|
|
6
7
|
describe('Create Item page - Single Selection: Header section and Saving question', () => {
|
@@ -34,11 +35,15 @@ describe('Create Item page - Single Selection: Header section and Saving questio
|
|
34
35
|
singleSelectionPage.tests.verifyCancelButton('single selection');
|
35
36
|
});
|
36
37
|
|
37
|
-
describe('Save Question button', () => {
|
38
|
+
describe.only('Save Question button', () => {
|
38
39
|
abortEarlySetup();
|
39
40
|
before(() => {
|
40
41
|
singleSelectionPage.steps.navigateToCreateQuestion('single selection');
|
41
42
|
cy.barsPreLoaderWait();
|
43
|
+
//Adding a temperory fix to wait for the options to load https://redmine.zeuslearning.com/issues/584236
|
44
|
+
// utilities.verifyElementCount(singleSelectionPage.optionWrapper(), 4);
|
45
|
+
// singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
46
|
+
// singleSelectionPage.steps.clearQuestionInstructionsInputField();
|
42
47
|
});
|
43
48
|
|
44
49
|
describe('Validation error messages', () => {
|
@@ -791,10 +791,10 @@ const tests = {
|
|
791
791
|
* @param {"text container"|"dropzone"} response value for the error message
|
792
792
|
*/
|
793
793
|
verifyInsertAndDeleteResponseAreaFunctionality: (response) => {
|
794
|
-
it(`When user clicks on close button for response container, then response container should be removed from canvas and error message should
|
794
|
+
it(`When user clicks on close button for response container, then response container should be removed from canvas and error message should be displayed`, () => {
|
795
795
|
imageCanvasComponent.steps.removeResponseArea(0);
|
796
796
|
utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaWrapper(), 'notExist');
|
797
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
797
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
798
798
|
});
|
799
799
|
|
800
800
|
it('When user adds response container, then error message should disappear', () => {
|
@@ -87,6 +87,11 @@ const steps = {
|
|
87
87
|
focusOutQuestionInstructionsInputField: () => {
|
88
88
|
questionInstructionsComponent.questionInstructionsInputField()
|
89
89
|
.blur();
|
90
|
+
},
|
91
|
+
|
92
|
+
clearQuestionInstructionsInputField: () => {
|
93
|
+
questionInstructionsComponent.questionInstructionsInputField()
|
94
|
+
.clear();
|
90
95
|
}
|
91
96
|
}
|
92
97
|
|
@@ -708,8 +708,8 @@ const tests = {
|
|
708
708
|
|
709
709
|
it('On deleting correct answer option(s), \'Error: Please set a correct answer.\' validation error message should be thrown along with an error icon on the \'Correct\' tab', () => {
|
710
710
|
singleSelectionPage.steps.deleteOption(1);
|
711
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
712
|
-
autoScoredSpecifyCorrectAnswerSection.steps.
|
711
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
712
|
+
autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
713
713
|
});
|
714
714
|
|
715
715
|
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|