itemengine-cypress-automation 1.0.131 → 1.0.133-7thMarchFixes-0e78080.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +154 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +170 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +335 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +142 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +76 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +341 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettingsForGroupedLayout.js +241 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +3 -3
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +350 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToCorrectPoints.js +356 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +402 -0
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +242 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +11 -16
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +4 -6
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -4
- package/cypress/fixtures/theme/ilc.json +2 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +1 -1
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +35 -5
- package/cypress/pages/components/imageCanvasComponent.js +1 -1
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/questionInputFieldComponent.js +31 -0
- package/cypress/pages/components/responseAreaSettingsPopupComponent.js +74 -0
- package/cypress/pages/drawingResponsePage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +318 -62
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -26
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +24 -1
- package/cypress/pages/simpleCalculatorPage.js +140 -10
- package/cypress/pages/textEntryMathPage.js +3 -2
- package/package.json +2 -2
@@ -1,7 +1,8 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
|
-
import { createQuestionBasePage } from "./components/";
|
2
|
+
import { createQuestionBasePage, toolVisibilityComponent } from "./components/";
|
3
3
|
|
4
4
|
const selectors = {
|
5
|
+
...toolVisibilityComponent,
|
5
6
|
calculatorWrapper: () => cy.get('[class*="SimpleCalculatorComponentWrapper"]'),
|
6
7
|
calculatorDisplay: () => cy.get('.calculator-screen-wrapper'),
|
7
8
|
calculatorDisplayEquation: () => cy.get('.calculator-result-wrapper'),
|
@@ -51,10 +52,19 @@ const selectors = {
|
|
51
52
|
customizeCalculatorSettingsSquareRootButton: () => cy.get('[class*="SimpleCalculatorstyles__ButtonsWrapper"] [aria-label*="Square root button"]'),
|
52
53
|
customizeCalculatorSettingsExponentButton: () => cy.get('[class*="SimpleCalculatorstyles__ButtonsWrapper"] [aria-label*="Exponent button"]'),
|
53
54
|
customizeCalculatorSettingsSignChangeButton: () => cy.get('[class*="SimpleCalculatorstyles__ButtonsWrapper"] [aria-label*="Sign change button"]'),
|
55
|
+
customizeCalculatorSettingsLabel: () => cy.get('.calculator-custom-setting-wrapper'),
|
56
|
+
customizeCalculatorSettingsButtonLabel: () => cy.get('.calculator-button-label'),
|
57
|
+
tickIcon: () => cy.get('[data-name="Icon feather-check"]'),
|
58
|
+
calculatorVisibilityLabel: () => cy.get('.calculator-visibility-label-wrapper'),
|
59
|
+
calculatorVisibilityButton: () => cy.get('.calculator-button'),
|
60
|
+
visibleIcon: () => cy.get('.calculator-button g'),
|
61
|
+
hideIcon: () => cy.get('.calculator-button #Hide_cell'),
|
62
|
+
closeCalculatorButton: () => cy.get('[role="button"][aria-label="close calculator"]')
|
54
63
|
}
|
55
64
|
|
56
65
|
const steps = {
|
57
66
|
...createQuestionBasePage.steps,
|
67
|
+
...toolVisibilityComponent.steps,
|
58
68
|
/**
|
59
69
|
* @description Verifies the displayed result value on the calculator.
|
60
70
|
* @param {string} value - The expected value to verify against.
|
@@ -255,53 +265,173 @@ const steps = {
|
|
255
265
|
|
256
266
|
selectCustomizeCalculatorSettingsHistoryButton: () => {
|
257
267
|
simpleCalculatorPage.customizeCalculatorSettingsHistoryButton()
|
258
|
-
.click()
|
268
|
+
.click()
|
269
|
+
.within(() => {
|
270
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
271
|
+
});
|
259
272
|
},
|
260
273
|
|
261
274
|
selectCustomizeCalculatorSettingsUndoRedoButton: () => {
|
262
275
|
simpleCalculatorPage.customizeCalculatorSettingsUndoRedoButton()
|
263
|
-
.click()
|
276
|
+
.click()
|
277
|
+
.within(() => {
|
278
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
279
|
+
});
|
264
280
|
},
|
265
281
|
|
266
282
|
selectCustomizeCalculatorSettingsParenthesesButton: () => {
|
267
283
|
simpleCalculatorPage.customizeCalculatorSettingsParenthesesButton()
|
268
|
-
.click()
|
284
|
+
.click()
|
285
|
+
.within(() => {
|
286
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
287
|
+
});
|
269
288
|
},
|
270
289
|
|
271
290
|
selectCustomizeCalculatorSettingsPiButton: () => {
|
272
291
|
simpleCalculatorPage.customizeCalculatorSettingsPiButton()
|
273
|
-
.click()
|
292
|
+
.click()
|
293
|
+
.within(() => {
|
294
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
295
|
+
});
|
274
296
|
},
|
275
297
|
|
276
298
|
selectCustomizeCalculatorSettingsSquareButton: () => {
|
277
299
|
simpleCalculatorPage.customizeCalculatorSettingsSquareButton()
|
278
|
-
.click()
|
300
|
+
.click()
|
301
|
+
.within(() => {
|
302
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
303
|
+
});
|
279
304
|
},
|
280
305
|
|
281
306
|
selectCustomizeCalculatorSettingsReciprocalButton: () => {
|
282
307
|
simpleCalculatorPage.customizeCalculatorSettingsReciprocalButton()
|
283
|
-
.click()
|
308
|
+
.click()
|
309
|
+
.within(() => {
|
310
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
311
|
+
});
|
284
312
|
},
|
285
313
|
|
286
314
|
selectCustomizeCalculatorSettingsPercentageButton: () => {
|
287
315
|
simpleCalculatorPage.customizeCalculatorSettingsPercentageButton()
|
288
|
-
.click()
|
316
|
+
.click()
|
317
|
+
.within(() => {
|
318
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
319
|
+
});
|
289
320
|
},
|
290
321
|
|
291
322
|
selectCustomizeCalculatorSettingsSquareRootButton: () => {
|
292
323
|
simpleCalculatorPage.customizeCalculatorSettingsSquareRootButton()
|
293
|
-
.click()
|
324
|
+
.click()
|
325
|
+
.within(() => {
|
326
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
327
|
+
});
|
328
|
+
},
|
329
|
+
|
330
|
+
deselectCustomizeCalculatorSettingsSquareRootButton: () => {
|
331
|
+
simpleCalculatorPage.customizeCalculatorSettingsSquareRootButton()
|
332
|
+
.click()
|
333
|
+
.within(() => {
|
334
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'notExist');
|
335
|
+
});
|
294
336
|
},
|
295
337
|
|
296
338
|
selectCustomizeCalculatorSettingsExponentButton: () => {
|
297
339
|
simpleCalculatorPage.customizeCalculatorSettingsExponentButton()
|
298
|
-
.click()
|
340
|
+
.click()
|
341
|
+
.within(() => {
|
342
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
343
|
+
});
|
299
344
|
},
|
300
345
|
|
301
346
|
selectCustomizeCalculatorSettingsSignChangeButton: () => {
|
302
347
|
simpleCalculatorPage.customizeCalculatorSettingsSignChangeButton()
|
348
|
+
.click()
|
349
|
+
.within(() => {
|
350
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
351
|
+
});
|
352
|
+
},
|
353
|
+
|
354
|
+
deselectCustomizeCalculatorSettingsSignChangeButton: () => {
|
355
|
+
simpleCalculatorPage.customizeCalculatorSettingsSignChangeButton()
|
356
|
+
.click()
|
357
|
+
.within(() => {
|
358
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'notExist');
|
359
|
+
});
|
360
|
+
},
|
361
|
+
|
362
|
+
verifyCustomizeCalculatorSettingsHistoryButtonSelectedState: () => {
|
363
|
+
simpleCalculatorPage.customizeCalculatorSettingsHistoryButton()
|
364
|
+
.within(() => {
|
365
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
366
|
+
});
|
367
|
+
},
|
368
|
+
|
369
|
+
verifyCustomizeCalculatorSettingsUndoRedoButtonSelectedState: () => {
|
370
|
+
simpleCalculatorPage.customizeCalculatorSettingsUndoRedoButton()
|
371
|
+
.within(() => {
|
372
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
373
|
+
});
|
374
|
+
},
|
375
|
+
|
376
|
+
verifyCustomizeCalculatorSettingsParenthesesButtonSelectedState: () => {
|
377
|
+
simpleCalculatorPage.customizeCalculatorSettingsParenthesesButton()
|
378
|
+
.within(() => {
|
379
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'visible');
|
380
|
+
});
|
381
|
+
},
|
382
|
+
|
383
|
+
verifyCustomizeCalculatorSettingsSignChangeButtonDeselectedState: () => {
|
384
|
+
simpleCalculatorPage.customizeCalculatorSettingsSignChangeButton()
|
385
|
+
.within(() => {
|
386
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'notExist');
|
387
|
+
});
|
388
|
+
},
|
389
|
+
|
390
|
+
verifyCustomizeCalculatorSettingsSquareRootButtonDeselectedState: () => {
|
391
|
+
simpleCalculatorPage.customizeCalculatorSettingsSquareRootButton()
|
392
|
+
.within(() => {
|
393
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'notExist');
|
394
|
+
});
|
395
|
+
},
|
396
|
+
|
397
|
+
deselectCustomizeCalculatorSettingsHistoryButton: () => {
|
398
|
+
simpleCalculatorPage.customizeCalculatorSettingsHistoryButton()
|
399
|
+
.click()
|
400
|
+
.within(() => {
|
401
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.tickIcon(), 'notExist');
|
402
|
+
});
|
403
|
+
},
|
404
|
+
|
405
|
+
/**
|
406
|
+
* @param {("Show"|"Hide")} visibility denotes the visibility on visibility button in preview tab
|
407
|
+
* @description function verifies the visibility button and its icon in preview tab
|
408
|
+
*/
|
409
|
+
verifyCalculatorVisibilityButtonLabel: (visibility) => {
|
410
|
+
utilities.verifyInnerText(simpleCalculatorPage.calculatorVisibilityButton(), `${visibility} calculator`);
|
411
|
+
if (visibility == 'Hide') {
|
412
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.hideIcon(), 'visible');
|
413
|
+
} else {
|
414
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.visibleIcon(), 'visible');
|
415
|
+
}
|
416
|
+
},
|
417
|
+
|
418
|
+
verifyCalculatorNotExists: () => {
|
419
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.calculatorWrapper(), 'notExist');
|
420
|
+
},
|
421
|
+
|
422
|
+
verifyCalculatorIsVisible: () => {
|
423
|
+
utilities.verifyElementVisibilityState(simpleCalculatorPage.calculatorWrapper(), 'visible');
|
424
|
+
},
|
425
|
+
|
426
|
+
clickOnCalculatorVisibilityButton: () => {
|
427
|
+
simpleCalculatorPage.calculatorVisibilityButton()
|
303
428
|
.click();
|
304
429
|
},
|
430
|
+
|
431
|
+
clickOnCloseCalculatorButton: () => {
|
432
|
+
simpleCalculatorPage.closeCalculatorButton()
|
433
|
+
.click();
|
434
|
+
}
|
305
435
|
}
|
306
436
|
|
307
437
|
export const simpleCalculatorPage = {
|
@@ -18,7 +18,7 @@ const selectors = {
|
|
18
18
|
//Response accordion
|
19
19
|
responseAccordion: () => cy.get('.response-accordion [class*="ResponseAccordionstyles__ResponsePanel"]'),
|
20
20
|
responseAccordionLabel: () => cy.get('[class*="ResponseAccordionstyles__Label"]'),
|
21
|
-
responseAccordionAnswerInputField: () => cy.get('
|
21
|
+
responseAccordionAnswerInputField: () => cy.get('.equation-input-component .mq-editable-field'),
|
22
22
|
responseAccordionPointsWrapper: () => cy.get('[class*="ResponseAccordionstyles__PointsDiv"]'),
|
23
23
|
responseAccordionPointsLabel: () => cy.get('[class*="ResponseAccordionstyles__PointsLabel"]'),
|
24
24
|
responseAccordionPointsScore: () => cy.get('[class*="ResponseAccordionstyles__Points-"]'),
|
@@ -40,7 +40,7 @@ const selectors = {
|
|
40
40
|
answersLabel: () => cy.get('[class*="ResponseEvaluationstyles__AnswersWrapper"] .options-label'),
|
41
41
|
responseAccordionAddAlternateButton: () => cy.get('[class*="ResponseEvaluationstyles__AnswersWrapper"] .add-option-wrapper-cls button'),
|
42
42
|
answerInputFieldWrapper: () => cy.get('.cloze-math-answer-option-input'),
|
43
|
-
answersInputField: () => cy.get('
|
43
|
+
answersInputField: () => cy.get('.equation-input-component .mq-editable-field'),
|
44
44
|
answersInputFieldDeleteButton: () => cy.get('.option-delete-button-wrapper'),
|
45
45
|
answersInputFieldNumeration: () => cy.get('[class*="SingleOptionstyle__AdornmentDiv"]'),
|
46
46
|
|
@@ -202,6 +202,7 @@ const steps = {
|
|
202
202
|
addInputToResponseAnswerInputFieldSpecifyCorrectAnswer: (answerFieldIndex, input) => {
|
203
203
|
utilities.getNthElement(textEntryMathPage.responseAccordionAnswerInputField(), answerFieldIndex)
|
204
204
|
.type(`${input}`);
|
205
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
205
206
|
utilities.verifyInnerText(utilities.getNthElement(textEntryMathPage.responseAccordionAnswerInputField(), answerFieldIndex), `${input}`);
|
206
207
|
},
|
207
208
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.133-7thMarchFixes-0e78080.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|