itemengine-cypress-automation 1.0.195-15thMayUpdates-cc82cc7.0 → 1.0.196-drawingResponseMigration-b8f7823.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.
@@ -63,6 +63,7 @@ const extractLrnGradingData = (currQuestionType, lrnGradingDataArr, index) => {
|
|
63
63
|
case lrnQuestionTypesENUM.essayResponse: return cy.log('Manually Graded Question Type');
|
64
64
|
case lrnQuestionTypesENUM.essayResponseBasic: return cy.log('Manually Graded Question Type');
|
65
65
|
case lrnQuestionTypesENUM.contentBlocks: return cy.log('Resource and tool');
|
66
|
+
case lrnQuestionTypesENUM.drawingResponse: return cy.log('Manually Graded Question Type');
|
66
67
|
default: throw new Error('Invalid lrn question type');
|
67
68
|
}
|
68
69
|
}
|
@@ -326,7 +326,7 @@ export const verifyIeQuestionData = {
|
|
326
326
|
},
|
327
327
|
|
328
328
|
drawingResponse: (expectedQuestionData, index) => {
|
329
|
-
cy.get('[class*="DrawingResponsePreviewstyles__Question"]')
|
329
|
+
cy.get('[class*="DrawingResponsePreviewstyles__Question-"]')
|
330
330
|
.eq(index)
|
331
331
|
.within(() => {
|
332
332
|
iePage.steps.verifyQuestionInstructions(expectedQuestionData);
|
@@ -339,7 +339,8 @@ export const verifyIeQuestionData = {
|
|
339
339
|
let ariaLabel = $button[0].attributes["aria-label"].nodeValue;
|
340
340
|
ieButtonsActual.push(ariaLabel);
|
341
341
|
}).then(() => {
|
342
|
-
|
342
|
+
const ieButtonsFiltered = ieButtonsExpected.filter(label => label !== 'select');
|
343
|
+
expect(ieButtonsFiltered).to.have.deep.members(ieButtonsExpected);
|
343
344
|
});
|
344
345
|
iePage.drawingResponseLowerCanvas()
|
345
346
|
.then(($canvas) => {
|