itemengine-cypress-automation 1.0.381 → 1.0.382
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/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/pages/audioPlayerPage.js +22 -22
- package/package.json +2 -2
@@ -131,18 +131,17 @@ describe('Audio player: Edit tab', () => {
|
|
131
131
|
});
|
132
132
|
|
133
133
|
it('\'Source URL\' label and input field should not be displayed', () => {
|
134
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.sourceUrlLabel(), 'notExist');
|
135
134
|
utilities.verifyElementVisibilityState(audioPlayerPage.sourceUrlInputField(), 'notExist');
|
136
135
|
});
|
137
136
|
|
138
137
|
it('\'Upload\' label should be displayed', () => {
|
139
138
|
utilities.verifyInnerText(multipleSelectionPage.uploadLabel(), 'Upload');
|
140
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadLabel(), '
|
139
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadLabel(), 'exist');
|
141
140
|
});
|
142
141
|
|
143
142
|
it('\'File name\' label should be displayed', () => {
|
144
143
|
utilities.verifyInnerText(multipleSelectionPage.fileNameLabel(), 'File name');
|
145
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.fileNameLabel(), '
|
144
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.fileNameLabel(), 'exist');
|
146
145
|
});
|
147
146
|
|
148
147
|
it('\'Choose File\' button should be displayed', () => {
|
@@ -117,10 +117,8 @@ describe('Audio player: Edit tab', () => {
|
|
117
117
|
|
118
118
|
it('When the user adds the transcript file and file upload is inprogress, file name and progress bar should be displayed below \'File name\' label. Progress bar should disappear once file is uploaded', () => {
|
119
119
|
multipleSelectionPage.steps.uploadTranscriptFile('sample.txt');
|
120
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.transcriptFileUploadProgressBar(), 'visible');
|
121
120
|
utilities.verifyInnerText(multipleSelectionPage.uploadedTranscriptFileNameLabel(), 'sample.txt');
|
122
121
|
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadedTranscriptFileNameLabel(), 'visible');
|
123
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.transcriptFileUploadProgressBar(), 'hidden');
|
124
122
|
});
|
125
123
|
|
126
124
|
it('CSS of progress bar and file name when file upload is in progress', { tags: 'css' }, () => {
|
@@ -182,9 +182,9 @@ describe('Audio player: Edit tab', () => {
|
|
182
182
|
|
183
183
|
it('\'Playback Limit\' label and empty input field should be displayed', () => {
|
184
184
|
utilities.verifyInnerText(multipleSelectionPage.playbackLimitLabel(), 'Playback Limit');
|
185
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.playbackLimitLabel(), '
|
185
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.playbackLimitLabel(), 'exist');
|
186
186
|
utilities.verifyInnerText(multipleSelectionPage.playbackLimitInputField(), '');
|
187
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.playbackLimitInputField(), '
|
187
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.playbackLimitInputField(), 'exist');
|
188
188
|
});
|
189
189
|
|
190
190
|
it('When the user focuses in and out of the \'Playback Limit\' input field, no error message should be displayed', () => {
|
@@ -228,7 +228,7 @@ describe('Audio player: Edit tab', () => {
|
|
228
228
|
|
229
229
|
it('\'Allow students to download the audio\' label and checkbox should be displayed. By default the \'Allow students to download the audio\' checkbox should be unchecked.', () => {
|
230
230
|
utilities.verifyInnerText(multipleSelectionPage.allowStudentsToDownloadAudioLabel(), 'Allow students to download the audio');
|
231
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.allowStudentsToDownloadAudioLabel(), '
|
231
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.allowStudentsToDownloadAudioLabel(), 'exist');
|
232
232
|
multipleSelectionPage.steps.verifyAllowStudentsToDownloadAudioCheckboxNotChecked();
|
233
233
|
});
|
234
234
|
|
@@ -14,11 +14,11 @@ const selectors = {
|
|
14
14
|
uploadAudioFileUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(0),
|
15
15
|
uploadAudioFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(1),
|
16
16
|
deleteAudioFileButton: () => cy.get('[aria-label="Delete"]'),
|
17
|
-
sourceUrlLabel: () => cy.get('[class*="
|
18
|
-
sourceUrlInputField: () => cy.get('input[
|
17
|
+
sourceUrlLabel: () => cy.get('[class*="AudioPlayerFormstyles__TextFieldLabel"]').eq(0),
|
18
|
+
sourceUrlInputField: () => cy.get('[class*="AudioPlayerFormstyles__Text"] input[type="text"]'),
|
19
19
|
uploadAudioChooseFileButton: () => cy.get('.choose-file-upload-button'),
|
20
20
|
uploadAudioNoFileChosenLabel: () => cy.get('[aria-label="No file chosen"]').eq(0),
|
21
|
-
uploadedFileNameLabel: () => cy.get('.selected-file').eq(0),
|
21
|
+
uploadedFileNameLabel: () => cy.get('[class*="AudioPlayerFormstyles__FileInputWrapper"] .selected-file-wrapper').eq(0),
|
22
22
|
audioFileUploadProgressBar: () => cy.get('[class*="AudioPlayerstyles__ProgressBar-"]').eq(0),
|
23
23
|
inputTypeFile: () => cy.get('input[type="file"]'),
|
24
24
|
audioPlayerStyleLabel: () => cy.get('.player-style-label'),
|
@@ -28,7 +28,7 @@ const selectors = {
|
|
28
28
|
standardStyleToggleButtonLabel: () => cy.get('[data-ngie-testid="standard-toggle-button"] .ngie-toggle-button-label'),
|
29
29
|
barStyleToggleButtonLabel: () => cy.get('[data-ngie-testid="bar-toggle-button"] .ngie-toggle-button-label'),
|
30
30
|
compactStyleToggleButtonLabel: () => cy.get('[data-ngie-testid="compact-toggle-button"] .ngie-toggle-button-label'),
|
31
|
-
compactPlayerOptionsLabel: () => cy.get('.options-label'),
|
31
|
+
compactPlayerOptionsLabel: () => cy.get('.compact-player-wrapper .options-label'),
|
32
32
|
defaultPlayerOptionButton: () => cy.get('[data-ngie-testid="default-toggle-button"]'),
|
33
33
|
textPlayerOptionButton: () => cy.get('[data-ngie-testid="text-toggle-button"]'),
|
34
34
|
imagePlayerOptionButton: () => cy.get('[data-ngie-testid="image-toggle-button"]'),
|
@@ -45,28 +45,28 @@ const selectors = {
|
|
45
45
|
customizePlayerLayoutProgressIndicatorButton: () => cy.get('[data-ngie-testid="progressbar-toggle-button"]'),
|
46
46
|
customizePlayerLayoutToggleButtonLabel: () => cy.get('[class*="ToggleButtonMUI5style__ButtonLabelWrapper"]'),
|
47
47
|
uncheckAllButton: () => cy.get('[class*="AudioPlayerstyles__UncheckButton"]'),
|
48
|
-
uploadTranscriptFileLabel: () => cy.get('
|
49
|
-
uploadTranscriptFileRadioButton: () => cy.get('.
|
50
|
-
typeInTranscriptLabel: () => cy.get('
|
51
|
-
typeInTranscriptRadioButton: () => cy.get('.
|
52
|
-
transcriptInputField: () => cy.get('[
|
53
|
-
allowStudentsToDownloadAudioLabel: () => cy.get('
|
54
|
-
allowStudentsToDownloadAudioCheckbox: () => cy.get('
|
55
|
-
limitPlayAttemptsLabel: () => cy.get('
|
56
|
-
limitPlayAttemptsCheckbox: () => cy.get('
|
48
|
+
uploadTranscriptFileLabel: () => cy.get('.upload-transcript-opt-label'),
|
49
|
+
uploadTranscriptFileRadioButton: () => cy.get('.upload-transcript-opt-label input'),
|
50
|
+
typeInTranscriptLabel: () => cy.get('.type-in-transcript-opt-label'),
|
51
|
+
typeInTranscriptRadioButton: () => cy.get('.type-in-transcript-opt-label input'),
|
52
|
+
transcriptInputField: () => cy.get('.freeResponseAudioFormTextInput textarea[aria-label="Transcript"]'),
|
53
|
+
allowStudentsToDownloadAudioLabel: () => cy.get('.allow-students-to-download-audio .MuiFormControlLabel-label').eq(0),
|
54
|
+
allowStudentsToDownloadAudioCheckbox: () => cy.get('.allow-students-to-download-audio input'),
|
55
|
+
limitPlayAttemptsLabel: () => cy.get('.allow-students-to-download-audio .MuiFormControlLabel-label').eq(1),
|
56
|
+
limitPlayAttemptsCheckbox: () => cy.get('.allow-students-to-download-audio input').eq(1),
|
57
57
|
playAttemptsLimitLabel: () => cy.get('.playback-limit-wrapper [class*="Label"]'),
|
58
|
-
playAttemptsLimitInputField: () => cy.get('.
|
58
|
+
playAttemptsLimitInputField: () => cy.get('.freeResponseAudioFormTextInput input'),
|
59
59
|
studentViewSettingsLabel: () => cy.get('[class*="AudioPlayerstyles__TranscriptLabelWrapper"]').eq(0),
|
60
60
|
audioOverviewLabel: () => cy.get('.additional-settings-label'),
|
61
61
|
audioOverviewInputField: () => cy.get('[title="Description"]'),
|
62
|
-
transcriptLabel: () => cy.get('.
|
62
|
+
transcriptLabel: () => cy.get('.freeResponseAudioFormTextInput .transcript-label'),
|
63
63
|
uploadTranscriptUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(2),
|
64
64
|
uploadTranscriptFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(3),
|
65
65
|
uploadTranscriptChooseFileButton: () => cy.get('.upload-audio-file-input-wrapper button').eq(1),
|
66
66
|
uploadTranscriptNoFileChosenLabel: () => cy.get('[aria-label="No file chosen"]').eq(1),
|
67
|
-
transcriptInputTypeFile: () => cy.get('input[type="file"]')
|
68
|
-
uploadedTranscriptFileNameLabel: () => cy.get('.selected-file')
|
69
|
-
transcriptFileUploadProgressBar: () => cy.get('
|
67
|
+
transcriptInputTypeFile: () => cy.get('.upload-transcript-file input[type="file"]'),
|
68
|
+
uploadedTranscriptFileNameLabel: () => cy.get('.upload-transcript-file .selected-file-wrapper'),
|
69
|
+
transcriptFileUploadProgressBar: () => cy.get('.audio-player-form-progressbar'),
|
70
70
|
transcriptInputFieldLabel: () => cy.get('.additional-settings-label').eq(1),
|
71
71
|
deleteTranscriptButton: () => cy.get('[aria-label*="Delete"]'),
|
72
72
|
|
@@ -788,14 +788,14 @@ const steps = {
|
|
788
788
|
audioPlayerPage.audioOverviewInputField()
|
789
789
|
.find('[data-widget="ngie_equation"]')
|
790
790
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
791
|
-
|
791
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
792
792
|
},
|
793
793
|
|
794
794
|
verifyEquationInAudioOverviewPreviewTab: () => {
|
795
795
|
audioPlayerPage.audioOverviewPreviewTab()
|
796
796
|
.find('[role="math"]')
|
797
797
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
798
|
-
|
798
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
799
799
|
},
|
800
800
|
|
801
801
|
verifyLinkInAudioOverviewInputField: () => {
|
@@ -896,14 +896,14 @@ const steps = {
|
|
896
896
|
audioPlayerPage.transcriptInputField()
|
897
897
|
.find('[data-widget="ngie_equation"]')
|
898
898
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
899
|
-
|
899
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
900
900
|
},
|
901
901
|
|
902
902
|
verifyEquationInTranscriptPreviewTab: () => {
|
903
903
|
audioPlayerPage.transcriptContentPreviewTab()
|
904
904
|
.find('[role="math"]')
|
905
905
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
906
|
-
|
906
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
907
907
|
},
|
908
908
|
|
909
909
|
verifyLinkInTranscriptInputField: () => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.382",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"cy:ilqa": "cypress open --env fileConfig=ilqa",
|
20
20
|
"cy:ilstage": "cypress open --env fileConfig=ilstage",
|
21
21
|
"spinnaker:essayResponse": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponse_EssayResponseBasic_EssayResponseMath_DrawingResponse_ShortTextResponseNew,grepTags=-css+-a11y",
|
22
|
-
"spinnaker:thinkSphereQuestion": "node scripts/questions.mjs --env theme=ilc,questionType=ThinkSphere
|
22
|
+
"spinnaker:thinkSphereQuestion": "node scripts/questions.mjs --env theme=ilc,questionType=ThinkSphere",
|
23
23
|
"spinnaker:textEntryMath": "node scripts/questions.mjs --env theme=ilc,questionType=TextEntryMath_TextEntryMathWithImage,grepTags=-css+-a11y",
|
24
24
|
"spinnaker:DNDIntoCategories": "node scripts/questions.mjs --env theme=ilc,questionType=DragAndDropIntoCategoriesNew,grepTags=-css+-a11y",
|
25
25
|
"spinnaker:multipleSelection": "node scripts/questions.mjs --env theme=ilc,questionType=MultipleSelection_SingleSelection_MultipleSelectionGridNew_SingleSelectionGridNew,grepTags=-css+-a11y",
|