itemengine-cypress-automation 1.0.249-repoUpdated26thSept-7283964.0 → 1.0.249-repoUpdated26thSept-d6c4173.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/ImageHighlight/additionalSettingsBasic.js +2 -0
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
- package/cypress/pages/components/imageCanvasComponent.js +4 -2
- package/package.json +1 -1
@@ -38,6 +38,7 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
38
38
|
abortEarlySetup();
|
39
39
|
before(() => {
|
40
40
|
imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
|
41
|
+
cy.barsPreLoaderWait();
|
41
42
|
imageHighlightPage.steps.uploadFile('highlightImage.jpg');
|
42
43
|
imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
|
43
44
|
imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
|
@@ -65,6 +66,7 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
65
66
|
abortEarlySetup();
|
66
67
|
before(() => {
|
67
68
|
imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
|
69
|
+
cy.barsPreLoaderWait();
|
68
70
|
imageHighlightPage.steps.uploadFile('highlightImage.jpg');
|
69
71
|
imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
|
70
72
|
imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
|
@@ -116,9 +116,22 @@ describe('Create Item page - Matching : Question Instructions and prompt section
|
|
116
116
|
matchingPage.steps.verifyPromptContents(2);
|
117
117
|
});
|
118
118
|
|
119
|
-
it('When user focus in and out of any of the \'Prompt\' input field without typing anything, then an error message \'Error: Prompt is required\' error message should
|
119
|
+
it('When user focus in and out of any of the \'Prompt\' input field without typing anything, then an error message \'Error: Prompt is required\' error message should be displayed', () => {
|
120
120
|
matchingPage.steps.focusInAndFocusOutOfPromptInputField(1);
|
121
|
-
matchingPage.
|
121
|
+
utilities.verifyInnerText(matchingPage.errorMessage(), 'Error: Prompt is required');
|
122
|
+
utilities.verifyElementVisibilityState(matchingPage.errorMessage(), 'visible');
|
123
|
+
});
|
124
|
+
|
125
|
+
it('CSS of error message', { tags: 'css' }, () => {
|
126
|
+
utilities.verifyCSS(matchingPage.errorMessage(), {
|
127
|
+
'color': css.color.errorText,
|
128
|
+
'font-size': css.fontSize.small,
|
129
|
+
'font-weight': css.fontWeight.regular
|
130
|
+
});
|
131
|
+
});
|
132
|
+
|
133
|
+
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
134
|
+
cy.checkAccessibility(matchingPage.errorMessage());
|
122
135
|
});
|
123
136
|
|
124
137
|
it('When user enters text in question prompt input field then error message should disappear', () => {
|
@@ -1237,7 +1237,8 @@ const tests = {
|
|
1237
1237
|
|
1238
1238
|
it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should be displayed', () => {
|
1239
1239
|
fillInTheGapsTextCommonComponent.steps.focusInAndFocusOutOfResponseAnswerInputFieldSpecifyCorrectAnswer(0, 0);
|
1240
|
-
commonComponents.
|
1240
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
1241
|
+
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
|
1241
1242
|
});
|
1242
1243
|
|
1243
1244
|
it('When gives an input to \'Answer\' input field, then error message should disappear', () => {
|
@@ -794,7 +794,8 @@ const tests = {
|
|
794
794
|
it(`When user clicks on close button for response container, then response container should be removed from canvas and error message should not 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(), 'visible');
|
798
|
+
utilities.verifyInnerText(commonComponents.errorMessage(), `Error: Please insert a ${response}.`);
|
798
799
|
});
|
799
800
|
|
800
801
|
it('When user adds response container, then error message should disappear', () => {
|
@@ -854,7 +855,8 @@ const tests = {
|
|
854
855
|
}
|
855
856
|
utilities.verifyElementCount(imageCanvasComponent.responseArea(), 0);
|
856
857
|
imageCanvasComponent.steps.verifyUndoButtonDisabled();
|
857
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
858
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
859
|
+
utilities.verifyInnerText(commonComponents.errorMessage(), `Error: Please insert a ${response}.`);
|
858
860
|
});
|
859
861
|
|
860
862
|
it('When the user reaches the latest state by performing redo actions, the \'Redo\' button should get disabled and error message should disappear', () => {
|