itemengine-cypress-automation 1.0.529-IEI-6690-30172a5.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.
@@ -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) => {
|