itemengine-cypress-automation 1.0.535-essay-response-Fixes-4adf3ea.0 → 1.0.535-fix-label-numberline-25cd38f.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/EssayResponse/essayResponseCustomizeFormattingOptions3.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +8 -8
- package/cypress/pages/components/essayResponseCommonComponents.js +1 -1
- package/cypress/pages/numberLineLabelPage.js +2 -0
- package/package.json +1 -1
@@ -270,7 +270,7 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
270
270
|
it('The undo toolbar option should get disabled after a certain number of undo actions (18 times)', () => {
|
271
271
|
essayResponsePage.steps.resetPreviewTabResponseField();
|
272
272
|
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec tristique ipsum sit amet velit laoreet, eget dapibus mi placerat.');
|
273
|
-
for (var i = 0; i <
|
273
|
+
for (var i = 0; i < 19; i++) {
|
274
274
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Undo (Ctrl+Z)');
|
275
275
|
};
|
276
276
|
essayResponsePage.steps.verifyPreviewTabToolbarOptionDisabled('Undo (Ctrl+Z)');
|
@@ -153,8 +153,8 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
153
153
|
|
154
154
|
it('When the user sets aria label, then in the highlight region of the specify correct answer section, the aria labels should get updated accordingly', () => {
|
155
155
|
imageHighlightPage.steps.enterTextInAriaLabelInputField(0, 'Select correct option');
|
156
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelSpecifyCorrectAnswer(0, 'Select correct option');
|
157
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelSpecifyCorrectAnswer(1, 'Response 2');
|
156
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelSpecifyCorrectAnswer(0, 'Select correct option, Response 1 of 2');
|
157
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelSpecifyCorrectAnswer(1, 'Response 2 of 2');
|
158
158
|
});
|
159
159
|
});
|
160
160
|
|
@@ -174,16 +174,16 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
174
174
|
});
|
175
175
|
|
176
176
|
it('When the user has not set \'ARIA label\' input field, then default aria labels should be present for the highlight region in the preview tab', () => {
|
177
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Response 1');
|
178
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2');
|
177
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Response 1 of 2');
|
178
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2 of 2');
|
179
179
|
});
|
180
180
|
|
181
181
|
it('When the user has set \'ARIA label\', then it should be present for the highlight region in the preview tab', () => {
|
182
182
|
imageHighlightPage.steps.switchToEditTab();
|
183
183
|
imageHighlightPage.steps.enterTextInAriaLabelInputField(0, 'Correct response 1');
|
184
184
|
imageHighlightPage.steps.switchToPreviewTab();
|
185
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Correct response 1');
|
186
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2');
|
185
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Correct response 1, Response 1 of 2');
|
186
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2 of 2');
|
187
187
|
});
|
188
188
|
|
189
189
|
it('Accessibility of input field in preview tab when custom \'ARIA label\' is set', { tags: 'a11y' }, () => {
|
@@ -194,8 +194,8 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
194
194
|
imageHighlightPage.steps.switchToEditTab();
|
195
195
|
imageHighlightPage.steps.clearTextInAriaLabelInputField(0);
|
196
196
|
imageHighlightPage.steps.switchToPreviewTab();
|
197
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Response 1');
|
198
|
-
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2');
|
197
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Response 1 of 2');
|
198
|
+
imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2 of 2');
|
199
199
|
});
|
200
200
|
});
|
201
201
|
});
|
@@ -344,7 +344,7 @@ const steps = {
|
|
344
344
|
* @description Select the toolbar option in preview tab.
|
345
345
|
*/
|
346
346
|
selectPreviewTabToolbarOption: (toolbarOption) => {
|
347
|
-
if (toolbarOption == 'Insert Horizontal Line' || toolbarOption == 'Code Editor' || toolbarOption == 'Increase Indent' || toolbarOption == 'Decrease Indent' || toolbarOption == 'Remove Format') {
|
347
|
+
if (toolbarOption == 'Insert Horizontal Line' || toolbarOption == 'Code Editor' || toolbarOption == 'Increase Indent' || toolbarOption == 'Decrease Indent' || toolbarOption == 'Remove Format' || toolbarOption == 'Clear all') {
|
348
348
|
essayResponseCommonComponents.previewTabToolbarOption(toolbarOption)
|
349
349
|
.click()
|
350
350
|
.should('have.attr', 'aria-pressed', 'false');
|