itemengine-cypress-automation 1.0.192 → 1.0.193-packageUpdated-87a683f.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +2 -1
  2. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +1 -2
  3. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +1 -1
  4. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  5. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -2
  6. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +7 -6
  7. package/cypress/e2e/ILC/VideoResponseNew/{customizePlaybackControlsStandardRecorderStyle.js → customizePlaybackControls.js} +4 -7
  8. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +0 -93
  9. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
  10. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +2 -2
  11. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +42 -4
  12. package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
  13. package/package.json +1 -1
  14. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +0 -605
  15. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsCompactRecorderStyle.js +0 -300
  16. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -268
  17. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosFourFunctionCalculatorEditTabBasicSection.js +0 -0
  18. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosFourFunctionCalculatorPreviewContents.smoke.js +0 -0
  19. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGeometryToolEditTabBasicSection.js +0 -0
  20. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGeometryToolPreviewContents.smoke.js +0 -0
  21. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGraphingCalculatorEditTabBasicSection.js +0 -0
  22. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGraphingCalculatorPreviewContents.smoke.js +0 -0
  23. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosMatrixCalculatorEditTabBasicSection.js +0 -0
  24. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosMatrixCalculatorPreviewContents.smoke.js +0 -0
  25. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosScientificCalculatorEditTabBasicSection.js +0 -0
  26. /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosScientificCalculatorPreviewContents.smoke.js +0 -0
  27. /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/additionalSettings.js +0 -0
  28. /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/editTabBasic.js +0 -0
  29. /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/editTabScoring.js +0 -0
  30. /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -0
  31. /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/previewTabContent.smoke.js +0 -0
  32. /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/studentViewSettings.js +0 -0
  33. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/3DGraphingCalculatorEditTabBasicSection.js +0 -0
  34. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/3DGraphingCalculatorPreviewTabContents.smoke.js +0 -0
  35. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/casCalculatorEditTabBasicSection.js +0 -0
  36. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/casCalculatorPreviewTabContents.smoke.js +0 -0
  37. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/geometryCalculatorEditTabBasicSection.js +0 -0
  38. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/geometryCalculatorPreviewTabContents.smoke.js +0 -0
  39. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/graphingCalculatorEditTabBasicSection.js +0 -0
  40. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/graphingCalculatorPreviewTabContents.smoke.js +0 -0
  41. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/probablityCalculatorEditTabBasicSection.js +0 -0
  42. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/probablityCalculatorPreviewTabContents.smoke.js +0 -0
  43. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/scientificCalculatorEditTabBasicSection.js +0 -0
  44. /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/scientificCalculatorPreviewTabContents.smoke.js +0 -0
  45. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/additionalSettings.js +0 -0
  46. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/editTabScoringSection.js +0 -0
  47. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -0
  48. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/headerSection.js +0 -0
  49. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/insertResourceLink.js +0 -0
  50. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/previewTabContent.smoke.js +0 -0
  51. /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/questionInstructions.js +0 -0
  52. /package/cypress/e2e/ILC/VideoResponseNew/{studentViewSettingsStandardRecorderStyle.js → studentViewSettings.js} +0 -0
@@ -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
 
@@ -120,8 +120,7 @@ describe('Create item page - Image highlight - Preview contents in all views', (
120
120
  } else {
121
121
  it('The highlight regions should be displayed with correct answers', () => {
122
122
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
123
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
124
- imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
123
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
125
124
  });
126
125
  }
127
126
 
@@ -95,7 +95,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
95
95
  });
96
96
 
97
97
  it('The user should be able to select an option from the position dropdown. When the user has not set position in all dropdowns, an alert message "All options need to have a value assigned to them from the dropdown." should be displayed', () => {
98
- listOrderingPage.steps.selectListOptionPositionDropdown('2');
98
+ listOrderingPage.steps.selectOptionPositionPreviewTab(0, 2);
99
99
  utilities.verifyElementVisibilityState(listOrderingPage.dropdownList(), 'notExist');
100
100
  listOrderingPage.steps.verifyAssignValueToAllDropdownAlertMessage();
101
101
  });
