itemengine-cypress-automation 1.0.384-task-IEI-4672-9e835ce.0 → 1.0.385-IEI-6161-IEI-6162-manualAndNonScoredScript-72a6ac7.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/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +356 -0
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +287 -0
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +247 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +211 -0
- package/cypress/e2e/ILC/Graphing/specifyCorrectAnswerSection.js +0 -28
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -2
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +0 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -213
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -249
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -266
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +0 -268
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -263
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -217
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -263
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +1 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -1
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +248 -0
- package/cypress/pages/components/chartsCommonComponent.js +15 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +4 -4
- package/cypress/pages/graphingPage.js +1 -2
- package/cypress/pages/listOrderingPage.js +1 -6
- package/cypress/pages/textEntryMathPage.js +7 -3
- package/package.json +1 -1
@@ -263,269 +263,6 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
263
263
|
});
|
264
264
|
});
|
265
265
|
|
266
|
-
views.forEach((view) => {
|
267
|
-
describe(`Text entry math with image: manually scored - ${view}`, { tags: 'smoke' }, () => {
|
268
|
-
abortEarlySetup();
|
269
|
-
before(() => {
|
270
|
-
switch (view) {
|
271
|
-
case 'Question preview':
|
272
|
-
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
273
|
-
cy.barsPreLoaderWait();
|
274
|
-
textEntryMathWithImagePage.steps.addBackground();
|
275
|
-
textEntryMathWithImagePage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
276
|
-
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
277
|
-
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
278
|
-
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
279
|
-
textEntryMathWithImagePage.steps.insertResponseArea(40);
|
280
|
-
textEntryMathWithImagePage.steps.insertResponseArea(50);
|
281
|
-
textEntryMathWithImagePage.steps.expandScoringTypeDropdown();
|
282
|
-
textEntryMathWithImagePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
283
|
-
textEntryMathWithImagePage.steps.allotPoints(20);
|
284
|
-
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
285
|
-
break;
|
286
|
-
case 'Item preview':
|
287
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
288
|
-
itemPreviewPage.steps.switchToPreviewTab();
|
289
|
-
break;
|
290
|
-
case 'Grading view':
|
291
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
292
|
-
break;
|
293
|
-
}
|
294
|
-
});
|
295
|
-
|
296
|
-
beforeEach(() => {
|
297
|
-
switch (view) {
|
298
|
-
case 'Question preview':
|
299
|
-
textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
300
|
-
textEntryMathWithImagePage.steps.resetQuestionPreview();
|
301
|
-
break;
|
302
|
-
case 'Item preview':
|
303
|
-
cy.get('body').then($body => {
|
304
|
-
if ($body.find('.preview-mode-wrapper input[aria-label="Student View"]').length) {
|
305
|
-
itemPreviewPage.steps.switchToStudentView();
|
306
|
-
}
|
307
|
-
});
|
308
|
-
itemPreviewPage.steps.resetQuestionPreview();
|
309
|
-
break;
|
310
|
-
case 'Grading view':
|
311
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
312
|
-
break;
|
313
|
-
}
|
314
|
-
});
|
315
|
-
|
316
|
-
if (view === 'Question preview') {
|
317
|
-
after(() => {
|
318
|
-
textEntryMathWithImagePage.steps.clickOnSaveQuestionButton();
|
319
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
320
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
321
|
-
});
|
322
|
-
};
|
323
|
-
|
324
|
-
it('Question instructions should be visible', () => {
|
325
|
-
textEntryMathWithImagePage.steps.verifyQuestionInstructionsTextPreviewTab('Enter the correct answer in the response field');
|
326
|
-
textEntryMathWithImagePage.steps.verifyVisibityOfQuestionInstructionsText();
|
327
|
-
});
|
328
|
-
|
329
|
-
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', () => {
|
330
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
331
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, 'Correct1');
|
332
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
333
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
334
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
335
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
336
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '6*3.14');
|
337
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
338
|
-
if (view === 'Grading view') {
|
339
|
-
studentViewPage.steps.submitResponse();
|
340
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
341
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
342
|
-
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
343
|
-
}
|
344
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
345
|
-
textEntryMathWithImagePage.steps.checkManuallyScoredScoringLabel();
|
346
|
-
}
|
347
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
348
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
|
349
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(1);
|
350
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
|
351
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerSectionNotExists();
|
352
|
-
});
|
353
|
-
});
|
354
|
-
});
|
355
|
-
|
356
|
-
views.forEach((view) => {
|
357
|
-
describe(`Text entry math with image: non scored - ${view}`, { tags: 'smoke' }, () => {
|
358
|
-
abortEarlySetup();
|
359
|
-
before(() => {
|
360
|
-
switch (view) {
|
361
|
-
case 'Question preview':
|
362
|
-
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
363
|
-
cy.barsPreLoaderWait();
|
364
|
-
textEntryMathWithImagePage.steps.addBackground();
|
365
|
-
textEntryMathWithImagePage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
366
|
-
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
367
|
-
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
368
|
-
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
369
|
-
textEntryMathWithImagePage.steps.insertResponseArea(40);
|
370
|
-
textEntryMathWithImagePage.steps.insertResponseArea(50);
|
371
|
-
textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
372
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
373
|
-
equationEditorFlyout.steps.clearAll();
|
374
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('12');
|
375
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
376
|
-
textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
377
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
378
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
379
|
-
textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
380
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
381
|
-
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
382
|
-
textEntryMathWithImagePage.steps.expandScoringTypeDropdown();
|
383
|
-
textEntryMathWithImagePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
384
|
-
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
385
|
-
break;
|
386
|
-
case 'Item preview':
|
387
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
388
|
-
itemPreviewPage.steps.switchToPreviewTab();
|
389
|
-
break;
|
390
|
-
case 'Grading view':
|
391
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
392
|
-
break;
|
393
|
-
}
|
394
|
-
});
|
395
|
-
|
396
|
-
beforeEach(() => {
|
397
|
-
switch (view) {
|
398
|
-
case 'Question preview':
|
399
|
-
textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
400
|
-
textEntryMathWithImagePage.steps.resetQuestionPreview();
|
401
|
-
break;
|
402
|
-
case 'Item preview':
|
403
|
-
cy.get('body').then($body => {
|
404
|
-
if ($body.find('.preview-mode-wrapper input[aria-label="Student View"]').length) {
|
405
|
-
itemPreviewPage.steps.switchToStudentView();
|
406
|
-
}
|
407
|
-
});
|
408
|
-
itemPreviewPage.steps.resetQuestionPreview();
|
409
|
-
break;
|
410
|
-
case 'Grading view':
|
411
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
412
|
-
break;
|
413
|
-
}
|
414
|
-
});
|
415
|
-
|
416
|
-
if (view === 'Question preview') {
|
417
|
-
after(() => {
|
418
|
-
textEntryMathWithImagePage.steps.clickOnSaveQuestionButton();
|
419
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
420
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
421
|
-
});
|
422
|
-
}
|
423
|
-
|
424
|
-
it('When the user selects "Grading" view without attempting the question, correct/incorrect icons should not be displayed, correct answers section should be displayed, and no correct/incorrect label should be shown', () => {
|
425
|
-
if (view === 'Grading view') {
|
426
|
-
studentViewPage.steps.submitResponse();
|
427
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
428
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
429
|
-
}
|
430
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
431
|
-
textEntryMathWithImagePage.steps.switchToGradingView();
|
432
|
-
}
|
433
|
-
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
434
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
435
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
436
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
437
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
|
438
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(1);
|
439
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
|
440
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
441
|
-
});
|
442
|
-
|
443
|
-
it('When the user attempts the question incorrectly, correct/incorrect icons should not be displayed, correct answers section should be displayed, and no correct/incorrect label should be shown', () => {
|
444
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
445
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
|
446
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
447
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
448
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
|
449
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
450
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
451
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '15');
|
452
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
453
|
-
if (view === 'Grading view') {
|
454
|
-
studentViewPage.steps.submitResponse();
|
455
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
456
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
457
|
-
}
|
458
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
459
|
-
textEntryMathWithImagePage.steps.switchToGradingView();
|
460
|
-
}
|
461
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
|
462
|
-
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(0);
|
463
|
-
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(1);
|
464
|
-
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
|
465
|
-
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
466
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
467
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
468
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
469
|
-
});
|
470
|
-
|
471
|
-
it('When the user attempts the question partially correct, correct/incorrect icons should not be displayed, correct answers section should be displayed, and no correct/incorrect label should be shown', () => {
|
472
|
-
if (view === 'Grading view') {
|
473
|
-
studentViewPage.steps.clearResponses();
|
474
|
-
}
|
475
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
476
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
477
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
478
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
479
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
480
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
481
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '13');
|
482
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
483
|
-
if (view === 'Grading view') {
|
484
|
-
studentViewPage.steps.submitResponse();
|
485
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
486
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
487
|
-
}
|
488
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
489
|
-
textEntryMathWithImagePage.steps.switchToGradingView();
|
490
|
-
}
|
491
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
|
492
|
-
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
|
493
|
-
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
|
494
|
-
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
|
495
|
-
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
496
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
497
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
498
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
499
|
-
});
|
500
|
-
|
501
|
-
it('When the user attempts the question correctly, correct/incorrect icons should not be displayed, correct answers section should not be displayed, and no correct/incorrect label should be shown', () => {
|
502
|
-
if (view === 'Grading view') {
|
503
|
-
studentViewPage.steps.clearResponses();
|
504
|
-
}
|
505
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
506
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
507
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
508
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
509
|
-
equationEditorFlyout.steps.enterQuadraticEquation();
|
510
|
-
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
511
|
-
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
512
|
-
if (view === 'Grading view') {
|
513
|
-
studentViewPage.steps.submitResponse();
|
514
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
515
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
516
|
-
}
|
517
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
518
|
-
textEntryMathWithImagePage.steps.switchToGradingView();
|
519
|
-
}
|
520
|
-
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel("correct");
|
521
|
-
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
|
522
|
-
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
|
523
|
-
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(2);
|
524
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerSectionNotExists();
|
525
|
-
});
|
526
|
-
});
|
527
|
-
});
|
528
|
-
|
529
266
|
if (!grepTags || !grepTags.includes('smoke')) {
|
530
267
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
531
268
|
abortEarlySetup();
|
@@ -387,6 +387,7 @@ describe('Create item page - Text entry math: Question instructions, Options sec
|
|
387
387
|
textEntryMathWithImagePage.steps.addBackground();
|
388
388
|
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
389
389
|
textEntryMathWithImagePage.steps.verifyFileNameLabel('highlightImage.jpg');
|
390
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.uploadImageProgressBar(), 'visible');
|
390
391
|
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
391
392
|
});
|
392
393
|
|
@@ -299,7 +299,7 @@ describe('Create Item page - Text Entry Math: Style and layout customization', (
|
|
299
299
|
textEntryMathWithImagePage.steps.clearWidthInputField();
|
300
300
|
textEntryMathWithImagePage.steps.insertResponseArea(20);
|
301
301
|
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
302
|
-
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '
|
302
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '46px');
|
303
303
|
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(1, '122px');
|
304
304
|
});
|
305
305
|
});
|
@@ -24,7 +24,6 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
|
|
24
24
|
textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
25
25
|
});
|
26
26
|
textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
|
27
|
-
utilities.verifyInnerText(textSelectionPage.specifyPossibleOptionsTextFieldWrapper(), "Horses cannot breat& through their mouth! Cows sleep standing up?\n\nDogs have e#cellent 'hearing'.\n\nDeers possess nearly, 300 degree field of vision.")
|
28
27
|
});
|
29
28
|
|
30
29
|
it('\'Text selection mode\' label and \'Custom\', \'Paragraph\', \'Sentence\' and \'Word\' text selection modes should be displayed', () => {
|
@@ -358,6 +358,254 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
358
358
|
});
|
359
359
|
});
|
360
360
|
|
361
|
+
views.forEach((view) => {
|
362
|
+
describe(`${view}: Charts - Dot: Manually scored`, { tags: 'smoke' }, () => {
|
363
|
+
abortEarlySetup();
|
364
|
+
before(() => {
|
365
|
+
switch (view) {
|
366
|
+
case 'Question preview':
|
367
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
368
|
+
cy.barsPreLoaderWait();
|
369
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
370
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
371
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
372
|
+
chartsDotPlotPage.steps.verifyTextInMinInputField(1);
|
373
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(6);
|
374
|
+
chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
|
375
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
376
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
377
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
378
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
379
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
380
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
381
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
382
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
383
|
+
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
384
|
+
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
385
|
+
chartsDotPlotPage.steps.allotPointsForManualScoring(20);
|
386
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
387
|
+
break;
|
388
|
+
case 'Item preview':
|
389
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
390
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
391
|
+
break;
|
392
|
+
case 'Grading view':
|
393
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
394
|
+
cy.wait(1000);
|
395
|
+
break;
|
396
|
+
}
|
397
|
+
});
|
398
|
+
|
399
|
+
beforeEach(() => {
|
400
|
+
switch (view) {
|
401
|
+
case 'Question preview':
|
402
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
403
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
404
|
+
break;
|
405
|
+
case 'Item preview':
|
406
|
+
itemPreviewPage.steps.switchToStudentView();
|
407
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
408
|
+
break;
|
409
|
+
case 'Grading view':
|
410
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
411
|
+
break;
|
412
|
+
}
|
413
|
+
});
|
414
|
+
|
415
|
+
if (view === 'Question preview') {
|
416
|
+
after(() => {
|
417
|
+
chartsDotPlotPage.steps.clickOnSaveQuestionButton();
|
418
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
419
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
420
|
+
});
|
421
|
+
}
|
422
|
+
|
423
|
+
it('Question instructions should be visible', () => {
|
424
|
+
chartsDotPlotPage.steps.verifyQuestionInstructionsTextPreviewTab('Dot plot');
|
425
|
+
chartsDotPlotPage.steps.verifyVisibityOfQuestionInstructionsText();
|
426
|
+
});
|
427
|
+
|
428
|
+
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', () => {
|
429
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
430
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
431
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
432
|
+
if (view === 'Grading view') {
|
433
|
+
studentViewPage.steps.submitResponse();
|
434
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
435
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
436
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
437
|
+
}
|
438
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
439
|
+
chartsDotPlotPage.steps.checkManuallyScoredScoringLabel();
|
440
|
+
}
|
441
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
442
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
443
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
444
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
445
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
446
|
+
});
|
447
|
+
});
|
448
|
+
});
|
449
|
+
|
450
|
+
views.forEach((view) => {
|
451
|
+
describe(`${view}: Charts - Dot: Non scored`, { tags: 'smoke' }, () => {
|
452
|
+
abortEarlySetup();
|
453
|
+
before(() => {
|
454
|
+
switch (view) {
|
455
|
+
case 'Question preview':
|
456
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
457
|
+
cy.barsPreLoaderWait();
|
458
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
459
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
460
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
461
|
+
chartsDotPlotPage.steps.verifyTextInMinInputField(1);
|
462
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(6);
|
463
|
+
chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
|
464
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
465
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
466
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
467
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
468
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
469
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
470
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
471
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
472
|
+
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
473
|
+
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
474
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
475
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
476
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
477
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
478
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
479
|
+
break;
|
480
|
+
case 'Item preview':
|
481
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
482
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
483
|
+
break;
|
484
|
+
case 'Grading view':
|
485
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
486
|
+
cy.wait(1000);
|
487
|
+
break;
|
488
|
+
}
|
489
|
+
});
|
490
|
+
|
491
|
+
beforeEach(() => {
|
492
|
+
switch (view) {
|
493
|
+
case 'Question preview':
|
494
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
495
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
496
|
+
break;
|
497
|
+
case 'Item preview':
|
498
|
+
itemPreviewPage.steps.switchToStudentView();
|
499
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
500
|
+
break;
|
501
|
+
case 'Grading view':
|
502
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
503
|
+
break;
|
504
|
+
}
|
505
|
+
});
|
506
|
+
|
507
|
+
if (view === 'Question preview') {
|
508
|
+
after(() => {
|
509
|
+
chartsDotPlotPage.steps.clickOnSaveQuestionButton();
|
510
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
511
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
512
|
+
});
|
513
|
+
}
|
514
|
+
|
515
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577716 is resolved
|
516
|
+
it.skip('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', () => {
|
517
|
+
if (view === 'Grading view') {
|
518
|
+
studentViewPage.steps.submitResponse();
|
519
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
520
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
521
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
522
|
+
};
|
523
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
524
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
525
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
526
|
+
};
|
527
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
528
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
529
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
530
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
531
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
532
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
533
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
534
|
+
});
|
535
|
+
|
536
|
+
it('When the user attempts the question incorrectly, non-scoring label should be displayed and on switching to grading view, incorrect icons should be displayed and the correct answer should be displayed in the correct answer section', () => {
|
537
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1 });
|
538
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
539
|
+
if (view === 'Grading view') {
|
540
|
+
studentViewPage.steps.submitResponse();
|
541
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
542
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
543
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
544
|
+
};
|
545
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
546
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
547
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
548
|
+
};
|
549
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
550
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
551
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
552
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
553
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
554
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
555
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
556
|
+
});
|
557
|
+
|
558
|
+
it('When the user attempts the question partially correct, non-scoring label should be displayed, correct icons should be displayed for correct columns, incorrect icons for incorrect columns, and the correct answer section should be displayed', () => {
|
559
|
+
if (view === 'Grading view') {
|
560
|
+
studentViewPage.steps.clearResponses();
|
561
|
+
}
|
562
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
563
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 4, min: 1, interval: 1 });
|
564
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
565
|
+
if (view === 'Grading view') {
|
566
|
+
studentViewPage.steps.submitResponse();
|
567
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
568
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
569
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
570
|
+
} else {
|
571
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
572
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
573
|
+
}
|
574
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
575
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
576
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
577
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
578
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
579
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
580
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
581
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
582
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
583
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
584
|
+
});
|
585
|
+
|
586
|
+
it('When the user attempts the question correctly, non-scoring label should be displayed, correct icons should be displayed, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
|
587
|
+
if (view === 'Grading view') {
|
588
|
+
studentViewPage.steps.clearResponses();
|
589
|
+
}
|
590
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
591
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
592
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
593
|
+
if (view === 'Grading view') {
|
594
|
+
studentViewPage.steps.submitResponse();
|
595
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
596
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
597
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
598
|
+
};
|
599
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
600
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
601
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
602
|
+
};
|
603
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
604
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
605
|
+
});
|
606
|
+
});
|
607
|
+
});
|
608
|
+
|
361
609
|
if (!grepTags || !grepTags.includes('smoke')) {
|
362
610
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
363
611
|
abortEarlySetup();
|
@@ -21,6 +21,7 @@ const selectors = {
|
|
21
21
|
|
22
22
|
//specify correct answer
|
23
23
|
pointsInputField: () => cy.get('.ngie-accordion-detail .points-input-field input[type="text"]'),
|
24
|
+
pointsInputFieldForManualScoring: () => cy.get('.points-input-field input[type="text"]'),
|
24
25
|
graphTitleSpecifyCorrectAnswer: () => cy.get('.ngie-accordion-detail .chart-top-wrapper .title-container'),
|
25
26
|
xAxisLabelSpecifyCorrectAnswer: () => cy.get('.ngie-accordion-detail .chart-bottom-wrapper .title-container'),
|
26
27
|
|
@@ -122,6 +123,20 @@ const steps = {
|
|
122
123
|
.blur();
|
123
124
|
},
|
124
125
|
|
126
|
+
/**
|
127
|
+
* @description - Allots points in the scoring section for manual scoring.
|
128
|
+
* \@param {number} points - The points to be allotted.
|
129
|
+
*/
|
130
|
+
allotPointsForManualScoring: (points) => {
|
131
|
+
chartsCommonComponent.pointsInputFieldForManualScoring()
|
132
|
+
.clear()
|
133
|
+
.type(`${points}`)
|
134
|
+
.wait(1000);
|
135
|
+
chartsCommonComponent.pointsInputFieldForManualScoring()
|
136
|
+
.should('have.value', points)
|
137
|
+
.blur();
|
138
|
+
},
|
139
|
+
|
125
140
|
//Preview tab
|
126
141
|
/**
|
127
142
|
* @description edit x axis label in preview tab
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import utilities from "../../support/helpers/utilities";
|
2
2
|
import { equationEditorCategoriesAndSymbols } from "../../fixtures/equationEditorCategoriesAndSymbols ";
|
3
|
-
import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage
|
3
|
+
import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage } from "../components";
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
const allCategories = Object.values(equationEditorCategoriesAndSymbols)
|
6
6
|
const defaultSelectedCategories = ['Numpad', 'Keypad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices'];
|
@@ -302,7 +302,7 @@ const tests = {
|
|
302
302
|
it(`In the equation editor flyout the ${allCategories[0].displayName} should be selected by default and the Equation editor input field should be prefilled with the added equation`, () => {
|
303
303
|
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
304
304
|
cy.log('Adding this to focus out of input field')
|
305
|
-
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
|
305
|
+
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
|
306
306
|
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1');
|
307
307
|
});
|
308
308
|
|
@@ -312,7 +312,7 @@ const tests = {
|
|
312
312
|
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationText(0, 'x+5=1');
|
313
313
|
}
|
314
314
|
else {
|
315
|
-
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1
|
315
|
+
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
|
316
316
|
}
|
317
317
|
});
|
318
318
|
|
@@ -330,7 +330,7 @@ const tests = {
|
|
330
330
|
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationText(0, 'x+5×0');
|
331
331
|
}
|
332
332
|
else {
|
333
|
-
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5×0
|
333
|
+
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5×0');
|
334
334
|
}
|
335
335
|
});
|
336
336
|
},
|
@@ -549,8 +549,7 @@ const steps = {
|
|
549
549
|
enterTextInXMinInputField: (xMinValue) => {
|
550
550
|
graphingPage.xMinInputField()
|
551
551
|
.clear()
|
552
|
-
.type(xMinValue)
|
553
|
-
.blur();
|
552
|
+
.type(xMinValue);
|
554
553
|
cy.wait(2000);
|
555
554
|
graphingPage.xMinInputField()
|
556
555
|
.should('have.value', xMinValue)
|