itemengine-cypress-automation 1.0.543-IEI-6999-main-04ce552.0 → 1.0.543-IEI-6999-main-158c88b.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.
@@ -19,7 +19,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
19
19
  fillInTheGapsTextPage.steps.addAlternativeAnswerAccordion(1);
20
20
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Stem' }]);
21
21
  fillInTheGapsTextPage.steps.allotPoints(10);
22
- //fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
22
+ //fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
23
23
  fillInTheGapsTextPage.steps.switchToPreviewTab();
24
24
  });
25
25
 
@@ -32,11 +32,11 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
32
32
 
33
33
  it('CSS of correct answer section and response area numeration', { tags: 'css' }, () => {
34
34
  utilities.verifyCSS(fillInTheGapsTextPage.correctAnswersLabel(), {
35
- 'color': css.color.sectionHeading,
35
+ 'color': css.color.text,
36
36
  'font-size': css.fontSize.default,
37
37
  'font-weight': css.fontWeight.bold
38
38
  });
39
- utilities.verifyCSS(fillInTheGapsTextPage.responseAreaNumeration(), {
39
+ utilities.verifyCSS(utilities.getNthElement(fillInTheGapsTextPage.responseAreaNumerationNew(), 0), {
40
40
  'background-color': css.color.defaultBackground,
41
41
  'border': `1px solid ${css.color.activeComponentBorder}`
42
42
  });
@@ -45,7 +45,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
45
45
  'font-size': css.fontSize.default,
46
46
  'font-weight': css.fontWeight.regular,
47
47
  });
48
- utilities.verifyCSS(fillInTheGapsTextPage.correctAnswerResponse().parents('[class*="__AnswerWrapper"]'), {
48
+ utilities.verifyCSS(fillInTheGapsTextPage.correctAnswerResponseForCorrectResponse(), {
49
49
  'border': `1px solid ${css.color.correctOptionBorder}`
50
50
  });
51
51
  });
@@ -64,7 +64,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
64
64
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
65
65
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
66
66
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
67
- fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
67
+ // fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
68
68
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed above the question preview, correct answer section should not be displayed')
69
69
  fillInTheGapsTextPage.steps.checkAnswer();
70
70
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
@@ -90,10 +90,10 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
90
90
  'font-size': css.fontSize.default,
91
91
  'font-weight': css.fontWeight.regular
92
92
  });
93
- utilities.verifyCSS(fillInTheGapsTextPage.correctIncorrectAnswerLabel(), {
93
+ utilities.verifyCSS(fillInTheGapsTextPage.correctIncorrectAnswerLabelNew(), {
94
94
  'color': css.color.text,
95
95
  'font-size': css.fontSize.default,
96
- 'font-weight': css.fontWeight.bold
96
+ 'font-weight': css.fontWeight.regular
97
97
  });
98
98
  });
99
99
 
@@ -231,7 +231,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
231
231
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
232
232
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
233
233
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
234
- fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
234
+ // fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
235
235
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response area, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
236
236
  fillInTheGapsTextPage.steps.checkAnswer();
237
237
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
@@ -253,10 +253,10 @@ describe('Create item page - Fill in the gaps with text: All or nothing with alt
253
253
  'font-size': css.fontSize.default,
254
254
  'font-weight': css.fontWeight.regular
255
255
  });
256
- utilities.verifyCSS(fillInTheGapsTextPage.correctIncorrectAnswerLabel(), {
256
+ utilities.verifyCSS(fillInTheGapsTextPage.correctIncorrectAnswerLabelNew(), {
257
257
  'color': css.color.text,
258
258
  'font-size': css.fontSize.default,
259
- 'font-weight': css.fontWeight.bold
259
+ 'font-weight': css.fontWeight.regular
260
260
  });
261
261
  });
262
262
 
@@ -88,6 +88,8 @@ const selectors = {
88
88
  //Student view settings
89
89
  spellCheckLabel: () => cy.get('[data-ngie-testid="spell-check-checkbox"] .MuiFormControlLabel-label'),
90
90
  spellCheckCheckbox: () => cy.get('[data-ngie-testid="spell-check-checkbox"] input[type="checkbox"]'),
91
+ correctAnswerResponseForCorrectResponse: () => cy.get('[class*="ClozeWithTextResponsestyles__AnswerWrapperForLabelImg"]').eq(0),
92
+ correctIncorrectAnswerLabelNew: () => cy.get('[class*="ClozeWithTextPreviewstyle__AnswerStatusWrapper"]'),
91
93
  }
92
94
 
93
95
  const steps = {
@@ -35,6 +35,7 @@ const selectors = {
35
35
  answerResponseFieldPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .response-multiline-input-field'),
36
36
  questionInstructionsPrintPreviewContent: (number) => cy.get('[data-testid="question-instruction-element"]').eq(number),
37
37
  questionNumberPrintPreviewText: () => cy.get('[class*="ClozeWithTextPreviewstyle__QuestionNumber"]'),
38
+ responseAreaNumerationNew: () => cy.get('.answer-numeration-number-box'),
38
39
  }
39
40
 
40
41
  const steps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.543-IEI-6999-main-04ce552.0",
3
+ "version": "1.0.543-IEI-6999-main-158c88b.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {