itemengine-cypress-automation 1.0.106 → 1.0.107

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,45 +0,0 @@
1
- import { textEntryMathPage, itemPreviewPage, studentViewPage } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
3
- import utilities from "../../../support/helpers/utilities";
4
- const css = Cypress.env('css');
5
- let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
6
- const views = utilities.getViews(previewContentViews);
7
- var itemReferenceID = "";
8
-
9
- describe('Create item page - Text entry math: Preview contents', () => {
10
- before(() => {
11
- cy.loginAs('admin');
12
- });
13
-
14
- views.forEach((view) => {
15
- describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
- abortEarlySetup();
17
- before(() => {
18
- switch (view) {
19
- case 'Question preview':
20
- textEntryMathPage.steps.navigateToCreateQuestion('text entry math');
21
- cy.barsPreLoaderWait();
22
- textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
23
- cy.log('Add image to option input field')
24
- textEntryMathPage.steps.focusInOptionsInputField(0);
25
- textEntryMathPage.steps.selectImageOptionFromCKEditorToolbar()
26
- textEntryMathPage.steps.addImageToInputField();
27
- cy.log('Add bold text to input field')
28
- textEntryMathPage.steps.focusInOptionsInputField(1);
29
- textEntryMathPage.steps.selectBoldOptionFromCKEditorToolbar();
30
- textEntryMathPage.steps.enterTextInOptionInputField(1, 'This is a bold option');
31
- cy.log('Add equation to option input field')
32
- textEntryMathPage.steps.focusInOptionsInputField(2);
33
- textEntryMathPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
34
- textEntryMathPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
35
- textEntryMathPage.steps.enterTextInOptionInputField(3, 'option 4');
36
- textEntryMathPage.steps.allotPoints(10);
37
- textEntryMathPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
38
- textEntryMathPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
39
- textEntryMathPage.steps.switchToPreviewTab();
40
- }
41
- });
42
- });
43
- });
44
- });
45
-