itemengine-cypress-automation 1.0.193-packageUpdated-b3f3d0b.0 → 1.0.193

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 (51) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +3 -3
  2. package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +568 -0
  3. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +4 -4
  4. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +5 -5
  5. package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +2 -2
  6. package/cypress/e2e/ILC/AudioPlayerNew/headerSection.js +125 -0
  7. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +5 -5
  8. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +4 -4
  9. package/cypress/e2e/ILC/AudioPlayerNew/studentViewSettings.js +3 -3
  10. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +19 -17
  11. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +7 -4
  12. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +366 -0
  13. package/cypress/e2e/ILC/ChartsLine/checkAnswerFunctionalityForAllViews.smoke.js +183 -0
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +281 -0
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +595 -0
  16. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +8 -8
  17. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +241 -0
  18. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +241 -0
  19. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternatePoints.js +285 -0
  20. package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +164 -0
  21. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +281 -0
  22. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +467 -0
  23. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +250 -0
  24. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +281 -0
  25. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +260 -0
  26. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsScoring.js +184 -0
  27. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +229 -0
  28. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +261 -0
  29. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +409 -0
  30. package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +199 -0
  31. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +223 -0
  32. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +402 -0
  33. package/cypress/pages/audioPlayerPage.js +229 -9
  34. package/cypress/pages/chartsBarPage.js +2 -70
  35. package/cypress/pages/chartsDotPlotPage.js +986 -3
  36. package/cypress/pages/chartsLinePage.js +368 -9
  37. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +0 -1
  38. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
  39. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  40. package/cypress/pages/components/barAndLineChartComponent.js +27 -1
  41. package/cypress/pages/components/chartsCommonComponent.js +31 -2
  42. package/cypress/pages/components/createQuestionBasePage.js +1 -0
  43. package/cypress/pages/components/layoutSectionComponent.js +2 -2
  44. package/cypress/pages/components/singleMultipleSelectionModeComponent.js +5 -0
  45. package/cypress/pages/components/toolSettingsComponent.js +2 -2
  46. package/cypress/pages/feedbackScalePage.js +1 -1
  47. package/cypress/pages/gridFillPage.js +13 -6
  48. package/cypress/pages/imageHighlightPage.js +308 -2
  49. package/cypress/pages/numberLinePage.js +40 -16
  50. package/cypress/pages/videoResponsePage.js +350 -6
  51. package/package.json +1 -1
@@ -1,11 +1,10 @@
1
+ import constants from "../fixtures/constants";
1
2
  import utilities from "../support/helpers/utilities";
2
- import { commonComponents, createQuestionBasePage, playbackControlsBaseComponent } from "./components";
3
- import { dialogBoxBase } from "./dialogBoxBase";
3
+ import { ckEditorToolbar, commonComponents, createQuestionBasePage, equationEditorFlyout, playbackControlsBaseComponent } from "./components";
4
4
 
5
5
  const selectors = {
6
6
  ...playbackControlsBaseComponent,
7
7
  ...commonComponents,
8
- ...dialogBoxBase,
9
8
  uploadAudioFileLabel: () => cy.get('[class*="RadioGroupMUI5styles__RadioOptionContainer"] .ngie-radio-label').eq(0),
10
9
  uploadAudioFileRadioButton: () => cy.get('.ngie-radio-btn input').eq(0),
11
10
  addAudioURLLabel: () => cy.get('[class*="RadioGroupMUI5styles__RadioOptionContainer"] .ngie-radio-label').eq(1),
@@ -44,7 +43,6 @@ const selectors = {
44
43
  customizePlayerLayoutProgressIndicatorButton: () => cy.get('[data-ngie-testid="progressbar-toggle-button"]'),
45
44
  customizePlayerLayoutToggleButtonLabel: () => cy.get('[class*="ToggleButtonMUI5style__ButtonLabelWrapper"]'),
46
45
  uncheckAllButton: () => cy.get('[class*="AudioPlayerstyles__UncheckButton"]'),
47
- audioDescriptionInputField: () => cy.get('.description-wrapper [role="textbox"]'),
48
46
  uploadTranscriptFileLabel: () => cy.get('[class*="RadioGroupMUI5styles__RadioOptionContainer"] .ngie-radio-label').eq(2),
49
47
  uploadTranscriptFileRadioButton: () => cy.get('.ngie-radio-btn input').eq(2),
50
48
  typeInTranscriptLabel: () => cy.get('[class*="RadioGroupMUI5styles__RadioOptionContainer"] .ngie-radio-label').eq(3),
@@ -57,7 +55,18 @@ const selectors = {
57
55
  playAttemptsLimitLabel: () => cy.get('.playback-limit-wrapper [class*="Label"]'),
58
56
  playAttemptsLimitInputField: () => cy.get('.playback-limit-wrapper input'),
59
57
  studentViewSettingsLabel: () => cy.get('[class*="AudioPlayerstyles__TranscriptLabelWrapper"]').eq(0),
60
- deleteTranscriptButton: () => cy.get('[aria-label*="Delete transcript]'),
58
+ audioOverviewLabel: () => cy.get('.additional-settings-label'),
59
+ audioOverviewInputField: () => cy.get('[title="Description"]'),
60
+ transcriptLabel: () => cy.get('.audio-resource-label-wrapper').eq(1),
61
+ uploadTranscriptUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(2),
62
+ uploadTranscriptFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(3),
63
+ uploadTranscriptChooseFileButton: () => cy.get('.upload-audio-file-input-wrapper button').eq(1),
64
+ uploadTranscriptNoFileChosenLabel: () => cy.get('[aria-label="No file chosen"]').eq(1),
65
+ transcriptInputTypeFile: () => cy.get('input[type="file"]').eq(1),
66
+ uploadedTranscriptFileNameLabel: () => cy.get('.selected-file').eq(1),
67
+ transcriptFileUploadProgressBar: () => cy.get('[class*="AudioPlayerstyles__ProgressBar-"]').eq(1),
68
+ transcriptInputFieldLabel: () => cy.get('.additional-settings-label').eq(1),
69
+ deleteTranscriptButton: () => cy.get('[aria-label*="Delete"]'),
61
70
 
62
71
  //Preview tab
63
72
  backwardButton: () => cy.get('.forward-backward-buttons-wrapper [aria-label*="Backward"]'),
@@ -67,7 +76,7 @@ const selectors = {
67
76
  playbackTotalTime: () => cy.get('.audio-player-duration').eq(0),
68
77
  addPinButton: () => cy.get('.audio-add-pin-wr button'),
69
78
  audioFileSrc: () => cy.get('.audio-player-toolbar audio'),
70
- descriptionPreviewTab: () => cy.get('.audio-resource-preview-wrapper .question-text-wrapper'),
79
+ audioOverviewPreviewTab: () => cy.get('.audio-resource-preview-wrapper .question-text-wrapper'),
71
80
  transcriptTitlePreviewTab: () => cy.get('.transcript-title'),
72
81
  transcriptPrintButton: () => cy.get('button[aria-label="Print preview"]'),
73
82
  transcriptModalCloseButton: () => cy.get('button[aria-label="Close"]'),
@@ -108,13 +117,15 @@ const selectors = {
108
117
  const steps = {
109
118
  ...playbackControlsBaseComponent.steps,
110
119
  ...createQuestionBasePage.steps,
111
- ...dialogBoxBase.steps,
120
+ ...ckEditorToolbar.steps,
121
+ ...equationEditorFlyout.steps,
122
+ ...commonComponents.steps,
112
123
  /**
113
124
  * Uploads a file to the audio player by attaching the file located at the specified filePath.
114
125
  * @param {string} filePath - The file path to the file to be uploaded.
115
126
  * @returns {void}
116
127
  */
117
- uploadFile: (filePath) => {
128
+ uploadAudioFile: (filePath) => {
118
129
  audioPlayerPage.inputTypeFile()
119
130
  .attachFile(filePath);
120
131
  utilities.verifyElementVisibilityState(audioPlayerPage.audioFileUploadProgressBar(), 'hidden');
@@ -147,10 +158,14 @@ const steps = {
147
158
  enterTextInTranscriptInputField: (text) => {
148
159
  audioPlayerPage.transcriptInputField()
149
160
  .type(text)
150
- .should('have.text', text)
151
161
  .blur();
152
162
  },
153
163
 
164
+ verifyTextInTranscriptInputField: (text) => {
165
+ audioPlayerPage.transcriptInputField()
166
+ .should('have.text', text);
167
+ },
168
+
154
169
  verifyUploadAudioFileRadioButtonIsSelected: () => {
155
170
  audioPlayerPage.uploadAudioFileRadioButton()
156
171
  .should('be.checked');
@@ -573,6 +588,11 @@ const steps = {
573
588
  .click();
574
589
  },
575
590
 
591
+ deleteTranscriptFile: () => {
592
+ audioPlayerPage.deleteTranscriptButton()
593
+ .click();
594
+ },
595
+
576
596
  //Preview tab
577
597
  waitForPlaybackToBegin: () => {
578
598
  steps.waitForAudioFileSrcToLoad();
@@ -719,6 +739,205 @@ const steps = {
719
739
  .should('be.calledWith', '');
720
740
  },
721
741
 
742
+ focusInAudioOverviewInputField: () => {
743
+ audioPlayerPage.audioOverviewInputField()
744
+ .click();
745
+ },
746
+
747
+ focusOutOfAudioOverviewInputField: () => {
748
+ audioPlayerPage.audioOverviewInputField()
749
+ .blur();
750
+ },
751
+
752
+ clearAudioOverviewInputField: () => {
753
+ audioPlayerPage.audioOverviewInputField()
754
+ .clear()
755
+ .blur();
756
+ },
757
+
758
+ /**
759
+ * @description add input to audio overview input field
760
+ * @param {string} text text input to be given in audio overview input field
761
+ */
762
+ addInputToAudioOverviewInputField: (text) => {
763
+ audioPlayerPage.audioOverviewInputField()
764
+ .type(text)
765
+ .blur();
766
+ },
767
+
768
+ verifyImageAndAltTextInAudioOverviewInputField: () => {
769
+ audioPlayerPage.audioOverviewInputField()
770
+ .find('img')
771
+ .should('have.attr', 'src', constants.foxImageLink)
772
+ .and('have.attr', 'alt', constants.foxImageAltText);
773
+ },
774
+
775
+ verifyImageAndAltTextInAudioOverviewPreviewTab: () => {
776
+ audioPlayerPage.audioOverviewPreviewTab()
777
+ .find('img')
778
+ .should('have.attr', 'src', constants.foxImageLink)
779
+ .and('have.attr', 'alt', constants.foxImageAltText);
780
+ },
781
+
782
+ verifyEquationInAudioOverviewInputField: () => {
783
+ audioPlayerPage.audioOverviewInputField()
784
+ .find('[data-widget="ngie_equation"]')
785
+ .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
786
+ .contains(constants.CKEditorInputFieldEnteredEquationText);
787
+ },
788
+
789
+ verifyEquationInAudioOverviewPreviewTab: () => {
790
+ audioPlayerPage.audioOverviewPreviewTab()
791
+ .find('[role="math"]')
792
+ .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
793
+ .contains(constants.CKEditorInputFieldEnteredEquationText);
794
+ },
795
+
796
+ verifyLinkInAudioOverviewInputField: () => {
797
+ audioPlayerPage.audioOverviewInputField()
798
+ .find('a')
799
+ .should('have.text', 'lorem')
800
+ .and('have.attr', 'href', `${Cypress.config().baseUrl}`);
801
+ },
802
+
803
+ verifyLinkInAudioOverviewPreviewTab: () => {
804
+ audioPlayerPage.audioOverviewPreviewTab()
805
+ .find('a')
806
+ .should('have.text', 'lorem')
807
+ .and('have.attr', 'href', `${Cypress.config().baseUrl}`);
808
+ },
809
+
810
+ verifyBoldTextInAudioOverviewInputField: () => {
811
+ audioPlayerPage.audioOverviewInputField()
812
+ .find('strong')
813
+ .should('exist')
814
+ .should('have.text', '​​​​​​​This is a bold text in audio overview input field');
815
+ },
816
+
817
+ verifyBoldTextInAudioOverviewPreviewTab: () => {
818
+ audioPlayerPage.audioOverviewPreviewTab()
819
+ .find('strong')
820
+ .should('exist')
821
+ .should('have.text', 'This is a bold text in audio overview input field');
822
+ },
823
+
824
+ focusAwayFromElement: () => {
825
+ cy.get('body')
826
+ .click({ position: 'topLeft' });
827
+ },
828
+
829
+ verifyUploadTranscriptFileRadioButtonIsSelected: () => {
830
+ audioPlayerPage.uploadTranscriptFileRadioButton()
831
+ .should('be.checked');
832
+ },
833
+
834
+ verifyUploadTranscriptFileRadioButtonIsNotSelected: () => {
835
+ audioPlayerPage.uploadTranscriptFileRadioButton()
836
+ .should('not.be.checked');
837
+ },
838
+
839
+ verifyTypeInTranscriptRadioButtonIsNotSelected: () => {
840
+ audioPlayerPage.typeInTranscriptRadioButton()
841
+ .should('not.be.checked');
842
+ },
843
+
844
+ /**
845
+ * Uploads a file to the audio player transcript by attaching the file located at the specified filePath.
846
+ * @param {string} filePath - The file path to the file to be uploaded.
847
+ * @returns {void}
848
+ */
849
+ uploadTranscriptFile: (filePath) => {
850
+ audioPlayerPage.transcriptInputTypeFile()
851
+ .attachFile(filePath);
852
+ utilities.verifyElementVisibilityState(audioPlayerPage.transcriptFileUploadProgressBar(), 'hidden');
853
+ },
854
+
855
+ /**
856
+ * Attaches a transcript file at the specified filePath.
857
+ * @param {string} filePath - The file path to the file to be attached.
858
+ * @returns {void}
859
+ */
860
+ attachTranscriptFile: (filePath) => {
861
+ audioPlayerPage.transcriptInputTypeFile()
862
+ .attachFile(filePath);
863
+ },
864
+
865
+ focusInAndFocusOutOfTranscriptInputField: () => {
866
+ audioPlayerPage.transcriptInputField()
867
+ .click()
868
+ .blur();
869
+ },
870
+
871
+ focusInTranscriptInputField: () => {
872
+ audioPlayerPage.transcriptInputField()
873
+ .click();
874
+ },
875
+
876
+ verifyImageAndAltTextInTranscriptInputField: () => {
877
+ audioPlayerPage.transcriptInputField()
878
+ .find('img')
879
+ .should('have.attr', 'src', constants.foxImageLink)
880
+ .and('have.attr', 'alt', constants.foxImageAltText);
881
+ },
882
+
883
+ verifyImageAndAltTextInTranscriptPreviewTab: () => {
884
+ audioPlayerPage.transcriptContentPreviewTab()
885
+ .find('img')
886
+ .should('have.attr', 'src', constants.foxImageLink)
887
+ .and('have.attr', 'alt', constants.foxImageAltText);
888
+ },
889
+
890
+ verifyEquationInTranscriptInputField: () => {
891
+ audioPlayerPage.transcriptInputField()
892
+ .find('[data-widget="ngie_equation"]')
893
+ .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
894
+ .contains(constants.CKEditorInputFieldEnteredEquationText);
895
+ },
896
+
897
+ verifyEquationInTranscriptPreviewTab: () => {
898
+ audioPlayerPage.transcriptContentPreviewTab()
899
+ .find('[role="math"]')
900
+ .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
901
+ .contains(constants.CKEditorInputFieldEnteredEquationText);
902
+ },
903
+
904
+ verifyLinkInTranscriptInputField: () => {
905
+ audioPlayerPage.transcriptInputField()
906
+ .find('a')
907
+ .should('have.text', 'lorem')
908
+ .and('have.attr', 'href', `${Cypress.config().baseUrl}`);
909
+ },
910
+
911
+ verifyLinkInTranscriptPreviewTab: () => {
912
+ audioPlayerPage.transcriptContentPreviewTab()
913
+ .find('a')
914
+ .should('have.text', 'lorem')
915
+ .and('have.attr', 'href', `${Cypress.config().baseUrl}`);
916
+ },
917
+
918
+ verifyBoldTextInTranscriptInputField: () => {
919
+ audioPlayerPage.transcriptInputField()
920
+ .find('strong')
921
+ .should('exist')
922
+ .should('have.text', '​​​​​​​This is a bold text in transcript input field');
923
+ },
924
+
925
+ verifyBoldTextInTranscriptPreviewTab: () => {
926
+ audioPlayerPage.transcriptContentPreviewTab()
927
+ .find('strong')
928
+ .should('exist')
929
+ .should('have.text', 'This is a bold text in transcript');
930
+ },
931
+
932
+ clearTranscriptInputField: () => {
933
+ audioPlayerPage.transcriptInputField()
934
+ .clear();
935
+ },
936
+
937
+ closeTranscriptModal: () => {
938
+ audioPlayerPage.transcriptModalCloseButton()
939
+ .click();
940
+ },
722
941
  clickOnAddPinButton: () => {
723
942
  audioPlayerPage.addPinButton()
724
943
  .click();
@@ -843,6 +1062,7 @@ const steps = {
843
1062
  const tests = {
844
1063
  ...commonComponents.tests,
845
1064
  ...playbackControlsBaseComponent.tests,
1065
+ ...createQuestionBasePage.tests,
846
1066
  }
847
1067
 
848
1068
  export const audioPlayerPage = {
@@ -11,8 +11,6 @@ const selectors = {
11
11
  ...dialogBoxBase,
12
12
  barDragHandle: () => cy.get('.bar-drag-handle'),
13
13
  bar: () => cy.get('.ngie-chart-point'),
14
- selectChartTypeMaxYLabel: () => cy.get('[class*="ChartsPreviewstyles__CustomInputFieldLabel"]'),
15
- selectChartTypeMaxYInputField: () => cy.get('[class*="ChartsPreviewstyles__CustomInputFieldWrapper"] input'),
16
14
  selectChartTypeMaxXLabel: () => cy.get('[class*="ChartsPreviewstyles__CustomInputFieldLabel"]'),
17
15
  selectChartTypeMaxXInputField: () => cy.get('[class*="ChartsPreviewstyles__CustomInputFieldWrapper"] input'),
18
16
  selectChartTypeBarDragHandle: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] .bar-drag-handle'),
@@ -24,7 +22,6 @@ const selectors = {
24
22
  specifyCorrectAnswerBarDragHandle: () => cy.get('.ngie-accordion .bar-drag-handle'),
25
23
  specifyCorrectAnswerBar: () => cy.get('.ngie-accordion .ngie-chart-point'),
26
24
 
27
- //TODO - Update selector after https://redmine.zeuslearning.com/issues/570603 is resolved
28
25
  //Preview tab
29
26
  previewTabBarDragHandle: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible .bar-drag-handle'),
30
27
  previewTabBar: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible .ngie-chart-point'),
@@ -137,18 +134,6 @@ const steps = {
137
134
  utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.selectChartTypeBarLabel(), barIndex), barLabel);
138
135
  },
139
136
 
140
- /**
141
- * @description Set the Max Y value in its input field
142
- * @param {number} value Max Y value to be set
143
- */
144
- setMaxYValue: (value) => {
145
- chartsBarPage.selectChartTypeMaxYInputField()
146
- .clear()
147
- .type(value)
148
- .should('have.value', value)
149
- .blur();
150
- },
151
-
152
137
  /**
153
138
  * @description Set the Max bar count value in its input field
154
139
  * @param {number} value Max bar value to be set
@@ -196,10 +181,10 @@ const steps = {
196
181
  .invoke('attr', 'height')
197
182
  .then((barValue) => {
198
183
  let originalBarValue = parseFloat(barValue)
199
- utilities.getNthElement(chartsBarPage.selectChartTypeBarDragHandle(), barIndex)
184
+ utilities.getNthElement(chartsBarPage.previewTabBarDragHandle(), barIndex)
200
185
  .focus()
201
186
  .type('{upArrow}{upArrow}{upArrow}{downArrow}{downArrow}{downArrow}', { force: true });
202
- utilities.getNthElement(chartsBarPage.specifyCorrectAnswerBar(), barIndex)
187
+ utilities.getNthElement(chartsBarPage.previewTabBar(), barIndex)
203
188
  .should('have.attr', 'height', originalBarValue);
204
189
  });
205
190
  },
@@ -369,22 +354,6 @@ const steps = {
369
354
  });
370
355
  },
371
356
 
372
- /**
373
- * Verify the bar is locked in correct answer section
374
- * @param {number} barIndex index of the bar
375
- */
376
- verifyBarIsLockedInCorrectAnswerSection: (barIndex) => {
377
- chartsBarPage.previewTabChartWrapper()
378
- .eq(1)
379
- .within(() => {
380
- utilities.getNthElement(chartsBarPage.bar(), barIndex)
381
- .within(() => {
382
- utilities.verifyElementVisibilityState(chartsBarPage.barLockIcon(), 'visible');
383
- utilities.verifyElementVisibilityState(chartsBarPage.barDragHandle().find('svg'), 'notExist');
384
- });
385
- });
386
- },
387
-
388
357
  /**
389
358
  * @description Verify chart range in correct answer section
390
359
  * @param {number} maximumValue maximum value of range
@@ -397,43 +366,6 @@ const steps = {
397
366
  });
398
367
  },
399
368
 
400
- /**
401
- * @description Verify graph title in correct answer section
402
- * @param {string} graphTitle Title of graph
403
- */
404
- verifyGraphTitleInCorrectAnswerSection: (graphTitle) => {
405
- chartsBarPage.previewTabChartWrapper()
406
- .eq(1)
407
- .within(() => {
408
- utilities.verifyTextContent(utilities.getNthElement(chartsBarPage.graphTitle(), 0), graphTitle);
409
- });
410
- },
411
-
412
- /**
413
- * @description Verify Y axis label in correct answer section
414
- * @param {string} yAxisLabel
415
- */
416
- verifyYAxisLabelInCorrectAnswerSection: (yAxisLabel) => {
417
- chartsBarPage.previewTabChartWrapper()
418
- .eq(1)
419
- .within(() => {
420
- utilities.verifyTextContent(utilities.getNthElement(chartsBarPage.yAxisLabel(), 0), yAxisLabel);
421
- });
422
- },
423
-
424
- /**
425
- * @description Verify X axis label in correct answer section
426
- * @param {string} yAxisLabel
427
- */
428
- verifyXAxisLabelInCorrectAnswerSection: (XAxisLabel) => {
429
- chartsBarPage.previewTabChartWrapper()
430
- .eq(1)
431
- .within(() => {
432
- utilities.verifyTextContent(utilities.getNthElement(chartsBarPage.xAxisLabel(), 0), XAxisLabel);
433
- });
434
- },
435
-
436
-
437
369
  /**
438
370
  * @description verify bar in correct answer section
439
371
  * @param {Object} barProperties - The properties and changes to be done on the bar