itemengine-cypress-automation 1.0.191-7thMayFixes-2faebef.0 → 1.0.191

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +1 -0
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +3 -0
  3. package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +4 -20
  4. package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +2 -1
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -4
  6. package/cypress/e2e/ILC/FeedbackScaleNew/additionalSettings.js +5 -5
  7. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +3 -3
  8. package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +2 -2
  9. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -0
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -0
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -4
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +1 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +2 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +4 -5
  16. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +4 -6
  17. package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +0 -1
  18. package/cypress/e2e/ILC/Graphing/headerSection.js +3 -3
  19. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  20. package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -8
  21. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +2 -1
  22. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  23. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +2 -1
  24. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +1 -1
  25. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -2
  26. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +2 -1
  27. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +2 -4
  28. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +1 -1
  29. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +2 -3
  30. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +14 -8
  31. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  32. package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
  33. package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +2 -2
  34. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1 -1
  35. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +2 -2
  36. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +11 -13
  37. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -0
  38. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -0
  39. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  40. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -2
  41. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  42. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +1 -0
  43. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  44. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -2
  45. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  46. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -2
  47. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +25 -43
  48. package/cypress/e2e/ILC/TextSelection/headerSection.js +2 -4
  49. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +4 -4
  50. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +11 -11
  51. package/cypress/e2e/ILC/ThirdPartyGeogebraActivity/headerSection.js +4 -4
  52. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +17 -16
  53. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -4
  54. package/cypress/e2e/ILC/UploadResponse/uploadResponseHeaderSection.js +4 -18
  55. package/cypress/fixtures/evaluationMethodsAndCustomSettings.js +2 -2
  56. package/cypress/pages/components/colorPopupComponent.js +1 -1
  57. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +5 -2
  58. package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
  59. package/cypress/pages/components/optionsWrapperComponent.js +0 -1
  60. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  61. package/cypress/pages/components/toolSettingsComponent.js +12 -1
  62. package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -2
  63. package/cypress/pages/feedbackScalePage.js +20 -1
  64. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +1 -15
  65. package/cypress/pages/fillInTheGapsOverImageTextPage.js +2 -2
  66. package/cypress/pages/graphingPage.js +3 -3
  67. package/cypress/pages/listOrderingPage.js +1 -1
  68. package/cypress/pages/protractorPage.js +2 -2
  69. package/cypress/pages/rulerPage.js +13 -1
  70. package/cypress/pages/simpleCalculatorPage.js +1 -1
  71. package/cypress/pages/singleSelectionPage.js +10 -0
  72. package/cypress/pages/textEntryMathPage.js +5 -4
  73. package/cypress/pages/textSelectionPage.js +31 -8
  74. package/cypress/pages/uploadResponsePage.js +4 -1
  75. package/package.json +1 -1
@@ -59,6 +59,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
59
59
  });
60
60
  });
61
61
 
62
+ //Failing due to https://redmine.zeuslearning.com/issues/564166
62
63
  describe('Additional settings: Accessibility section', () => {
63
64
  abortEarlySetup();
64
65
  before(() => {
@@ -5,6 +5,9 @@ import utilities from "../../../support/helpers/utilities";
5
5
  const manipulativeToggleButton = ['Algebra tiles', 'Base ten blocks', 'Clock', 'Color tiles', 'Cuisenaire® rods', 'Fraction circles', 'Fraction tiles', 'Geoboard', 'Hundred boards', 'Linking cubes', 'Money', 'Number lines', 'Pattern blocks', 'Place value disks', 'Rekenreks', 'Two - color counters', 'XY coordinate board'];
6
6
 
7
7
  describe('Create item : Brainingcamp manipulative - Edit tab basics', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
8
11
 
9
12
  describe('Question Instructions input field - Edit tab', () => {
10
13
  abortEarlySetup();
@@ -44,28 +44,12 @@ describe('Create item page - Brainingcamp manipulative: Question instructions',
44
44
  cy.barsPreLoaderWait();
45
45
  });
46
46
 
47
- describe('Validation error messages', () => {
48
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
47
+ brainingCampManipulativePage.tests.verifyCreateItemWrapperContentsA11y();
49
48
 
50
- it('Validation error messages should be displayed below required input fields', () => {
51
- brainingCampManipulativePage.steps.verifyQuestionInstructionsErrorMessage();
52
- brainingCampManipulativePage.steps.verifyPointsFieldErrorMessage();
53
- });
54
-
55
- it('Validation error messages should disappear when required input fields are filled', () => {
56
- brainingCampManipulativePage.steps.addTextInQuestionInstructionsInputField('Select correct option from dropdown');
57
- brainingCampManipulativePage.steps.allotPoints(10);
58
- brainingCampManipulativePage.steps.verifyErrorMessageIsNotDisplayed();
59
- });
60
-
61
- brainingCampManipulativePage.tests.verifyCreateItemWrapperContentsA11y();
49
+ it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
50
+ brainingCampManipulativePage.steps.saveAQuestionAndVerifySnackbar();
62
51
  });
63
52
 
64
- describe('Saving a question', () => {
65
- it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
66
- brainingCampManipulativePage.steps.saveAQuestionAndVerifySnackbar();
67
- });
68
- brainingCampManipulativePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
69
- });
53
+ brainingCampManipulativePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
70
54
  });
71
55
  });
@@ -38,7 +38,8 @@ describe('Create Item page: Tool settings', () => {
38
38
  rulerPage.steps.expandRotationDropdown();
39
39
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
40
40
  rulerPage.steps.enterInputToOpacityInputField(60);
41
- dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
41
+ rulerPage.steps.checkAddShowHideButtonCheckbox();
42
+ rulerPage.steps.clickOnOkButton();
42
43
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
43
44
  brainingCampManipulativePage.steps.verifyToolSelectedState(0);
44
45
  });
@@ -45,18 +45,16 @@ describe('Create item page - Drag and drop into categories: Header section and S
45
45
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
- dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsErrorMessage();
49
- dragAndDropIntoCategoriesPage.steps.verifyPointsFieldErrorMessage();
48
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
+ dragAndDropIntoCategoriesPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
50
50
  dragAndDropIntoCategoriesPage.steps.verifyOptionsInputFieldErrorMessage(0);
51
51
  dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
52
52
  dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerErrorMessage();
53
53
  });
54
54
 
55
55
  it('Validation error messages should disappear when required input fields are filled', () => {
56
- dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
57
56
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
58
57
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({'Bat': 0});
59
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
60
58
  dragAndDropIntoCategoriesPage.steps.verifyErrorMessageIsNotDisplayed();
61
59
  dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
62
60
  });
@@ -42,9 +42,9 @@ describe('Create item page: Feedback scale: Additional settings', () => {
42
42
  feedbackScalePage.steps.checkAllowStudentsToAddCommentCheckbox();
43
43
  });
44
44
 
45
- Object.keys(fontSizes).forEach((option, fontsIndex) => {
45
+ Object.keys(fontSizes).forEach((option) => {
46
46
  it(`When the user selects \'${option}\' option from the Font size dropdown, then font size of the preview contents should be changed to ${fontSizes[option]} in the preview tab`, () => {
47
- feedbackScalePage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex)
47
+ feedbackScalePage.steps.selectFontSizeOptionFromFontSizeDropdown(option)
48
48
  utilities.verifyInnerText(feedbackScalePage.fontSizeDropdown(), `${option}`);
49
49
  feedbackScalePage.steps.switchToPreviewTab();
50
50
  utilities.verifyCSS(feedbackScalePage.questionInstructionsText(), {
@@ -54,13 +54,13 @@ describe('Create item page: Feedback scale: Additional settings', () => {
54
54
  'font-size': fontSizes[option]
55
55
  });
56
56
  utilities.verifyCSS(feedbackScalePage.legendAccordion().find('.customize_info_label'), {
57
- 'font-size': moreInfoFontSizes[option]
57
+ 'font-size': Object.values(moreInfoFontSizes)[fontsIndex]
58
58
  });
59
59
  utilities.verifyCSS(feedbackScalePage.legendTextFeedbackButtonLabel(), {
60
- 'font-size': moreInfoFontSizes[option]
60
+ 'font-size': Object.values(moreInfoFontSizes)[fontsIndex]
61
61
  });
62
62
  utilities.verifyCSS(feedbackScalePage.legendTextPreviewTab(), {
63
- 'font-size': moreInfoFontSizes[option]
63
+ 'font-size': Object.values(moreInfoFontSizes)[fontsIndex]
64
64
  });
65
65
  utilities.verifyCSS(feedbackScalePage.commentLabel(), {
66
66
  'font-size': fontSizes[option]
@@ -122,13 +122,13 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
122
122
 
123
123
  it('The user should be able to mark feedback by clicking on any number button', () => {
124
124
  feedbackScalePage.steps.clickOnNumberFeedbackButton(0);
125
- feedbackScalePage.steps.verifyFeedbackButtonSelectedState(0);
125
+ feedbackScalePage.steps.verifyFeedbackNumberButtonSelectedState(0);
126
126
  });
127
127
 
128
128
  it('The user should be able to update the feedback by selecting other button, previously selected button should get unselected', () => {
129
129
  feedbackScalePage.steps.clickOnNumberFeedbackButton(1);
130
- feedbackScalePage.steps.verifyFeedbackButtonSelectedState(1);
131
- feedbackScalePage.steps.verifyFeedbackButtonUnselectedState(0);
130
+ feedbackScalePage.steps.verifyFeedbackNumberButtonSelectedState(1);
131
+ feedbackScalePage.steps.verifyFeedbackNumberButtonUnselectedState(0);
132
132
  });
133
133
 
134
134
  it('CSS of number buttons - selected state', { tags: 'css' }, () => {
@@ -179,7 +179,7 @@ describe('Create item page: Feedback scale - Thumbs feedback scale style - Edit
179
179
  colorPopupComponent.steps.verifyOpacityInputFieldValue('100');
180
180
  colorPopupComponent.steps.verifyOpacitySliderValue('100');
181
181
  colorPopupComponent.steps.verifySelectedColorBlock(thumbsDefaultColor);
182
- colorPopupComponent.steps.verifyRecommendedColorBlockSelectedState(8);
182
+ colorPopupComponent.steps.verifyRecommendedColorBlockSelectedState(9);
183
183
  });
184
184
 
185
185
  it('When the user modifies the selected color, the updated color should be displayed in the color block of the "Colors" section', () => {
@@ -191,7 +191,7 @@ describe('Create item page: Feedback scale - Thumbs feedback scale style - Edit
191
191
  });
192
192
 
193
193
  describe('Thumbs feedback scale style - Colors : Preview tab functionality', () => {
194
- const modifiedColor = 'rgba(255, 0, 0, 0.1)'
194
+ const modifiedColor = 'rgba(255, 0, 0, 0.7)'
195
195
  abortEarlySetup();
196
196
  before(() => {
197
197
  feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
@@ -46,6 +46,8 @@ describe('Create item page - Fill in the gaps with dropdown: Header section and
46
46
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
47
47
 
48
48
  it('Validation error messages should be displayed below required input fields', () => {
49
+ fillInTheGapsDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
50
+ fillInTheGapsDropdownPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
49
51
  fillInTheGapsDropdownPage.steps.verifyOptionsInputFieldErrorMessage(0);
50
52
  fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorMessage();
51
53
  fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
@@ -28,7 +28,7 @@ describe('Preview tab contents for all views', () => {
28
28
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
29
29
  fillInTheGapsOverImageDragAndDropPage.steps.insertTextArea(20, 'This is a text area');
30
30
  cy.log('Add image to option input field')
31
- fillInTheGapsOverImageDragAndDropPage.steps.editOptionInputField(0, 'Petals');
31
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, 'Petals');
32
32
  fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(0);
33
33
  fillInTheGapsOverImageDragAndDropPage.steps.selectImageOptionFromCKEditorToolbar();
34
34
  fillInTheGapsOverImageDragAndDropPage.steps.addImageToInputField();
@@ -37,7 +37,7 @@ describe('Preview tab contents for all views', () => {
37
37
  fillInTheGapsOverImageDragAndDropPage.steps.selectBoldOptionFromCKEditorToolbar();
38
38
  fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, 'This is a bold option');
39
39
  cy.log('Add equation to option input field')
40
- fillInTheGapsOverImageDragAndDropPage.steps.editOptionInputField(2, 'Solve the following');
40
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(2, 'Solve the following');
41
41
  fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(2);
42
42
  fillInTheGapsOverImageDragAndDropPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
43
43
  fillInTheGapsOverImageDragAndDropPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
@@ -47,6 +47,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
47
47
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
48
48
 
49
49
  it('Validation error messages should be displayed below required input fields', () => {
50
+ fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
51
+ fillInTheGapsOverImageDropdownPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
50
52
  utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 1), 'Error: Image is required.');
51
53
  utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 2), 'Error: Please insert a dropdown.');
52
54
  fillInTheGapsOverImageDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
@@ -49,19 +49,17 @@ describe('Create item page - Fill in the gaps over image - text: Header section
49
49
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
50
50
 
51
51
  it('Validation error messages should be displayed below required input fields', () => {
52
- fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsErrorMessage();
52
+ fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
53
+ fillInTheGapsOverImageTextPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
53
54
  utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageTextPage.errorMessage(), 1), 'Error: Image is required.');
54
55
  utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageTextPage.errorMessage(), 2), 'Error: Please insert a text container.');
55
- fillInTheGapsOverImageTextPage.steps.verifyPointsFieldErrorMessage();
56
56
  });
57
57
 
58
58
  it('Validation error messages should disappear when required input fields are filled', () => {
59
- fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Question instruction');
60
59
  fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
61
60
  fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
62
61
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
63
62
  fillInTheGapsOverImageTextPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
64
- fillInTheGapsOverImageTextPage.steps.allotPoints(10);
65
63
  fillInTheGapsOverImageTextPage.steps.verifyErrorMessageIsNotDisplayed();
66
64
  fillInTheGapsOverImageTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
67
65
  });
@@ -22,6 +22,7 @@ describe('Fill In the gaps over image with text - Additional settings', () => {
22
22
  before(() => {
23
23
  fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
24
24
  cy.barsPreLoaderWait();
25
+ fillInTheGapsOverImageTextPage.steps.expandAdditionalSettings();
25
26
  });
26
27
 
27
28
  fillInTheGapsOverImageTextPage.tests.verifyFontSizeSectionContents();
@@ -148,6 +148,8 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
148
148
  fillInTheGapsOverImageTextPage.steps.switchToEditTab();
149
149
  fillInTheGapsOverImageTextPage.steps.selectResponseArea(0);
150
150
  fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[1]);
151
+ fillInTheGapsOverImageTextPage.steps.selectResponseArea(1);
152
+ fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[8]);
151
153
  fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
152
154
  fillInTheGapsOverImageTextPage.steps.verifyTextContainerPointerStyleInPreviewTab(textContainerPointerStyles[1], 0);
153
155
  fillInTheGapsOverImageTextPage.steps.verifyTextContainerPointerStyleInPreviewTab(textContainerPointerStyles[8], 1);
@@ -87,9 +87,8 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
87
87
 
88
88
  fillInTheGapsOverImageTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
89
89
 
90
- it('When no points are entered in the points input field, then points per response should be displayed on the response accordion with value 0', () => {
91
- fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 0);
92
- fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 0);
90
+ it('When no points are entered in the points input field, then points per response label should not be displayed on the response accordion', () => {
91
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.responseAccordionPointsLabel(), 'notExist');
93
92
  });
94
93
 
95
94
  it('When the user gives a score input to \'Points\' input field, then the score should be equally divided and displayed on each response tab with a \'Points:\' label', () => {
@@ -184,8 +183,8 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
184
183
 
185
184
  it('When the user has switched to \'Partial - different weights\' scoring, then the correct answer tab points input field should not be displayed and individual empty points input field should be displayed in each response accordion', () => {
186
185
  utilities.verifyElementCount(fillInTheGapsOverImageTextPage.pointsInputField(), 2);
187
- fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0, 0);
188
- fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1, 0);
186
+ fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0, '');
187
+ fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1, '');
189
188
  });
190
189
 
191
190
  it('User should be able to set points in the \'Points\' input fields', () => {
@@ -49,14 +49,12 @@ describe('Create item page - Fill in the gaps with text: Header section and savi
49
49
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
50
50
 
51
51
  it('Validation error messages should be displayed below required input fields', () => {
52
- fillInTheGapsTextPage.steps.verifyQuestionInstructionsErrorMessage();
53
- fillInTheGapsTextPage.steps.verifyPointsFieldErrorMessage();
54
- utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsTextPage.errorMessage(), 2), 'Error: Answer is required.');
52
+ fillInTheGapsTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
53
+ fillInTheGapsTextPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
+ utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsTextPage.errorMessage(), 0), 'Error: Answer is required.');
55
55
  });
56
56
 
57
57
  it('Validation error messages should disappear when required input fields are filled', () => {
58
- fillInTheGapsTextPage.steps.addTextInQuestionInstructionsInputField('Question instruction');
59
- fillInTheGapsTextPage.steps.allotPoints(10);
60
58
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }]);
61
59
  fillInTheGapsTextPage.steps.verifyErrorMessageIsNotDisplayed();
62
60
  fillInTheGapsTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
@@ -69,7 +67,7 @@ describe('Create item page - Fill in the gaps with text: Header section and savi
69
67
  it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
70
68
  fillInTheGapsTextPage.steps.saveAQuestionAndVerifySnackbar();
71
69
  });
72
-
70
+
73
71
  fillInTheGapsTextPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
74
72
  });
75
73
  });
@@ -6,7 +6,6 @@ describe('Create Item page - Fill in the gaps with text: Specify correct answer,
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
- //https://redmine.zeuslearning.com/issues/562785
10
9
  describe('Specify correct answer section - Header and \'Correct\' accordion', () => {
11
10
  abortEarlySetup();
12
11
  before(() => {
@@ -48,9 +48,9 @@ describe('Create item page - Graphing: Header section and saving question', () =
48
48
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
49
49
 
50
50
  it('Validation error messages should be displayed below required input fields', () => {
51
- graphingPage.steps.verifyQuestionInstructionsErrorMessage();
52
- graphingPage.steps.verifyPointsFieldErrorMessage();
53
- utilities.verifyInnerText(utilities.getNthElement(graphingPage.errorMessage(), 2), 'Error: Please set a correct answer.');
51
+ graphingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
52
+ graphingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
53
+ utilities.verifyInnerText(utilities.getNthElement(graphingPage.errorMessage(), 0), 'Error: Please set a correct answer.');
54
54
  });
55
55
 
56
56
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -108,7 +108,7 @@ describe('Create item page - grid fill - Check answer functionality', () => {
108
108
  });
109
109
 
110
110
  it('When user attempts the question correctly and clicks on \'Check answer\' button, then correct icon tick should be displayed in the correct answer cell, correct answer border should be displayed around correct answer cell and a status message with text \'Your answer is correct\' should be displayed', () => {
111
- if (view === 'Grading view') {
111
+ if (view === 'Student view') {
112
112
  studentViewPage.steps.clearResponses();
113
113
  };
114
114
  gridFillPage.steps.selectCellPreviewTab(0, 0);
@@ -61,17 +61,17 @@ describe('Create item page - Grid fill: Minimum scoring, Penalty scoring, Roundi
61
61
  //Failed due to https://redmine.zeuslearning.com/issues/565332
62
62
  it('When the user allots total penalty points, then \'Points for each incorrect cell\' should get updated as per the count of incorrect cells available', () => {
63
63
  gridFillPage.steps.allotTotalPenaltyPoints(5);
64
- gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(2.5);
64
+ gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.38);
65
65
  });
66
66
 
67
67
  it('When the user adds a new cell, then \'Points for each incorrect cell\' should get updated accordingly', () => {
68
68
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 4)
69
- gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(1.67);
69
+ gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.42);
70
70
  });
71
71
 
72
72
  it('When the user deletes an cell, then \'Points for each incorrect cell\' should get updated accordingly', () => {
73
73
  gridFillPage.steps.deselectCellSpecifyCorrectAnswerSection(0, 4);
74
- gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(2.5);
74
+ gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.38);
75
75
  });
76
76
 
77
77
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -132,19 +132,19 @@ describe('Create item page - Grid fill: Minimum scoring, Penalty scoring, Roundi
132
132
  //Failed due to https://redmine.zeuslearning.com/issues/565332
133
133
  it('When the user allots Penalty points for each incorrect cell, then \'Total penalty points\' should get updated as per the count of incorrect cells available', () => {
134
134
  gridFillPage.steps.allotPenaltyPointsForEachIncorrectCell(1);
135
- gridFillPage.steps.verifyTotalPenaltyPoints(2);
135
+ gridFillPage.steps.verifyTotalPenaltyPoints(13);
136
136
  });
137
137
 
138
138
  //Failed due to https://redmine.zeuslearning.com/issues/565332
139
139
  it('When the user adds a new cell, then \'Total penalty points\' should get updated accordingly', () => {
140
140
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 4);
141
- gridFillPage.steps.verifyTotalPenaltyPoints(3);
141
+ gridFillPage.steps.verifyTotalPenaltyPoints(12);
142
142
  });
143
143
 
144
144
  //Failed due to https://redmine.zeuslearning.com/issues/565332
145
145
  it('When the user deletes an cell, then \'points for each incorrect cell\' should get updated accordingly', () => {
146
146
  gridFillPage.steps.deselectCellSpecifyCorrectAnswerSection(0, 4);
147
- gridFillPage.steps.verifyTotalPenaltyPoints(2);
147
+ gridFillPage.steps.verifyTotalPenaltyPoints(13);
148
148
  });
149
149
 
150
150
  it('CSS of the penalty points section - Penalty points for each incorrect cell', { tags: 'css' }, () => {
@@ -172,7 +172,7 @@ describe('Create item page - Grid fill: Minimum scoring, Penalty scoring, Roundi
172
172
  //Failed due to https://redmine.zeuslearning.com/issues/565332
173
173
  it('When the user switches to the \'Specify total penalty points\' option, the total penalty points input field should be filled as per the total penalty points in \'Specify points for each incorrect cell\'', () => {
174
174
  gridFillPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify total penalty points');
175
- gridFillPage.steps.verifyTotalPenaltyPointsValue(2);
175
+ gridFillPage.steps.verifyTotalPenaltyPointsValue(13);
176
176
  utilities.verifyInnerText(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect cell: 1');
177
177
  });
178
178
 
@@ -180,7 +180,7 @@ describe('Create item page - Grid fill: Minimum scoring, Penalty scoring, Roundi
180
180
  gridFillPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
181
181
  gridFillPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
182
182
  gridFillPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
183
- utilities.verifyInnerText(utilities.getNthElement(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect cell: 5');
183
+ utilities.verifyInnerText(utilities.getNthElement(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect cell: 0.77');
184
184
  utilities.verifyInnerText(utilities.getNthElement(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
185
185
  });
186
186
  });
@@ -122,7 +122,8 @@ describe('Create item page - Image highlight: All or nothing ', () => {
122
122
  imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
123
123
  imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
124
124
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
125
- utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
125
+ //Remove comment once https://redmine.zeuslearning.com/issues/571606 is resolved
126
+ //utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
126
127
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 3'], [1, 2]);
127
128
  });
128
129
 
@@ -105,7 +105,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
105
105
  listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(2);
106
106
  listOrderingPage.steps.verifyCorrectIncorrectOptionIconDropdownLayoutNotExists(3);
107
107
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
108
- utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers:');
108
+ utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
109
109
  listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
110
110
  };
111
111
  });
@@ -122,12 +122,13 @@ describe('Create Item page - List ordering: Dropdown menu ordering layout: Edit
122
122
  const numeration = numerationArray[index];
123
123
  it(`When the user selects ${option} option from the dropdown menu options dropdown, then on expanding the option position dropdown in the specify correct answer section, ${option} list of options should be displayed`, () => {
124
124
  listOrderingPage.steps.expandDropdownMenuOptionsDropdown();
125
- listOrderingPage.steps.switchToPreviewTab();
126
125
  listOrderingPage.steps.selectListOptionFromDropdownMenuOptionsDropdown(option);
126
+ listOrderingPage.steps.switchToPreviewTab();
127
127
  listOrderingPage.steps.expandPositionDropdownPreviewTab(0);
128
128
  for (let index = 0; index < 4; index++) {
129
129
  utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), index), numeration[index]);
130
130
  }
131
+ listOrderingPage.steps.selectListOptionPositionDropdown(numeration[0])
131
132
  });
132
133
 
133
134
  it('When the user selects any option from the list, then the selected option should be displayed in the position dropdown', () => {
@@ -187,7 +187,7 @@ describe('Create item page - List ordering: Scoring section', () => {
187
187
  });
188
188
 
189
189
  it('When the user updates the entered points in \'All or nothing\' scoring type and switches to \'Partial different weights\' scoring type, then the points should be equally divided and displayed besides each correct option', () => {
190
- listOrderingPage.steps.allotPoints(9);
190
+ listOrderingPage.steps.allotPoints(12);
191
191
  listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
192
192
  listOrderingPage.steps.verifyPartialDifferentWeightsPointsInputFieldValue([3, 3, 3]);
193
193
  });
@@ -46,11 +46,11 @@ describe('Create item page - Matching : Header section and Saving question', ()
46
46
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
47
47
 
48
48
  it('Validation error messages should be displayed below required input fields', () => {
49
- listOrderingPage.steps.verifyQuestionInstructionsErrorMessage();
49
+ listOrderingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
50
50
  for (let index = 0; index < 4; index++) {
51
51
  listOrderingPage.steps.verifyOptionsInputFieldErrorMessage(index);
52
52
  }
53
- listOrderingPage.steps.verifyPointsFieldErrorMessage();
53
+ listOrderingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
54
54
  listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
55
55
  utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.errorMessage(), -1), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
56
56
  });
@@ -151,9 +151,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
151
151
  });
152
152
  break;
153
153
  case 'Grading view':
154
+ case 'Correct answer view':
154
155
  utilities.verifyCSS(listOrderingPage.optionWrapperGradingView(), {
155
156
  'background-color': css.color.defaultBackground,
156
- 'border': `1px solid ${css.color.draggableOptionBorder}`
157
+ 'border': `1px solid ${css.color.correctAnswer}`
157
158
  });
158
159
  utilities.verifyCSS(utilities.getNthElement(listOrderingPage.optionGradingView(), 3).find('.question-text-wrapper'), {
159
160
  'color': css.color.text,
@@ -45,17 +45,15 @@ describe('Create item page - Multiple selection: Header section and Saving quest
45
45
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
- multipleSelectionPage.steps.verifyQuestionInstructionsErrorMessage();
49
- multipleSelectionPage.steps.verifyPointsFieldErrorMessage();
48
+ multipleSelectionPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
+ multipleSelectionPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
50
50
  multipleSelectionPage.steps.verifyOptionsInputFieldErrorMessage(0);
51
51
  multipleSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
52
52
  multipleSelectionPage.steps.verifySpecifyCorrectAnswerErrorMessage();
53
53
  });
54
54
 
55
55
  it('Validation error messages should disappear when required input fields are filled', () => {
56
- multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
57
56
  multipleSelectionPage.steps.addInputToOptionsInputField(options)
58
- multipleSelectionPage.steps.allotPoints(10);
59
57
  multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
60
58
  multipleSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
61
59
  multipleSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
@@ -571,7 +571,7 @@ describe('Create item page - Multiple selection grid: Question instructions, Spe
571
571
  };
572
572
  });
573
573
 
574
- it('CSS of \'Same checkbox text in each column\' checkbox and label', () => {
574
+ it('CSS of \'Same checkbox text in each column\' checkbox and label', {tags: 'css'}, () => {
575
575
  utilities.verifyCSS(multipleSelectionGridPage.sameCheckboxTextInEachColumnCheckboxLabel(), {
576
576
  'color': css.color.labels,
577
577
  'font-size': css.fontSize.normal,
@@ -45,7 +45,8 @@ describe('Create item page - Multiple selection grid: Header section and Saving
45
45
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
- multipleSelectionGridPage.steps.verifyQuestionInstructionsErrorMessage();
48
+ multipleSelectionGridPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
+ multipleSelectionGridPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
49
50
  utilities.verifyInnerText(utilities.getNthElement(multipleSelectionGridPage.errorMessage(), 1), 'Error: Please enter some text.');
50
51
  utilities.verifyInnerText(utilities.getNthElement(multipleSelectionGridPage.errorMessage(), 2), 'Error: Please enter points.');
51
52
  for (let index = 1; index < 4; index++) {
@@ -56,12 +57,10 @@ describe('Create item page - Multiple selection grid: Header section and Saving
56
57
  });
57
58
 
58
59
  it('Validation error messages should disappear when required input fields are filled', () => {
59
- multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not');
60
60
  multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
61
61
  multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
62
62
  multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
63
63
  multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
64
- multipleSelectionGridPage.steps.allotPoints(10);
65
64
  for (let index = 1; index < 4; index++) {
66
65
  multipleSelectionGridPage.steps.verifyErrorIconInSpecifyColumnsAndRowsGridNotExists(index);
67
66
  }
@@ -44,16 +44,22 @@ describe('Create item page - Short text response - text: Header section and savi
44
44
  });
45
45
 
46
46
  describe('Validation error messages', () => {
47
- shortTextResponsePage.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
47
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
48
48
 
49
- it('Validation error messages should be displayed below required input fields', () => {
50
- shortTextResponsePage.steps.verifyCorrectAnswerErrorMessage();
51
- });
49
+ it('Validation error messages should be displayed below required input fields', () => {
50
+ shortTextResponsePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
51
+ utilities.verifyInnerText(shortTextResponsePage.errorMessage(), 'Error: Please set a correct answer.');
52
+ shortTextResponsePage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
53
+ shortTextResponsePage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
54
+ });
52
55
 
53
- it('Validation error messages should disappear when required input fields are filled', () => {
54
- shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Correct');
55
- shortTextResponsePage.steps.verifyCorrectAnswerErrorMessageIsNotDisplayed();
56
- });
56
+ it('Validation error messages should disappear when required input fields are filled', () => {
57
+ shortTextResponsePage.steps.addTextInQuestionInstructionsInputField('Question instruction');
58
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Correct');
59
+ shortTextResponsePage.steps.allotPoints(10);
60
+ shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
61
+ shortTextResponsePage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
62
+ });
57
63
 
58
64
  shortTextResponsePage.tests.verifyCreateItemWrapperContentsA11y();
59
65
  });
@@ -49,7 +49,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
49
49
  }
50
50
  if (view === 'Student view') {
51
51
  studentViewPage.steps.submitResponse();
52
- utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
52
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'exist');
53
53
  }
54
54
  });
55
55
 
@@ -45,8 +45,8 @@ describe('Create Item page - Single Selection: Header section and Saving questio
45
45
  dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
46
 
47
47
  it('Validation error messages should be displayed below required input fields', () => {
48
- singleSelectionPage.steps.verifyQuestionInstructionsErrorMessage();
49
- singleSelectionPage.steps.verifyPointsFieldErrorMessage();
48
+ singleSelectionPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
49
+ singleSelectionPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
50
50
  singleSelectionPage.steps.verifyOptionsInputFieldErrorMessage(0);
51
51
  singleSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
52
52
  singleSelectionPage.steps.verifySpecifyCorrectAnswerErrorMessage();
@@ -253,12 +253,12 @@ describe('Create Item page - Single selection: Student view settings', () => {
253
253
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
254
254
  singleSelectionPage.steps.checkAnswer();
255
255
  singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(1);
256
- singleSelectionPage.steps.checkOptionInPreviewTab(2);
256
+ singleSelectionPage.steps.clickOnOptionRadioButtonInPreviewTab(2);
257
257
  singleSelectionPage.steps.verifyOptionInPreviewTabIsDisabled(1);
258
258
  });
259
259
 
260
260
  it('When the user checks a correct option and checks answer, then on selecting another option the previously checked option should not be disabled and the check answer button should be enabled', () => {
261
- singleSelectionPage.steps.checkOptionInPreviewTab(0);
261
+ singleSelectionPage.steps.clickOnOptionRadioButtonInPreviewTab(0);
262
262
  singleSelectionPage.steps.checkAnswer();
263
263
  singleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
264
264
  singleSelectionPage.steps.checkOptionInPreviewTab(3);
@@ -552,7 +552,7 @@ describe('Create item page - Single selection grid: Question instructions, Speci
552
552
  };
553
553
  });
554
554
 
555
- it('CSS of \'Same radio button text in each column\' checkbox and label', () => {
555
+ it('CSS of \'Same radio button text in each column\' checkbox and label', { tags: 'css' }, () => {
556
556
  utilities.verifyCSS(singleSelectionGridPage.sameRadioButtonTextInEachColumnCheckboxLabel(), {
557
557
  'color': css.color.labels,
558
558
  'font-size': css.fontSize.normal,