itemengine-cypress-automation 1.0.116 → 1.0.118
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.
- package/cypress/config-files/ilprod.json +3 -1
- package/cypress/config-files/ilqa.json +3 -1
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -0
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/migration/migration.js +9 -2
- package/cypress/e2e/migration/migration2.js +7 -0
- package/cypress/e2e/migration/migration3.js +7 -0
- package/cypress/e2e/migration/migration4.js +7 -0
- package/cypress/e2e/migration/migration5.js +7 -0
- package/cypress/support/commands.js +2 -2
- package/cypress/support/migrationHelpers/extractLrnQuestionData.js +108 -1
- package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +2 -1
- package/cypress/support/migrationHelpers/verifyIeQuestionData.js +37 -0
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -10,6 +10,8 @@
|
|
10
10
|
"scriptSrc": "https://assets.itemengine-prod.il-apps.com/Author.loader.js",
|
11
11
|
"admin_username": "demouser-ilc",
|
12
12
|
"admin_password": "GzL1Ezjou4wVFL8o",
|
13
|
-
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315"
|
13
|
+
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315",
|
14
|
+
"migration_usernme": "ilc-prod-content-user",
|
15
|
+
"migration_password": "Oj2kTWQM7ZRmegmS"
|
14
16
|
}
|
15
17
|
}
|
@@ -10,6 +10,8 @@
|
|
10
10
|
"scriptSrc": "https://assets.itemengine-qa.il-apps.com/Author.loader.js",
|
11
11
|
"admin_username": "demouser-ilc",
|
12
12
|
"admin_password": "GtOrLiig9surpeW1",
|
13
|
-
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315"
|
13
|
+
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315",
|
14
|
+
"migration_usernme": "demo-technical-tester",
|
15
|
+
"migration_password": "SXYeokWOoTuwEg2w"
|
14
16
|
}
|
15
17
|
}
|
@@ -3,6 +3,8 @@ import { audioResponsePage } from "../../../pages/audioResponsePage";
|
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
5
|
const css = Cypress.env('css');
|
6
|
+
const grepTags = Cypress.env('grepTags');
|
7
|
+
|
6
8
|
describe('Preview of Audio response for bar audio recorder style', () => {
|
7
9
|
before(() => {
|
8
10
|
cy.loginAs('admin');
|
@@ -3,6 +3,7 @@ import { audioResponsePage } from "../../../pages/audioResponsePage";
|
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
5
|
const css = Cypress.env('css');
|
6
|
+
const grepTags = Cypress.env('grepTags');
|
6
7
|
|
7
8
|
describe('Preview of Audio response for compact audio recorder style', () => {
|
8
9
|
before(() => {
|
@@ -20,7 +20,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: All or n
|
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
23
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -20,7 +20,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: All or n
|
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
23
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -23,7 +23,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: All or n
|
|
23
23
|
cy.barsPreLoaderWait();
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
26
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
27
27
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
28
28
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
29
29
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingPenaltyScoring.js
CHANGED
@@ -19,7 +19,7 @@ describe('Create item page -Fill in the gaps over image with dropdown: All or no
|
|
19
19
|
cy.barsPreLoaderWait();
|
20
20
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
22
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
22
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -20,7 +20,7 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
|
|
20
20
|
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('fill in the gaps');
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
23
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
@@ -44,7 +44,7 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
|
|
44
44
|
cy.barsPreLoaderWait();
|
45
45
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
46
46
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
47
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
48
48
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
49
49
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
50
50
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -20,7 +20,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
23
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsBasic.js
CHANGED
@@ -18,7 +18,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
18
18
|
cy.barsPreLoaderWait();
|
19
19
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
20
20
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
21
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
21
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
99
99
|
cy.barsPreLoaderWait();
|
100
100
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
101
101
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
102
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
102
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
103
103
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
104
104
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
105
105
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -164,7 +164,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
164
164
|
cy.barsPreLoaderWait();
|
165
165
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
166
166
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
167
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
167
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
168
168
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
169
169
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(60);
|
170
170
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
@@ -21,7 +21,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
21
21
|
cy.barsPreLoaderWait();
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
24
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
24
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
27
27
|
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
@@ -20,7 +20,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
23
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js
CHANGED
@@ -18,7 +18,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
18
18
|
cy.barsPreLoaderWait();
|
19
19
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
20
20
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
21
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
21
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -100,7 +100,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
100
100
|
cy.barsPreLoaderWait();
|
101
101
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
102
102
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
103
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
103
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
104
104
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
105
105
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
106
106
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -22,7 +22,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
22
22
|
cy.barsPreLoaderWait();
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
25
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
27
27
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
28
28
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -23,7 +23,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
23
23
|
cy.barsPreLoaderWait();
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
26
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
27
27
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
28
28
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
29
29
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -22,7 +22,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
22
22
|
cy.barsPreLoaderWait();
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
25
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
27
27
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
28
28
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -24,7 +24,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
24
24
|
cy.barsPreLoaderWait();
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
27
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
27
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
28
28
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
29
29
|
});
|
30
30
|
|
@@ -59,7 +59,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
59
59
|
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
60
60
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
61
61
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
62
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
62
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
63
63
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
64
64
|
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
65
65
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
@@ -190,7 +190,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
190
190
|
cy.barsPreLoaderWait();
|
191
191
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
192
192
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
193
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
194
194
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
195
195
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
196
196
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -41,7 +41,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Check answ
|
|
41
41
|
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
42
42
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
43
43
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
44
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
45
45
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
46
46
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
47
47
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -42,7 +42,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Scoring
|
|
42
42
|
cy.barsPreLoaderWait();
|
43
43
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
44
44
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
45
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
45
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
46
46
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
47
47
|
});
|
48
48
|
|
@@ -58,7 +58,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Scoring
|
|
58
58
|
cy.barsPreLoaderWait();
|
59
59
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
60
60
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
61
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
62
62
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
63
63
|
});
|
64
64
|
|
@@ -81,7 +81,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Scoring
|
|
81
81
|
cy.barsPreLoaderWait();
|
82
82
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
83
83
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
84
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
84
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
85
85
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
86
86
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
87
87
|
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
@@ -141,7 +141,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Scoring
|
|
141
141
|
cy.barsPreLoaderWait();
|
142
142
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
143
143
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
144
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
144
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
145
145
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
146
146
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(80);
|
147
147
|
});
|
@@ -165,7 +165,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Scoring
|
|
165
165
|
cy.barsPreLoaderWait();
|
166
166
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
167
167
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
168
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
168
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
169
169
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
170
170
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
171
171
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown);
|
@@ -263,7 +263,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Scoring
|
|
263
263
|
cy.barsPreLoaderWait();
|
264
264
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
265
265
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
266
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
266
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
267
267
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
268
268
|
fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
|
269
269
|
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js
CHANGED
@@ -25,7 +25,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
25
25
|
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
26
26
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
27
27
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
28
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
28
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
29
29
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
30
30
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
31
31
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
@@ -15,7 +15,7 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Specify cor
|
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
17
17
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
18
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
18
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
19
19
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
20
20
|
});
|
21
21
|
|
@@ -31,7 +31,7 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Specify cor
|
|
31
31
|
cy.barsPreLoaderWait();
|
32
32
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
33
33
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
34
|
-
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(
|
34
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
35
35
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
36
36
|
});
|
37
37
|
|
@@ -59,7 +59,7 @@ describe('Create item page - Fill in the gaps over image - text: Header section
|
|
59
59
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Question instruction');
|
60
60
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
61
61
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
62
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
62
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
63
63
|
fillInTheGapsOverImageTextPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
|
64
64
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
65
65
|
fillInTheGapsOverImageTextPage.steps.verifyErrorMessageIsNotDisplayed();
|
package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js
CHANGED
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
98
98
|
cy.barsPreLoaderWait();
|
99
99
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
100
100
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
101
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
101
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
102
102
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
103
103
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
104
104
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
@@ -161,7 +161,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
161
161
|
cy.barsPreLoaderWait();
|
162
162
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
163
163
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
164
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
164
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
165
165
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
166
166
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
|
167
167
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
99
99
|
cy.barsPreLoaderWait();
|
100
100
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
101
101
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
102
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
102
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
103
103
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
104
104
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
105
105
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
@@ -19,7 +19,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
19
19
|
cy.barsPreLoaderWait();
|
20
20
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
21
21
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
22
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
22
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
23
23
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
24
24
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
25
25
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
@@ -186,7 +186,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
186
186
|
cy.barsPreLoaderWait();
|
187
187
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
188
188
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
189
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
189
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
190
190
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
191
191
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
192
192
|
fillInTheGapsOverImageTextPage.steps.allotPoints(20);
|
@@ -41,7 +41,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
41
41
|
cy.barsPreLoaderWait();
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
43
43
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
44
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
44
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
45
45
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
46
46
|
});
|
47
47
|
|
@@ -57,7 +57,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
57
57
|
cy.barsPreLoaderWait();
|
58
58
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
59
59
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
60
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
60
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
61
61
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
62
62
|
});
|
63
63
|
|
@@ -80,7 +80,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
80
80
|
cy.barsPreLoaderWait();
|
81
81
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
82
82
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
83
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
83
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
84
84
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
85
85
|
fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
86
86
|
});
|
@@ -151,7 +151,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
151
151
|
cy.barsPreLoaderWait();
|
152
152
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
153
153
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
154
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
154
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
155
155
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
156
156
|
});
|
157
157
|
|
@@ -174,7 +174,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
174
174
|
cy.barsPreLoaderWait();
|
175
175
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
176
176
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
177
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
177
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
178
178
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
179
179
|
fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
180
180
|
});
|
@@ -268,7 +268,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
268
268
|
cy.barsPreLoaderWait();
|
269
269
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
270
270
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
271
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
271
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
272
272
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
273
273
|
fillInTheGapsOverImageTextPage.steps.expandScoringTypeDropdown();
|
274
274
|
fillInTheGapsOverImageTextPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
@@ -21,7 +21,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
21
21
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
23
23
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
24
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
24
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
25
25
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
|
26
26
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
27
27
|
fillInTheGapsOverImageTextPage.steps.selectAcceptedStudentInputType(1, 'Number');
|
@@ -213,7 +213,7 @@ describe('Create item page - Fill in the gaps over image - text - Special charac
|
|
213
213
|
cy.barsPreLoaderWait();
|
214
214
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
215
215
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
216
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
216
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
217
217
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
218
218
|
});
|
219
219
|
|
@@ -14,7 +14,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
14
14
|
cy.barsPreLoaderWait();
|
15
15
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
16
16
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
17
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
17
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
18
18
|
});
|
19
19
|
|
20
20
|
fillInTheGapsOverImageTextPage.tests.verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents('fill in the gaps over image with text');
|
@@ -30,7 +30,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
30
30
|
cy.barsPreLoaderWait();
|
31
31
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
32
32
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
33
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
33
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
34
34
|
});
|
35
35
|
|
36
36
|
fillInTheGapsOverImageTextPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('fill in the gaps over image text');
|
@@ -34,14 +34,14 @@ Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
|
|
34
34
|
cy.learnosityLoaderWait();
|
35
35
|
})
|
36
36
|
|
37
|
-
const migrationQuestionTypes = Cypress.env('migrationQuestionTypes')
|
37
|
+
const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["textEntryMath"]
|
38
38
|
const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
|
39
39
|
let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
|
40
40
|
|
41
41
|
let lrnQuestionDataArr = [];
|
42
42
|
let lrnGradingDataArr = [];
|
43
43
|
|
44
|
-
let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(0, 100)
|
44
|
+
let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(0, 100);//["eae30254-8637-4b59-a124-1b0caa68bc6e", "5acb0056-3d16-46d7-abbb-7a1ce08686ef", "6bd0f709-86c5-4e52-9510-9af3cd73e224"]
|
45
45
|
|
46
46
|
if (referenceIds.length > 0) {
|
47
47
|
describe('Migration item check for MCQ questions', () => {
|
@@ -76,9 +76,13 @@ if (referenceIds.length > 0) {
|
|
76
76
|
if (lrnMcqTypesRegex.test(currQuestionType)) {
|
77
77
|
currQuestionType = lrnQuestionTypesENUM.mcq
|
78
78
|
}
|
79
|
+
if (currQuestionType.includes(lrnQuestionTypesENUM.textEntryMath)) {
|
80
|
+
currQuestionType = lrnQuestionTypesENUM.textEntryMath
|
81
|
+
}
|
79
82
|
if (migrationQuestionTypesLrn.includes(currQuestionType)) {
|
80
83
|
switch (currQuestionType) {
|
81
84
|
case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcq(lrnQuestionDataArr, index);
|
85
|
+
case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMath(lrnQuestionDataArr, index);
|
82
86
|
default: throw new Error('Invalid lrn question type');
|
83
87
|
}
|
84
88
|
}
|
@@ -93,6 +97,7 @@ if (referenceIds.length > 0) {
|
|
93
97
|
cy.log(`Verifying data for ${questionType} ${index}`);
|
94
98
|
switch (questionType) {
|
95
99
|
case 'mcq': return verifyIeQuestionData.mcq(questionData, index);
|
100
|
+
case 'textEntryMath': return verifyIeQuestionData.textEntryMath(questionData, index);
|
96
101
|
default: throw new Error('Invalid ngie question type');
|
97
102
|
}
|
98
103
|
});
|
@@ -110,6 +115,7 @@ if (referenceIds.length > 0) {
|
|
110
115
|
if (migrationQuestionTypesLrn.includes(currQuestionType)) {
|
111
116
|
switch (currQuestionType) {
|
112
117
|
case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
|
118
|
+
case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
|
113
119
|
default: throw new Error('Invalid lrn question type');
|
114
120
|
}
|
115
121
|
}
|
@@ -126,6 +132,7 @@ if (referenceIds.length > 0) {
|
|
126
132
|
cy.log(`Verifying grading data for ${questionType} ${index}`);
|
127
133
|
switch (questionType) {
|
128
134
|
case 'mcq': return verifyIeQuestionData.mcqGrading(questionData, index);
|
135
|
+
case 'textEntryMath': return verifyIeQuestionData.textEntryMathGrading(questionData, index);
|
129
136
|
default: throw new Error('Invalid ngie question type');
|
130
137
|
}
|
131
138
|
});
|
@@ -76,9 +76,13 @@ if (referenceIds.length > 0) {
|
|
76
76
|
if (lrnMcqTypesRegex.test(currQuestionType)) {
|
77
77
|
currQuestionType = lrnQuestionTypesENUM.mcq
|
78
78
|
}
|
79
|
+
if (currQuestionType.includes(lrnQuestionTypesENUM.textEntryMath)) {
|
80
|
+
currQuestionType = lrnQuestionTypesENUM.textEntryMath
|
81
|
+
}
|
79
82
|
if (migrationQuestionTypesLrn.includes(currQuestionType)) {
|
80
83
|
switch (currQuestionType) {
|
81
84
|
case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcq(lrnQuestionDataArr, index);
|
85
|
+
case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMath(lrnQuestionDataArr, index);
|
82
86
|
default: throw new Error('Invalid lrn question type');
|
83
87
|
}
|
84
88
|
}
|
@@ -93,6 +97,7 @@ if (referenceIds.length > 0) {
|
|
93
97
|
cy.log(`Verifying data for ${questionType} ${index}`);
|
94
98
|
switch (questionType) {
|
95
99
|
case 'mcq': return verifyIeQuestionData.mcq(questionData, index);
|
100
|
+
case 'textEntryMath': return verifyIeQuestionData.textEntryMath(questionData, index);
|
96
101
|
default: throw new Error('Invalid ngie question type');
|
97
102
|
}
|
98
103
|
});
|
@@ -110,6 +115,7 @@ if (referenceIds.length > 0) {
|
|
110
115
|
if (migrationQuestionTypesLrn.includes(currQuestionType)) {
|
111
116
|
switch (currQuestionType) {
|
112
117
|
case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
|
118
|
+
case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
|
113
119
|
default: throw new Error('Invalid lrn question type');
|
114
120
|
}
|
115
121
|
}
|
@@ -126,6 +132,7 @@ if (referenceIds.length > 0) {
|
|
126
132
|
cy.log(`Verifying grading data for ${questionType} ${index}`);
|
127
133
|
switch (questionType) {
|
128
134
|
case 'mcq': return verifyIeQuestionData.mcqGrading(questionData, index);
|
135
|
+
case 'textEntryMath': return verifyIeQuestionData.textEntryMathGrading(questionData, index);
|
129
136
|
default: throw new Error('Invalid ngie question type');
|
130
137
|
}
|
131
138
|
});
|