itemengine-cypress-automation 1.0.421 → 1.0.422

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.
@@ -140,7 +140,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
140
140
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
141
141
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
142
142
  });
143
-
143
+
144
144
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
145
145
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
146
146
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
@@ -242,7 +242,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
242
242
  views.forEach((view) => {
243
243
  describe(`${view}: Text selection - Manually scored`, { tags: 'smoke' }, () => {
244
244
  abortEarlySetup();
245
- before({ retries: { runMode: 1, openMode: 0 } }, () => {
245
+ before(() => {
246
246
  switch (view) {
247
247
  case 'Question preview':
248
248
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
@@ -253,7 +253,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
253
253
  textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
254
254
  });
255
255
  textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
256
- textSelectionPage.steps.expandScoringTypeDropdown();
256
+ textSelectionPage.steps.expandScoringTypeDropdownWithForceTrue();
257
257
  textSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
258
258
  textSelectionPage.steps.allotPoints(20);
259
259
  textSelectionPage.steps.switchTextSelectionMode('Paragraph');
@@ -2,7 +2,8 @@ import { audioPlayerPage, itemPreviewPage, studentViewPage } from "../../../page
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
- let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
5
+ //Failing due to https://redmine.zeuslearning.com/issues/583133 , add grading view once it is resolved 'Grading view'
6
+ let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Correct answer view'];
6
7
  const views = utilities.getViews(previewContentViews);
7
8
  var itemReferenceID = "";
8
9
 
@@ -10,7 +10,7 @@ const paragraphTextArray = ['All animals have a unique role to play in maintaini
10
10
 
11
11
  const sentenceTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water.', 'As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology.', 'Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.', 'Birds are creatures with feathers, beaks, and the ability to lay eggs.']
12
12
 
13
- const wordTextArray = ['Nature','nurtures', 'life', 'and', 'brings', 'endless', 'beauty.']
13
+ const wordTextArray = ['Nature', 'nurtures', 'life', 'and', 'brings', 'endless', 'beauty.']
14
14
 
15
15
  const selectors = {
16
16
  ...questionInstructionsComponent,
@@ -123,7 +123,7 @@ const steps = {
123
123
  ...showAvailableOptionsToStudents.steps,
124
124
  ...showStudentMaximumNumberOfPossibleSelections.steps,
125
125
  ...singleMultipleSelectionModeComponent.steps,
126
- ...createItemPage.steps,
126
+ ...createItemPage.steps,
127
127
 
128
128
  addInputToQuestionInputField: (text) => {
129
129
  textSelectionPage.questionInputField()
@@ -1237,6 +1237,17 @@ const steps = {
1237
1237
  textSelectionPage.correctAnswerSection()
1238
1238
  .should('not.exist');
1239
1239
  },
1240
+
1241
+ /**
1242
+ * Expands the scoring type dropdown with force true.
1243
+ */
1244
+ expandScoringTypeDropdownWithForceTrue: () => {
1245
+ utilities.scrollIntoView(scoringSectionBaseEditTab.scoringTypeDropdown());
1246
+ scoringSectionBaseEditTab.scoringTypeDropdown()
1247
+ .trigger('mouseover')
1248
+ .click({ force: true });
1249
+ utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'exist');
1250
+ },
1240
1251
  }
1241
1252
 
1242
1253
  const tests = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.421",
3
+ "version": "1.0.422",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {