itemengine-cypress-automation 1.0.295-applitools-219e3f5.0 → 1.0.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
  2. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
  3. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
  4. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
  5. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
  7. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
  8. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  9. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
  10. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  11. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
  12. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -12
  13. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
  14. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
  15. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
  16. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
  17. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
  18. package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
  19. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
  23. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -10
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +1 -10
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -12
  34. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  35. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
  36. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -11
  37. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
  38. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +1 -11
  39. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
  40. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
  41. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +1 -10
  42. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +1 -10
  43. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
  44. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
  45. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
  46. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
  47. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
  48. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
  49. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
  50. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
  51. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
  52. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
  53. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
  54. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  55. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  56. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
  57. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  58. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
  59. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  60. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
  61. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
  62. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
  63. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  64. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  65. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  66. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  67. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
  68. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
  69. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -12
  70. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
  71. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  72. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
  73. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
  74. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
  75. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
  76. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
  77. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
  78. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
  79. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
  80. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
  81. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
  82. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
  83. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
  84. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
  85. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  86. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
  87. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
  88. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
  89. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
  90. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
  91. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
  92. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
  93. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  94. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -13
  95. package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
  96. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
  97. package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
  98. package/cypress/pages/components/optionsWrapperComponent.js +0 -3
  99. package/cypress/pages/createItemPage.js +2 -2
  100. package/cypress/pages/multipleSelectionPage.js +39 -1
  101. package/cypress/pages/singleSelectionPage.js +39 -1
  102. package/cypress/support/commands.js +0 -11
  103. package/cypress/support/e2e.js +0 -1
  104. package/package.json +1 -4
  105. package/scripts/sorry-cypress.mjs +5 -0
  106. package/cypress/e2e/applitools.config.js +0 -14
@@ -8,7 +8,7 @@ import { ckEditorInsertImageComponent } from "./components/ckEditorInsertImageCo
8
8
  import { ckEditorLinkComponent } from "../pages/components/ckEditorLinkComponent"
9
9
  import { createItemPage } from "./createItemPage";
10
10
  import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
11
- import {audioPlayerPage} from "./audioPlayerPage";
11
+ import { audioPlayerPage } from "./audioPlayerPage";
12
12
  const css = Cypress.env('css');
13
13
  const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
14
14
 
@@ -914,6 +914,44 @@ const tests = {
914
914
  ...ckEditorInsertTableComponent.tests,
915
915
  ...ckEditorInsertImageComponent.tests,
916
916
  ...ckEditorLinkComponent.tests,
917
+ //Note: need to remove this as change the global function once save as you go is available for all question types
918
+ verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
919
+ it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
920
+ utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
921
+ utilities.verifyInnerText(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), 'Grading view');
922
+ autoScoredScoringPreviewTab.studentViewRadioButton()
923
+ .should('be.checked');
924
+ autoScoredScoringPreviewTab.gradingViewRadioButton()
925
+ .should('not.be.checked');
926
+ autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
927
+ autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
928
+ });
929
+
930
+ it('CSS of Preview mode contents', { tags: 'css' }, () => {
931
+ utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), {
932
+ 'color': css.color.labelText,
933
+ 'font-size': css.fontSize.normal,
934
+ 'font-weight': css.fontWeight.regular
935
+ });
936
+ utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), {
937
+ 'color': css.color.labelText,
938
+ 'font-size': css.fontSize.normal,
939
+ 'font-weight': css.fontWeight.regular
940
+ });
941
+ utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
942
+ 'color': css.color.codeBlockText,
943
+ 'font-size': css.fontSize.default,
944
+ 'font-weight': css.fontWeight.bold
945
+ });
946
+ utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButton().parent().find('svg'), {
947
+ 'fill': css.color.activeButtons
948
+ });
949
+ utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButton().parent().find('svg path'), {
950
+ 'fill': css.color.uncheckedCheckbox
951
+ });
952
+ });
953
+ },
954
+
917
955
  /**
918
956
  * Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
919
957
  * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
@@ -248,7 +248,7 @@ const steps = {
248
248
  singleSelectionPage.correctAnswerSectionWrapper()
249
249
  .should('be.visible');
250
250
  },
251
-
251
+
252
252
  verifyAnswerBannerNotExist: () => {
253
253
  singleSelectionPage.answerStatusBanner()
254
254
  .should('not.exist');
@@ -719,6 +719,44 @@ const tests = {
719
719
  ...autoScoredStudentViewSettings.tests,
720
720
  ...additionalSettingsAccessibilitySectionComponent.tests,
721
721
  ...mcqAdditionalSettingsBase.tests,
722
+ //Note: need to remove this as change the global function once save as you go is available for all question types
723
+ verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
724
+ it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
725
+ utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
726
+ utilities.verifyInnerText(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), 'Grading view');
727
+ autoScoredScoringPreviewTab.studentViewRadioButton()
728
+ .should('be.checked');
729
+ autoScoredScoringPreviewTab.gradingViewRadioButton()
730
+ .should('not.be.checked');
731
+ autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
732
+ autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
733
+ });
734
+
735
+ it('CSS of Preview mode contents', { tags: 'css' }, () => {
736
+ utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), {
737
+ 'color': css.color.labelText,
738
+ 'font-size': css.fontSize.normal,
739
+ 'font-weight': css.fontWeight.regular
740
+ });
741
+ utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), {
742
+ 'color': css.color.labelText,
743
+ 'font-size': css.fontSize.normal,
744
+ 'font-weight': css.fontWeight.regular
745
+ });
746
+ utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
747
+ 'color': css.color.codeBlockText,
748
+ 'font-size': css.fontSize.default,
749
+ 'font-weight': css.fontWeight.bold
750
+ });
751
+ utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButton().parent().find('svg'), {
752
+ 'fill': css.color.activeButtons
753
+ });
754
+ utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButton().parent().find('svg path'), {
755
+ 'fill': css.color.uncheckedCheckbox
756
+ });
757
+ });
758
+ },
759
+
722
760
  verifyContentsOfSpecifyCorrectAnswerSection: () => {
723
761
  it('In the \'Correct\' accordion, all options with checkboxes should be displayed', () => {
724
762
  utilities.verifyElementCount(singleSelectionPage.optionWrapperSpecifyCorrectAnswerSection(), 4);
@@ -5,7 +5,6 @@ import 'cypress-file-upload';
5
5
  import { iePage } from './migrationHelpers/verifyIeQuestionData';
6
6
  import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
7
7
  require('cy-verify-downloads').addCustomCommand();
8
- import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
9
8
  //import addContext from "mochawesome/addContext";
10
9
 
11
10
  const randomUser = (j, username, i) => ({
@@ -155,16 +154,6 @@ Cypress.Commands.add('learnosityLoaderWait', () => {
155
154
  .should('be.visible');
156
155
  });
157
156
 
158
- Cypress.Commands.add('startApplitools', () => {
159
- cy.eyesOpen({
160
- apiKey,
161
- serverUrl,
162
- browser,
163
- appName: 'Applitools Demo - ILC',
164
- testName: Cypress.currentTest.title,
165
- });
166
- });
167
-
168
157
  Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
169
158
  iePage.questionAndResourceWrapper()
170
159
  .then((elements) => {
@@ -4,7 +4,6 @@ import 'cypress-axe';
4
4
  import './helpers/cypressUtilities';
5
5
  import './helpers/accessibility';
6
6
  import './helpers/selectText';
7
- import '@applitools/eyes-cypress/commands'
8
7
 
9
8
  let windowConsoleError;
10
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.295-applitools-219e3f5.0",
3
+ "version": "1.0.295",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,8 +35,5 @@
35
35
  "node-fetch": "^3.3.2",
36
36
  "react-uuid": "^2.0.0",
37
37
  "typescript": "^5.6.3"
38
- },
39
- "devDependencies": {
40
- "@applitools/eyes-cypress": "^3.49.1"
41
38
  }
42
39
  }
@@ -94,10 +94,15 @@ export function runSorryCypressLocal() {
94
94
  * @method runSorryCypressSpinnaker
95
95
  */
96
96
  export function runSorryCypressSpinnaker() {
97
+ console.log('Inside runSorryCypressSpinnaker');
97
98
  process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.tech/";
99
+ console.log('CYPRESS_API_URL:', process.env.CYPRESS_API_URL);
98
100
  startTime = process.env.START_TIME;
101
+ console.log('START_TIME:', startTime);
99
102
  ciBuildId = setCiBuildId("spinnaker", startTime);
103
+ console.log('ciBuildId:', ciBuildId);
100
104
  const envArgs = setCommandLineEnvArgs()
105
+ console.log('envArgs:', envArgs);
101
106
  let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/**/*.js"`;
102
107
  console.log(`command: ${command}`);
103
108
  execSync(command, { stdio: "inherit" });
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- apiKey: 'iv996xa7KXMrp8xQ8JwZ9TybQwOUVjzBDzDzoEyyr8z4110',
3
- serverUrl: 'https://eyes.applitools.com',
4
- browser: [
5
- { width: 1366, height: 609, name: 'chrome' },
6
- { width: 1280, height: 832, name: 'edgechromium' },
7
- { width: 1536, height: 960, name: 'safari' },
8
- { width: 1024, height: 1366, name: 'safari' }
9
- ],
10
- //Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
11
- ignoreDisplacements: true, // Set to false to detect mismatches in the displacements of the elements
12
- failCypressOnDiff: false, // Set to true to fail the test when differences are detected
13
- isDisabled: false // Set to true to disable Applitools
14
- };