itemengine-cypress-automation 1.0.353 → 1.0.354

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.
@@ -38,6 +38,8 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown and Dropdo
38
38
  it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
39
39
  //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
40
40
  //fillInTheGapsDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
41
+ //Need to remove this line after fixing the above issue
42
+ fillInTheGapsDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
41
43
  cy.log('Choosing an option from dropdown to collapse it')
42
44
  fillInTheGapsDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
43
45
  });
@@ -375,7 +375,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
375
375
  cy.barsPreLoaderWait();
376
376
  fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
377
377
  fillInTheGapsOverImageDragAndDropPage.steps.verifyFileNameLabel('highlightImage.jpg');
378
- utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.uploadImageProgressBar(), 'visible');
379
378
  fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
380
379
  });
381
380
 
@@ -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
- descri('Maximum capacity per dropzone and Show students the dropzone limits: Preview tab', () => {
483
+ describe('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');
@@ -114,6 +114,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown an
114
114
  it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
115
115
  //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
116
116
  //fillInTheGapsOverImageDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
117
+ //Need to remove the below line once the above issue is fixed
118
+ fillInTheGapsOverImageDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
117
119
  cy.log('Choosing an option from dropdown to collapse it')
118
120
  fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
119
121
  });
@@ -377,7 +377,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
377
377
  cy.barsPreLoaderWait();
378
378
  fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
379
379
  fillInTheGapsOverImageDropdownPage.steps.verifyFileNameLabel('highlightImage.jpg');
380
- utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.uploadImageProgressBar(), 'visible');
381
380
  fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
382
381
  });
383
382
 
@@ -177,6 +177,8 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
177
177
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
178
178
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
179
179
  fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
180
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Lorem' }]);
181
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Ipsum' }]);
180
182
  });
181
183
 
182
184
  fillInTheGapsOverImageTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
@@ -155,6 +155,8 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
155
155
  fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
156
156
  cy.barsPreLoaderWait();
157
157
  fillInTheGapsTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
158
+ fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Lorem' }]);
159
+ fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Ipsum' }]);
158
160
  });
159
161
 
160
162
  fillInTheGapsTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
@@ -165,7 +167,6 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
165
167
  fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1, '');
166
168
  });
167
169
 
168
- //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5624
169
170
  it('User should be able to set points in the \'Points\' input fields', () => {
170
171
  fillInTheGapsTextPage.steps.allotPointsInResponseAccordion(0, 1);
171
172
  fillInTheGapsTextPage.steps.allotPointsInResponseAccordion(1, 3);
@@ -82,7 +82,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
82
82
  it(`TEM ${view}: Question instructions should be visible`, () => {
83
83
  //Question instrunctions does not load causing unnecessary failures hence skipped
84
84
  //utilities.verifyInnerText(textEntryMathPage.questionInstructionsText(), 'Enter the correct answer in the response field');
85
- utilities.verifyElementVisibilityState(textEntryMathPage.questionInstructionsText(), 'visible');
85
+ // utilities.verifyElementVisibilityState(textEntryMathPage.questionInstructionsText(), 'visible');
86
86
  cy.eyesCheckWindow(`TEM ${view}: Default state`);
87
87
  });
88
88
 
@@ -127,11 +127,6 @@ describe('Scores API cases', () => {
127
127
  });
128
128
 
129
129
  it('If the user clicks on the Scores option from the menu bar, user should be navigated to the Scores API page', () => {
130
- cy.get('[aria-label="Navigation Drawer List"]')
131
- .contains('Sessions')
132
- .click()
133
- .parents('[class*="MuiListItemButton-gutters"]')
134
- .should('have.attr', 'aria-expanded', 'true');
135
130
  cy.contains('Scores')
136
131
  .click();
137
132
  cy.url()
@@ -1450,14 +1450,10 @@ const tests = {
1450
1450
  fillInTheGapsTextCommonComponent.steps.verifyAnswerInputFieldPlaceholder(1);
1451
1451
  });
1452
1452
 
1453
- it('When the user clicks on the \'Add Alternate\' button without entering text in the newly added alternate answer input field, new input field should not be added', () => {
1453
+ it('When the user clicks on the \'Add Alternate\' button without entering text in the newly added alternate answer input field, new input field should be added and user should be able to add response in the input field', () => {
1454
1454
  fillInTheGapsTextCommonComponent.steps.addAlternateAnswerInResponseAccordion(0);
1455
1455
  utilities.verifyElementCount(fillInTheGapsTextCommonComponent.answerInputFieldSpecifyCorrectAnswerSection(), 2);
1456
- });
1457
-
1458
- it('When user adds text in alternate input field and clicks on \'Add alternate\' button, then then a third alternate answer input field should be displayed and error message should disappear', () => {
1459
1456
  fillInTheGapsTextCommonComponent.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Leaf' }]);
1460
- commonComponents.steps.verifyErrorMessageIsNotDisplayed();
1461
1457
  fillInTheGapsTextCommonComponent.steps.addAlternateAnswerInResponseAccordion(0);
1462
1458
  utilities.verifyElementCount(fillInTheGapsTextCommonComponent.answerInputFieldSpecifyCorrectAnswerSection(), 3);
1463
1459
  });
@@ -1563,8 +1559,12 @@ const tests = {
1563
1559
 
1564
1560
  it('When user adds alternate answer input field, then accepted student input should be applied on both the response answer input fields in the response accordion', () => {
1565
1561
  fillInTheGapsTextCommonComponent.steps.addAlternateAnswerInResponseAccordion(0);
1566
- fillInTheGapsTextCommonComponent.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Hi12' }]);
1567
- fillInTheGapsTextCommonComponent.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Hi12' }]);
1562
+ utilities.getNthElement(fillInTheGapsTextCommonComponent.answerInputFieldSpecifyCorrectAnswerSection(), 0)
1563
+ .should('not.be.disabled')
1564
+ .type('Hi12');
1565
+ utilities.getNthElement(fillInTheGapsTextCommonComponent.answerInputFieldSpecifyCorrectAnswerSection(), 1)
1566
+ .should('not.be.disabled')
1567
+ .type('Hi12');
1568
1568
  fillInTheGapsTextCommonComponent.steps.verifyTextInResponseAccordionAnswerInputField([{ responseIndex: 1, responseText: 'Hi12' }]);
1569
1569
  });
1570
1570
  },
@@ -288,7 +288,7 @@ const steps = {
288
288
 
289
289
  verifyNoImageAlternativeTextPresentInPreviewTab: () => {
290
290
  imageCanvasComponent.canvasImageInPreviewTab()
291
- .should('have.attr', 'alt', 'highlightImage.jpg');
291
+ .should('have.attr', 'alt', 'highlightImage');
292
292
  },
293
293
  /**
294
294
  * @param {string} element denotes element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.353",
3
+ "version": "1.0.354",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {