itemengine-cypress-automation 1.0.388 → 1.0.389-graphAndCharts-04d27f6.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.
Files changed (21) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  6. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  7. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  8. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  9. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  10. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +0 -210
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +0 -216
  13. package/cypress/e2e/ILC/Graphing/headerSection.js +1 -2
  14. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  15. package/cypress/e2e/ILC/NumberLine/headerSection.js +1 -2
  16. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -0
  17. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +3 -4
  18. package/cypress/pages/graphingPage.js +5 -8
  19. package/cypress/pages/numberLineLabelPage.js +5 -8
  20. package/cypress/pages/numberLinePage.js +4 -7
  21. package/package.json +2 -2
@@ -6,6 +6,7 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Charts - Bar: Partial different weights scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -27,8 +28,7 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
27
28
  chartsBarPage.steps.switchToPreviewTab();
28
29
  });
29
30
 
30
- //Need to remove skip once https://redmine.zeuslearning.com/issues/577535 is resolved
31
- it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
31
+ it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
32
32
  chartsBarPage.steps.switchToGradingView();
33
33
  chartsBarPage.steps.verifyPreviewScore(0, 20);
34
34
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When alternate answer points are more than correct answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are equal to alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are more than alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question preview: Auto scored - Partial different weights: Minimum scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create item page - Charts - Line: Partial different weights', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Charts - Line: Partial different weights scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When alternate answer points are more than correct answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Line: Partial different weights scoring wi
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are equal to alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Line: Partial different weights scoring wi
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are more than alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question preview: Auto scored - Partial different weights: Minimum scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -222,216 +222,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
222
222
  });
223
223
  });
224
224
 
225
- views.forEach((view) => {
226
- describe(`Fill in the Gaps with drag and drop - Manually scored: ${view}`, { tags: 'smoke' }, () => {
227
- abortEarlySetup();
228
- before(() => {
229
- switch (view) {
230
- case 'Question preview':
231
- fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
232
- cy.barsPreLoaderWait();
233
- fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
234
- fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
235
- fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
236
- fillInTheGapsDragAndDropPage.steps.addResponseArea();
237
- fillInTheGapsDragAndDropPage.steps.allotPoints(20);
238
- fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
239
- fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
240
- fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
241
- break;
242
- case 'Item preview':
243
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
244
- itemPreviewPage.steps.switchToPreviewTab();
245
- break;
246
- case 'Grading view':
247
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
248
- break;
249
- };
250
- });
251
-
252
- beforeEach(() => {
253
- switch (view) {
254
- case 'Question preview':
255
- fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
256
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
257
- break;
258
- case 'Item preview':
259
- fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
260
- itemPreviewPage.steps.resetQuestionPreview();
261
- break;
262
- case 'Grading view':
263
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
264
- break;
265
- }
266
- });
267
-
268
- if (view === 'Question preview') {
269
- after(() => {
270
- fillInTheGapsDragAndDropPage.steps.clickOnSaveQuestionButton();
271
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
272
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
273
- });
274
- };
275
-
276
- it('Question instructions should be visible', () => {
277
- fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options into correct dropzone');
278
- fillInTheGapsDragAndDropPage.steps.verifyVisibityOfQuestionInstructionsText();
279
- });
280
-
281
- it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label, and correct answer section should not be displayed in grading view', () => {
282
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 2 });
283
- if (view === 'Grading view') {
284
- studentViewPage.steps.submitResponse();
285
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
286
- studentViewPage.steps.clickOnGoToGradingViewButton();
287
- gradingViewPage.steps.verifyGradingViewScore('', 20);
288
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
289
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
290
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
291
- fillInTheGapsDragAndDropPage.steps.verifyAnswerStatusBannerNotExist();
292
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
293
- };
294
- if (view === 'Question preview' || view === 'Item preview') {
295
- fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
296
- };
297
- });
298
- });
299
- });
300
-
301
- views.forEach((view) => {
302
- describe(`Fill in the Gaps with Drag and drop - Non scored: ${view}`, { tags: 'smoke' }, () => {
303
- abortEarlySetup();
304
- before(() => {
305
- switch (view) {
306
- case 'Question preview':
307
- fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
308
- cy.barsPreLoaderWait();
309
- fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
310
- fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
311
- fillInTheGapsDragAndDropPage.steps.addResponseArea();
312
- fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
313
- fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
314
- fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
315
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
316
- fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
317
- break;
318
- case 'Item preview':
319
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
320
- itemPreviewPage.steps.switchToPreviewTab();
321
- break;
322
- case 'Grading view':
323
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
324
- break;
325
- };
326
- });
327
-
328
- beforeEach(() => {
329
- switch (view) {
330
- case 'Question preview':
331
- fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
332
- fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
333
- break;
334
- case 'Item preview':
335
- fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
336
- itemPreviewPage.steps.resetQuestionPreview();
337
- break;
338
- case 'Grading view':
339
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
340
- break;
341
- }
342
- });
343
-
344
- if (view === 'Question preview') {
345
- after(() => {
346
- fillInTheGapsDragAndDropPage.steps.clickOnSaveQuestionButton();
347
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
348
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
349
- });
350
- };
351
-
352
- it('When the user selects "Grading" view without attempting the question, non-scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
353
- if (view === 'Grading view') {
354
- studentViewPage.steps.submitResponse();
355
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
356
- studentViewPage.steps.clickOnGoToGradingViewButton();
357
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
358
- };
359
- if (view === 'Question preview' || view === 'Item preview') {
360
- fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
361
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
362
- fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
363
- };
364
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
365
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconsNotExist();
366
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
367
- });
368
-
369
- it('When the user attempts the question incorrectly, and on switching to "Grading" view, non-scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text "Your answer is incorrect" and correct answer section with correct answers should be displayed', () => {
370
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Leaves': 2, 'Stem': 1 });
371
- if (view === 'Grading view') {
372
- studentViewPage.steps.submitResponse();
373
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
374
- studentViewPage.steps.clickOnGoToGradingViewButton();
375
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
376
- };
377
- if (view === 'Question preview' || view === 'Item preview') {
378
- fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
379
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
380
- fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
381
- };
382
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
383
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
384
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
385
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
386
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
387
- });
388
-
389
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along should be displayed', () => {
390
- if (view === 'Grading view') {
391
- studentViewPage.steps.clearResponses();
392
- };
393
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 2 });
394
- if (view === 'Grading view') {
395
- studentViewPage.steps.submitResponse();
396
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
397
- studentViewPage.steps.clickOnGoToGradingViewButton();
398
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
399
- };
400
- if (view === 'Question preview' || view === 'Item preview') {
401
- fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
402
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
403
- };
404
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
405
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
406
- fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
407
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
408
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
409
- });
410
-
411
- it('When the user attempts the question correctly, and on switching to "Grading" view, non-scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
412
- if (view === 'Grading view') {
413
- studentViewPage.steps.clearResponses();
414
- };
415
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
416
- if (view === 'Grading view') {
417
- studentViewPage.steps.submitResponse();
418
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
419
- studentViewPage.steps.clickOnGoToGradingViewButton();
420
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
421
- };
422
- if (view === 'Question preview' || view === 'Item preview') {
423
- fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
424
- fillInTheGapsDragAndDropPage.steps.switchToGradingView();
425
- };
426
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
427
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
428
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
429
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
430
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
431
- });
432
- });
433
- });
434
-
435
225
  if (!grepTags || !grepTags.includes('smoke')) {
436
226
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
437
227
  abortEarlySetup();
@@ -209,222 +209,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
209
209
  });
210
210
  });
211
211
 
212
- views.forEach((view) => {
213
- describe(`Fill in the Gaps over Image Drag and drop - Manually scored: ${view}`, { tags: 'smoke' }, () => {
214
- abortEarlySetup();
215
- before(() => {
216
- switch (view) {
217
- case 'Question preview':
218
- fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
219
- cy.barsPreLoaderWait();
220
- fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone over the image');
221
- fillInTheGapsOverImageDragAndDropPage.steps.expandScoringTypeDropdown();
222
- fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
223
- fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
224
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
225
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
226
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
227
- fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(20);
228
- fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(2);
229
- fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
230
- fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
231
- break;
232
- case 'Item preview':
233
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
234
- itemPreviewPage.steps.switchToPreviewTab();
235
- break;
236
- case 'Grading view':
237
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
238
- break;
239
- };
240
- });
241
-
242
- beforeEach(() => {
243
- switch (view) {
244
- case 'Question preview':
245
- fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
246
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
247
- break;
248
- case 'Item preview':
249
- fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
250
- itemPreviewPage.steps.resetQuestionPreview();
251
- break;
252
- case 'Grading view':
253
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
254
- break;
255
- }
256
- });
257
-
258
- if (view === 'Question preview') {
259
- after(() => {
260
- fillInTheGapsOverImageDragAndDropPage.steps.clickOnSaveQuestionButton();
261
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
262
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
263
- });
264
- };
265
-
266
- it('Question instructions should be visible', () => {
267
- fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options into correct dropzone over the image');
268
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibityOfQuestionInstructionsText();
269
- });
270
-
271
- it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label, and correct answer section should not be displayed in grading view', () => {
272
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 2 });
273
- if (view === 'Grading view') {
274
- studentViewPage.steps.submitResponse();
275
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
276
- studentViewPage.steps.clickOnGoToGradingViewButton();
277
- gradingViewPage.steps.verifyGradingViewScore('', 20);
278
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
279
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
280
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
281
- fillInTheGapsOverImageDragAndDropPage.steps.verifyAnswerStatusBannerNotExist();
282
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
283
- };
284
- if (view === 'Question preview' || view === 'Item preview') {
285
- fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
286
- };
287
- });
288
- });
289
- });
290
-
291
- views.forEach((view) => {
292
- describe(`Fill in the Gaps Over Image Drag and drop - Non scored: ${view}`, { tags: 'smoke' }, () => {
293
- abortEarlySetup();
294
- before(() => {
295
- switch (view) {
296
- case 'Question preview':
297
- fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
298
- cy.barsPreLoaderWait();
299
- fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzones over the image');
300
- fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
301
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
302
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
303
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
304
- fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(2);
305
- fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
306
- fillInTheGapsOverImageDragAndDropPage.steps.expandScoringTypeDropdown();
307
- fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
308
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
309
- fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
310
- break;
311
- case 'Item preview':
312
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
313
- itemPreviewPage.steps.switchToPreviewTab();
314
- break;
315
- case 'Grading view':
316
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
317
- break;
318
- };
319
- });
320
-
321
- beforeEach(() => {
322
- switch (view) {
323
- case 'Question preview':
324
- fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
325
- fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
326
- break;
327
- case 'Item preview':
328
- fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
329
- itemPreviewPage.steps.resetQuestionPreview();
330
- break;
331
- case 'Grading view':
332
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
333
- break;
334
- }
335
- });
336
-
337
- if (view === 'Question preview') {
338
- after(() => {
339
- fillInTheGapsOverImageDragAndDropPage.steps.clickOnSaveQuestionButton();
340
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
341
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
342
- });
343
- };
344
-
345
- it('When the user selects "Grading" view without attempting the question, non-scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
346
- if (view === 'Grading view') {
347
- studentViewPage.steps.submitResponse();
348
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
349
- studentViewPage.steps.clickOnGoToGradingViewButton();
350
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
351
- };
352
- if (view === 'Question preview' || view === 'Item preview') {
353
- fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
354
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
355
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
356
- };
357
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconsNotExist();
358
- utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
359
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
360
- });
361
-
362
- it('When the user attempts the question incorrectly, and on switching to "Grading" view, non-scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text "Your answer is incorrect" and correct answer section with correct answers should be displayed', () => {
363
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Leaves': 2, 'Stem': 1 });
364
- if (view === 'Grading view') {
365
- studentViewPage.steps.submitResponse();
366
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
367
- studentViewPage.steps.clickOnGoToGradingViewButton();
368
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
369
- };
370
- if (view === 'Question preview' || view === 'Item preview') {
371
- fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
372
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
373
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
374
- };
375
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
376
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
377
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
378
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
379
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
380
- });
381
-
382
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along should be displayed', () => {
383
- if (view === 'Grading view') {
384
- studentViewPage.steps.clearResponses();
385
- };
386
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 2, 'Stem': 1 });
387
- if (view === 'Grading view') {
388
- studentViewPage.steps.submitResponse();
389
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
390
- studentViewPage.steps.clickOnGoToGradingViewButton();
391
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
392
- };
393
- if (view === 'Question preview' || view === 'Item preview') {
394
- fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
395
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
396
- };
397
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
398
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
399
- fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
400
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
401
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
402
- });
403
-
404
- it('When the user attempts the question correctly, and on switching to "Grading" view, non-scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
405
- if (view === 'Grading view') {
406
- studentViewPage.steps.clearResponses();
407
- };
408
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
409
- if (view === 'Grading view') {
410
- studentViewPage.steps.submitResponse();
411
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
412
- studentViewPage.steps.clickOnGoToGradingViewButton();
413
- gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
414
- };
415
- if (view === 'Question preview' || view === 'Item preview') {
416
- fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
417
- fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
418
- };
419
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
420
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
421
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
422
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
423
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
424
- });
425
- });
426
- });
427
-
428
212
  if (!grepTags || !grepTags.includes('smoke')) {
429
213
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
430
214
  abortEarlySetup();
@@ -47,10 +47,9 @@ describe('Create item page - Graphing: Header section and saving question', () =
47
47
  describe('Validation error messages', () => {
48
48
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
49
49
 
50
- it('Validation error messages should be displayed below required input fields', () => {
50
+ it('No validation error messages should be displayed below required input fields', () => {
51
51
  graphingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
52
52
  graphingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
53
- utilities.verifyInnerText(utilities.getNthElement(graphingPage.errorMessage(), 0), 'Error: Please set a correct answer.');
54
53
  });
55
54
 
56
55
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -426,7 +426,8 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
426
426
  graphingPage.steps.enterTextInXGridSpacingInputFieldValue(1500);
427
427
  });
428
428
 
429
- it('When user updates X grid spacing then on the x axis user should be able to plot only on the grid lines after a those many intervals', () => {
429
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5518
430
+ it.skip('When user updates X grid spacing then on the x axis user should be able to plot only on the grid lines after a those many intervals', () => {
430
431
  graphingPage.steps.enterTextInXGridSpacingInputFieldValue(3);
431
432
  graphingPage.steps.plotPointsOnGraphEditTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }]);
432
433
  graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: -3, xRange: 20, y: 1, yRange: 20 }]);
@@ -555,7 +556,8 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
555
556
  graphingPage.steps.enterTextInYGridSpacingInputFieldValue(1500);
556
557
  });
557
558
 
558
- it('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
559
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5518
560
+ it.skip('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
559
561
  graphingPage.steps.enterTextInYGridSpacingInputFieldValue(4)
560
562
  graphingPage.steps.plotPointsOnGraphEditTab([{ x: 3, xRange: 20, y: 7, yRange: 20 }]);
561
563
  graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 3, xRange: 20, y: 8, yRange: 20 }]);
@@ -843,7 +845,8 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
843
845
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
844
846
  });
845
847
 
846
- it('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
848
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5518
849
+ it.skip('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
847
850
  graphingPage.steps.switchToEditTab();
848
851
  graphingPage.steps.enterTextInYGridSpacingInputFieldValue(4);
849
852
  graphingPage.steps.switchToPreviewTab();
@@ -48,10 +48,9 @@ describe('Create item page - Number line: Header section and saving question', (
48
48
  describe('Validation error messages', () => {
49
49
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
50
50
 
51
- it('Validation error messages should be displayed below required input fields', () => {
51
+ it('No validation error messages should be displayed below required input fields', () => {
52
52
  numberLinePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
53
53
  numberLinePage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
- utilities.verifyInnerText(numberLinePage.errorMessage(), 'Error: Please set a correct answer.');
55
54
  });
56
55
 
57
56
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -66,6 +66,7 @@ describe('Create Item page -numberLine : Additional settings', () => {
66
66
  before(() => {
67
67
  numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
68
68
  cy.barsPreLoaderWait();
69
+ numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot label on the number line');
69
70
  numberLineLabelPage.steps.navigateToLabelNumberLineTab();
70
71
  numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot label on the number line');
71
72
  numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
@@ -51,11 +51,10 @@ describe('Create item page - Number line: Header section and saving question', (
51
51
  describe('Validation error messages', () => {
52
52
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
53
53
 
54
- it('Validation error messages should be displayed below required input fields', () => {
54
+ it('Validation error messages should not be displayed below input fields', () => {
55
55
  numberLineLabelPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
56
- utilities.verifyInnerText(utilities.getNthElement(numberLineLabelPage.errorMessage(), 1), 'Error: Label is required.');
57
- utilities.verifyInnerText(utilities.getNthElement(numberLineLabelPage.errorMessage(), 3), 'Error: Please set a correct answer.');
58
- numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
56
+ numberLineLabelPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
57
+ numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
59
58
  });
60
59
 
61
60
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -1806,29 +1806,26 @@ const tests = {
1806
1806
  graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
1807
1807
  });
1808
1808
 
1809
- it(`When the user resets the graph in the ${accordionName} accordion, \'Error: Please set a correct answer.\' error message should be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
1809
+ it(`When the user resets the graph in the ${accordionName} accordion, error message not should be thrown`, () => {
1810
1810
  graphingPage.graphControlOptionSpecifyCorrectAnswer('Reset')
1811
1811
  .click();
1812
1812
  graphingPage.resetPopupConfirmResetButton()
1813
1813
  .click();
1814
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible')
1815
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
1814
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist')
1816
1815
  if (accordionName == 'Correct') {
1817
1816
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
1818
1817
  .within(() => {
1819
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1818
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1820
1819
  });
1821
1820
  } else {
1822
1821
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
1823
1822
  .within(() => {
1824
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1823
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1825
1824
  });
1826
1825
  };
1827
1826
  });
1828
1827
 
1829
- autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
1830
-
1831
- it('When the user plots on the graph then the error message should disappear', () => {
1828
+ it('User should be able to plot on the graph', () => {
1832
1829
  graphingPage.steps.selectGraphToolOptionSpecifyCorrectAnswer('Circle');
1833
1830
  graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
1834
1831
  graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
@@ -1024,26 +1024,23 @@ const tests = {
1024
1024
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
1025
1025
  });
1026
1026
 
1027
- it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
1027
+ it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
1028
1028
  numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 2');
1029
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
1030
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
1029
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
1031
1030
  if (accordionName == 'Correct') {
1032
1031
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
1033
1032
  .within(() => {
1034
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1033
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1035
1034
  });
1036
1035
  } else {
1037
1036
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
1038
1037
  .within(() => {
1039
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1038
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1040
1039
  });
1041
1040
  };
1042
1041
  });
1043
1042
 
1044
- autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
1045
-
1046
- it('When the user plots on the number line then the error message should disappear', () => {
1043
+ it('User should be able to attempt the labels on the number line', () => {
1047
1044
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
1048
1045
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
1049
1046
  });
@@ -1451,26 +1451,23 @@ const tests = {
1451
1451
  numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1]);
1452
1452
  });
1453
1453
 
1454
- it(`When the user resets the number line in the ${accordionName} accordion, 'Error: Please set a correct answer.' error message should be thrown along with an error icon on the '${accordionName}' accordion`, () => {
1454
+ it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
1455
1455
  numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
1456
1456
  numberLinePage.steps.confirmReset();
1457
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
1458
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
1457
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
1459
1458
  if (accordionName == 'Correct') {
1460
1459
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
1461
1460
  .within(() => {
1462
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1461
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1463
1462
  });
1464
1463
  } else {
1465
1464
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
1466
1465
  .within(() => {
1467
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1466
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1468
1467
  });
1469
1468
  };
1470
1469
  });
1471
1470
 
1472
- autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
1473
-
1474
1471
  it('When the user plots on the number line then the error message should disappear', () => {
1475
1472
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
1476
1473
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.388",
3
+ "version": "1.0.389-graphAndCharts-04d27f6.0",
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
+ }