itemengine-cypress-automation 1.0.345-IEI-5793-aaaf0cf.0 → 1.0.345-IEI-5793-dc367f5.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.
@@ -7,12 +7,12 @@ const selectors = {
7
7
  itemIdField: () => cy.get('[data-testid="ItemId"]'),
8
8
  studentIdField: () => cy.get('[data-testid="StudentId"]'),
9
9
  launchGradingButton: () => cy.get('[data-testid="launchGrading"]'),
10
- getgradingViewContainer: (sessionId, itemId, questionNo) =>
10
+ getGradingViewContainer: (sessionId, itemId, questionNo) =>
11
11
  cy.get(`[data-reference="${sessionId}"] [data-reference="${itemId}_${sessionId}"] [class*="GradingViewstyles__SingleQuestionContainer"]`)
12
12
  .eq(questionNo),
13
13
  getGradingViewforResponseId: (responseId) =>
14
14
  cy.get(`[data-reference="${responseId}"]`),
15
- getquestionInstruction: () => cy.get('[data-testid = "question-instruction-element"]').eq(0),
15
+ getQuestionInstruction: () => cy.get('[data-testid = "question-instruction-element"]').eq(0),
16
16
  getAnswerStatus: () => cy.get('[class*="indexstyle__AnswerTextWrapper"]'),
17
17
  };
18
18
 
@@ -48,9 +48,9 @@ const steps = {
48
48
  * @param {string} answerStatus - The expected answer status (e.g., "Answered", "Not Answered").
49
49
  */
50
50
  verifySessionData: (sessionId, itemId, questionNo, questionInstruction, answerStatus) => {
51
- gradingGridViewPage.getgradingViewContainer(sessionId, itemId, questionNo)
51
+ gradingGridViewPage.getGradingViewContainer(sessionId, itemId, questionNo)
52
52
  .within(() => {
53
- gradingGridViewPage.getquestionInstruction()
53
+ gradingGridViewPage.getQuestionInstruction()
54
54
  .should('contain.text', questionInstruction);
55
55
  gradingGridViewPage.getAnswerStatus()
56
56
  .should('contain.text', answerStatus);
@@ -707,7 +707,7 @@ const steps = {
707
707
  },
708
708
 
709
709
  /**
710
- * @description. Checks the options checkbox in the 'Specify correct answer' section for multiple selection questions.
710
+ * @description. Checks the options checkbox in the 'Specify correct answer' section for single selection questions.
711
711
  * @param {number} optionIndex - The index of the option checkbox to be checked.
712
712
  * @throws {Error} Will throw an error if the checkbox is not checked after the operation.
713
713
  * @example - checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.345-IEI-5793-aaaf0cf.0",
3
+ "version": "1.0.345-IEI-5793-dc367f5.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {