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-
|
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(
|
234
|
+
equationEditorFlyout.categoryTab('Basic')
|
235
235
|
.click();
|
236
236
|
equationEditorFlyout.previewInputField()
|
237
237
|
.type('x');
|
238
|
-
equationEditorFlyout.categoryCharacters(
|
238
|
+
equationEditorFlyout.categoryCharacters('Equalto')
|
239
239
|
.click()
|
240
|
-
equationEditorFlyout.categoryCharacters(
|
240
|
+
equationEditorFlyout.categoryCharacters('CubeRoot')
|
241
241
|
.click()
|
242
242
|
equationEditorFlyout.inputFieldCursor()
|
243
243
|
.type('8{rightarrow}');
|
244
|
-
equationEditorFlyout.categoryCharacters(
|
244
|
+
equationEditorFlyout.categoryCharacters('Comma')
|
245
245
|
.click();
|
246
246
|
equationEditorFlyout.previewInputField()
|
247
247
|
.type('What is the value of x?');
|
248
|
-
equationEditorFlyout.categoryCharacters(
|
248
|
+
equationEditorFlyout.categoryCharacters('QuestionMark')
|
249
249
|
.click();
|
250
250
|
equationEditorFlyout.previewInputField()
|
251
251
|
.contains(constants.CKEditorEquationEditorPopupInputFieldEnteredEquationText);
|