itemengine-cypress-automation 1.0.372 → 1.0.373
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/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +4 -1
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/package.json +1 -1
@@ -26,9 +26,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
26
26
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
27
27
|
cy.barsPreLoaderWait();
|
28
28
|
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
29
|
-
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
30
|
-
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
31
|
-
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
32
29
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
30
|
});
|
34
31
|
|
@@ -37,6 +34,9 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
37
34
|
it('When the user sets correct answer responses and allots points, then the alloted points should be displayed in the preview tab', () => {
|
38
35
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
39
36
|
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
37
|
+
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
38
|
+
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
39
|
+
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
40
40
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Whale': 4 });
|
41
41
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
42
42
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
|
@@ -43,6 +43,8 @@ describe('Create item page - Drag and drop into categories: Header section and S
|
|
43
43
|
before(() => {
|
44
44
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
45
45
|
cy.barsPreLoaderWait();
|
46
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
|
47
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
46
48
|
});
|
47
49
|
|
48
50
|
describe('Validation error messages', () => {
|
@@ -48,6 +48,9 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
|
|
48
48
|
cy.log('Navigate to fill in the gaps - dropdown question type');
|
49
49
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
50
50
|
cy.barsPreLoaderWait();
|
51
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
|
52
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
53
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Test question instructions');
|
51
54
|
});
|
52
55
|
|
53
56
|
it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
|
@@ -79,7 +82,7 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
|
|
79
82
|
dragAndDropIntoCategoriesPage.tests.verifyContentsOfSpecifyCorrectAnswerSection('Non scored');
|
80
83
|
|
81
84
|
dragAndDropIntoCategoriesPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
|
82
|
-
|
85
|
+
|
83
86
|
it('User should able to save question with non scored scoring type', () => {
|
84
87
|
dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
|
85
88
|
});
|
@@ -30,6 +30,9 @@ describe('Create item page - Drag and drop into categories: Minimum scoring, Pen
|
|
30
30
|
before(() => {
|
31
31
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
32
32
|
cy.barsPreLoaderWait();
|
33
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
|
34
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
35
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Test question instructions');
|
33
36
|
});
|
34
37
|
|
35
38
|
//Per dropzone
|
package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js
CHANGED
@@ -87,6 +87,9 @@ describe('Drag and drop into categories - Style and layout customization accordi
|
|
87
87
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
88
88
|
cy.barsPreLoaderWait();
|
89
89
|
dragAndDropIntoCategoriesPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
90
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
|
91
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
92
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Test question instructions');
|
90
93
|
});
|
91
94
|
|
92
95
|
rowColumnOptions.forEach((option) => {
|
@@ -264,7 +264,10 @@ describe('Create item page - Single selection grid: Scoring section', () => {
|
|
264
264
|
before(() => {
|
265
265
|
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
266
266
|
cy.barsPreLoaderWait();
|
267
|
-
singleSelectionGridPage.steps.
|
267
|
+
singleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not')
|
268
|
+
singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
269
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
270
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
268
271
|
});
|
269
272
|
|
270
273
|
it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
|
@@ -15,7 +15,7 @@ describe('Fetch Responses API', () => {
|
|
15
15
|
let activityTemplateIdNew1;
|
16
16
|
before(() => {
|
17
17
|
cy.loginAs('admin');
|
18
|
-
cy.createItem('
|
18
|
+
cy.createItem('FetchResponseTest12');
|
19
19
|
cy.wait(5000)
|
20
20
|
cy.visit(`${Cypress.env('itemEngineHomePage')}`);
|
21
21
|
});
|
@@ -40,7 +40,7 @@ describe('Fetch Responses API', () => {
|
|
40
40
|
.click();
|
41
41
|
cy.get('textarea[class="body-param__text"]')
|
42
42
|
.clear()
|
43
|
-
.fill(`{\n "item_references": ["
|
43
|
+
.fill(`{\n "item_references": ["FetchResponseTest12"],\n "references": [],\n "types": [],\n "limit": 50,\n "sort_field": "created",\n "sort": "desc"\n}\n`);
|
44
44
|
cy.get('.execute')
|
45
45
|
.click();
|
46
46
|
cy.wait(2000);
|
@@ -52,7 +52,7 @@ describe('Fetch Responses API', () => {
|
|
52
52
|
.then((text) => {
|
53
53
|
// Parse the JSON from the DOM
|
54
54
|
const actualResponse = JSON.parse(text);
|
55
|
-
const test1Data = actualResponse.data.
|
55
|
+
const test1Data = actualResponse.data.FetchResponseTest12[0];
|
56
56
|
const { reference: ref1 } = test1Data;
|
57
57
|
itemReferenceIdNew = ref1;
|
58
58
|
});
|