itemengine-cypress-automation 1.0.248 → 1.0.249-repoUpdated26thSept-7283964.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +0 -2
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/imageCanvasComponent.js +2 -4
- package/package.json +1 -1
@@ -38,7 +38,6 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
38
38
|
abortEarlySetup();
|
39
39
|
before(() => {
|
40
40
|
imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
|
41
|
-
cy.barsPreLoaderWait();
|
42
41
|
imageHighlightPage.steps.uploadFile('highlightImage.jpg');
|
43
42
|
imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
|
44
43
|
imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
|
@@ -66,7 +65,6 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
66
65
|
abortEarlySetup();
|
67
66
|
before(() => {
|
68
67
|
imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
|
69
|
-
cy.barsPreLoaderWait();
|
70
68
|
imageHighlightPage.steps.uploadFile('highlightImage.jpg');
|
71
69
|
imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
|
72
70
|
imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
|
@@ -116,22 +116,9 @@ 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 disappear', () => {
|
120
120
|
matchingPage.steps.focusInAndFocusOutOfPromptInputField(1);
|
121
|
-
|
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());
|
121
|
+
matchingPage.steps.verifyErrorMessageIsNotDisplayed();
|
135
122
|
});
|
136
123
|
|
137
124
|
it('When user enters text in question prompt input field then error message should disappear', () => {
|
@@ -1237,8 +1237,7 @@ 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
|
-
|
1241
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
|
1240
|
+
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
1242
1241
|
});
|
1243
1242
|
|
1244
1243
|
it('When gives an input to \'Answer\' input field, then error message should disappear', () => {
|
@@ -794,8 +794,7 @@ 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(), '
|
798
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), `Error: Please insert a ${response}.`);
|
797
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
799
798
|
});
|
800
799
|
|
801
800
|
it('When user adds response container, then error message should disappear', () => {
|
@@ -855,8 +854,7 @@ const tests = {
|
|
855
854
|
}
|
856
855
|
utilities.verifyElementCount(imageCanvasComponent.responseArea(), 0);
|
857
856
|
imageCanvasComponent.steps.verifyUndoButtonDisabled();
|
858
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
859
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), `Error: Please insert a ${response}.`);
|
857
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
860
858
|
});
|
861
859
|
|
862
860
|
it('When the user reaches the latest state by performing redo actions, the \'Redo\' button should get disabled and error message should disappear', () => {
|