itemengine-cypress-automation 1.0.211 → 1.0.212

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +5 -5
  2. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +6 -6
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -1
  4. package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +146 -0
  5. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -1
  6. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +2 -1
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -1
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +700 -0
  9. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomizationDraggableOptionsPanel.js +127 -0
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCutomizationDraggableOptionProperties.js +253 -0
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +2 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -1
  13. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +2 -1
  14. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -1
  15. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +2 -2
  16. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +2 -2
  17. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +3 -6
  18. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +3 -1
  19. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +261 -0
  20. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +124 -0
  21. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +3 -1
  22. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +3 -1
  23. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +3 -2
  24. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +2 -2
  25. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -2
  26. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +2 -1
  27. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +1 -1
  28. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
  29. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -0
  30. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +7 -7
  31. package/cypress/pages/chartsDotPlotPage.js +22 -0
  32. package/cypress/pages/chartsLinePage.js +1 -0
  33. package/cypress/pages/essayResponsePage.js +73 -1
  34. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +550 -3
  35. package/cypress/pages/graphingPage.js +4 -0
  36. package/cypress/pages/matchingPage.js +189 -1
  37. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { equationEditorCategoriesAndSymbols } from "../fixtures/equationEditorCategoriesAndSymbols ";
2
- import { questionInstructionsComponent, scoringSectionBaseEditTab, createQuestionBasePage, additionalSettingsPanel, autoScoredScoringPreviewTab, commonComponents, createCustomCategoryFlyout, customizeSpecialCharacterComponent, additionalSettingsAccessibilitySectionComponent } from "./components";
2
+ import { questionInstructionsComponent, scoringSectionBaseEditTab, createQuestionBasePage, additionalSettingsPanel, autoScoredScoringPreviewTab, commonComponents, createCustomCategoryFlyout, customizeSpecialCharacterComponent, additionalSettingsAccessibilitySectionComponent, autoScoredStudentViewSettings, studentViewSettingsLabelComponent } from "./components";
3
3
  import { equationEditorFlyout } from "./components/equationEditorFlyout";
4
4
  import { dialogBoxBase } from "../pages/dialogBoxBase";
5
5
  import { essayResponseCommonComponents } from "./components/essayResponseCommonComponents";
@@ -63,6 +63,11 @@ const selectors = {
63
63
  return cy.get('[class*="ControlsWrapper"] .icon-button-custom-format')
64
64
  }
65
65
  },
66
+ //Student view settings
67
+ displayCharacterCountLabel: () => cy.get('[data-ngie-testid="display-character-count-checkbox"] .MuiFormControlLabel-label'),
68
+ displayCharacterCountCheckbox: () => cy.get('[data-ngie-testid="display-character-count-checkbox"] input'),
69
+ displayWordCountLabel: () => cy.get('[data-ngie-testid="display-word-count-checkbox"] .MuiFormControlLabel-label'),
70
+ characterWordCountLabelPreviewTab: () => cy.get('[class*="indexstyle__WordCharCountWrapper"]'),
66
71
  //additional settings
67
72
  clipboardFunctionLabel: () => cy.get('.essay-clipboard-functions .ngie-toggle-button-title'),
68
73
  clipboardFunctionButton: (index) => cy.get('.ngie-toggle-button-group button').eq(index),
@@ -972,6 +977,71 @@ const steps = {
972
977
  .dblclick();
973
978
  },
974
979
 
980
+ verifyDisplayWordCountCheckboxUnchecked: () => {
981
+ essayResponsePage.displayWordCountCheckbox()
982
+ .should('not.be.checked');
983
+ },
984
+
985
+ verifyDisplayCharacterCountCheckboxUnchecked: () => {
986
+ essayResponsePage.displayCharacterCountCheckbox()
987
+ .should('not.be.checked');
988
+ },
989
+
990
+ checkDisplayCharacterCountCheckbox: () => {
991
+ essayResponsePage.displayCharacterCountCheckbox()
992
+ .click();
993
+ steps.verifyDisplayCharacterCountCheckboxChecked();
994
+ },
995
+
996
+ uncheckDisplayCharacterCountCheckbox: () => {
997
+ essayResponsePage.displayCharacterCountCheckbox()
998
+ .click();
999
+ steps.verifyDisplayCharacterCountCheckboxUnchecked();
1000
+ },
1001
+
1002
+ verifyDisplayCharacterCountCheckboxChecked: () => {
1003
+ essayResponsePage.displayCharacterCountCheckbox()
1004
+ .should('be.checked');
1005
+ },
1006
+
1007
+ verifySpellCheckCheckboxUnchecked: () => {
1008
+ essayResponsePage.spellCheckCheckbox()
1009
+ .should('not.be.checked');
1010
+ },
1011
+
1012
+ verifySpellCheckCheckboxChecked: () => {
1013
+ essayResponsePage.spellCheckCheckbox()
1014
+ .should('be.checked');
1015
+ },
1016
+
1017
+ selectWordRadioButton: () => {
1018
+ essayResponsePage.wordRadioButton()
1019
+ .click()
1020
+ .should('be.checked');
1021
+ },
1022
+
1023
+ checkSpellCheckCheckbox: () => {
1024
+ essayResponsePage.spellCheckCheckbox()
1025
+ .click()
1026
+ steps.verifySpellCheckCheckboxChecked();
1027
+ },
1028
+
1029
+ uncheckSpellCheckCheckbox: () => {
1030
+ essayResponsePage.spellCheckCheckbox()
1031
+ .click();
1032
+ steps.verifySpellCheckCheckboxUnchecked();
1033
+ },
1034
+
1035
+ verifySpellCheckOfResponseFieldPreviewTabDisabled: () => {
1036
+ essayResponsePage.responseField()
1037
+ .should('have.prop', 'spellcheck', false);
1038
+ },
1039
+
1040
+ verifySpellCheckOfResponseFieldPreviewTabEnabled: () => {
1041
+ essayResponsePage.responseField()
1042
+ .should('have.prop', 'spellcheck', true);
1043
+ },
1044
+
975
1045
  verifyPlaceholderInputFieldIsEmpty: () => {
976
1046
  essayResponseCommonComponents.placeholderTextInputField()
977
1047
  .should('have.value', '');
@@ -1117,6 +1187,8 @@ const tests = {
1117
1187
  ...customizeSpecialCharacterComponent.tests,
1118
1188
  ...essayResponseCommonComponents.tests,
1119
1189
  ...additionalSettingsAccessibilitySectionComponent.tests,
1190
+ ...studentViewSettingsLabelComponent.tests,
1191
+ ...autoScoredStudentViewSettings.tests,
1120
1192
 
1121
1193
  /**
1122
1194
  * insert equation and verify input field content and word count