itemengine-cypress-automation 1.0.144-21MatchRepoUpdate-0ab2c79.0 → 1.0.145-equationAndCheckAnswerSeelctorUpdate-b61f46e.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
5
5
  //Note: We need to work on this file, as disablePreviousIncorrectOptionLabel is not present for all auto scored question types, need to create different component files allowStudentsToCheckAnswerComponent, disablePreviousOptionComponent
6
6
  const selectors = {
7
7
  allowStudentToCheckAnswerLabel: () => cy.get('[data-ngie-testid="allow-student-to-check-answer-checkbox"] .MuiFormControlLabel-label'),
8
- allowStudentToCheckAnswerCheckbox: () => cy.get('[data-ngie-testid="allow-student-to-check-answer-checkbox"] input'),
8
+ allowStudentToCheckAnswerCheckbox: () => cy.get('[data-ngie-testid="allow-students-to-check-answer-checkbox"] input'),
9
9
  maximumCheckAnswerAttemptsDropdownLabel: () => cy.get('#Maximum-check-answer-attempts-dropdown-label'),
10
10
  maximumCheckAnswerAttemptsDropdown: () => cy.get('#Maximum-check-answer-attempts-select'),
11
11
  maximumCheckAnswerAttemptsDropdownListOptions: (ariaLabel = null) => {
@@ -231,21 +231,21 @@ const steps = {
231
231
  },
232
232
 
233
233
  addGenericEquationUsingEquationEditorToCKEditorInputField: () => {
234
- equationEditorFlyout.categoryTab(equationEditorCategoriesAndSymbols['basic'].displayName)
234
+ equationEditorFlyout.categoryTab('Basic')
235
235
  .click();
236
236
  equationEditorFlyout.previewInputField()
237
237
  .type('x');
238
- equationEditorFlyout.categoryCharacters(equationEditorCategoriesAndSymbols.basic.symbols.equalTo.ariaLabel)
238
+ equationEditorFlyout.categoryCharacters('Equalto')
239
239
  .click()
240
- equationEditorFlyout.categoryCharacters(equationEditorCategoriesAndSymbols.basic.symbols.cubeRoot.ariaLabel)
240
+ equationEditorFlyout.categoryCharacters('CubeRoot')
241
241
  .click()
242
242
  equationEditorFlyout.inputFieldCursor()
243
243
  .type('8{rightarrow}');
244
- equationEditorFlyout.categoryCharacters(equationEditorCategoriesAndSymbols.basic.symbols.comma.ariaLabel)
244
+ equationEditorFlyout.categoryCharacters('Comma')
245
245
  .click();
246
246
  equationEditorFlyout.previewInputField()
247
247
  .type('What is the value of x?');
248
- equationEditorFlyout.categoryCharacters(equationEditorCategoriesAndSymbols.basic.symbols.questionMark.ariaLabel)
248
+ equationEditorFlyout.categoryCharacters('QuestionMark')
249
249
  .click();
250
250
  equationEditorFlyout.previewInputField()
251
251
  .contains(constants.CKEditorEquationEditorPopupInputFieldEnteredEquationText);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.144-21MatchRepoUpdate-0ab2c79.0",
3
+ "version": "1.0.145-equationAndCheckAnswerSeelctorUpdate-b61f46e.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {