itemengine-cypress-automation 1.0.106 → 1.0.108
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.
@@ -0,0 +1,29 @@
|
|
1
|
+
global:
|
2
|
+
team: itemengine
|
3
|
+
name: itemengine-cypress-automation-migration-test
|
4
|
+
type: integration_test
|
5
|
+
|
6
|
+
variables:
|
7
|
+
START_TIME: "$(date +%s)"
|
8
|
+
|
9
|
+
deployment:
|
10
|
+
job:
|
11
|
+
activeDeadlineSeconds: 7200
|
12
|
+
parallelism: 5
|
13
|
+
completions: 5
|
14
|
+
|
15
|
+
image:
|
16
|
+
cmd: /ie-e2e/deploy/migration/run.sh
|
17
|
+
|
18
|
+
resources:
|
19
|
+
limits:
|
20
|
+
memory: 8446Mi
|
21
|
+
cpu: 5000m
|
22
|
+
requests:
|
23
|
+
memory: 4096Mi
|
24
|
+
cpu: 2000m
|
25
|
+
|
26
|
+
env:
|
27
|
+
instance:
|
28
|
+
- name: START_TIME
|
29
|
+
value: "${{ variables.START_TIME }}"
|
package/package.json
CHANGED
@@ -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
|
-
|