itemengine-cypress-automation 1.0.352 → 1.0.353

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.
@@ -43,6 +43,7 @@ describe('Create item page - Fill in the gaps drag and drop: Header section and
43
43
  before(() => {
44
44
  fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
45
45
  cy.barsPreLoaderWait();
46
+ utilities.verifyElementCount(fillInTheGapsDragAndDropPage.optionsInputField(), 2);
46
47
  });
47
48
 
48
49
  describe('Validation error messages', () => {
@@ -44,6 +44,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
44
44
  before(() => {
45
45
  fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
46
46
  cy.barsPreLoaderWait();
47
+ utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.optionsInputField(), 2);
47
48
  });
48
49
 
49
50
  describe('Validation error messages', () => {
@@ -480,7 +480,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
480
480
  });
481
481
  });
482
482
 
483
- describe('Maximum capacity per dropzone and Show students the dropzone limits: Preview tab', () => {
483
+ descri('Maximum capacity per dropzone and Show students the dropzone limits: Preview tab', () => {
484
484
  abortEarlySetup();
485
485
  before(() => {
486
486
  fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
@@ -492,7 +492,11 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
492
492
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
493
493
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
494
494
  fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(3);
495
- fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(options.slice(0, 5));
495
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, options[0]);
496
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, options[1]);
497
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(2, options[2]);
498
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(3, options[3]);
499
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(4, options[4]);
496
500
  cy.wait(2000);
497
501
  fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(5);
498
502
  });
@@ -250,7 +250,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
250
250
  studentViewPage.steps.submitResponse();
251
251
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
252
252
  studentViewPage.steps.clickOnGoToGradingViewButton();
253
- fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore('Score', ' 20 points');
253
+ fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore('Score', ' 20 points');
254
254
  };
255
255
  if (view === 'Question preview' || view === 'Item preview') {
256
256
  fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
@@ -52,9 +52,9 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
52
52
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
53
53
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
54
54
  fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
55
- fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
56
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
57
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
55
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
56
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
57
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
58
58
  });
59
59
 
60
60
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
@@ -370,14 +370,13 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
370
370
  fillInTheGapsOverImageTextPage.tests.verifyImageAlternativeTextEditTabFunctionality();
371
371
  });
372
372
 
373
- describe('Canvas width, Canvas height, Image alternative text - Preview tab functionality', () => {
373
+ describe.only('Canvas width, Canvas height, Image alternative text - Preview tab functionality', () => {
374
374
  abortEarlySetup();
375
375
  before(() => {
376
376
  fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
377
377
  cy.barsPreLoaderWait();
378
378
  fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
379
379
  fillInTheGapsOverImageTextPage.steps.verifyFileNameLabel('highlightImage.jpg');
380
- utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.uploadImageProgressBar(), 'visible');
381
380
  fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
382
381
  });
383
382
 
@@ -1,5 +1,6 @@
1
1
  import { fillInTheGapsOverImageTextPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
3
4
  const css = Cypress.env('css');
4
5
 
5
6
  describe('Create Item page - Fill in the gaps over image - text: ', () => {
@@ -15,6 +16,7 @@ describe('Create Item page - Fill in the gaps over image - text: ', () => {
15
16
  fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
16
17
  fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
17
18
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
19
+ utilities.hoverAwayFromElement(fillInTheGapsOverImageTextPage.insertResponseAreaButton());
18
20
  });
19
21
 
20
22
  fillInTheGapsOverImageTextPage.tests.verifyAnswerInputFieldEditTab();
@@ -47,13 +47,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
47
47
  fillInTheGapsTextPage.steps.resetQuestionPreview();
48
48
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
49
49
  fillInTheGapsTextPage.steps.switchToGradingView();
50
- fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
51
- //Failing due to https://redmine.zeuslearning.com/issues/588679
52
- // fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
53
- // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
54
- // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
55
- // fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
56
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
50
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
51
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
52
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
53
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
57
54
  });
58
55
 
59
56
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
@@ -164,12 +161,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
164
161
  fillInTheGapsTextPage.steps.resetQuestionPreview();
165
162
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
166
163
  fillInTheGapsTextPage.steps.switchToGradingView();
167
- fillInTheGapsTextPage.steps.verifyPreviewScore(16, 24);
168
- //Failing due to https://redmine.zeuslearning.com/issues/588679
164
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
169
165
  // fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
170
166
  // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
171
167
  // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
172
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
173
168
  });
174
169
 
175
170
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
@@ -199,11 +199,6 @@ describe('Create item page - Fill in the gaps with text: Question instructions,
199
199
  fillInTheGapsTextPage.answerInputFieldSpecifyCorrectAnswerSection()
200
200
  .verifyTooltip('Lorem ipsum dolor sit amet, onsectetur adipiscing elit. Ut pellentesque tincidunt ornare. Integer porttitor est quis urna porttitor,eget tempus tellus dapibus.Lorem ipsum');
201
201
  });
202
-
203
- it('When the user removes text, then the user should be able to check focus', () => {
204
- fillInTheGapsTextPage.steps.clearAnswerInputField(0);
205
- fillInTheGapsTextPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswer(0);
206
- });
207
202
  });
208
203
 
209
204
  describe('Fill in the gaps text: Answer input field - Preview tab functionality', () => {
@@ -92,7 +92,6 @@ const tests = {
92
92
  verifyImageUploadFunctionality: (questionType = null) => {
93
93
  it('When the user adds the image file and file upload is inprogress, file name and progress bar should be displayed below \'File name\' label. Progress bar should disappear once file is uploaded and uploaded image should be displayed', () => {
94
94
  backgroundImageUploadComponent.steps.uploadFile('highlightImage.jpg');
95
- utilities.verifyElementVisibilityState(backgroundImageUploadComponent.uploadImageProgressBar(), 'visible');
96
95
  backgroundImageUploadComponent.steps.verifyFileNameLabel('highlightImage.jpg');
97
96
  if (!['graphing', 'grid fill', 'image highlight', 'thinkSphere'].includes(questionType)) {
98
97
  imageCanvasComponent.steps.verifyImageIsUploaded();
@@ -866,10 +866,10 @@ const tests = {
866
866
  commonComponents.steps.verifyErrorMessageIsNotDisplayed();
867
867
  });
868
868
 
869
- it(`When user clicks on 'Clear all' button, then all response container should be deleted and error message should be displayed`, () => {
869
+ it(`When user clicks on 'Clear all' button, then all response container should be deleted and error message should not be displayed`, () => {
870
870
  imageCanvasComponent.steps.clearAllCanvas();
871
871
  utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaWrapper(), 'notExist');
872
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
872
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
873
873
  });
874
874
  },
875
875
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.352",
3
+ "version": "1.0.353",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {