itemengine-cypress-automation 1.0.299-minorUpdated7thFeb-2458641.0 → 1.0.301

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.
@@ -470,5 +470,42 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
470
470
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
471
471
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
472
472
  });
473
+
474
+ //https://weldnorthed.atlassian.net/browse/IEI-5159
475
+ it('When the user enters a equation using in \'Specify correct answer\' and the user enters the same equation then it should be treated as correct', () => {
476
+ textEntryMathPage.steps.switchToEditTab();
477
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
478
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
479
+ equationEditorFlyout.steps.clearAll();
480
+ textEntryMathPage.steps.enterTextInPreviewInputField('18+10=28');
481
+ equationEditorFlyout.steps.clickOnOkButton();
482
+ textEntryMathPage.steps.switchToPreviewTab();
483
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
484
+ textEntryMathPage.steps.enterTextInPreviewInputField('18+10=28');
485
+ equationEditorFlyout.steps.clickOnOkButton();
486
+ textEntryMathPage.steps.switchToGradingView();
487
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
488
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
489
+ });
490
+
491
+ it('When the user enters a equation using in \'Specify correct answer\' and the user enters incorrect equation it should be treated as correct', () => {
492
+ textEntryMathPage.steps.resetQuestionPreview();
493
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
494
+ textEntryMathPage.steps.enterTextInPreviewInputField('18+10=1');
495
+ equationEditorFlyout.steps.clickOnOkButton();
496
+ textEntryMathPage.steps.switchToGradingView();
497
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
498
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
499
+ });
500
+
501
+ it('When the user enters a equation using in \'Specify correct answer\' and the user enters incorrect equation it should be treated as correct', () => {
502
+ textEntryMathPage.steps.resetQuestionPreview();
503
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
504
+ textEntryMathPage.steps.enterTextInPreviewInputField('10+7=17');
505
+ equationEditorFlyout.steps.clickOnOkButton();
506
+ textEntryMathPage.steps.switchToGradingView();
507
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
508
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
509
+ });
473
510
  });
474
511
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.299-minorUpdated7thFeb-2458641.0",
3
+ "version": "1.0.301",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,6 +45,7 @@ function setCommandLineEnvArgs() {
45
45
  let theme = envArgs.theme ? `theme=${envArgs.theme}` : '';
46
46
  let tags;
47
47
  let fileConfig;
48
+ const questionType = envArgs.questionType ? `questionType=${envArgs.questionType}` : '';
48
49
  //let consoleErrors = envArgs.consoleErrors ? `consoleErrors=${envArgs.consoleErrors}` : '';
49
50
 
50
51
  console.log('ENV is:', env);
@@ -72,7 +73,7 @@ function setCommandLineEnvArgs() {
72
73
  tags = ''
73
74
  }
74
75
 
75
- return `--env ${fileConfig}` + (theme ? `,${theme}` : '') + (tags ? `,${tags}` : '')
76
+ return `--env ${fileConfig}` + (theme ? `,${theme}` : '') + (questionType ? `,${questionType}` : '') + (tags ? `,${tags}` : '')
76
77
  //return `--env ${fileConfig}` + (theme ? `,${theme}` : '') + (tags ? `,${tags}` : '') + (consoleErrors ? `,${consoleErrors}` : '')
77
78
  }
78
79