@@ -1,4 +1,4 @@
1
- import { itemPreviewPage, numberLinePage } from "../../../../pages";
1
+ import { itemPreviewPage, numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
4
  const selectedToolOption = ['Point', 'Segment', 'Segment left/down hollow pt', 'Segment right/up hollow pt', 'Segment both hollow pts'];
@@ -126,8 +126,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
126
126
  };
127
127
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[0]);
128
128
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
129
- //Remove comment once https://redmine.zeuslearning.com/issues/568598 is resolved
130
- // utilities.verifyInnerText(textSelectionPage.correctAnswersLabel(), 'Correct answers');
129
+ utilities.verifyInnerText(textSelectionPage.correctAnswersLabel(), 'Correct answers');
131
130
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
132
131
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
133
132
  });
@@ -54,17 +54,18 @@ describe('Create item page - Upload response : Preview contents', () => {
54
54
  utilities.verifyElementVisibilityState(uploadResponsePage.questionInstructionsText(), 'visible');
55
55
  });
56
56
 
57
- it('Upload response area should have a Cloud icon and text \'Drag & Drop files here \'or browse files on your device, or capture an image\' should be displayed', () => {
57
+ it('Upload response area should have a Cloud icon and text \'Drag & Drop files here or browse files on your device, Google Drive or capture an image\' should be displayed', () => {
58
58
  utilities.verifyElementVisibilityState(uploadResponsePage.uploadCloudIcon(), 'visible');
59
59
  utilities.verifyInnerText(uploadResponsePage.dragAndDropFilesText(), 'Drag & Drop files here');
60
- utilities.verifyTextContent(uploadResponsePage.fileUploadOptionsLabel(), 'or browse files on your device, or capture an image');
60
+ utilities.verifyTextContent(uploadResponsePage.fileUploadOptionsLabel(), 'or browse files on your device, Google Drive or capture an image');
61
61
  });
62
-
63
- it('Computer icon should be displayed before link texts \'device\'', () => {
62
+
63
+ it('Computer and Google Drive icons should be displayed before link texts \'device\' and \'Google Drive\' respectively', () => {
64
64
  uploadResponsePage.deviceLink()
65
65
  .verifyPseudoClassBeforeProperty('content', '""');
66
+ utilities.verifyElementVisibilityState(uploadResponsePage.googleDriveLink().find('svg'), 'visible');
66
67
  });
67
-
68
+
68
69
  it('\'Supported file formats\' label should be displayed along with an info icon, hovering over the Supported file formats info icon a tooltip should be displayed with list of all the selected supported file types', () => {
69
70
  utilities.verifyInnerText(uploadResponsePage.supportedFileFormatLabel(), 'Supported file formats');
70
71
  utilities.verifyElementVisibilityState(uploadResponsePage.supportedFileInfoIcon(), 'visible');
@@ -137,7 +138,7 @@ describe('Create item page - Upload response : Preview contents', () => {
137
138
  utilities.triggerMouseover(utilities.getNthElement(uploadResponsePage.supportedFileInfoIcon(), 0));
138
139
  utilities.verifyCSS(uploadResponsePage.supportedFilesTooltip(), {
139
140
  'color': css.color.whiteText,
140
- 'font-size': css.fontSize.small,
141
+ 'font-size': css.fontSize.small,
141
142
  'font-weight': css.fontWeight.light,
142
143
  'background-color': css.color.tooltipBg
143
144
  });
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from '../../../support/helpers/utilities';
4
4
  const css = Cypress.env('css');
5
5
 
6
- describe('Create Item page - Video response: Customize playback controls', () => {
6
+ describe('Create Item page - video response: Customize playback controls', () => {
7
7
  before(() => {
8
8
  cy.loginAs('admin');
9
9
  });
@@ -109,23 +109,20 @@ describe('Create Item page - Video response: Customize playback controls', () =>
109
109
  utilities.verifyElementDisabled(videoResponsePage.fullScreenButtonControlsForPlayback());
110
110
  videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Forward/Backward');
111
111
  utilities.verifyElementDisabled(videoResponsePage.forwardBackwardButtonControlsForPlayback());
112
- videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Timer');
112
+ videoResponsePage.steps.verifyVideoSettingsToggleButtonDeselectedState('Timer');
113
113
  utilities.verifyElementNotDisabled(videoResponsePage.timerButtonVideoSettings());
114
114
  videoResponsePage.steps.verifyVideoSettingsToggleButtonDeselectedState('Progress indicator');
115
115
  utilities.verifyElementDisabled(videoResponsePage.progressIndicatorButtonVideoSettings());
116
116
  });
117
117
 
118
- it('When the user selects the \'Play\' button, "Pause", "Volume", "Playback speed", "Full screen", "Forward/Backward" should get enabled but continue to stay in deselected state. "Progress indicator" should also get enabled from the \'Video settings\' section. "Seek" button should continue to stay in disabled state while "Progress indicator" is in deselected state.', () => {
118
+ //Note: Need to update below case after https://redmine.zeuslearning.com/issues/570839 gets resolved
119
+ it('When the user selects the \'Play\' button, "Pause", "Volume", "Playback speed" and "Full screen" should get enabled. "Progress indicator" and "Timer" buttons should also get enabled from the \'Video settings\' section. "Seek" button should continue to stay in disabled state while "Progress indicator" is in deselected state.', () => {
119
120
  videoResponsePage.steps.selectControlsForPlaybackToggleButton('Play');
120
121
  utilities.verifyElementNotDisabled(videoResponsePage.pauseButtonControlsForPlayback());
121
- videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Pause');
122
122
  utilities.verifyElementDisabled(videoResponsePage.seekButtonControlsForPlayback());
123
123
  utilities.verifyElementNotDisabled(videoResponsePage.volumeButtonControlsForPlayback());
124
- videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Volume');
125
124
  utilities.verifyElementNotDisabled(videoResponsePage.playbackSpeedButtonControlsForPlayback());
126
- videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Playback speed');
127
125
  utilities.verifyElementNotDisabled(videoResponsePage.fullScreenButtonControlsForPlayback());
128
- videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Timer');
129
126
  utilities.verifyElementNotDisabled(videoResponsePage.timerButtonVideoSettings());
130
127
  utilities.verifyElementNotDisabled(videoResponsePage.progressIndicatorButtonVideoSettings());
131
128
  });
@@ -12,7 +12,6 @@ describe('Create item page - Video response: Question instructions, Maximum reco
12
12
  abortEarlySetup();
13
13
  before(() => {
14
14
  videoResponsePage.steps.navigateToCreateQuestion('video response');
15
- cy.barsPreLoaderWait();
16
15
  });
17
16
 
18
17
  videoResponsePage.tests.verifyQuestionInstructionsInputFieldEditTab();
@@ -22,107 +21,16 @@ describe('Create item page - Video response: Question instructions, Maximum reco
22
21
  abortEarlySetup();
23
22
  before(() => {
24
23
  videoResponsePage.steps.navigateToCreateQuestion('video response');
25
- cy.barsPreLoaderWait();
26
24
  });
27
25
 
28
26
  videoResponsePage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
29
27
  });
30
28
 
31
- describe('Video recorder style toggle buttons', () => {
32
- abortEarlySetup();
33
- before(() => {
34
- videoResponsePage.steps.navigateToCreateQuestion('video response');
35
- cy.barsPreLoaderWait();
36
- });
37
-
38
- it('\'Video recorder style\' label should be displayed along with three toggle buttons, "Standard" and "Compact". "Standard" button should be selected by default', () => {
39
- utilities.verifyInnerText(videoResponsePage.videoRecorderStyleLabel(), 'Video recorder style');
40
- utilities.verifyInnerText(videoResponsePage.standardRecorderStyleButton(), 'Standard');
41
- utilities.verifyInnerText(videoResponsePage.compactRecorderStyleButton(), 'Compact');
42
- videoResponsePage.steps.verifyStandardRecorderStyleToggleButtonSelectedState();
43
- });
44
-
45
- it('CSS of video Recorder Style section', { tags: 'css' }, () => {
46
- utilities.verifyCSS(videoResponsePage.videoRecorderStyleLabel(), {
47
- 'color': css.color.labels,
48
- 'font-size': css.fontSize.normal,
49
- 'font-weight': css.fontWeight.semibold
50
- });
51
- utilities.verifyCSS(videoResponsePage.standardRecorderStyleButton(), {
52
- 'color': css.color.defaultBackground,
53
- 'background-color': css.color.activeButtons,
54
- 'font-size': css.fontSize.default,
55
- 'font-weight': css.fontWeight.regular
56
- });
57
- });
58
-
59
- it('When "Standard" option is selected in the video recorder style toggle buttons section, then "Video recorder default width (px)" label and input field should not be displayed', () => {
60
- videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Timer');
61
- videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Progress indicator');
62
- utilities.verifyElementVisibilityState(videoResponsePage.videoRecorderDefaultWidthLabel(), 'notExist');
63
- utilities.verifyElementVisibilityState(videoResponsePage.videoRecorderDefaultWidthInputField(), 'notExist');
64
- });
65
-
66
- it('When the user selects "Compact" option in the video recorder style toggle buttons section, then "Video recorder default width (px)" label and input field should be displayed. By default, the input field value should be "324px"', () => {
67
- videoResponsePage.steps.selectVideoRecorderStyle('Compact');
68
- utilities.verifyInnerText(videoResponsePage.videoRecorderDefaultWidthLabel(), "Video recorder default width (px)");
69
- videoResponsePage.steps.verifyVideoRecorderDefaultWidthInputFieldValue(324);
70
- });
71
-
72
- it('When the user clears the "Video recorder default width (px)" value, then no error message should disappear', () => {
73
- videoResponsePage.steps.clearVideoRecorderDefaultWidthInputField();
74
- videoResponsePage.steps.verifyErrorMessageIsNotDisplayed();
75
- });
76
-
77
- it('When user adds decimal values or alphanumeric values then only numeric values should be displayed in the maximum recording length input field', () => {
78
- videoResponsePage.steps.setVideoRecorderDefaultWidth('.500.0');
79
- videoResponsePage.steps.verifyVideoRecorderDefaultWidthInputFieldValue(500);
80
- videoResponsePage.steps.setVideoRecorderDefaultWidth('!@#abcde584');
81
- videoResponsePage.steps.verifyVideoRecorderDefaultWidthInputFieldValue(584);
82
- });
83
-
84
- it('When user tries to add a value greater than 600 it should be automatically set back to 600 and should not allow to add greater than set value', () => {
85
- videoResponsePage.steps.setVideoRecorderDefaultWidth(9999);
86
- videoResponsePage.steps.verifyVideoRecorderDefaultWidthInputFieldValue(600);
87
- });
88
-
89
- it('When user tries to add a value less than 324 it should be automatically set back to 324 and should not allow to add lower than set value', () => {
90
- videoResponsePage.steps.setVideoRecorderDefaultWidth(300);
91
- videoResponsePage.steps.verifyVideoRecorderDefaultWidthInputFieldValue(324);
92
- });
93
- });
94
-
95
- describe('Video recorder default width (px): Preview tab', () => {
96
- abortEarlySetup();
97
- before(() => {
98
- videoResponsePage.steps.navigateToCreateQuestion('video response');
99
- cy.barsPreLoaderWait();
100
- videoResponsePage.steps.selectVideoRecorderStyle('Compact');
101
- });
102
-
103
- it('The default dimensions of the video recorder flyout should be 324x256px', () => {
104
- videoResponsePage.steps.switchToPreviewTab();
105
- videoResponsePage.steps.startRecordingCompactPreview();
106
- videoResponsePage.steps.waitForRecordingToStartCompactPreview();
107
- videoResponsePage.steps.verifyVideoRecorderFlyoutDimensions(324, 256);
108
- });
109
-
110
- it('When the user updates the "Video recorder default width (px)" input field value, then the dimensions of the video recorder flyout should get updated accordingly', () => {
111
- videoResponsePage.steps.switchToEditTab();
112
- videoResponsePage.steps.setVideoRecorderDefaultWidth(540);
113
- videoResponsePage.steps.switchToPreviewTab();
114
- videoResponsePage.steps.startRecordingCompactPreview();
115
- videoResponsePage.steps.waitForRecordingToStartCompactPreview();
116
- videoResponsePage.steps.verifyVideoRecorderFlyoutDimensions(540, 375);
117
- });
118
- });
119
-
120
29
  //Failing due to https://redmine.zeuslearning.com/issues/570772, https://redmine.zeuslearning.com/issues/570761
121
30
  describe('Maximum recording duration: Edit tab', () => {
122
31
  abortEarlySetup();
123
32
  before(() => {
124
33
  videoResponsePage.steps.navigateToCreateQuestion('video response');
125
- cy.barsPreLoaderWait();
126
34
  });
127
35
 
128
36
  it('\'Maximum recording duration\' label, input field, "Secs" and "Mins" toggle buttons should be displayed. By default "Secs" toggle button should be in selected state. "300" should be displayed in \'Maximum recording duration\' field', () => {
@@ -241,7 +149,6 @@ describe('Create item page - Video response: Question instructions, Maximum reco
241
149
  abortEarlySetup();
242
150
  before(() => {
243
151
  videoResponsePage.steps.navigateToCreateQuestion('video response');
244
- cy.barsPreLoaderWait();
245
152
  videoResponsePage.steps.switchToPreviewTab();
246
153
  });
247
154
 
@@ -115,7 +115,7 @@ describe('Create item page - Video response: Grading view, Correct answer view c
115
115
  videoResponsePage.steps.waitForPlaybackToBegin();
116
116
  videoResponsePage.steps.addWaitToPlayVideo(4000);
117
117
  videoResponsePage.steps.pausePlayback();
118
- videoResponsePage.steps.verifyPlaybackElapsedTime((1 + (4 * playbackSpeedMultiplier[index])), 'Standard');
118
+ videoResponsePage.steps.verifyPlaybackElapsedTime(1 + (4 * playbackSpeedMultiplier[index]));
119
119
  videoResponsePage.steps.startPlayback();
120
120
  videoResponsePage.steps.verifyVideoPlaybackTimer('0:12', '0:12');
121
121
  });
@@ -51,11 +51,11 @@ describe('Create item page - Video response: Preview contents', () => {
51
51
  utilities.verifyElementVisibilityState(videoResponsePage.questionInstructionsText(), 'visible');
52
52
  });
53
53
 
54
- it('A start recording interface with a \'Rec\' button and text \'Click the button to start recording...\' should be displayed in the preview tab', () => {
54
+ it('A start recording interface with a \'Rec\' button and text \'Click/tap anywhere here to start recording\' should be displayed in the preview tab', () => {
55
55
  utilities.verifyElementVisibilityState(videoResponsePage.clickTapAnywhereArea(), 'visible');
56
56
  utilities.verifyInnerText(videoResponsePage.recordButton(), 'REC');
57
57
  utilities.verifyElementVisibilityState(videoResponsePage.recordButton(), 'visible');
58
- utilities.verifyInnerText(videoResponsePage.startRecordingText(), 'Click the button to start recording...');
58
+ utilities.verifyInnerText(videoResponsePage.startRecordingText(), 'Click/tap anywhere here to start recording');
59
59
  utilities.verifyElementVisibilityState(videoResponsePage.startRecordingText(), 'visible');
60
60
  });
61
61
 
@@ -217,7 +217,6 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
217
217
  videoResponsePage.steps.switchToPreviewTab();
218
218
  videoResponsePage.steps.recordAndSaveVideo(10000);
219
219
  });
220
-
221
220
  it('When the user hovers over the \'Play\' button, a tooltip \'Play\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
222
221
  videoResponsePage.playbackPlayButton()
223
222
  .verifyTooltip('Play');
@@ -482,7 +481,7 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
482
481
  videoResponsePage.steps.waitForPlaybackToBegin();
483
482
  videoResponsePage.steps.addWaitToPlayVideo(4000);
484
483
  videoResponsePage.steps.pausePlayback();
485
- videoResponsePage.steps.verifyPlaybackElapsedTime((1 + (4 * playbackSpeedMultiplier[index])), 'Standard');
484
+ videoResponsePage.steps.verifyPlaybackElapsedTime(1 + (4 * playbackSpeedMultiplier[index]));
486
485
  });
487
486
  }
488
487
  });
@@ -505,10 +504,49 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
505
504
  videoResponsePage.steps.retakeRecording();
506
505
  utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Retake');
507
506
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBoxTitle(), 'visible');
508
- videoResponsePage.steps.verifyRetakePopupContents();
507
+ utilities.verifyInnerText(videoResponsePage.retakePopupContent(), 'Are you sure you want to overwrite the existing video recording?');
508
+ utilities.verifyInnerText(videoResponsePage.confirmRetakeButton(), 'Confirm');
509
+ utilities.verifyElementVisibilityState(videoResponsePage.confirmRetakeButton(), 'visible');
510
+ utilities.verifyInnerText(videoResponsePage.cancelRetakeButton(), 'Cancel');
511
+ utilities.verifyElementVisibilityState(videoResponsePage.cancelRetakeButton(), 'visible');
512
+ });
513
+
514
+ it('CSS of \'Retake recording\' popup', { tags: 'css' }, () => {
515
+ utilities.verifyCSS(dialogBoxBase.dialogBox(), {
516
+ 'border': `1px solid ${css.color.defaultDropdownBorder}`,
517
+ 'background-color': css.color.defaultBackground
518
+ });
519
+ utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
520
+ 'color': css.color.questionHeading,
521
+ 'font-size': css.fontSize.default,
522
+ 'font-weight': css.fontWeight.semibold
523
+ });
524
+ utilities.verifyCSS(videoResponsePage.retakePopupContent(), {
525
+ 'color': css.color.labels,
526
+ 'font-size': css.fontSize.default,
527
+ 'font-weight': css.fontWeight.regular
528
+ })
529
+ utilities.verifyCSS(videoResponsePage.confirmRetakeButton(), {
530
+ 'background-color': css.color.deleteBtn
531
+ });
532
+ utilities.verifyCSS(videoResponsePage.confirmRetakeButton().find('span'), {
533
+ 'color': css.color.whiteText,
534
+ 'font-size': css.fontSize.default,
535
+ 'font-weight': css.fontWeight.regular
536
+ });
537
+ utilities.verifyCSS(videoResponsePage.cancelRetakeButton(), {
538
+ 'background-color': css.color.defaultBackground
539
+ });
540
+ utilities.verifyCSS(videoResponsePage.cancelRetakeButton().find('span'), {
541
+ 'color': css.color.secondaryBtn,
542
+ 'font-size': css.fontSize.default,
543
+ 'font-weight': css.fontWeight.regular
544
+ });
509
545
  });
510
546
 
511
- videoResponsePage.tests.verifyRetakePopupCSSAndA11y();
547
+ it('Accessibility of \'Retake recording\' popup', { tags: 'a11y' }, () => {
548
+ cy.checkAccessibility(dialogBoxBase.dialogBox());
549
+ });
512
550
 
513
551
  it('When the user clicks on \'Cancel\' button, \'Retake recording\' popup should close and previous state of playback player should persist', () => {
514
552
  videoResponsePage.steps.cancelRetake();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.192",
3
+ "version": "1.0.193-packageUpdated-87a683f.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {