itemengine-cypress-automation 1.0.193-9MayExecutionFixes-2de7bda.0 → 1.0.193-packageUpdated-87a683f.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +7 -6
- package/cypress/e2e/ILC/VideoResponseNew/{customizePlaybackControlsStandardRecorderStyle.js → customizePlaybackControls.js} +4 -7
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +0 -93
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +42 -4
- package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +0 -605
- package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsCompactRecorderStyle.js +0 -300
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -268
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosFourFunctionCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosFourFunctionCalculatorPreviewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGeometryToolEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGeometryToolPreviewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGraphingCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosGraphingCalculatorPreviewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosMatrixCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosMatrixCalculatorPreviewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosScientificCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/Desmos → ILC/ThirdPartyDesmos}/desmosScientificCalculatorPreviewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/additionalSettings.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/editTabBasic.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/editTabScoring.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/previewTabContent.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/DesmosGraphing → ILC/ThirdPartyDesmosGraphing}/studentViewSettings.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/3DGraphingCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/3DGraphingCalculatorPreviewTabContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/casCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/casCalculatorPreviewTabContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/geometryCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/geometryCalculatorPreviewTabContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/graphingCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/graphingCalculatorPreviewTabContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/probablityCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/probablityCalculatorPreviewTabContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/scientificCalculatorEditTabBasicSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeoGebra → ILC/ThirdPartyGeoGebra}/scientificCalculatorPreviewTabContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/additionalSettings.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/editTabScoringSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/headerSection.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/insertResourceLink.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/previewTabContent.smoke.js +0 -0
- /package/cypress/e2e/{ThirdPartyQuestions/GeogebraActivity → ILC/ThirdPartyGeogebraActivity}/questionInstructions.js +0 -0
- /package/cypress/e2e/ILC/VideoResponseNew/{studentViewSettingsStandardRecorderStyle.js → studentViewSettings.js} +0 -0
@@ -1,300 +0,0 @@
|
|
1
|
-
import { videoResponsePage } from '../../../pages/videoResponsePage';
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
import utilities from '../../../support/helpers/utilities';
|
4
|
-
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
describe('Create Item page - Video response: Customize playback controls (for student player) - Compact recorder style', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('\'Customize playback controls (for student player)\' section for - Compact recorder style', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
17
|
-
});
|
18
|
-
|
19
|
-
it('\'Customize playback controls (for student player)\' accordion should be displayed and by default it should be in collapsed state', () => {
|
20
|
-
utilities.verifyInnerText(videoResponsePage.customizePlaybackControlsAccordion(), 'Customize playback controls (for student player)');
|
21
|
-
videoResponsePage.steps.verifyCustomizePlaybackControlsAccordionCollapsedState();
|
22
|
-
});
|
23
|
-
|
24
|
-
it('User should be able to expand and collapse \'Customize playback controls (for student player)\' accordion', () => {
|
25
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
26
|
-
videoResponsePage.steps.collapseCustomizePlaybackControlsAccordion();
|
27
|
-
});
|
28
|
-
|
29
|
-
it('\'Controls for playback\' label should be displayed', () => {
|
30
|
-
cy.log('Pre-step : Expanding \'Customize playback controls (for student player)\' accordion');
|
31
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
32
|
-
utilities.verifyInnerText(videoResponsePage.controlsForPlaybackLabel(), 'Controls for playback');
|
33
|
-
});
|
34
|
-
|
35
|
-
it('\'Controls for playback\' options - "Play", "Pause", "Seek", "Record again", "Volume", "Playback speed", "Full screen" and "Forward/Backward" should be displayed. By default, all options except for "Forward/Backward" should be in selected state', () => {
|
36
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playButtonControlsForPlayback(), 'visible');
|
37
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.controlsForPlaybackButtonLabel(), 0), 'Play');
|
38
|
-
utilities.verifyElementVisibilityState(videoResponsePage.pauseButtonControlsForPlayback(), 'visible');
|
39
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.controlsForPlaybackButtonLabel(), 1), 'Pause');
|
40
|
-
utilities.verifyElementVisibilityState(videoResponsePage.seekButtonControlsForPlayback(), 'visible');
|
41
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.controlsForPlaybackButtonLabel(), 2), 'Seek');
|
42
|
-
utilities.verifyElementVisibilityState(videoResponsePage.recordAgainButtonControlsForPlayback(), 'visible');
|
43
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.controlsForPlaybackButtonLabel(), 3), 'Record again');
|
44
|
-
utilities.verifyElementVisibilityState(videoResponsePage.volumeButtonControlsForPlayback(), 'visible');
|
45
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.controlsForPlaybackButtonLabel(), 4), 'Volume');
|
46
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playbackSpeedButtonControlsForPlayback(), 'visible');
|
47
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.controlsForPlaybackButtonLabel(), 5), 'Playback speed');
|
48
|
-
utilities.verifyElementVisibilityState(videoResponsePage.fullScreenButtonControlsForPlayback(), 'notExist');
|
49
|
-
utilities.verifyElementVisibilityState(videoResponsePage.forwardBackwardButtonControlsForPlayback(), 'notExist');
|
50
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Play');
|
51
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Pause');
|
52
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Seek');
|
53
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Record again');
|
54
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Volume');
|
55
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Playback speed');
|
56
|
-
});
|
57
|
-
|
58
|
-
it('CSS of \'Customize playback controls (for student player)\' section', { tags: 'css' }, () => {
|
59
|
-
utilities.verifyCSS(videoResponsePage.customizePlaybackControlsAccordion().find('.customize_recorder_label'), {
|
60
|
-
'color': css.color.accordionLabel,
|
61
|
-
'font-size': css.fontSize.default,
|
62
|
-
'font-weight': css.fontWeight.bold
|
63
|
-
});
|
64
|
-
utilities.verifyCSS(videoResponsePage.controlsForPlaybackLabel(), {
|
65
|
-
'color': css.color.sectionHeading,
|
66
|
-
'font-size': css.fontSize.normal,
|
67
|
-
'font-weight': css.fontWeight.semibold
|
68
|
-
});
|
69
|
-
utilities.verifyCSS(videoResponsePage.playButtonControlsForPlayback(), {
|
70
|
-
'color': css.color.defaultBackground,
|
71
|
-
'background-color': css.color.activeButtons,
|
72
|
-
'border': `1px solid ${css.color.activeButtons}`
|
73
|
-
});
|
74
|
-
utilities.verifyCSS(videoResponsePage.tickIconForOptionButtons(), {
|
75
|
-
'background-color': css.color.defaultBackground,
|
76
|
-
});
|
77
|
-
utilities.verifyCSS(videoResponsePage.tickIconForOptionButtons().find('[data-name="Icon feather-check"]'), {
|
78
|
-
'fill': css.color.activeButtons,
|
79
|
-
});
|
80
|
-
utilities.verifyCSS(videoResponsePage.controlsForPlaybackButtonLabel(), {
|
81
|
-
'color': css.color.customizeControlButtonLabels,
|
82
|
-
'font-size': css.fontSize.normal,
|
83
|
-
'font-weight': css.fontWeight.semibold
|
84
|
-
});
|
85
|
-
});
|
86
|
-
|
87
|
-
it('When the user deselects the \'Play\' button, all other controls for playback buttons except "Record again" should get deselected and disabled. Progress indicator and timer buttons should also get deselected from the \'Video settings\' section. The timer button should be in enabled state', () => {
|
88
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Play');
|
89
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Play');
|
90
|
-
utilities.verifyElementDisabled(videoResponsePage.pauseButtonControlsForPlayback());
|
91
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Pause');
|
92
|
-
utilities.verifyElementDisabled(videoResponsePage.pauseButtonControlsForPlayback());
|
93
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Seek');
|
94
|
-
utilities.verifyElementDisabled(videoResponsePage.seekButtonControlsForPlayback());
|
95
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonSelectedState('Record again');
|
96
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Volume');
|
97
|
-
utilities.verifyElementDisabled(videoResponsePage.volumeButtonControlsForPlayback());
|
98
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Playback speed');
|
99
|
-
utilities.verifyElementDisabled(videoResponsePage.playbackSpeedButtonControlsForPlayback());
|
100
|
-
videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Timer');
|
101
|
-
utilities.verifyElementNotDisabled(videoResponsePage.timerButtonVideoSettings());
|
102
|
-
videoResponsePage.steps.verifyVideoSettingsToggleButtonDeselectedState('Progress indicator');
|
103
|
-
utilities.verifyElementDisabled(videoResponsePage.progressIndicatorButtonVideoSettings());
|
104
|
-
});
|
105
|
-
|
106
|
-
it('When the user selects the \'Play\' button, "Pause", "Volume", "Playback speed" 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.', () => {
|
107
|
-
videoResponsePage.steps.selectControlsForPlaybackToggleButton('Play');
|
108
|
-
utilities.verifyElementNotDisabled(videoResponsePage.pauseButtonControlsForPlayback());
|
109
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Pause');
|
110
|
-
utilities.verifyElementDisabled(videoResponsePage.seekButtonControlsForPlayback());
|
111
|
-
utilities.verifyElementNotDisabled(videoResponsePage.volumeButtonControlsForPlayback());
|
112
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Volume');
|
113
|
-
utilities.verifyElementNotDisabled(videoResponsePage.playbackSpeedButtonControlsForPlayback());
|
114
|
-
videoResponsePage.steps.verifyControlsForPlaybackToggleButtonDeselectedState('Playback speed');
|
115
|
-
videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Timer');
|
116
|
-
utilities.verifyElementNotDisabled(videoResponsePage.timerButtonVideoSettings());
|
117
|
-
utilities.verifyElementNotDisabled(videoResponsePage.progressIndicatorButtonVideoSettings());
|
118
|
-
});
|
119
|
-
|
120
|
-
it('When the user selects the "Progress indicator" button, "Seek" button should get enabled', () => {
|
121
|
-
videoResponsePage.steps.selectVideoSettingsToggleButton('Progress indicator');
|
122
|
-
utilities.verifyElementNotDisabled(videoResponsePage.seekButtonControlsForPlayback());
|
123
|
-
});
|
124
|
-
});
|
125
|
-
|
126
|
-
describe('Controls for playback - Play', () => {
|
127
|
-
abortEarlySetup();
|
128
|
-
before(() => {
|
129
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
130
|
-
cy.barsPreLoaderWait();
|
131
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
132
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
133
|
-
});
|
134
|
-
|
135
|
-
it('In compact mode, when the \'Play\' option is selected the play button should be enabled in the playback player of preview tab', () => {
|
136
|
-
videoResponsePage.steps.switchToPreviewTab();
|
137
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
138
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackButtonCompactPreview(), 'visible');
|
139
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackFlyoutButton(), 'visible');
|
140
|
-
});
|
141
|
-
|
142
|
-
it('In compact mode, when the play option is deselected the play button should be disabled in the preview tab and player should not able to playback the recording. "Your response has been recorded." should be displayed in the flyout', () => {
|
143
|
-
cy.log('Pre-step : Switching to Edit tab and deselecting Play button');
|
144
|
-
videoResponsePage.steps.switchToEditTab();
|
145
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Play');
|
146
|
-
cy.log('Switching to Preview tab');
|
147
|
-
videoResponsePage.steps.switchToPreviewTab();
|
148
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
149
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackButtonCompactPreview(), 'notExist');
|
150
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackFlyoutButton(), 'notExist');
|
151
|
-
utilities.verifyInnerText(videoResponsePage.recordedResponseHelpText(), 'Your response has been recorded.');
|
152
|
-
});
|
153
|
-
});
|
154
|
-
|
155
|
-
describe('Controls for playback - Pause', () => {
|
156
|
-
abortEarlySetup();
|
157
|
-
before(() => {
|
158
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
159
|
-
cy.barsPreLoaderWait();
|
160
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
161
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
162
|
-
});
|
163
|
-
|
164
|
-
it('In compact mode, when the \'Pause\' option is selected the pause button should be enabled in the preview tab', () => {
|
165
|
-
videoResponsePage.steps.switchToPreviewTab();
|
166
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
167
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
168
|
-
utilities.verifyElementNotDisabled(videoResponsePage.pausePlaybackButtonCompactPreview());
|
169
|
-
utilities.verifyElementNotDisabled(videoResponsePage.pausePlaybackFlyoutButton());
|
170
|
-
});
|
171
|
-
|
172
|
-
it('In compact mode, when the pause option is deselected the pause button should be disabled in the preview tab and player should not able to pause recorded response', () => {
|
173
|
-
videoResponsePage.steps.switchToEditTab();
|
174
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Pause');
|
175
|
-
videoResponsePage.steps.switchToPreviewTab();
|
176
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
177
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
178
|
-
utilities.verifyElementDisabled(videoResponsePage.pausePlaybackButtonCompactPreview());
|
179
|
-
utilities.verifyElementDisabled(videoResponsePage.pausePlaybackFlyoutButton());
|
180
|
-
});
|
181
|
-
});
|
182
|
-
|
183
|
-
describe('Controls for playback - Seek', () => {
|
184
|
-
abortEarlySetup();
|
185
|
-
before(() => {
|
186
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
187
|
-
cy.barsPreLoaderWait();
|
188
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
189
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
190
|
-
videoResponsePage.steps.switchToPreviewTab();
|
191
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
192
|
-
});
|
193
|
-
|
194
|
-
it('In compact mode, when the \'Seek\' option is selected the seek functionality should be enabled in the preview tab user should be able to seek the video from the progress bar and waveform', () => {
|
195
|
-
let actualVideoSeekedInPercent = 50
|
196
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
197
|
-
videoResponsePage.steps.waitForPlaybackToBeginCompactPreview();
|
198
|
-
cy.log('Clicking at the middle of the progress bar to seek till 50% of the recording');
|
199
|
-
videoResponsePage.steps.seekProgressBarSliderToCenter();
|
200
|
-
videoResponsePage.steps.verifyProgressBarSliderPosition(actualVideoSeekedInPercent);
|
201
|
-
utilities.verifyElementVisibilityState(videoResponsePage.progressBarSlider(), 'exist');
|
202
|
-
});
|
203
|
-
|
204
|
-
it('In compact mode, when the \'Seek\' option is deselected, the progress bar should not have a slider handle and waveform should not have cursor if user hover on it and user should not be able to seek the video from the progress bar and waveform', () => {
|
205
|
-
let actualVideoSeekedInPercent = 25
|
206
|
-
cy.log('Pre-step: Switching to Edit tab, deselecting \'Seek\' button, switching back to Preview tab and saving a record response');
|
207
|
-
videoResponsePage.steps.switchToEditTab();
|
208
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Seek');
|
209
|
-
videoResponsePage.steps.switchToPreviewTab();
|
210
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(4000);
|
211
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
212
|
-
videoResponsePage.steps.waitForPlaybackToBeginCompactPreview();
|
213
|
-
videoResponsePage.steps.pausePlaybackCompactPreview();
|
214
|
-
cy.log('Clicking at the middle of the progress bar to seek till 50% of the recording');
|
215
|
-
videoResponsePage.steps.seekProgressBarSliderToCenter();
|
216
|
-
videoResponsePage.steps.verifyProgressBarSliderPosition(actualVideoSeekedInPercent);
|
217
|
-
utilities.verifyElementVisibilityState(videoResponsePage.progressBarSlider(), 'hidden');
|
218
|
-
});
|
219
|
-
});
|
220
|
-
|
221
|
-
describe('Controls for playback - Record again', () => {
|
222
|
-
abortEarlySetup();
|
223
|
-
before(() => {
|
224
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
225
|
-
cy.barsPreLoaderWait();
|
226
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
227
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
228
|
-
});
|
229
|
-
|
230
|
-
it('In compact mode, when the \'Record again\' option is selected the record again button should be enabled in the preview tab', () => {
|
231
|
-
videoResponsePage.steps.switchToPreviewTab();
|
232
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
233
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
234
|
-
utilities.verifyElementNotDisabled(videoResponsePage.retakeButtonCompactPreview());
|
235
|
-
});
|
236
|
-
|
237
|
-
it('In compact mode, when the record again option is deselected the record again button should be disabled in the preview tab and player should not able to retake the recorded response', () => {
|
238
|
-
videoResponsePage.steps.switchToEditTab();
|
239
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Record again');
|
240
|
-
videoResponsePage.steps.switchToPreviewTab();
|
241
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
242
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
243
|
-
utilities.verifyElementVisibilityState(videoResponsePage.retakeButtonCompactPreview(), 'notExist');
|
244
|
-
});
|
245
|
-
});
|
246
|
-
|
247
|
-
describe('Controls for playback - Volume', () => {
|
248
|
-
abortEarlySetup();
|
249
|
-
before(() => {
|
250
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
251
|
-
cy.barsPreLoaderWait();
|
252
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
253
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
254
|
-
});
|
255
|
-
|
256
|
-
it('In compact mode, when the \'Volume\' option is selected the volume button should be enabled in the preview tab', () => {
|
257
|
-
videoResponsePage.steps.switchToPreviewTab();
|
258
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
259
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
260
|
-
videoResponsePage.steps.verifyVolumeButtonEnabledState();
|
261
|
-
});
|
262
|
-
|
263
|
-
it('In compact mode, when the volume option is deselected \'volume\' should not be displayed on the playback player', () => {
|
264
|
-
cy.log('Pre-step : User switches to Edit tab, deselects \'volume\' button, switches back to Preview tab and saves a recording');
|
265
|
-
videoResponsePage.steps.switchToEditTab();
|
266
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Volume');
|
267
|
-
videoResponsePage.steps.switchToPreviewTab();
|
268
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
269
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
270
|
-
utilities.verifyElementVisibilityState(videoResponsePage.volumeControlButton(), 'notExist');
|
271
|
-
});
|
272
|
-
});
|
273
|
-
|
274
|
-
describe('Controls for playback - Playback speed', () => {
|
275
|
-
abortEarlySetup();
|
276
|
-
before(() => {
|
277
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
278
|
-
cy.barsPreLoaderWait();
|
279
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
280
|
-
videoResponsePage.steps.expandCustomizePlaybackControlsAccordion();
|
281
|
-
});
|
282
|
-
|
283
|
-
it('In compact mode, when the \'Playback speed\' option is selected the \'Playback speed\' button should be enabled in the preview tab', () => {
|
284
|
-
videoResponsePage.steps.switchToPreviewTab();
|
285
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
286
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
287
|
-
videoResponsePage.steps.verifyPlaybackSpeedButtonEnabledState();
|
288
|
-
});
|
289
|
-
|
290
|
-
it('In compact mode, when the \'Playback speed\' option is deselected \'Playback speed\' button should not be displayed on the playback player', () => {
|
291
|
-
cy.log('Pre-step : User switches to Edit tab, deselects \'Playback speed\' button, switches back to Preview tab and saves a recording');
|
292
|
-
videoResponsePage.steps.switchToEditTab();
|
293
|
-
videoResponsePage.steps.deselectControlsForPlaybackToggleButton('Playback speed');
|
294
|
-
videoResponsePage.steps.switchToPreviewTab();
|
295
|
-
videoResponsePage.steps.recordAndSaveVideoCompactPreview(5000);
|
296
|
-
videoResponsePage.steps.startPlaybackCompactPreview();
|
297
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playbackSpeedButton(), 'notExist');
|
298
|
-
});
|
299
|
-
});
|
300
|
-
});
|
@@ -1,268 +0,0 @@
|
|
1
|
-
import { dialogBoxBase } from "../../../pages";
|
2
|
-
import { videoResponsePage } from "../../../pages/videoResponsePage";
|
3
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
-
import utilities from "../../../support/helpers/utilities";
|
5
|
-
const css = Cypress.env('css');
|
6
|
-
|
7
|
-
describe('Create item page - Audio response: Student view settings for Compact recorder style', () => {
|
8
|
-
before(() => {
|
9
|
-
cy.loginAs('admin');
|
10
|
-
});
|
11
|
-
|
12
|
-
describe('Video settings : Edit tab', () => {
|
13
|
-
abortEarlySetup();
|
14
|
-
before(() => {
|
15
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
18
|
-
});
|
19
|
-
|
20
|
-
videoResponsePage.tests.verifyStudentViewSettingsLabelAndCSS();
|
21
|
-
|
22
|
-
it('\'Video settings\' label should be displayed', () => {
|
23
|
-
utilities.verifyInnerText(videoResponsePage.videoSettingsLabel(), 'Video settings');
|
24
|
-
});
|
25
|
-
|
26
|
-
//Note: Add assertions of "Blur background", "Mirror video" when made available
|
27
|
-
it('\'Video settings\' options - "Timer" and "Progress indicator" should be displayed. "Blur background", "Mirror video" options should not be displayed. By default, all options should be in selected state', () => {
|
28
|
-
videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Timer');
|
29
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.videoSettingsButtonLabel(), 0), 'Timer');
|
30
|
-
videoResponsePage.steps.verifyVideoSettingsToggleButtonSelectedState('Progress indicator');
|
31
|
-
utilities.verifyInnerText(utilities.getNthElement(videoResponsePage.videoSettingsButtonLabel(), 1), 'Progress indicator');
|
32
|
-
});
|
33
|
-
|
34
|
-
it('"Allow students to resize video recorder" label and checkbox should be displayed. By default the checkbox should be checked', () => {
|
35
|
-
utilities.verifyInnerText(videoResponsePage.allowStudentsToResizeVideoRecorderLabel(), "Allow students to resize video recorder");
|
36
|
-
videoResponsePage.steps.verifyAllowStudentsToResizeVideoRecorderCheckboxCheckedState();
|
37
|
-
});
|
38
|
-
|
39
|
-
it('"Allow students to reposition video recorder" label and checkbox should be displayed. By default the checkbox should be checked', () => {
|
40
|
-
utilities.verifyInnerText(videoResponsePage.allowStudentsToRepositionVideoRecorderLabel(), "Allow students to reposition video recorder");
|
41
|
-
videoResponsePage.steps.verifyAllowStudentsToRepositionVideoRecorderCheckboxCheckedState();
|
42
|
-
});
|
43
|
-
|
44
|
-
videoResponsePage.tests.verifyLimitNumberOfRetakeCheckboxDefaultState();
|
45
|
-
|
46
|
-
it('CSS of \'Video settings\' section', { tags: 'css' }, () => {
|
47
|
-
utilities.verifyCSS(videoResponsePage.videoSettingsLabel(), {
|
48
|
-
'color': css.color.sectionHeading,
|
49
|
-
'font-size': css.fontSize.normal,
|
50
|
-
'font-weight': css.fontWeight.semibold
|
51
|
-
});
|
52
|
-
utilities.verifyCSS(videoResponsePage.timerButtonVideoSettings(), {
|
53
|
-
'color': css.color.defaultBackground,
|
54
|
-
'background-color': css.color.activeButtons,
|
55
|
-
'border': `1px solid ${css.color.activeButtons}`
|
56
|
-
});
|
57
|
-
utilities.verifyCSS(videoResponsePage.tickIconForOptionButtons(), {
|
58
|
-
'background-color': css.color.defaultBackground,
|
59
|
-
});
|
60
|
-
utilities.verifyCSS(videoResponsePage.tickIconForOptionButtons().find('[data-name="Icon feather-check"]'), {
|
61
|
-
'fill': css.color.activeButtons,
|
62
|
-
});
|
63
|
-
utilities.verifyCSS(videoResponsePage.videoSettingsButtonLabel(), {
|
64
|
-
'color': css.color.customizeControlButtonLabels,
|
65
|
-
'font-size': css.fontSize.normal,
|
66
|
-
'font-weight': css.fontWeight.semibold
|
67
|
-
});
|
68
|
-
utilities.verifyCSS(videoResponsePage.limitNumberOfRetakeCheckboxLabel(), {
|
69
|
-
'color': css.color.labelText,
|
70
|
-
'font-size': css.fontSize.normal,
|
71
|
-
'font-weight': css.fontWeight.regular
|
72
|
-
});
|
73
|
-
utilities.verifyCSS(videoResponsePage.allowStudentsToRepositionVideoRecorderLabel(), {
|
74
|
-
'color': css.color.labelText,
|
75
|
-
'font-size': css.fontSize.normal,
|
76
|
-
'font-weight': css.fontWeight.regular
|
77
|
-
});
|
78
|
-
utilities.verifyCSS(videoResponsePage.allowStudentsToResizeVideoRecorderLabel(), {
|
79
|
-
'color': css.color.labelText,
|
80
|
-
'font-size': css.fontSize.normal,
|
81
|
-
'font-weight': css.fontWeight.regular
|
82
|
-
});
|
83
|
-
});
|
84
|
-
|
85
|
-
it('The user should be able to deselect any button from the \'Video settings\' section', () => {
|
86
|
-
videoResponsePage.steps.deselectVideoSettingsToggleButton('Timer');
|
87
|
-
});
|
88
|
-
|
89
|
-
it('CSS of \'Video settings\' section: Timer button - deselected state', () => {
|
90
|
-
utilities.verifyCSS(videoResponsePage.timerButtonVideoSettings(), {
|
91
|
-
'color': css.color.secondaryBtn,
|
92
|
-
'background-color': css.color.secondaryBtnBg,
|
93
|
-
'border': `1px solid ${css.color.secondaryBtnBorder}`
|
94
|
-
});
|
95
|
-
});
|
96
|
-
|
97
|
-
videoResponsePage.tests.verifyLimitNumberOfRetakeCheckboxCheckedState();
|
98
|
-
});
|
99
|
-
|
100
|
-
describe('Video settings : Timer', () => {
|
101
|
-
abortEarlySetup();
|
102
|
-
before(() => {
|
103
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
104
|
-
cy.barsPreLoaderWait();
|
105
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
106
|
-
});
|
107
|
-
|
108
|
-
it('In compact mode, when the \'Timer\' option is selected, the timer should be displayed in the recorder as well as playback player of the preview tab', () => {
|
109
|
-
videoResponsePage.steps.switchToPreviewTab();
|
110
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
111
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
112
|
-
utilities.verifyElementVisibilityState(videoResponsePage.recordingTimerCompactPreview(), 'visible');
|
113
|
-
videoResponsePage.steps.addWaitToRecord(2000);
|
114
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
115
|
-
videoResponsePage.steps.verifyVideoPlaybackTimerCompactPreview('0:00', '0:03');
|
116
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playbackTimeCompactPreview(), 'visible');
|
117
|
-
});
|
118
|
-
|
119
|
-
it('In compact mode, when the \'Timer\' option is deselected, the timer should not be displayed in the recorder as well as playback player of the preview tab', () => {
|
120
|
-
videoResponsePage.steps.switchToEditTab();
|
121
|
-
videoResponsePage.steps.deselectVideoSettingsToggleButton('Timer');
|
122
|
-
videoResponsePage.steps.switchToPreviewTab();
|
123
|
-
utilities.verifyElementVisibilityState(videoResponsePage.recordingTimerCompactPreview(), 'notExist');
|
124
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
125
|
-
utilities.verifyElementVisibilityState(videoResponsePage.recordingTimerCompactPreview(), 'notExist');
|
126
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
127
|
-
utilities.verifyElementVisibilityState(videoResponsePage.playbackTimeCompactPreview(), 'notExist');
|
128
|
-
});
|
129
|
-
});
|
130
|
-
|
131
|
-
describe('Video settings : Progress indicator', () => {
|
132
|
-
abortEarlySetup();
|
133
|
-
before(() => {
|
134
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
135
|
-
cy.barsPreLoaderWait();
|
136
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
137
|
-
});
|
138
|
-
|
139
|
-
it('In compact mode, when the \'Progress indicator\' option is selected, the progress indicator should be displayed in the playback player of the preview tab', () => {
|
140
|
-
videoResponsePage.steps.switchToPreviewTab();
|
141
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
142
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
143
|
-
videoResponsePage.steps.addWaitToRecord(2000);
|
144
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
145
|
-
utilities.verifyElementVisibilityState(videoResponsePage.progressBar(), 'visible');
|
146
|
-
});
|
147
|
-
|
148
|
-
it('In compact mode, when the \'Progress indicator\' option is deselected, the progress indicator should not be displayed in the playback player of the preview tab', () => {
|
149
|
-
videoResponsePage.steps.switchToEditTab();
|
150
|
-
videoResponsePage.steps.deselectVideoSettingsToggleButton('Progress indicator');
|
151
|
-
videoResponsePage.steps.switchToPreviewTab();
|
152
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
153
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
154
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
155
|
-
utilities.verifyElementVisibilityState(videoResponsePage.progressBar(), 'notExist');
|
156
|
-
});
|
157
|
-
});
|
158
|
-
|
159
|
-
describe('Limit number of retake : Preview tab', () => {
|
160
|
-
abortEarlySetup();
|
161
|
-
before(() => {
|
162
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
163
|
-
cy.barsPreLoaderWait();
|
164
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
165
|
-
});
|
166
|
-
|
167
|
-
it('For "Compact" mode, When the user checks the \'Limit number of retake\' checkbox, sets retake limit and switches to the preview tab, then only the specified number of retakes should be allowed and after specified number of retakes are performed, then the retake recording button should get disabled', () => {
|
168
|
-
videoResponsePage.steps.checkLimitNumberOfRetakeCheckbox();
|
169
|
-
videoResponsePage.steps.setRetakeLimit(1);
|
170
|
-
videoResponsePage.steps.switchToPreviewTab();
|
171
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
172
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
173
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
174
|
-
videoResponsePage.steps.retakeRecordingCompactPreview();
|
175
|
-
videoResponsePage.steps.confirmRetake();
|
176
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
177
|
-
utilities.verifyInnerText(videoResponsePage.recordingStatusText(), 'Recording...');
|
178
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
179
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
180
|
-
utilities.verifyElementDisabled(videoResponsePage.retakeButtonCompactPreview());
|
181
|
-
});
|
182
|
-
|
183
|
-
it('For "Compact" mode, When the user checks the "Show students the retake limits on tooltip" checkbox and has set a retake limit and switches to the preview tab, then on hovering over the retake recording button, Retake recording (# retakes remaining) should be displayed on a tooltip', () => {
|
184
|
-
videoResponsePage.steps.switchToEditTab();
|
185
|
-
videoResponsePage.steps.checkShowStudentsTheRetakeLimitsOnTooltipCheckbox();
|
186
|
-
videoResponsePage.steps.switchToPreviewTab();
|
187
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
188
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
189
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
190
|
-
videoResponsePage.retakeButtonCompactPreview()
|
191
|
-
.verifyTooltip('Retake recording(1 retakes remaining)');
|
192
|
-
});
|
193
|
-
|
194
|
-
it('For "Compact" mode, When the user removes the retake limit, then the user should be able to retake the recording for n number of times', () => {
|
195
|
-
videoResponsePage.steps.switchToEditTab();
|
196
|
-
videoResponsePage.steps.clearRetakeLimitInputField();
|
197
|
-
videoResponsePage.steps.switchToPreviewTab();
|
198
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
199
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
200
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
201
|
-
videoResponsePage.steps.verifyResponseIsRecordedHelpText();
|
202
|
-
videoResponsePage.steps.retakeRecordingCompactPreview();
|
203
|
-
videoResponsePage.steps.confirmRetake();
|
204
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
205
|
-
utilities.verifyInnerText(videoResponsePage.recordingStatusText(), 'Recording...');
|
206
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
207
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
208
|
-
videoResponsePage.steps.verifyResponseIsRecordedHelpText();
|
209
|
-
utilities.verifyElementNotDisabled(videoResponsePage.retakeRecordingButton());
|
210
|
-
});
|
211
|
-
|
212
|
-
it('For "Compact" mode, When there is no retake limit set, then on hovering over the retake recording button, then retake limits should not be displayed on retake recording button tooltip', () => {
|
213
|
-
videoResponsePage.retakeButtonCompactPreview()
|
214
|
-
.verifyTooltip('Retake recording');
|
215
|
-
});
|
216
|
-
});
|
217
|
-
|
218
|
-
//Note: Cannot cover functionality of resizing and repositioning, added in manual sheet
|
219
|
-
describe('Allow students to resize video recorder : Preview tab', () => {
|
220
|
-
abortEarlySetup();
|
221
|
-
before(() => {
|
222
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
223
|
-
cy.barsPreLoaderWait();
|
224
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
225
|
-
videoResponsePage.steps.switchToPreviewTab();
|
226
|
-
});
|
227
|
-
|
228
|
-
it('When "Allow students to resize video recorder" checkbox is in checked state, a resize icon should be displayed in the recorder flyout', () => {
|
229
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
230
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
231
|
-
utilities.verifyElementVisibilityState(videoResponsePage.resizeIconCompactRecorderFlyout(), 'visible');
|
232
|
-
});
|
233
|
-
|
234
|
-
it('When the user unchecks the "Allow students to resize video recorder" checkbox, resize icon should not be displayed in the recorder flyout', () => {
|
235
|
-
videoResponsePage.steps.switchToEditTab();
|
236
|
-
videoResponsePage.steps.uncheckAllowStudentsToResizeVideoRecorderCheckbox();
|
237
|
-
videoResponsePage.steps.switchToPreviewTab();
|
238
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
239
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
240
|
-
utilities.verifyElementVisibilityState(videoResponsePage.resizeIconCompactRecorderFlyout(), 'notExist');
|
241
|
-
});
|
242
|
-
});
|
243
|
-
|
244
|
-
describe('Allow students to reposition video recorder : Preview tab', () => {
|
245
|
-
abortEarlySetup();
|
246
|
-
before(() => {
|
247
|
-
videoResponsePage.steps.navigateToCreateQuestion('video response');
|
248
|
-
cy.barsPreLoaderWait();
|
249
|
-
videoResponsePage.steps.selectVideoRecorderStyle('Compact');
|
250
|
-
videoResponsePage.steps.switchToPreviewTab();
|
251
|
-
});
|
252
|
-
|
253
|
-
it('When "Allow students to reposition video recorder" checkbox is in checked state, a drag handle should be displayed in the recorder flyout', () => {
|
254
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
255
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
256
|
-
utilities.verifyElementVisibilityState(videoResponsePage.dragHandleCompactRecorderFlyout(), 'visible');
|
257
|
-
});
|
258
|
-
|
259
|
-
it('When the user unchecks the "Allow students to reposition video recorder" checkbox, drag handle should not be displayed in the recorder flyout', () => {
|
260
|
-
videoResponsePage.steps.switchToEditTab();
|
261
|
-
videoResponsePage.steps.uncheckAllowStudentsToRepositionVideoRecorderCheckbox();
|
262
|
-
videoResponsePage.steps.switchToPreviewTab();
|
263
|
-
videoResponsePage.steps.startRecordingCompactPreview();
|
264
|
-
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
265
|
-
utilities.verifyElementVisibilityState(videoResponsePage.dragHandleCompactRecorderFlyout(), 'notExist');
|
266
|
-
});
|
267
|
-
});
|
268
|
-
});
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|