itemengine-cypress-automation 1.0.195-15thMayUpdates-cc82cc7.0 → 1.0.196-drawingResponseMigration-b8f7823.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- expect(ieButtonsActual).to.have.deep.members(ieButtonsExpected);
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.195-15thMayUpdates-cc82cc7.0",
3
+ "version": "1.0.196-drawingResponseMigration-b8f7823.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {