itemengine-cypress-automation 1.0.257 → 1.0.258
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.
- package/cypress/e2e/Gzip/gzip.js +128 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +17 -20
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAudioPlayerStyle.js +53 -54
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +0 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +37 -38
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -6
- package/cypress/e2e/ILC/CkEditorInsertImage/upload.js +2 -2
- package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +2 -2
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +5 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +3 -5
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +12 -0
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +3 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTempleteLayout.js +172 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorPreviewTabContents.smoke.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -1
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +12 -26
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +2 -2
- package/cypress/pages/components/ckEditorInsertImageComponent.js +2 -2
- package/cypress/pages/components/equationEditorFlyout.js +2 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +2 -5
- package/deploy/e2e/deploy.yaml +2 -2
- package/deploy/smoke/deploy.yaml +2 -2
- package/package.json +3 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { multipleSelectionPage } from "../../../pages";
|
2
|
+
import { multipleSelectionPage, audioPlayerPage } from "../../../pages";
|
3
3
|
import constants from "../../../fixtures/constants";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
5
|
const css = Cypress.env('css');
|
@@ -193,7 +193,6 @@ describe('Audio player: Edit tab', () => {
|
|
193
193
|
multipleSelectionPage.steps.selectAudioPlayerOptionFromCKEditorToolbar();
|
194
194
|
multipleSelectionPage.steps.clickOnUploadAudioFileRadioButton();
|
195
195
|
multipleSelectionPage.steps.uploadFile('sample.mp3');
|
196
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.fileUploadProgressBar(), 'hidden');
|
197
196
|
multipleSelectionPage.steps.clickOnOKButton();
|
198
197
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
199
198
|
multipleSelectionPage.steps.switchToPreviewTab();
|
@@ -204,9 +203,9 @@ describe('Audio player: Edit tab', () => {
|
|
204
203
|
multipleSelectionPage.steps.waitForPlaybackToBegin();
|
205
204
|
utilities.verifyElementVisibilityState(multipleSelectionPage.playbackSlider(), 'visible');
|
206
205
|
multipleSelectionPage.steps.verifyPlaybackProgressBarSliderEnabledState();
|
207
|
-
|
208
|
-
|
209
|
-
|
206
|
+
audioPlayerPage.steps.seekProgressBarSliderToCenter();
|
207
|
+
audioPlayerPage.steps.addWaitToPlayAudio(1000);
|
208
|
+
audioPlayerPage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
210
209
|
});
|
211
210
|
|
212
211
|
it('When \'Seek\' option is deselected, the progress bar should not have a slider handle and user should not be able to seek the progress bar', () => {
|
@@ -222,7 +221,7 @@ describe('Audio player: Edit tab', () => {
|
|
222
221
|
multipleSelectionPage.steps.waitForPlaybackToBegin();
|
223
222
|
utilities.verifyElementVisibilityState(multipleSelectionPage.playbackSlider(), 'hidden');
|
224
223
|
multipleSelectionPage.steps.verifyPlaybackProgressBarSliderDisabledState();
|
225
|
-
|
224
|
+
audioPlayerPage.steps.verifyProgressBarSliderWhenSeekIsDisabled();
|
226
225
|
});
|
227
226
|
|
228
227
|
it('Accessibility of audio player in preview tab if seek button is disabled', { tags: 'a11y' }, () => {
|
@@ -246,11 +245,11 @@ describe('Audio player: Edit tab', () => {
|
|
246
245
|
});
|
247
246
|
|
248
247
|
it('When the \'Playback speed\' option is selected, then in preview tab the playback speed button should be displayed and upon hovering the playback speed options should be displayed', () => {
|
249
|
-
utilities.verifyElementVisibilityState(
|
250
|
-
|
251
|
-
utilities.verifyElementVisibilityState(
|
252
|
-
utilities.verifyElementCount(
|
253
|
-
|
248
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackSpeedButton(), 'visible');
|
249
|
+
audioPlayerPage.steps.realHoverOnPlaybackSpeedButton();
|
250
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackSpeedOption(), 'visible');
|
251
|
+
utilities.verifyElementCount(audioPlayerPage.playbackSpeedOption(), playbackSpeedOptions.length);
|
252
|
+
audioPlayerPage.steps.verifyPlaybackSpeedListOptions(playbackSpeedOptions);
|
254
253
|
utilities.hoverAwayFromElement();
|
255
254
|
});
|
256
255
|
|
@@ -262,7 +261,7 @@ describe('Audio player: Edit tab', () => {
|
|
262
261
|
multipleSelectionPage.steps.clickOnOKButton();
|
263
262
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
264
263
|
multipleSelectionPage.steps.switchToPreviewTab();
|
265
|
-
utilities.verifyElementVisibilityState(
|
264
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackSpeedButton(), 'notExist');
|
266
265
|
});
|
267
266
|
});
|
268
267
|
|
@@ -282,8 +281,8 @@ describe('Audio player: Edit tab', () => {
|
|
282
281
|
});
|
283
282
|
|
284
283
|
it('When the \'Add pin\' option is selected, then in preview tab the add pin button should be displayed and upon hovering tooltip \'Add pin\' should be displayed', () => {
|
285
|
-
utilities.verifyElementVisibilityState(
|
286
|
-
|
284
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.addPinButton(), 'visible');
|
285
|
+
audioPlayerPage.addPinButton()
|
287
286
|
.verifyTooltip('Add pin');
|
288
287
|
});
|
289
288
|
|
@@ -296,7 +295,7 @@ describe('Audio player: Edit tab', () => {
|
|
296
295
|
multipleSelectionPage.steps.clickOnOKButton();
|
297
296
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
298
297
|
multipleSelectionPage.steps.switchToPreviewTab();
|
299
|
-
utilities.verifyElementVisibilityState(
|
298
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.addPinButton(), 'notExist');
|
300
299
|
});
|
301
300
|
});
|
302
301
|
|
@@ -316,8 +315,8 @@ describe('Audio player: Edit tab', () => {
|
|
316
315
|
});
|
317
316
|
|
318
317
|
it('When the \'Forward/ backward\' option is selected, then in preview tab the forward and backward button should be displayed and upon hovering tooltip \'Forward/ backward\' should be displayed', () => {
|
319
|
-
utilities.verifyElementVisibilityState(
|
320
|
-
utilities.verifyElementVisibilityState(
|
318
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'visible');
|
319
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'visible');
|
321
320
|
});
|
322
321
|
|
323
322
|
it('When the \'Forward/ backward\' option is not selected, then in preview tab the forward and backward button should be should not be displayed', () => {
|
@@ -329,8 +328,8 @@ describe('Audio player: Edit tab', () => {
|
|
329
328
|
multipleSelectionPage.steps.clickOnOKButton();
|
330
329
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
331
330
|
multipleSelectionPage.steps.switchToPreviewTab();
|
332
|
-
utilities.verifyElementVisibilityState(
|
333
|
-
utilities.verifyElementVisibilityState(
|
331
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'notExist');
|
332
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'notExist');
|
334
333
|
});
|
335
334
|
});
|
336
335
|
|
@@ -344,29 +343,29 @@ describe('Audio player: Edit tab', () => {
|
|
344
343
|
multipleSelectionPage.steps.clickOnUploadAudioFileRadioButton();
|
345
344
|
multipleSelectionPage.steps.uploadFile('sample.mp3');
|
346
345
|
utilities.verifyElementVisibilityState(multipleSelectionPage.fileUploadProgressBar(), 'hidden');
|
347
|
-
|
346
|
+
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Compact');
|
348
347
|
multipleSelectionPage.steps.clickOnOKButton();
|
349
348
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
350
349
|
multipleSelectionPage.steps.switchToPreviewTab();
|
351
350
|
});
|
352
351
|
|
353
352
|
it('In compact mode, when the \'Volume\' option is selected, then in preview tab the volume button should be displayed', () => {
|
354
|
-
|
355
|
-
utilities.verifyElementVisibilityState(
|
353
|
+
audioPlayerPage.steps.clickOnPlayButton();
|
354
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.volumeControlButton(), 'visible');
|
356
355
|
});
|
357
356
|
|
358
357
|
it('In compact mode, when the \'Volume\' option is not selected, then in preview tab the volume button should not be displayed', () => {
|
359
358
|
cy.log('Pre-step: Switching to Edit tab, deselecting \'Volume\' button, switching back to Preview tab');
|
360
359
|
multipleSelectionPage.steps.switchToEditTab();
|
361
360
|
multipleSelectionPage.steps.clickOnAudioPlayerBlock();
|
362
|
-
|
361
|
+
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Compact');
|
363
362
|
multipleSelectionPage.steps.clickOnCustomizeUIControlAccordion();
|
364
363
|
multipleSelectionPage.steps.clickOnCustomizeControlVolumeButton();
|
365
364
|
multipleSelectionPage.steps.clickOnOKButton();
|
366
365
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
367
366
|
multipleSelectionPage.steps.switchToPreviewTab();
|
368
|
-
|
369
|
-
utilities.verifyElementVisibilityState(
|
367
|
+
audioPlayerPage.steps.clickOnPlayButton();
|
368
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.volumeControlButton(), 'notExist');
|
370
369
|
});
|
371
370
|
});
|
372
371
|
|
@@ -380,30 +379,30 @@ describe('Audio player: Edit tab', () => {
|
|
380
379
|
multipleSelectionPage.steps.clickOnUploadAudioFileRadioButton();
|
381
380
|
multipleSelectionPage.steps.uploadFile('sample.mp3');
|
382
381
|
utilities.verifyElementVisibilityState(multipleSelectionPage.fileUploadProgressBar(), 'hidden');
|
383
|
-
|
382
|
+
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Compact');
|
384
383
|
multipleSelectionPage.steps.clickOnOKButton();
|
385
384
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
386
385
|
multipleSelectionPage.steps.switchToPreviewTab();
|
387
386
|
});
|
388
387
|
|
389
388
|
it('In compact mode, when the \'Timer\' option is selected, then in preview tab the elapsed and total time should be displayed', () => {
|
390
|
-
|
391
|
-
utilities.verifyElementVisibilityState(
|
392
|
-
utilities.verifyElementVisibilityState(
|
389
|
+
audioPlayerPage.steps.clickOnPlayButton();
|
390
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackElapsedTime(), 'visible');
|
391
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackTotalTime(), 'visible');
|
393
392
|
});
|
394
393
|
|
395
394
|
it('In compact mode, when the \'Volume\' option is not selected, then in preview tab the elapsed and total time should not be displayed', () => {
|
396
395
|
cy.log('Pre-step: Switching to Edit tab, deselecting \'Volume\' button, switching back to Preview tab');
|
397
396
|
multipleSelectionPage.steps.switchToEditTab();
|
398
397
|
multipleSelectionPage.steps.clickOnAudioPlayerBlock();
|
399
|
-
|
398
|
+
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Compact');
|
400
399
|
multipleSelectionPage.steps.clickOnCustomizeUIControlAccordion();
|
401
400
|
multipleSelectionPage.steps.clickOnCustomizeControlTimerButton();
|
402
401
|
multipleSelectionPage.steps.clickOnOKButton();
|
403
402
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
404
403
|
multipleSelectionPage.steps.switchToPreviewTab();
|
405
|
-
|
406
|
-
utilities.verifyElementVisibilityState(
|
404
|
+
audioPlayerPage.steps.clickOnPlayButton();
|
405
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackTime(), 'notExist');
|
407
406
|
});
|
408
407
|
});
|
409
408
|
|
@@ -417,28 +416,28 @@ describe('Audio player: Edit tab', () => {
|
|
417
416
|
multipleSelectionPage.steps.clickOnUploadAudioFileRadioButton();
|
418
417
|
multipleSelectionPage.steps.uploadFile('sample.mp3');
|
419
418
|
utilities.verifyElementVisibilityState(multipleSelectionPage.fileUploadProgressBar(), 'hidden');
|
420
|
-
|
419
|
+
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Compact');
|
421
420
|
multipleSelectionPage.steps.clickOnOKButton();
|
422
421
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
423
422
|
multipleSelectionPage.steps.switchToPreviewTab();
|
424
423
|
});
|
425
424
|
|
426
425
|
it('In compact mode, when the \'Timer\' option is selected, then in preview tab the progress bar should be displayed', () => {
|
427
|
-
|
428
|
-
utilities.verifyElementVisibilityState(
|
426
|
+
audioPlayerPage.steps.clickOnPlayButton();
|
427
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.progressBar(), 'visible');
|
429
428
|
});
|
430
429
|
|
431
430
|
it('In compact mode, when the \'Volume\' option is not selected, then in preview tab the progress bar should not be displayed', () => {
|
432
431
|
multipleSelectionPage.steps.switchToEditTab();
|
433
432
|
multipleSelectionPage.steps.clickOnAudioPlayerBlock();
|
434
|
-
|
433
|
+
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Compact');
|
435
434
|
multipleSelectionPage.steps.clickOnCustomizeUIControlAccordion();
|
436
435
|
multipleSelectionPage.steps.clickOnCustomizeControlProgressBarButton();
|
437
436
|
multipleSelectionPage.steps.clickOnOKButton();
|
438
437
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
439
438
|
multipleSelectionPage.steps.switchToPreviewTab();
|
440
|
-
|
441
|
-
utilities.verifyElementVisibilityState(
|
439
|
+
audioPlayerPage.steps.clickOnPlayButton();
|
440
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.progressBar(), 'notExist');
|
442
441
|
});
|
443
442
|
});
|
444
443
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { multipleSelectionPage } from "../../../pages";
|
2
|
+
import { audioPlayerPage, multipleSelectionPage } from "../../../pages";
|
3
3
|
import constants from "../../../fixtures/constants";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
5
|
const css = Cypress.env('css');
|
@@ -20,7 +20,7 @@ describe('Audio player: Edit tab', () => {
|
|
20
20
|
});
|
21
21
|
|
22
22
|
it('When user adds link of MP3 audio file, audio player should be displayed in preview tab and user should be able to play MP3 audio file.', () => {
|
23
|
-
|
23
|
+
audioPlayerPage.steps.enterTextInSourceURLInputField(constants.sampleMp3Link);
|
24
24
|
multipleSelectionPage.steps.clickOnOKButton();
|
25
25
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
26
26
|
multipleSelectionPage.steps.switchToPreviewTab();
|
@@ -31,8 +31,8 @@ describe('Audio player: Edit tab', () => {
|
|
31
31
|
it('When user adds link of WAV audio file, audio player should be displayed in preview tab and user should be able to play WAV audio file.', () => {
|
32
32
|
multipleSelectionPage.steps.switchToEditTab();
|
33
33
|
multipleSelectionPage.steps.clickOnAudioPlayerBlock();
|
34
|
-
|
35
|
-
|
34
|
+
audioPlayerPage.steps.clearTextInSourceURLInputField();
|
35
|
+
audioPlayerPage.steps.enterTextInSourceURLInputField(constants.sampleWAVLink);
|
36
36
|
multipleSelectionPage.steps.clickOnOKButton();
|
37
37
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
38
38
|
multipleSelectionPage.steps.switchToPreviewTab();
|
@@ -43,8 +43,8 @@ describe('Audio player: Edit tab', () => {
|
|
43
43
|
it('When user adds link of AAC audio file, audio player should be displayed in preview tab and user should be able to play AAC audio file.', () => {
|
44
44
|
multipleSelectionPage.steps.switchToEditTab();
|
45
45
|
multipleSelectionPage.steps.clickOnAudioPlayerBlock();
|
46
|
-
|
47
|
-
|
46
|
+
audioPlayerPage.steps.clearTextInSourceURLInputField();
|
47
|
+
audioPlayerPage.steps.enterTextInSourceURLInputField(constants.sampleAACLink);
|
48
48
|
multipleSelectionPage.steps.clickOnOKButton();
|
49
49
|
multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
|
50
50
|
multipleSelectionPage.steps.switchToPreviewTab();
|
@@ -22,7 +22,7 @@ describe('Insert Image: Edit tab', () => {
|
|
22
22
|
it('\'Send it to the Server\' label and button with \'Choose File\' button should be visible', () => {
|
23
23
|
utilities.verifyInnerText(multipleSelectionPage.sendItToTheServerLabel(), 'Send it to the Server');
|
24
24
|
utilities.verifyElementVisibilityState(multipleSelectionPage.sendItToTheServerLabel(), 'visible');
|
25
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.
|
25
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.insertImageChooseFileButton(), 'visible');
|
26
26
|
utilities.verifyInnerText(multipleSelectionPage.sendItToTheServerButton(), 'Send it to the Server');
|
27
27
|
utilities.verifyElementVisibilityState(multipleSelectionPage.sendItToTheServerButton(), 'visible');
|
28
28
|
});
|
@@ -33,7 +33,7 @@ describe('Insert Image: Edit tab', () => {
|
|
33
33
|
'font-size': '12px',
|
34
34
|
'font-weight': '400'
|
35
35
|
});;
|
36
|
-
utilities.verifyCSS(multipleSelectionPage.
|
36
|
+
utilities.verifyCSS(multipleSelectionPage.insertImageChooseFileButton(), {
|
37
37
|
'color': 'rgb(0, 0, 0)',
|
38
38
|
'font-size': '12px',
|
39
39
|
'background-color': 'rgba(0, 0, 0, 0)'
|
@@ -24,7 +24,7 @@ describe('Link Ck Editor: Edit tab', () => {
|
|
24
24
|
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadSectionTitle(), 'visible');
|
25
25
|
utilities.verifyInnerText(multipleSelectionPage.uploadTitle(), 'Upload');
|
26
26
|
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadTitle(), 'visible');
|
27
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.
|
27
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.insertImageChooseFileButton(), 'visible');
|
28
28
|
utilities.verifyInnerText(multipleSelectionPage.sendItToServerButton(), 'Send it to the Server');
|
29
29
|
utilities.verifyElementVisibilityState(multipleSelectionPage.sendItToServerButton(), 'visible');
|
30
30
|
});
|
@@ -40,7 +40,7 @@ describe('Link Ck Editor: Edit tab', () => {
|
|
40
40
|
'font-size': '12px',
|
41
41
|
'font-weight': '400'
|
42
42
|
});
|
43
|
-
utilities.verifyCSS(multipleSelectionPage.
|
43
|
+
utilities.verifyCSS(multipleSelectionPage.insertImageChooseFileButton(), {
|
44
44
|
'color': 'rgb(0, 0, 0)',
|
45
45
|
'font-size': '12px',
|
46
46
|
'font-weight': '400'
|
@@ -2,8 +2,8 @@ import { compassPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', '
|
5
|
+
//Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
|
6
|
+
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
8
|
let itemReferenceID = "";
|
9
9
|
|
@@ -55,12 +55,12 @@ describe('Preview tab contents for all views', () => {
|
|
55
55
|
utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'exist');
|
56
56
|
}
|
57
57
|
});
|
58
|
-
|
59
|
-
it('The \'Show compass\' button should be visible and \'Compass\' should not be visible',()=>{
|
58
|
+
|
59
|
+
it('The \'Show compass\' button should be visible and \'Compass\' should not be visible', () => {
|
60
60
|
compassPage.steps.verifyCompassToolNotVisible();
|
61
61
|
compassPage.steps.verifyPreviewTabCompassVisibilityButtonLabel('Show');
|
62
62
|
});
|
63
|
-
|
63
|
+
|
64
64
|
it('When user clicks on \'Show compass\' button then \'Compass\' should be displayed and \'Show compass\' button should change to \'Hide compass\'', () => {
|
65
65
|
compassPage.steps.clickOnCompassToolVisibilityButton();
|
66
66
|
compassPage.steps.verifyCompassToolIsVisible();
|
@@ -166,6 +166,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
166
166
|
});
|
167
167
|
|
168
168
|
it('When the user tries to upload an image an image more than 5mb then an error should be displayed \'The following files were rejected *filename* is too large. The maximum file size is 5MB\'', () => {
|
169
|
+
drawingResponsePage.steps.resetQuestionPreview();
|
169
170
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
170
171
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
171
172
|
drawingResponsePage.steps.verifyImageContainerErrorMessage('20mbFile.png');
|
@@ -860,6 +861,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
860
861
|
|
861
862
|
it(`When \'Fill color picker\' additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} secondary toolbar option popup should display color picker and its related components`, () => {
|
862
863
|
drawingResponsePage.steps.switchToEditTab();
|
864
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
865
|
+
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
863
866
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[6]}`]);
|
864
867
|
drawingResponsePage.steps.switchToPreviewTab();
|
865
868
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
@@ -114,12 +114,12 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
114
114
|
});
|
115
115
|
|
116
116
|
//Failing due to https://redmine.zeuslearning.com/issues/566948
|
117
|
-
it(`${allCategories} accordions
|
117
|
+
it(`${allCategories} accordions except ${equationEditorCategoriesAndSymbols['numPad'].displayName} and ${equationEditorCategoriesAndSymbols['keyPad'].displayName} should be displayed with their respective labels and unchecked checkboxes.`, () => {
|
118
118
|
createCustomCategoryFlyout.steps.verifyCreateCustomCategoryAccordionLabelsAndDefaultCheckbox();
|
119
119
|
});
|
120
120
|
|
121
121
|
it(`By default, the ${equationEditorCategoriesAndSymbols['intermediate'].displayName} category accordion should be expanded and other all accordions should be in collapsed state`, () => {
|
122
|
-
for (let index =
|
122
|
+
for (let index = 2; index < allCategories.length; index++) {
|
123
123
|
if (allCategories[index] === 'intermediate') {
|
124
124
|
createCustomCategoryFlyout.steps.verifyCategoryAccordionIsExpanded(`${equationEditorCategoriesAndSymbols[allCategories[index]].displayName}`);
|
125
125
|
} else {
|
@@ -133,7 +133,7 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
133
133
|
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.buttonSave(), 'visible');
|
134
134
|
});
|
135
135
|
|
136
|
-
allCategories.slice(
|
136
|
+
allCategories.slice(2).forEach((categoryName) => {
|
137
137
|
it(`On clicking the ${equationEditorCategoriesAndSymbols[categoryName].displayName} category accordion the category should be expanded`, () => {
|
138
138
|
if (categoryName != 'Intermediate') {
|
139
139
|
createCustomCategoryFlyout.steps.expandCategoryAccordion(`${equationEditorCategoriesAndSymbols[categoryName].displayName}`)
|
@@ -42,13 +42,11 @@ describe('Create item page - Fill in the gaps drag and drop: Header section and
|
|
42
42
|
});
|
43
43
|
|
44
44
|
describe('Validation error messages', () => {
|
45
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
45
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
46
46
|
|
47
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
48
|
-
fillInTheGapsDragAndDropPage.steps.
|
49
|
-
fillInTheGapsDragAndDropPage.steps.
|
50
|
-
fillInTheGapsDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
51
|
-
fillInTheGapsDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorMessage();
|
48
|
+
fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
|
+
fillInTheGapsDragAndDropPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
|
52
50
|
});
|
53
51
|
|
54
52
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -419,6 +419,12 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
|
|
419
419
|
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: -1, xRange: 20, y: 1, yRange: 20 }]);
|
420
420
|
});
|
421
421
|
|
422
|
+
it('User should not be able to enter values below 0 and should be able to enter values above 999 in the Y grid spacing input field', () => {
|
423
|
+
graphingPage.steps.addTextInXTickIntervalInputFieldValue(-12);
|
424
|
+
graphingPage.steps.verifyXTickIntervalInputFieldValue('12');
|
425
|
+
graphingPage.steps.enterTextInXGridSpacingInputFieldValue(1500);
|
426
|
+
});
|
427
|
+
|
422
428
|
it('When user updates X grid spacing then on the x axis user should be able to plot only on the grid lines after a those many intervals', () => {
|
423
429
|
graphingPage.steps.enterTextInXGridSpacingInputFieldValue(3);
|
424
430
|
graphingPage.steps.plotPointsOnGraphEditTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }]);
|
@@ -541,6 +547,12 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
|
|
541
547
|
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3, xRange: 20, y: -1, yRange: 20 }]);
|
542
548
|
});
|
543
549
|
|
550
|
+
it('User should not be able to enter values below 0 and should be able to enter values above 999 in the Y grid spacing input field', () => {
|
551
|
+
graphingPage.steps.typeTextInYGridSpacingInputFieldValue(-12);
|
552
|
+
graphingPage.steps.verifyYGridSpacingInputFieldValue('12')
|
553
|
+
graphingPage.steps.enterTextInYGridSpacingInputFieldValue(1500);
|
554
|
+
});
|
555
|
+
|
544
556
|
it('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
|
545
557
|
graphingPage.steps.enterTextInYGridSpacingInputFieldValue(4)
|
546
558
|
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 3, xRange: 20, y: 7, yRange: 20 }]);
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { protractorPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
|
4
|
+
//Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
|
5
|
+
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
|
5
6
|
const views = utilities.getViews(previewContentViews);
|
6
7
|
var itemReferenceID = "";
|
7
8
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { readingRulerPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
|
4
|
+
//Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
|
5
|
+
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
|
5
6
|
const views = utilities.getViews(previewContentViews);
|
6
7
|
var itemReferenceID = "";
|
7
8
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { rulerPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
|
4
|
+
//Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
|
5
|
+
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
|
5
6
|
const views = utilities.getViews(previewContentViews);
|
6
7
|
var itemReferenceID = "";
|
7
8
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { simpleCalculatorPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
|
4
|
+
//Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
|
5
|
+
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
|
5
6
|
const views = utilities.getViews(previewContentViews);
|
6
7
|
var itemReferenceID = "";
|
7
8
|
const css = Cypress.env('css');
|
@@ -124,7 +125,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
124
125
|
});
|
125
126
|
});
|
126
127
|
|
127
|
-
it('Accessibility of preview contents', {tags: 'a11y'}, () => {
|
128
|
+
it('Accessibility of preview contents', { tags: 'a11y' }, () => {
|
128
129
|
cy.checkAccessibility(simpleCalculatorPage.calculatorWrapper());
|
129
130
|
});
|
130
131
|
});
|