itemengine-cypress-automation 1.0.529-IEI-6793-v-3602f8d.0 → 1.0.529-IEI-6690-9e4c8af.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/DrawingResponse/drawingResponseEditTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +5 -0
- package/package.json +1 -1
@@ -6,7 +6,7 @@ import { commonComponents } from "../../../pages/components";
|
|
6
6
|
const css = Cypress.env('css');
|
7
7
|
|
8
8
|
//TODO need to update the array https://redmine.zeuslearning.com/issues/555843 once this is fixed
|
9
|
-
const toolbarOptions = drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions.slice(0,
|
9
|
+
const toolbarOptions = drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions.slice(0, 14); //Only toolbar options, no control options
|
10
10
|
const defaultSelectedToolbarOptions = toolbarOptions.slice(0, 8);
|
11
11
|
const controlsOptions = ['Layer', 'Duplicate', 'Undo redo', 'Full screen', 'Clear all']; //Not same as preview tab, hence not used through constant array drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters
|
12
12
|
|
@@ -179,7 +179,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
179
179
|
});
|
180
180
|
|
181
181
|
it(`When user selects all toolbar options, then a total of ${drawingToolbarOptionsAndAdditionalOptions.additionalOptions.length} additional options should be displayed in the \'Additional options\' section - ${drawingToolbarOptionsAndAdditionalOptions.additionalOptionsTooltip.slice(0, 5).join(' ')}. By default all the additional options should be in unselected state`, () => {
|
182
|
-
toolbarOptions.slice(8,
|
182
|
+
toolbarOptions.slice(8, 14).forEach((toolbarOption) => {
|
183
183
|
drawingResponsePage.steps.selectEditTabToolbarOptions([`${toolbarOption.displayName}`]);
|
184
184
|
});
|
185
185
|
drawingToolbarOptionsAndAdditionalOptions.additionalOptions.forEach((additionalOption) => {
|
@@ -12,7 +12,7 @@ let itemReferenceID = "";
|
|
12
12
|
|
13
13
|
const thickness = ['5', '10', '15', '20', '25'];
|
14
14
|
const fontSizePopupOptions = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
|
15
|
-
const defaultUnselectedEditTabCustomizeOptionTiles = ['Item eraser', 'Rectangle', 'Ellipse', 'Polygon', 'Compass'];
|
15
|
+
const defaultUnselectedEditTabCustomizeOptionTiles = ['Item eraser', 'Rectangle', 'Ellipse', 'Polygon', 'Compass', 'Ruler'];
|
16
16
|
const lineTypeOptions = ['basic line', 'dashed line', 'dotted line', 'single arrow line', 'double arrow line'];
|
17
17
|
|
18
18
|
describe('Preview tab contents - primary toolbar options, secondary toolbar options', () => {
|
@@ -276,6 +276,24 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
276
276
|
})
|
277
277
|
});
|
278
278
|
|
279
|
+
describe('Preview tab - \'Ruler\'', { tags: 'smoke' }, () => {
|
280
|
+
abortEarlySetup();
|
281
|
+
before(() => {
|
282
|
+
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
283
|
+
cy.barsPreLoaderWait();
|
284
|
+
drawingResponsePage.steps.addQuestionInstructions();
|
285
|
+
drawingResponsePage.steps.allotPoints(2);
|
286
|
+
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
287
|
+
drawingResponsePage.steps.selectToolbarOptionsAndControlsFormattingOptionsTiles(['Ruler']);
|
288
|
+
drawingResponsePage.steps.switchToPreviewTab();
|
289
|
+
});
|
290
|
+
|
291
|
+
it(`User should be able to select Ruler and ruler should display`, () => {
|
292
|
+
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[13].displayName);
|
293
|
+
});
|
294
|
+
|
295
|
+
});
|
296
|
+
|
279
297
|
//Failing due to https://redmine.zeuslearning.com/issues/555008
|
280
298
|
describe('Preview tab - secondary toolbar option - \'Special characters\' - content and functionality', { tags: 'smoke' }, () => {
|
281
299
|
abortEarlySetup();
|
package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js
CHANGED
@@ -82,6 +82,11 @@ export const drawingToolbarOptionsAndAdditionalOptions = {
|
|
82
82
|
tooltipText: 'CompassDraw compass',
|
83
83
|
toolType: 'tool'
|
84
84
|
},
|
85
|
+
{
|
86
|
+
displayName: 'Ruler',
|
87
|
+
tooltipText: 'Add ruler',
|
88
|
+
toolType: 'tool'
|
89
|
+
},
|
85
90
|
{
|
86
91
|
displayName: 'bring to front',
|
87
92
|
tooltipText: 'Bring forwardBring selected item forward a layer',
|