itemengine-cypress-automation 1.0.342-regressionFixes18thMarch-b97f3ea.0 → 1.0.343

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.
@@ -12,6 +12,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
12
12
  abortEarlySetup();
13
13
  before(() => {
14
14
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
15
+ cy.wait(5000); // Wait for the question instruction to load
15
16
  cy.barsPreLoaderWait();
16
17
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
17
18
  textEntryMathPage.steps.addResponseArea();
@@ -97,7 +97,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
97
97
  equationEditorFlyout.steps.clickOnOkButton();
98
98
  textEntryMathPage.steps.verifyPreviewScore(9, 20);
99
99
  textEntryMathPage.steps.switchToGradingView();
100
- textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
100
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
101
101
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
102
102
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
103
103
  textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢O⁢n⁢e', '6×2=12', '9000%']);
@@ -115,7 +115,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
115
115
  textEntryMathPage.steps.switchToGradingView();
116
116
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
117
117
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
118
- textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
118
+ textEntryMathPage.steps.verifyCorrectResponseIcon(2);
119
119
  textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢O⁢n⁢e', '6×2=12', '9000%']);
120
120
  });
121
121
 
@@ -112,7 +112,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
112
112
  equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
113
113
  equationEditorFlyout.steps.clickOnOkButton();
114
114
  textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
115
- equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six', 'equalTo', 'one', 'two'] }]);
115
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
116
116
  equationEditorFlyout.steps.clickOnOkButton();
117
117
  textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
118
118
  equationEditorFlyout.steps.enterTextInPreviewInputField('700');
@@ -271,7 +271,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
271
271
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
272
272
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
273
273
  textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
274
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢O⁢n⁢e', '2×6=12', '700%']);
274
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢O⁢n⁢e', '2×6', '700%']);
275
275
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
276
276
  });
277
277
  });
@@ -179,7 +179,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
179
179
  textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
180
180
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
181
181
  equationEditorFlyout.steps.clickOnOkButton();
182
- textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
182
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
183
183
  equationEditorFlyout.steps.enterTextInPreviewInputField('700');
184
184
  equationEditorFlyout.steps.clickOnOkButton();
185
185
  textEntryMathPage.steps.verifyPreviewScore(12, 18);
@@ -199,8 +199,8 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
199
199
  textEntryMathPage.steps.verifyPreviewScore(6, 18);
200
200
  textEntryMathPage.steps.switchToGradingView();
201
201
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
202
- textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
203
- textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
202
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
203
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
204
204
  textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢O⁢n⁢e', '6×2=12', '9000%']);
205
205
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
206
206
  });
@@ -29,9 +29,8 @@ describe('Create item page - Text entry math: Partial equal weights for blank re
29
29
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
30
30
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
31
31
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
32
- utilities.verifyInnerText(textEntryMathPage.correctAnswersLabel(), 'Correct answers');
32
+ utilities.verifyElementVisibilityState(textEntryMathPage.correctAnswersLabel(), 'notExist');
33
33
  textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
34
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
35
34
  });
36
35
 
37
36
  it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
@@ -156,9 +155,8 @@ describe('Create item page - Text entry math: Partial equal weights for blank re
156
155
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
157
156
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
158
157
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
159
- utilities.verifyInnerText(textEntryMathPage.correctAnswersLabel(), 'Correct answers');
158
+ utilities.verifyElementVisibilityState(textEntryMathPage.correctAnswersLabel(), 'notExist');
160
159
  textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
161
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
162
160
  });
163
161
 
164
162
  it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
@@ -12,6 +12,7 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
12
12
  abortEarlySetup();
13
13
  before(() => {
14
14
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
15
+ cy.wait(5000); //Waiting for the question instruction to load
15
16
  cy.barsPreLoaderWait();
16
17
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Equivalent structure: Response inputted needs to be in set structure / format to be marked correct');
17
18
  textEntryMathPage.steps.clearQuestionInputField();
@@ -525,6 +526,7 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
525
526
  abortEarlySetup();
526
527
  before(() => {
527
528
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
529
+ cy.wait(5000); //Waiting for the question instruction to load
528
530
  cy.barsPreLoaderWait();
529
531
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Value is equivalent: Response inputted needs to be equivalent but can be represented differently to be marked correct');
530
532
  textEntryMathPage.steps.clearQuestionInputField();
@@ -751,6 +753,7 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
751
753
  abortEarlySetup();
752
754
  before(() => {
753
755
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
756
+ cy.wait(5000); //Waiting for the question instruction to load
754
757
  cy.barsPreLoaderWait();
755
758
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Match value: Response inputted needs to be equal and represented the same way to be marked correct');
756
759
  textEntryMathPage.steps.clearQuestionInputField();
@@ -1145,6 +1148,7 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
1145
1148
  abortEarlySetup();
1146
1149
  before(() => {
1147
1150
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
1151
+ cy.wait(5000); //Waiting for the question instruction to load
1148
1152
  cy.barsPreLoaderWait();
1149
1153
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Match exact: Response entered needs to be an exact match to be marked correct');
1150
1154
  textEntryMathPage.steps.clearQuestionInputField();
@@ -11,6 +11,14 @@ describe('Create question page - Text Entry Math: Equation Editor functionality'
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  describe('Preview tab \'Equation Editor\' flyout', { tags: 'smoke' }, () => {
15
23
  abortEarlySetup();
16
24
  before(() => {
@@ -14,6 +14,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
14
14
  abortEarlySetup();
15
15
  before(() => {
16
16
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
17
+ cy.wait(5000);
17
18
  cy.barsPreLoaderWait();
18
19
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Response is true: Response inputted needs to be a true equation / inequality to be marked correct');
19
20
  textEntryMathPage.steps.clearQuestionInputField();
@@ -161,8 +161,9 @@ describe('Create item page - Text entry math: Preview contents', () => {
161
161
  });
162
162
  });
163
163
 
164
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5573
164
165
  if (!grepTags || !grepTags.includes('smoke')) {
165
- describe('In grading-view: correct answer section should not overflow outside the container', () => {
166
+ describe.skip('In grading-view: correct answer section should not overflow outside the container', () => {
166
167
  abortEarlySetup();
167
168
  before(() => {
168
169
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
@@ -202,7 +202,14 @@ const tests = {
202
202
  });
203
203
  });
204
204
 
205
+ it('On selecting an option from the scoring type dropdown, the dropdown should close', () => {
206
+ scoringSectionBaseEditTab.steps.selectOptionFromScoringTypeDropdown(scoringTypeArray[0]);
207
+ utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'notExist');
208
+ });
209
+
205
210
  it('CSS of Scoring type dropdown in active state', { tags: 'css' }, () => {
211
+ scoringSectionBaseEditTab.scoringTypeDropdown()
212
+ .click();
206
213
  utilities.verifyCSS(utilities.getNthElement(scoringSectionBaseEditTab.scoringTypeDropdownListOptions(), 0), {
207
214
  'color': css.color.liText,
208
215
  'font-size': css.fontSize.default,
@@ -215,18 +222,7 @@ const tests = {
215
222
  'font-weight': css.fontWeight.regular,
216
223
  'background-color': css.color.transparent
217
224
  });
218
- });
219
-
220
- it('Accessibility of Scoring type dropdown in active state', { tags: 'a11y' }, () => {
221
- cy.checkAccessibility(commonComponents.dropdownList())
222
- });
223
-
224
- it('On selecting an option from the scoring type dropdown, the dropdown should close', () => {
225
225
  scoringSectionBaseEditTab.steps.selectOptionFromScoringTypeDropdown(scoringTypeArray[0]);
226
- utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'notExist');
227
- });
228
-
229
- it('CSS of Scoring section label and dropdown', { tags: 'css' }, () => {
230
226
  utilities.verifyCSS(scoringSectionBaseEditTab.scoringLabel(), {
231
227
  'color': css.color.sectionHeading,
232
228
  'font-size': css.fontSize.default,
@@ -243,6 +239,10 @@ const tests = {
243
239
  'font-weight': css.fontWeight.regular
244
240
  });
245
241
  });
242
+
243
+ it('Accessibility of Scoring type dropdown in active state', { tags: 'a11y' }, () => {
244
+ cy.checkAccessibility(scoringSectionBaseEditTab.scoringTypeDropdown())
245
+ });
246
246
  },
247
247
 
248
248
  verifyPointsLabelAndInputField: () => {
@@ -10,8 +10,8 @@ deployment:
10
10
  job:
11
11
  backoffLimit: 25
12
12
  activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
13
+ parallelism: 15
14
+ completions: 15
15
15
 
16
16
  image:
17
17
  cmd: /ie-e2e/deploy/smoke/run.sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.342-regressionFixes18thMarch-b97f3ea.0",
3
+ "version": "1.0.343",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }