itemengine-cypress-automation 1.0.528 → 1.0.529-IEI-6690-30172a5.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.
@@ -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();
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.528",
3
+ "version": "1.0.529-IEI-6690-30172a5.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {