itemengine-cypress-automation 1.0.151-28MarchRepoUpdate-20de036.0 → 1.0.152-28th-March-fixes-6236e0e.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +2 -2
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +25 -25
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +506 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +155 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +143 -0
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +180 -0
- package/cypress/e2e/ILC/Matching/editTabScoring.js +221 -0
- package/cypress/e2e/ILC/Matching/manuallyAndNonScoredEditTab.js +68 -0
- package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/Matching/switchingCasesBetweenOptionsLayout.js +49 -0
- package/cypress/fixtures/theme/ilc.json +7 -1
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/contentBlocksPage.js +30 -1
- package/cypress/pages/createItemPage.js +1 -1
- package/cypress/pages/essayResponsePage.js +1 -1
- package/cypress/pages/graphingPage.js +29 -29
- package/cypress/pages/gridFillPage.js +663 -15
- package/cypress/pages/itemPreviewSettingsPage.js +3 -3
- package/cypress/pages/matchingPage.js +466 -5
- package/cypress/pages/shortTextResponsePage.js +1 -0
- package/cypress/pages/textEntryMathPage.js +1 -1
- package/cypress/pages/textEntryMathWithImagePage.js +1 -1
- package/package.json +1 -1
@@ -113,6 +113,7 @@ describe('Create item page - Drag and drop into categories: Scoring section', ()
|
|
113
113
|
});
|
114
114
|
});
|
115
115
|
|
116
|
+
//Failing due to https://redmine.zeuslearning.com/issues/560542
|
116
117
|
describe('Edit tab \'Specify correct answer\' section for Per dropzone', () => {
|
117
118
|
abortEarlySetup();
|
118
119
|
before(() => {
|
@@ -37,7 +37,7 @@ describe('Item preview: Settings tab - Contents', () => {
|
|
37
37
|
});
|
38
38
|
|
39
39
|
//Failing due to https://redmine.zeuslearning.com/issues/553260?next_issue_id=553252
|
40
|
-
it('CSS of the header', () => {
|
40
|
+
it('CSS of the header', { tags: 'css' }, () => {
|
41
41
|
utilities.verifyCSS(itemPreviewSettingsPage.settingsLabel(), {
|
42
42
|
'color': css.color.panelLabel,
|
43
43
|
'font-size': css.fontSize.heading,
|
@@ -116,7 +116,7 @@ describe('Item preview: Settings tab - Contents', () => {
|
|
116
116
|
});
|
117
117
|
});
|
118
118
|
|
119
|
-
it('CSS of disabled \'Vertical\' label and its radio button', () => {
|
119
|
+
it('CSS of disabled \'Vertical\' label and its radio button', { tags: 'css' }, () => {
|
120
120
|
utilities.verifyCSS(itemPreviewSettingsPage.verticalLabel().parent(), {
|
121
121
|
'opacity': '0.4'
|
122
122
|
});
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
|
6
6
|
describe('Item preview: Settings tab - functionality', () => {
|
7
|
-
before(
|
7
|
+
before(() => {
|
8
8
|
cy.loginAs('admin');
|
9
9
|
});
|
10
10
|
|
@@ -29,8 +29,8 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
29
29
|
itemPreviewSettingsPage.steps.selectQuestionType('short text response');
|
30
30
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('shortTextResponseHeading', 2, 'Answer');
|
31
31
|
itemPreviewSettingsPage.steps.clickOnAddResource(1);
|
32
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
33
|
-
itemPreviewSettingsPage.steps.
|
32
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
33
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Heading', 'Content heading');
|
34
34
|
});
|
35
35
|
|
36
36
|
it('When user has added question in the left panel, then it should be displayed in the left panel ', () => {
|
@@ -38,7 +38,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
38
38
|
});
|
39
39
|
|
40
40
|
it('When user has added resource and tool in the right panel, then it should be displayed in the right panel', () => {
|
41
|
-
itemPreviewSettingsPage.steps.
|
41
|
+
itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Content heading', panel: 1 });
|
42
42
|
});
|
43
43
|
|
44
44
|
it('When user unchecks \'Enable side by side panels\' checkbox, then only one panel should be displayed and and added questions or resource and tools should be displayed inline', () => {
|
@@ -48,7 +48,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
48
48
|
itemPreviewSettingsPage.steps.verifyQuestionsCount(2);
|
49
49
|
itemPreviewSettingsPage.steps.verifyPanelCount(1);
|
50
50
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', panel: 0 });
|
51
|
-
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: '
|
51
|
+
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Content heading', panel: 0 });
|
52
52
|
});
|
53
53
|
|
54
54
|
it('When user checks \'Enable side by side panels\' checkbox again, then \'Edit tab\' should be displayed with two panels, the left panel should be prefilled with added questions and resource tools and right panel should have \'Add question\' and \'Add resource and tool\' buttons', () => {
|
@@ -77,14 +77,14 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
77
77
|
itemPreviewSettingsPage.steps.selectQuestionType('short text response');
|
78
78
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('LeftPanelQuestion', 2, 'Answer');
|
79
79
|
itemPreviewSettingsPage.steps.clickOnAddResource(0);
|
80
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
81
|
-
itemPreviewSettingsPage.steps.
|
80
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
81
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('LeftPanelResource', 'Content heading');
|
82
82
|
itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
|
83
83
|
itemPreviewSettingsPage.steps.selectQuestionType('short text response');
|
84
84
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('RightPanelQuestion', 2, 'Answer');
|
85
85
|
itemPreviewSettingsPage.steps.clickOnAddResource(1);
|
86
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
87
|
-
itemPreviewSettingsPage.steps.
|
86
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
87
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('RightPanelResource', 'Content heading');
|
88
88
|
});
|
89
89
|
|
90
90
|
it('When user checks \'Horizontal separator line between questions\' checkbox, then questions in \'Edit tab\' should have \'Solid\' horizontal separator line between them and it should not be visible after last question', () => {
|
@@ -171,14 +171,14 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
171
171
|
itemPreviewSettingsPage.steps.selectQuestionType('short text response');
|
172
172
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('LeftPanelQuestion', 2, 'Answer');
|
173
173
|
itemPreviewSettingsPage.steps.clickOnAddResource(0);
|
174
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
175
|
-
itemPreviewSettingsPage.steps.
|
174
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
175
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('LeftPanelResource', 'Content heading');
|
176
176
|
itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
|
177
177
|
itemPreviewSettingsPage.steps.selectQuestionType('short text response');
|
178
178
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('RightPanelQuestion', 2, 'Answer');
|
179
179
|
itemPreviewSettingsPage.steps.clickOnAddResource(1);
|
180
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
181
|
-
itemPreviewSettingsPage.steps.
|
180
|
+
itemPreviewSettingsPage.steps.selectResourceType('Content blocks');
|
181
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('RightPanelResource', 'Content heading');
|
182
182
|
});
|
183
183
|
|
184
184
|
it('When user navigates to \'Edit tab\', then spacing should be \'Default\' by default and after last question space should remain constant', () => {
|
@@ -245,8 +245,8 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
245
245
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('ShortText', '2', 'Answer');
|
246
246
|
itemPreviewSettingsPage.steps.navigateToSection2();
|
247
247
|
itemPreviewSettingsPage.steps.clickOnAddQuestion();
|
248
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
249
|
-
itemPreviewSettingsPage.steps.
|
248
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
249
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Global', 'Warming');
|
250
250
|
});
|
251
251
|
|
252
252
|
it('When user has added question in section 1 then, it should be displayed in the section 1 ', () => {
|
@@ -256,7 +256,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
256
256
|
|
257
257
|
it('When user has added resource and tool in section 2 then, it should be displayed in the section 2', () => {
|
258
258
|
itemPreviewSettingsPage.steps.navigateToSection2();
|
259
|
-
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: '
|
259
|
+
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
|
260
260
|
});
|
261
261
|
|
262
262
|
it('When the user has checked \'Enable sections\' then on switching to \'Edit tab\', section navigation orientation should be \'Horizontal\', section navigation style should be \'Underlined\' and section navigation alignment should be \'Left aligned\' by default', () => {
|
@@ -337,8 +337,8 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
337
337
|
it('User should be able to add questions in both sections of \'Right panel\'', () => {
|
338
338
|
itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
|
339
339
|
itemPreviewSettingsPage.steps.clickOnAddResource(1);
|
340
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
341
|
-
itemPreviewSettingsPage.steps.
|
340
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
341
|
+
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Heading', 'Body');
|
342
342
|
itemPreviewSettingsPage.steps.navigateToSection2(1);
|
343
343
|
itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
|
344
344
|
itemPreviewSettingsPage.steps.clickOnAddResource(1);
|
@@ -348,7 +348,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
348
348
|
|
349
349
|
it('When user has added question in section 1 then, it should be displayed in the section 1 ', () => {
|
350
350
|
itemPreviewSettingsPage.steps.navigateToSection1();
|
351
|
-
itemPreviewSettingsPage.steps.
|
351
|
+
itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
|
352
352
|
});
|
353
353
|
|
354
354
|
it('When user has added resource and tool in section 2 then, it should be displayed in the section 2', () => {
|
@@ -362,7 +362,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
362
362
|
itemPreviewSettingsPage.steps.clickApplyChanges();
|
363
363
|
itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
|
364
364
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
|
365
|
-
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: '
|
365
|
+
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
|
366
366
|
});
|
367
367
|
|
368
368
|
it('When user checks \'Left panel\' checkbox, then \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons', () => {
|
@@ -372,7 +372,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
372
372
|
itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
|
373
373
|
itemPreviewSettingsPage.steps.navigateToSection1(0);
|
374
374
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
|
375
|
-
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: '
|
375
|
+
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
|
376
376
|
});
|
377
377
|
|
378
378
|
it('When user unchecks \'Right panel\' checkbox, then in \'Right panel\' section titles should disappear and questions should be displayed inline', () => {
|
@@ -380,7 +380,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
380
380
|
itemPreviewSettingsPage.steps.uncheckRightPanelCheckbox();
|
381
381
|
itemPreviewSettingsPage.steps.clickApplyChanges();
|
382
382
|
itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
|
383
|
-
itemPreviewSettingsPage.steps.
|
383
|
+
itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
|
384
384
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
|
385
385
|
});
|
386
386
|
|
@@ -390,7 +390,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
390
390
|
itemPreviewSettingsPage.steps.clickApplyChanges();
|
391
391
|
itemPreviewSettingsPage.steps.verifyTwoSectionsExist(1);
|
392
392
|
itemPreviewSettingsPage.steps.navigateToSection1(1);
|
393
|
-
itemPreviewSettingsPage.steps.
|
393
|
+
itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
|
394
394
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
|
395
395
|
});
|
396
396
|
|
@@ -402,8 +402,8 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
402
402
|
itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
|
403
403
|
itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
|
404
404
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
|
405
|
-
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: '
|
406
|
-
itemPreviewSettingsPage.steps.
|
405
|
+
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
|
406
|
+
itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
|
407
407
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
|
408
408
|
});
|
409
409
|
});
|