itemengine-cypress-automation 1.0.302 → 1.0.303-IEI-5292-a8d442b.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.
@@ -108,9 +108,8 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
108
108
|
});
|
109
109
|
} else {
|
110
110
|
it(`The correct options should have correct icons besides them`, () => {
|
111
|
-
|
112
|
-
|
113
|
-
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
111
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
112
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
114
113
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
115
114
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
116
115
|
});
|
@@ -470,42 +470,5 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
470
470
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
471
471
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
472
472
|
});
|
473
|
-
|
474
|
-
//https://weldnorthed.atlassian.net/browse/IEI-5159
|
475
|
-
it('When the user enters a equation using in \'Specify correct answer\' and the user enters the same equation then it should be treated as correct', () => {
|
476
|
-
textEntryMathPage.steps.switchToEditTab();
|
477
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
478
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
479
|
-
equationEditorFlyout.steps.clearAll();
|
480
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('18+10=28');
|
481
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
482
|
-
textEntryMathPage.steps.switchToPreviewTab();
|
483
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
484
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('18+10=28');
|
485
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
486
|
-
textEntryMathPage.steps.switchToGradingView();
|
487
|
-
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
488
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
489
|
-
});
|
490
|
-
|
491
|
-
it('When the user enters a equation using in \'Specify correct answer\' and the user enters incorrect equation it should be treated as correct', () => {
|
492
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
493
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
494
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('18+10=1');
|
495
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
496
|
-
textEntryMathPage.steps.switchToGradingView();
|
497
|
-
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
498
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
499
|
-
});
|
500
|
-
|
501
|
-
it('When the user enters a equation using in \'Specify correct answer\' and the user enters incorrect equation it should be treated as correct', () => {
|
502
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
503
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
504
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('10+7=17');
|
505
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
506
|
-
textEntryMathPage.steps.switchToGradingView();
|
507
|
-
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
508
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
509
|
-
});
|
510
473
|
});
|
511
474
|
});
|
@@ -37,7 +37,7 @@ const selectors = {
|
|
37
37
|
noneOptionNumeration: () => cy.get('.no-numeration-div'),
|
38
38
|
//correct answer section
|
39
39
|
correctAnswersLabel: () => cy.get('[class*="question-preview-wrapper"] [class*="CorrectAnswerLabel"]'),
|
40
|
-
correctAnswerSectionWrapper: () => cy.get('[class*="question-preview-wrapper"] .mcq-radio-control.mcq-answer-checked').eq(
|
40
|
+
correctAnswerSectionWrapper: () => cy.get('[class*="question-preview-wrapper"] .mcq-radio-control.mcq-answer-checked').eq(0),
|
41
41
|
optionWrapperCorrectAnswerSection: () => cy.get('.radio-option-wrapper'),
|
42
42
|
correctIncorrectAnswerLabel: () => cy.get('[class*="style"][class*="__Status"]'),
|
43
43
|
answerStatusBanner: () => cy.get('[class*="StatusContainer"]'),
|