itemengine-cypress-automation 1.0.178 → 1.0.180-essayResponseLazyLoadingFix-f323e32.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -168,6 +168,26 @@ Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
|
|
168
168
|
cy.lazyLoadPreviewQuestions(count, retries - 1)
|
169
169
|
};
|
170
170
|
cy.log('All question parts loaded');
|
171
|
+
iePage.questionAndResourceWrapper()
|
172
|
+
.each(($question, index) => {
|
173
|
+
if ($question[0].innerHTML.includes('InlineLoaderstyles__LoaderDiv')) {
|
174
|
+
iePage.essayResponseLoader()
|
175
|
+
.parents('[class*="InlineLoaderstyles__LoaderDiv"]')
|
176
|
+
.then(($element) => {
|
177
|
+
const domElement = $element.get(0);
|
178
|
+
const computedStyle = window.getComputedStyle(domElement);
|
179
|
+
const displayPropertyValue = computedStyle.getPropertyValue('display');
|
180
|
+
if (displayPropertyValue === 'block') {
|
181
|
+
iePage.questionAndResourceWrapper()
|
182
|
+
.eq(index)
|
183
|
+
.scrollIntoView();
|
184
|
+
iePage.essayResponseLoader()
|
185
|
+
.should('not.be.visible');
|
186
|
+
cy.log('Essay response loaders found')
|
187
|
+
}
|
188
|
+
});
|
189
|
+
}
|
190
|
+
});
|
171
191
|
});
|
172
192
|
iePage.barsPreloader()
|
173
193
|
.should('not.exist');
|
@@ -60,6 +60,8 @@ const extractLrnGradingData = (currQuestionType, lrnGradingDataArr, index) => {
|
|
60
60
|
case lrnQuestionTypesENUM.shortTextResponse: return extractLrnQuestionData.shortTextResponseGrading(lrnGradingDataArr, index);
|
61
61
|
case lrnQuestionTypesENUM.uploadResponse: return cy.log('Manually Graded Question Type');
|
62
62
|
case lrnQuestionTypesENUM.figDragAndDrop: return extractLrnQuestionData.figDragAndDropGrading(lrnGradingDataArr, index);
|
63
|
+
case lrnQuestionTypesENUM.essayResponse: return cy.log('Manually Graded Question Type');
|
64
|
+
case lrnQuestionTypesENUM.essayResponseBasic: return cy.log('Manually Graded Question Type');
|
63
65
|
case lrnQuestionTypesENUM.contentBlocks: return cy.log('Resource and tool');
|
64
66
|
default: throw new Error('Invalid lrn question type');
|
65
67
|
}
|
@@ -76,6 +78,8 @@ const verifyIeGradingData = (questionType, questionData, index) => {
|
|
76
78
|
case 'uploadResponse': return cy.log('Manually Graded Question Type');
|
77
79
|
case 'figDragAndDrop': return verifyIeQuestionData.figDragAndDropGrading(questionData, index);
|
78
80
|
case 'contentBlocks': return cy.log('Resource and tool');
|
81
|
+
case 'essayResponse': return cy.log('Manually Graded Question Type');
|
82
|
+
case 'essayResponseBasic': return cy.log('Manually Graded Question Type');
|
79
83
|
default: throw new Error('Invalid ngie question type');
|
80
84
|
}
|
81
85
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.180-essayResponseLazyLoadingFix-f323e32.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|