itemengine-cypress-automation 1.0.516-IEI-5333-0122d80.0 → 1.0.516-IEI-6813-af8b3e6.0
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/ListOrderingNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/additionalSettingsPanel.js +3 -3
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +2 -2
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/essayResponsePage.js +1 -1
- package/cypress/pages/listOrderingPage.js +11 -0
- package/cypress/pages/textSelectionPage.js +1 -1
- package/package.json +1 -1
@@ -89,11 +89,11 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
89
89
|
it('User should be able to reorder options containing image, bold text and equation options in the list', () => {
|
90
90
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('This is a bold option', 0);
|
91
91
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('Solve the following', 1);
|
92
|
-
listOrderingPage.steps.
|
92
|
+
listOrderingPage.steps.verifyTextContentOfOptionInStudentView('This is a bold option', 0, view);
|
93
93
|
listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(0);
|
94
94
|
listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(1);
|
95
95
|
listOrderingPage.steps.verifyOptionWithImageInPreviewTab(2);
|
96
|
-
listOrderingPage.steps.
|
96
|
+
listOrderingPage.steps.verifyTextContentOfOptionInStudentView('alpha', 3, view);
|
97
97
|
});
|
98
98
|
} else if (view === 'Grading view') {
|
99
99
|
it(`The order of the responses should be as per the submitted response`, () => {
|
@@ -61,7 +61,7 @@ const selectors = {
|
|
61
61
|
playAttemptsLimitInputField: () => cy.get('.freeResponseAudioFormTextInput input'),
|
62
62
|
studentViewSettingsLabel: () => cy.get('[class*="AudioPlayerstyles__TranscriptLabelWrapper"]').eq(0),
|
63
63
|
audioOverviewLabel: () => cy.get('.additional-settings-label'),
|
64
|
-
audioOverviewInputField: () => cy.get('[
|
64
|
+
audioOverviewInputField: () => cy.get('[title="Description"]'),
|
65
65
|
transcriptLabel: () => cy.get('[class*="TranscriptWrapper"] [class*="AudioPlayerstyles__TranscriptLabelWrapper"]'),
|
66
66
|
uploadTranscriptUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(2),
|
67
67
|
uploadTranscriptFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(3),
|
@@ -72,7 +72,7 @@ const selectors = {
|
|
72
72
|
transcriptFileUploadProgressBar: () => cy.get('.audio-player-form-progressbar'),
|
73
73
|
transcriptInputFieldLabel: () => cy.get('.additional-settings-label').eq(1),
|
74
74
|
deleteTranscriptButton: () => cy.get('[aria-label*="Delete"]'),
|
75
|
-
transcriptCKeditorInputField: () => cy.get('div[contenteditable="true"][aria-label="Transcript"]'),
|
75
|
+
transcriptCKeditorInputField: () => cy.get('div[contenteditable="true"][aria-label="Transcript"][title="Transcript"]'),
|
76
76
|
//Preview tab
|
77
77
|
volumeControlButton: () => cy.get('.audio-player-volume-wrapper .audio-player-icon'),
|
78
78
|
playbackPlayButton: () => cy.get('.audio-resource-preview-wrapper-without-print button[aria-label="Play"]'),
|
@@ -10,9 +10,9 @@ const selectors = {
|
|
10
10
|
additionalSettingsTeacherGuidelinesLabel: () => cy.get('.additional-settings-detail-wrapper .additional-settings-label').eq(0),
|
11
11
|
additionalSettingsSampleAnswerLabel: () => cy.get('.additional-settings-detail-wrapper .additional-settings-label').eq(1),
|
12
12
|
additionalSettingsAcknowledgementsLabel: () => cy.get('.additional-settings-detail-wrapper .additional-settings-label').eq(2),
|
13
|
-
additionalSettingsTeacherGuidelinesInputField: () => cy.get('[
|
14
|
-
additionalSettingsSampleAnswerInputField: () => cy.get('[
|
15
|
-
additionalSettingsAcknowledgementsInputField: () => cy.get('[
|
13
|
+
additionalSettingsTeacherGuidelinesInputField: () => cy.get('[title="Teacher Scoring Guidelines"]'),
|
14
|
+
additionalSettingsSampleAnswerInputField: () => cy.get('[title="Sample Answer"]'),
|
15
|
+
additionalSettingsAcknowledgementsInputField: () => cy.get('[title="acknowledgements and references"]'),
|
16
16
|
//Font-size dropdown
|
17
17
|
fontSizeLabel: () => cy.get('#Font-Size-dropdown-label'),
|
18
18
|
fontSizeDropdown: () => cy.get('#Font-Size-select'),
|
@@ -72,7 +72,7 @@ const selectors = {
|
|
72
72
|
wordCountWrapper: () => cy.get('[class*="indexstyle__WordCharCountWrapper"]'),
|
73
73
|
|
74
74
|
//Preview tab
|
75
|
-
responseField: () => cy.get('[
|
75
|
+
responseField: () => cy.get('[title="Enter your response to the question here."]'),
|
76
76
|
responseFieldWordCount: () => cy.get('[class*="InputLimitLabelWrapper"]'),
|
77
77
|
responseFieldEquation: () => cy.get('.cke_widget_element'),
|
78
78
|
responseFieldText: () => cy.get('[class*="EssayResponseGradingViewstyle__GradingViewWrapper"] .question-text-wrapper'),
|
@@ -82,7 +82,7 @@ const selectors = {
|
|
82
82
|
//Additional settings, These are old selectors. Need to update them along with additional settings file revamp
|
83
83
|
studentResponseAndLayoutLabel: () => cy.get('.layout-text'),
|
84
84
|
predefinedTextLabel: () => cy.get('[class*="EssayResponsestyles__PropertyLabel"]'),
|
85
|
-
predefinedTextInputField: () => cy.get('[
|
85
|
+
predefinedTextInputField: () => cy.get('[title="Predefined Text"]'),
|
86
86
|
placeholderTextLabel: () => cy.get('.place-holder-text .text-label'),
|
87
87
|
placeholderTextInputField: () => cy.get('[aria-label="Placeholder Text"]'),
|
88
88
|
minHeightLabel: () => cy.get('.size-wrapper .text-label').eq(0),
|
@@ -34,8 +34,8 @@ const selectors = {
|
|
34
34
|
editCellPropertyRow: () => gridQuestionCommonComponent.editCellPropertyTableWrapper().find('[class*="wrapper-row"]'),
|
35
35
|
editCellPropertyTableLeftPaginationButton: () => cy.get('.authoring-selection-grid [class*="SelectionGridstyles__PaginationLeftControl"]'),
|
36
36
|
editCellPropertyTableRightPaginationButton: () => cy.get('.authoring-selection-grid [class*="SelectionGridstyles__PaginationRightControl"]'),
|
37
|
-
cellPropertyInputField: () => cy.get('[
|
38
|
-
optionCellPropertyInputField: () => cy.get('[
|
37
|
+
cellPropertyInputField: () => cy.get('[title*="text"], [class*="SelectionGridstyles__AuthoringHeadingWrapper"] input, [class*="SelectionGridstyles"] input'),
|
38
|
+
optionCellPropertyInputField: () => cy.get('[title="Option text or image..."],[placeholder="Option text or image..."]'),
|
39
39
|
tableRowSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-accordion [class*="wrapper-row"]'),
|
40
40
|
tableRowPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="wrapper-row"]'),
|
41
41
|
tableRowHeadersSpecifyCorrectAnswerSection: () => cy.get('.set-correct-ans-selection-grid .cell-content-text'),
|
@@ -3,7 +3,7 @@ import { commonComponents } from "./commonComponents";
|
|
3
3
|
|
4
4
|
const selectors = {
|
5
5
|
questionLabel: () => cy.get('.cloze-with-text-question-wrapper .title-casing'),
|
6
|
-
questionInputField: () => cy.get('.cloze-with-text-question-wrapper [
|
6
|
+
questionInputField: () => cy.get('.cloze-with-text-question-wrapper [title="question"]'),
|
7
7
|
responseArea: () => cy.get('.cke_widget_wrapper_add_response_element'),
|
8
8
|
responseAreaCloseButton: () => cy.get('.add_response_close'),
|
9
9
|
addResponseAreaButton: () => cy.get('.add-response-token-wrapper-cls button'),
|
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
const selectors = {
|
7
7
|
questionInstructionsLabelEditTab: () => cy.get('.edit-question-instruction-label'),
|
8
|
-
questionInstructionsInputField: () => cy.get('[
|
8
|
+
questionInstructionsInputField: () => cy.get('[title="Question Instructions"]'),
|
9
9
|
questionInstructionsText: () => cy.get('.question-instruction'),
|
10
10
|
questionInstructionsWrapper: () => cy.get('.edit-question-instruction-wrapper'),
|
11
11
|
questionInstructionsTextPreviewTab: () => cy.get('.question-instruction:visible'),
|
@@ -15,7 +15,7 @@ const selectors = {
|
|
15
15
|
groupDividerWrapper: () => cy.get('.body-group-divider'),
|
16
16
|
textBlockWrapper: () => cy.get('.body-text-block'),
|
17
17
|
textBlockLabel: () => cy.get('.body-section-header'),
|
18
|
-
textBlockInputField: () => cy.get('[
|
18
|
+
textBlockInputField: () => cy.get('[title="Enter text block"]'),
|
19
19
|
bodyLabel: () => cy.get('.options-label'),
|
20
20
|
bodyWrapper: () => cy.get('.edit-mcq-options-wrapper'),
|
21
21
|
bodySubTitleLabel: () => cy.get('.body-section-header'),
|
@@ -129,7 +129,7 @@ const hyperlinkDialogBox = {
|
|
129
129
|
hyperlinkDialogboxURLInputField: () => essayResponsePage.hyperlinkDialogBox().find('input[class*="cke_dialog_ui_input_text"]').eq(1),
|
130
130
|
hyperlinkDialogboxButtonOk: () => cy.get('.action-button-wrapper [role="button"]').eq(1),
|
131
131
|
hyperlinkDialogboxButtonCancel: () => cy.get('.action-button-wrapper [role="button"]').eq(0),
|
132
|
-
previewInputFieldHyperlinkText: () => cy.get('div[
|
132
|
+
previewInputFieldHyperlinkText: () => cy.get('div[title="Enter your response to the question here."] a'),
|
133
133
|
}
|
134
134
|
|
135
135
|
const steps = {
|
@@ -29,6 +29,7 @@ const selectors = {
|
|
29
29
|
draggableOptionDragIcon: () => cy.get('.drag-indicator-icon'),
|
30
30
|
//Preview Tab
|
31
31
|
optionTextPreviewTab: () => cy.get('.draggable-item-wrapper[overflow] .question-text-wrapper'),
|
32
|
+
optionTextPreviewTabStudentView: () => cy.get('.draggable-item .question-text-wrapper'),
|
32
33
|
optionPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="AnswerWrapper"][role="button"], .vertical-list-order .reorder-as-same-list-items [class*="DraggableItemstyles__DraggableItemWrapper"][role="button"]'),
|
33
34
|
optionWrapperPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .orderlist-option-wrapper, .vertical-list-order .reorder-as-same-list-items [class*="DraggableItemstyles__DraggableItemContainer"]'),
|
34
35
|
correctAnswersLabel: () => cy.get('[class*="question-preview-wrapper"] [class*="__CorrectAnswerLabel"]'),
|
@@ -452,6 +453,16 @@ const steps = {
|
|
452
453
|
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionTextPreviewTab(), index), optionsText);
|
453
454
|
},
|
454
455
|
|
456
|
+
/**
|
457
|
+
* @param {string[]} optionsTextArray options array for preview tab options
|
458
|
+
* @param {number} index index provided for option
|
459
|
+
* @param {string} view which view cypress is running on
|
460
|
+
* @description this function verifies options text content in student view
|
461
|
+
*/
|
462
|
+
verifyTextContentOfOptionInStudentView: (optionsText, index, view) => {
|
463
|
+
utilities.verifyInnerText(utilities.getNthElement((view === 'Student view' ? listOrderingPage.optionTextPreviewTabStudentView() : listOrderingPage.optionTextPreviewTab()), index), optionsText);
|
464
|
+
},
|
465
|
+
|
455
466
|
/**
|
456
467
|
* @param {string[]} optionsTextArray options array for set correct answer options
|
457
468
|
* @description this function verifies options text content
|
@@ -25,7 +25,7 @@ const selectors = {
|
|
25
25
|
...showAvailableOptionsToStudents,
|
26
26
|
...showStudentMaximumNumberOfPossibleSelections,
|
27
27
|
questionLabel: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] .title-casing'),
|
28
|
-
questionInputField: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] [
|
28
|
+
questionInputField: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] [title="Question"]'),
|
29
29
|
specifyPossibleOptionsTextFieldWrapper: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] .question-text-wrapper'),
|
30
30
|
textSelectionStyleLabel: () => cy.get('.text-selection-style .options-label'),
|
31
31
|
textSelectionStyleButtonLabel: (ariaLabel = null) => {
|