itemengine-cypress-automation 1.0.303-IEI-5292-a8d442b.0 → 1.0.304-IEI-5343-thinksphere-pipeline-setup-62e12a2.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.
package/Dockerfile CHANGED
@@ -16,6 +16,7 @@ RUN chmod +x ./deploy/e2e/run.sh
16
16
  RUN chmod +x ./deploy/smoke/run.sh
17
17
  RUN chmod +x ./deploy/migration/run.sh
18
18
  RUN chmod +x ./deploy/essayQuestion/run.sh
19
+ RUN chmod +x ./deploy/thinkSphere/run.sh
19
20
 
20
21
  RUN npm ci
21
22
 
@@ -108,8 +108,9 @@ describe('Create item page - Multiple selection: Preview contents', () => {
108
108
  });
109
109
  } else {
110
110
  it(`The correct options should have correct icons besides them`, () => {
111
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
112
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
111
+ // Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
112
+ // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
113
+ // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
113
114
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
114
115
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
115
116
  });
@@ -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
  });
@@ -0,0 +1,17 @@
1
+ import { rulerPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Dummy test for setting up pipeline Create question page - Ruler resource type', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Header section contents', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ rulerPage.steps.navigateToCreateResource('ruler');
13
+ });
14
+
15
+ rulerPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Ruler');
16
+ });
17
+ });
@@ -37,7 +37,7 @@ const selectors = {
37
37
  noneOptionNumeration: () => cy.get('.no-numeration-div'),
38
38
  //correct answer section
39
39
  correctAnswersLabel: () => cy.get('[class*="question-preview-wrapper"] [class*="CorrectAnswerLabel"]'),
40
- correctAnswerSectionWrapper: () => cy.get('[class*="question-preview-wrapper"] .mcq-radio-control.mcq-answer-checked').eq(0),
40
+ correctAnswerSectionWrapper: () => cy.get('[class*="question-preview-wrapper"] .mcq-radio-control.mcq-answer-checked').eq(1),
41
41
  optionWrapperCorrectAnswerSection: () => cy.get('.radio-option-wrapper'),
42
42
  correctIncorrectAnswerLabel: () => cy.get('[class*="style"][class*="__Status"]'),
43
43
  answerStatusBanner: () => cy.get('[class*="StatusContainer"]'),
@@ -0,0 +1,30 @@
1
+ global:
2
+ team: itemengine
3
+ name: item-engine-ui-think-sphere
4
+ type: integration_test
5
+
6
+ variables:
7
+ START_TIME: "$(date +%s)"
8
+
9
+ deployment:
10
+ job:
11
+ backoffLimit: 25
12
+ activeDeadlineSeconds: 7200
13
+ parallelism: 7
14
+ completions: 7
15
+
16
+ image:
17
+ cmd: /ie-e2e/deploy/thinkSphere/run.sh
18
+
19
+ resources:
20
+ limits:
21
+ memory: 8446Mi
22
+ cpu: 5000m
23
+ requests:
24
+ memory: 4096Mi
25
+ cpu: 2000m
26
+
27
+ env:
28
+ instance:
29
+ - name: START_TIME
30
+ value: "${{ variables.START_TIME }}"
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ env=$STAGE
3
+ echo Environment to test: $env
4
+ echo START_TIME: $START_TIME
5
+ echo "Running ThinkSphere question test"
6
+
7
+ npm run spinnaker:thinkSphereQuestion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.303-IEI-5292-a8d442b.0",
3
+ "version": "1.0.304-IEI-5343-thinksphere-pipeline-setup-62e12a2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,8 @@
18
18
  "cy:ilprod": "cypress open --env fileConfig=ilprod",
19
19
  "cy:ilqa": "cypress open --env fileConfig=ilqa",
20
20
  "cy:ilstage": "cypress open --env fileConfig=ilstage",
21
- "spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse,grepTags=-css+-a11y"
21
+ "spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse,grepTags=-css+-a11y",
22
+ "spinnaker:thinkSphereQuestion": "node scripts/questions.mjs --env theme=ilc,questionType=ThinkSphere,grepTags=-css+-a11y"
22
23
  },
23
24
  "repository": {
24
25
  "type": "git",