itemengine-cypress-automation 1.0.116 → 1.0.117
Sign up to get free protection for your applications and to get access to all the features.
- 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/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
@@ -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');
|
package/package.json
CHANGED
@@ -84,7 +84,7 @@ export function runSorryCypressSpinnaker() {
|
|
84
84
|
startTime = process.env.START_TIME;
|
85
85
|
ciBuildId = setCiBuildId("spinnaker", startTime);
|
86
86
|
const envArgs = setCommandLineEnvArgs()
|
87
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs},grepTags=-css+-a11y --spec "cypress/e2e/ILC/**/*.js"`;
|
87
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs},grepTags=-css+-a11y --spec "cypress/e2e/ILC/**/*.smoke.js"`;
|
88
88
|
execSync(command, { stdio: "inherit" });
|
89
89
|
}
|
90
90
|
|
@@ -1,432 +0,0 @@
|
|
1
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { essayResponsePage } from "../../../pages";
|
3
|
-
import { ckEditorToolbar } from "../../../pages/components";
|
4
|
-
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
let specialCharacters = [':', ')', '`']
|
7
|
-
describe('Create question page - Essay Response: Additional Settings', () => {
|
8
|
-
before(() => {
|
9
|
-
cy.loginAs('admin');
|
10
|
-
});
|
11
|
-
|
12
|
-
describe('Additional Settings: Predefined text', () => {
|
13
|
-
abortEarlySetup();
|
14
|
-
before(() => {
|
15
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
16
|
-
essayResponsePage.steps.setWordLimit(5);
|
17
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
18
|
-
});
|
19
|
-
|
20
|
-
it('\'Predefined text\' label and input field should be displayed and by default, the input field should be empty', () => {
|
21
|
-
essayResponsePage.predefinedTextLabel()
|
22
|
-
.verifyInnerText('Predefined text')
|
23
|
-
essayResponsePage.predefinedTextInputField()
|
24
|
-
.should('have.text', '');
|
25
|
-
});
|
26
|
-
|
27
|
-
it('CSS of \'Predefined text\' section', { tags: 'css' }, () => {
|
28
|
-
essayResponsePage.predefinedTextLabel()
|
29
|
-
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
30
|
-
essayResponsePage.predefinedTextInputField()
|
31
|
-
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
32
|
-
});
|
33
|
-
|
34
|
-
it('Accessibility of \'Predefined text\' section', { tags: 'css' }, () => {
|
35
|
-
cy.checkAccessibility(essayResponsePage.predefinedTextLabel().parent('[class*="StudentResponseAreaLayoutstyles__StyledDiv"]'));
|
36
|
-
});
|
37
|
-
|
38
|
-
it('The user should be able to add \'Predefined text\' and the \'Predefined text\' added by the user should be displayed in the response field in the preview tab. Also, the word count displayed by default should have value - word count of predefined text/word limit', () => {
|
39
|
-
essayResponsePage.predefinedTextInputField()
|
40
|
-
.type('Lorem Ipsum')
|
41
|
-
.should('have.text', 'Lorem Ipsum');
|
42
|
-
essayResponsePage.steps.switchToPreviewTab();
|
43
|
-
essayResponsePage.responseField()
|
44
|
-
.should('have.text', 'Lorem Ipsum');
|
45
|
-
essayResponsePage.steps.verifyResponseFieldWordCount('2/5');
|
46
|
-
});
|
47
|
-
|
48
|
-
it('The user should not be able to enter words more than the set word limit in the \'Predefined text\' input field', () => {
|
49
|
-
cy.log('Switching to edit tab')
|
50
|
-
essayResponsePage.steps.switchToEditTab()
|
51
|
-
essayResponsePage.predefinedTextInputField()
|
52
|
-
.type(' dolor sit amet c');
|
53
|
-
essayResponsePage.predefinedTextInputField()
|
54
|
-
.should('have.text', 'Lorem Ipsum dolor sit amet\u00a0');
|
55
|
-
});
|
56
|
-
|
57
|
-
it('When the user adds same number of words as the word limit in the \'Predefined text\' input field, \'word limit reached\' warning message should be displayed in the preview tab', () => {
|
58
|
-
essayResponsePage.steps.switchToPreviewTab();
|
59
|
-
essayResponsePage.steps.verifyResponseFieldWordCount('5/5');
|
60
|
-
essayResponsePage.steps.verifyWordLimitReachedWarningMessage();
|
61
|
-
});
|
62
|
-
|
63
|
-
it('The word count should increase/decrease in the preview tab when the user adds/removes some words from predefined text in the response field', () => {
|
64
|
-
cy.log('checking update in word count after removing a word from predefined text')
|
65
|
-
essayResponsePage.responseField()
|
66
|
-
.type('{backspace}{backspace}{backspace}{backspace}{backspace}')
|
67
|
-
.should('have.text', 'Lorem Ipsum dolor sit');
|
68
|
-
essayResponsePage.steps.verifyResponseFieldWordCount('4/5');
|
69
|
-
essayResponsePage.wordLimitReachedWarningMessage()
|
70
|
-
.should('not.exist');
|
71
|
-
cy.log('checking update in word count after adding a word after predefined text')
|
72
|
-
essayResponsePage.responseField()
|
73
|
-
.type(' amet')
|
74
|
-
.should('have.text', 'Lorem Ipsum dolor sit amet');
|
75
|
-
essayResponsePage.steps.verifyResponseFieldWordCount('5/5');
|
76
|
-
});
|
77
|
-
});
|
78
|
-
|
79
|
-
//Failing due to https://redmine.zeuslearning.com/issues/551117
|
80
|
-
describe('Additional Settings: Placeholder text', () => {
|
81
|
-
abortEarlySetup();
|
82
|
-
before(() => {
|
83
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
84
|
-
essayResponsePage.steps.setWordLimit(5);
|
85
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
86
|
-
});
|
87
|
-
|
88
|
-
it('CSS of \'Placeholder text\' section', { tags: 'css' }, () => {
|
89
|
-
essayResponsePage.placeholderTextLabel()
|
90
|
-
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
91
|
-
essayResponsePage.placeholderTextInputField()
|
92
|
-
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
93
|
-
});
|
94
|
-
|
95
|
-
it('Accessibility of \'Placeholder text\' section', { tags: 'a11y' }, () => {
|
96
|
-
cy.checkAccessibility(essayResponsePage.placeholderTextLabel().parent('[class*="StudentResponseAreaLayoutstyles__PlaceHolderWrapper"]'))
|
97
|
-
});
|
98
|
-
|
99
|
-
it('\'Placeholder text\' label and input field should be displayed and by default, the input field should be empty', () => {
|
100
|
-
essayResponsePage.placeholderTextLabel()
|
101
|
-
.verifyInnerText('Placeholder text');
|
102
|
-
essayResponsePage.placeholderTextInputField()
|
103
|
-
.should('have.value', '');
|
104
|
-
});
|
105
|
-
|
106
|
-
it('The user should be able to add \'Placeholder text\' and the \'Placeholder text\' added by the user should be displayed in the response field in the preview tab.', () => {
|
107
|
-
essayResponsePage.placeholderTextInputField()
|
108
|
-
.type('Lorem Ipsum')
|
109
|
-
.should('have.value', 'Lorem Ipsum');
|
110
|
-
essayResponsePage.steps.switchToPreviewTab();
|
111
|
-
essayResponsePage.responseField()
|
112
|
-
.and('have.attr', 'data-cke-editorplaceholder', 'Lorem Ipsum');
|
113
|
-
essayResponsePage.responseFieldWordCount()
|
114
|
-
.should('have.text', '0/5');
|
115
|
-
});
|
116
|
-
|
117
|
-
it('CSS of \'Placeholder text\' in preview tab', { tags: 'css' }, () => {
|
118
|
-
essayResponsePage.responseField()
|
119
|
-
.verifyPseudoClassBeforeProperty('color', css.color.placeholderText);
|
120
|
-
});
|
121
|
-
|
122
|
-
//Comment: The placeholder text is present as a pseudo element, how to check accessibility?
|
123
|
-
it('Accessibility of \'Placeholder text\' in preview tab', { tags: 'a11y' }, () => {
|
124
|
-
});
|
125
|
-
|
126
|
-
it('The word count displayed by default should not consider the word count of placedholder text and the word count displayed should be - 0/*word limit*', () => {
|
127
|
-
essayResponsePage.steps.verifyResponseFieldWordCount('0/5');
|
128
|
-
});
|
129
|
-
|
130
|
-
it('When the user starts typing in the response field in the preview tab, then the placeholder text should disappear', () => {
|
131
|
-
essayResponsePage.steps.enterTextInResponseField('dolor sit amet');
|
132
|
-
essayResponsePage.responseField()
|
133
|
-
.should('not.have.attr', 'data-cke-editorplaceholder');
|
134
|
-
});
|
135
|
-
|
136
|
-
it('When the user clears the entered text in the response field, then the placeholder text should appear again', () => {
|
137
|
-
essayResponsePage.responseField()
|
138
|
-
.clear()
|
139
|
-
.should('not.have.text', 'dolor sit amet')
|
140
|
-
.blur();
|
141
|
-
essayResponsePage.responseField()
|
142
|
-
.and('have.attr', 'data-cke-editorplaceholder', 'Lorem Ipsum');
|
143
|
-
});
|
144
|
-
|
145
|
-
it('When the user has defined both, \'Predefined text\' and \'Placeholder text\', then in the preview tab the placeholder text should not be displayed and the word count displayed should be - word count of predefined text/*word limit*', () => {
|
146
|
-
cy.log('Go to edit tab and define \'Predefined text\'')
|
147
|
-
essayResponsePage.steps.switchToEditTab();
|
148
|
-
essayResponsePage.predefinedTextInputField()
|
149
|
-
.type('Dolor set amet')
|
150
|
-
.should('have.text', 'Dolor set amet');
|
151
|
-
essayResponsePage.steps.switchToPreviewTab();
|
152
|
-
essayResponsePage.responseField()
|
153
|
-
.should('have.text', 'Dolor set amet');
|
154
|
-
essayResponsePage.responseFieldWordCount()
|
155
|
-
.should('have.text', '3/5');
|
156
|
-
})
|
157
|
-
});
|
158
|
-
|
159
|
-
describe('Additional Settings: Minimum height and Maximum height', () => {
|
160
|
-
abortEarlySetup();
|
161
|
-
before(() => {
|
162
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
163
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
164
|
-
});
|
165
|
-
|
166
|
-
it('CSS of \'Minimum height\' and \'Maximum height\' section', { tags: 'css' }, () => {
|
167
|
-
essayResponsePage.minHeightLabel()
|
168
|
-
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
169
|
-
essayResponsePage.minHeightInputField()
|
170
|
-
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
171
|
-
essayResponsePage.maxHeightLabel()
|
172
|
-
.verifyCSS(css.color.labels, css.fontSize.normal, css.fontWeight.semibold);
|
173
|
-
essayResponsePage.maxHeightInputField()
|
174
|
-
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
175
|
-
});
|
176
|
-
|
177
|
-
it('Accessibility of \'Minimum height\' and \'Maximum height\' section', { tags: 'a11y' }, () => {
|
178
|
-
cy.checkAccessibility(essayResponsePage.minHeightLabel().parents('[class*="StudentResponseAreaLayoutstyles__SizeWrapper"]'));
|
179
|
-
});
|
180
|
-
|
181
|
-
it('\'Minimum height\' and \'Maximum height\' labels and input fields should be displayed and by default, the input fields should be empty', () => {
|
182
|
-
essayResponsePage.minHeightLabel()
|
183
|
-
.verifyInnerText('Minimum height (px)');
|
184
|
-
essayResponsePage.minHeightInputField()
|
185
|
-
.should('have.value', '');
|
186
|
-
essayResponsePage.maxHeightLabel()
|
187
|
-
.verifyInnerText('Maximum height (px)');
|
188
|
-
essayResponsePage.maxHeightInputField()
|
189
|
-
.should('have.value', '');
|
190
|
-
});
|
191
|
-
|
192
|
-
it('When the input field of \'Minimum height\' is kept empty, the default minimum height of the response field in the preview tab should be 232px', () => {
|
193
|
-
cy.log('Switching to preview tab')
|
194
|
-
essayResponsePage.steps.switchToPreviewTab();
|
195
|
-
essayResponsePage.responseField()
|
196
|
-
.should('have.css', 'min-height', '232px');
|
197
|
-
});
|
198
|
-
|
199
|
-
it('User should be able to add \'Minimum height\' for the response field and in the preview tab the minimum height of the response field should get updated accordingly', () => {
|
200
|
-
cy.log('Switching to edit tab')
|
201
|
-
essayResponsePage.steps.switchToEditTab();
|
202
|
-
essayResponsePage.minHeightInputField()
|
203
|
-
.type(50)
|
204
|
-
.should('have.value', '50');
|
205
|
-
cy.log('Switching to preview tab')
|
206
|
-
essayResponsePage.steps.switchToPreviewTab();
|
207
|
-
essayResponsePage.responseField()
|
208
|
-
.should('have.css', 'min-height', '50px');
|
209
|
-
});
|
210
|
-
|
211
|
-
it('When the user adds \'Maximum height\' for the response field then in the preview tab, the maximum height of the response field should get updated accordingly', () => {
|
212
|
-
cy.log('Switching to edit tab')
|
213
|
-
essayResponsePage.steps.switchToEditTab();
|
214
|
-
essayResponsePage.maxHeightInputField()
|
215
|
-
.type(100)
|
216
|
-
.should('have.value', '100');
|
217
|
-
cy.log('Switching to preview tab')
|
218
|
-
essayResponsePage.steps.switchToPreviewTab();
|
219
|
-
essayResponsePage.responseField()
|
220
|
-
.should('have.css', 'max-height', '100px');
|
221
|
-
});
|
222
|
-
});
|
223
|
-
|
224
|
-
describe('Additional Settings: Disable cut, copy and paste section', () => {
|
225
|
-
abortEarlySetup();
|
226
|
-
before(() => {
|
227
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
228
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
229
|
-
essayResponsePage.steps.setWordLimit(15);
|
230
|
-
});
|
231
|
-
|
232
|
-
it('\'Disable cut, copy and paste\' functionality label and checkbox should be displayed and by default it should be unchecked', () => {
|
233
|
-
essayResponsePage.disableCutCopyPasteLabel()
|
234
|
-
.verifyInnerText('Disable cut, copy and paste');
|
235
|
-
essayResponsePage.disableCutCopyPasteCheckbox()
|
236
|
-
.should('not.be.checked');
|
237
|
-
});
|
238
|
-
|
239
|
-
it('CSS of \'Disable cut, copy and paste\' section - unchecked state', { tags: 'css' }, () => {
|
240
|
-
essayResponsePage.disableCutCopyPasteLabel()
|
241
|
-
.verifyCSS(css.color.labelText, css.fontSize.normal, css.fontWeight.regular);
|
242
|
-
essayResponsePage.disableCutCopyPasteCheckbox()
|
243
|
-
.parent()
|
244
|
-
.find('svg')
|
245
|
-
.should('have.css', 'fill', css.color.uncheckedCheckbox);
|
246
|
-
});
|
247
|
-
|
248
|
-
it('Accessibility of \'Disable cut, copy and paste\' section - unchecked state', { tags: 'a11y' }, () => {
|
249
|
-
cy.checkAccessibility(essayResponsePage.additionalSettingsRegion());
|
250
|
-
});
|
251
|
-
|
252
|
-
//TODO: Need to verify the code for cut, changes are required
|
253
|
-
//Comment: We are currently checking only cut action, copy and paste actions need to be tested manually
|
254
|
-
it('When the \'Disable cut, copy and paste\' functionality is disabled, the user should be able to perform cut, copy and paste actions', () => {
|
255
|
-
essayResponsePage.steps.switchToPreviewTab();
|
256
|
-
essayResponsePage.responseField()
|
257
|
-
.type('Lorem')
|
258
|
-
essayResponsePage.responseField()
|
259
|
-
.type('{selectAll}')
|
260
|
-
.type('{ctrl}x');
|
261
|
-
essayResponsePage.responseField()
|
262
|
-
.should('not.have.text', 'Lorem');
|
263
|
-
});
|
264
|
-
|
265
|
-
it('When the user enables the \'Disable cut, copy and paste\' functionality, the user should not be able to perform cut, copy and paste actions', () => {
|
266
|
-
cy.log('Switching to edit tab')
|
267
|
-
essayResponsePage.steps.switchToEditTab();
|
268
|
-
essayResponsePage.disableCutCopyPasteCheckbox()
|
269
|
-
.click()
|
270
|
-
.should('be.checked');
|
271
|
-
essayResponsePage.steps.switchToPreviewTab();
|
272
|
-
essayResponsePage.responseField()
|
273
|
-
.type('Lorem{selectall}')
|
274
|
-
essayResponsePage.responseField()
|
275
|
-
.focus()
|
276
|
-
.trigger('keydown', { key: 'x', ctrlKey: true })
|
277
|
-
essayResponsePage.responseField()
|
278
|
-
.should('have.text', 'Lorem');
|
279
|
-
});
|
280
|
-
|
281
|
-
it('CSS of \'Disable cut, copy and paste\' section - checked state', { tags: 'css' }, () => {
|
282
|
-
cy.log('Switching to edit tab')
|
283
|
-
essayResponsePage.steps.switchToEditTab();
|
284
|
-
essayResponsePage.disableCutCopyPasteCheckbox()
|
285
|
-
.parents('[data-ngie-testid="disable-cut,-copy-and-paste-checkbox"]')
|
286
|
-
.find('svg g')
|
287
|
-
.eq(1)
|
288
|
-
.should('have.css', 'fill', css.color.activeButtons);
|
289
|
-
});
|
290
|
-
|
291
|
-
it('Accessibility of \'Disable cut, copy and paste\' section - checked state', { tags: 'a11y' }, () => {
|
292
|
-
cy.checkAccessibility(essayResponsePage.additionalSettingsRegion());
|
293
|
-
});
|
294
|
-
});
|
295
|
-
|
296
|
-
describe('Additional Settings: Disable automatic hyperlinking section', () => {
|
297
|
-
abortEarlySetup();
|
298
|
-
before(() => {
|
299
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
300
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
301
|
-
});
|
302
|
-
|
303
|
-
it('\'Disable automatic hyperlinking\' functionality label and checkbox should be displayed and by default it should be unchecked', () => {
|
304
|
-
essayResponsePage.disableAutoHyperlinkingLabel()
|
305
|
-
.verifyInnerText('Disable automatic hyperlinking');
|
306
|
-
essayResponsePage.disableAutoHyperlinkingCheckbox()
|
307
|
-
.should('not.be.checked');
|
308
|
-
});
|
309
|
-
|
310
|
-
it('CSS of \'Disable automatic hyperlinking\' section - unchecked state', { tags: 'css' }, () => {
|
311
|
-
essayResponsePage.disableAutoHyperlinkingLabel()
|
312
|
-
.verifyCSS(css.color.labelText, css.fontSize.normal, css.fontWeight.regular);
|
313
|
-
essayResponsePage.disableAutoHyperlinkingCheckbox()
|
314
|
-
.parent()
|
315
|
-
.find('svg')
|
316
|
-
.should('have.css', 'fill', css.color.uncheckedCheckbox);
|
317
|
-
});
|
318
|
-
|
319
|
-
it('Accessibility of \'Disable automatic hyperlinking\' section - unchecked state', { tags: 'a11y' }, () => {
|
320
|
-
cy.checkAccessibility(essayResponsePage.disableAutoHyperlinkingLabel().parents('.MuiFormGroup-root'));
|
321
|
-
});
|
322
|
-
|
323
|
-
it('When the \'Disable automatic hyperlinking\' functionality is disabled and the user types any link text in the response field in the preview tab, then the link text should be displayed as a hyperlink', () => {
|
324
|
-
cy.log('Switching to preview tab')
|
325
|
-
essayResponsePage.steps.switchToPreviewTab();
|
326
|
-
essayResponsePage.responseField()
|
327
|
-
.type('https://www.google.com ');
|
328
|
-
essayResponsePage.responseField()
|
329
|
-
.find('a')
|
330
|
-
.should('have.attr', 'href', 'https://www.google.com');
|
331
|
-
});
|
332
|
-
|
333
|
-
//https://redmine.zeuslearning.com/issues/530056
|
334
|
-
it('CSS of \'hyperlink\' text in the response field', { tags: 'css' }, () => {
|
335
|
-
essayResponsePage.responseField()
|
336
|
-
.find('a')
|
337
|
-
.verifyCSS(css.color.linkText, css.fontSize.default, css.fontWeight.regular);
|
338
|
-
});
|
339
|
-
|
340
|
-
it('Accessibility of \'hyperlink\' text in the response field', { tags: 'a11y' }, () => {
|
341
|
-
cy.checkAccessibility(essayResponsePage.previewTabQuestionWrapper());
|
342
|
-
});
|
343
|
-
|
344
|
-
it('When the user enables the \'Disable automatic hyperlinking\' functionality, then even if the user types any link text in the response field in the preview tab, it should appear as a plain text', () => {
|
345
|
-
cy.log('Switching to edit tab')
|
346
|
-
essayResponsePage.steps.switchToEditTab();
|
347
|
-
essayResponsePage.disableAutoHyperlinkingCheckbox()
|
348
|
-
.click()
|
349
|
-
.should('be.checked');
|
350
|
-
cy.log('Switching to preview tab')
|
351
|
-
essayResponsePage.steps.switchToPreviewTab();
|
352
|
-
essayResponsePage.responseField()
|
353
|
-
.type('https://www.google.com');
|
354
|
-
essayResponsePage.responseField()
|
355
|
-
.find('a')
|
356
|
-
.should('not.exist');
|
357
|
-
cy.log('Post step: Switching to edit tab')
|
358
|
-
essayResponsePage.steps.switchToEditTab();
|
359
|
-
});
|
360
|
-
|
361
|
-
it('CSS of \'Disable automatic hyperlinking\' section - checked state', { tags: 'css' }, () => {
|
362
|
-
essayResponsePage.disableAutoHyperlinkingCheckbox()
|
363
|
-
.parents('[data-ngie-testid="disable-automatic-hyperlinking-checkbox"]')
|
364
|
-
.find('svg g')
|
365
|
-
.eq(1)
|
366
|
-
.should('have.css', 'fill', css.color.activeButtons);
|
367
|
-
});
|
368
|
-
|
369
|
-
it('Accessibility of \'Disable automatic hyperlinking\' section - checked state', { tags: 'a11y' }, () => {
|
370
|
-
cy.checkAccessibility(essayResponsePage.disableAutoHyperlinkingLabel().parents('.MuiFormGroup-root'));
|
371
|
-
});
|
372
|
-
});
|
373
|
-
|
374
|
-
describe('Additional Settings: Spell check section', () => {
|
375
|
-
abortEarlySetup();
|
376
|
-
before(() => {
|
377
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
378
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
379
|
-
});
|
380
|
-
|
381
|
-
it('\'Spell check\' functionality label and checkbox should be displayed and by default it should be checked', () => {
|
382
|
-
essayResponsePage.spellCheckLabel()
|
383
|
-
.verifyInnerText('Spell check');
|
384
|
-
essayResponsePage.spellCheckCheckbox()
|
385
|
-
.should('be.checked');
|
386
|
-
});
|
387
|
-
|
388
|
-
it('CSS of \'Spell check\' section - checked state', { tags: 'css' }, () => {
|
389
|
-
essayResponsePage.spellCheckLabel()
|
390
|
-
.verifyCSS(css.color.labelText, css.fontSize.normal, css.fontWeight.regular);
|
391
|
-
essayResponsePage.spellCheckCheckbox()
|
392
|
-
.parents('[data-ngie-testid="spell-check-checkbox"]')
|
393
|
-
.find('svg g')
|
394
|
-
.eq(1)
|
395
|
-
.should('have.css', 'fill', css.color.activeButtons);
|
396
|
-
});
|
397
|
-
|
398
|
-
it('Accessibility of \'Spell check\' section - checked state', { tags: 'a11y' }, () => {
|
399
|
-
cy.checkAccessibility(essayResponsePage.spellCheckLabel().parents('.MuiFormGroup-root'))
|
400
|
-
});
|
401
|
-
|
402
|
-
it('When the \'Spell check\' functionality is enabled, the response field in preview tab should have \'spellcheck\' attribute set as \'true\'', () => {
|
403
|
-
essayResponsePage.steps.switchToPreviewTab();
|
404
|
-
essayResponsePage.responseField()
|
405
|
-
.should('have.attr', 'spellcheck', 'true');
|
406
|
-
});
|
407
|
-
|
408
|
-
it('When the user disables the \'Spell check\' functionality, the response field in preview tab should not have \'spellcheck\' attribute set as \'false\'', () => {
|
409
|
-
cy.log('Switching to edit tab')
|
410
|
-
essayResponsePage.steps.switchToEditTab();
|
411
|
-
essayResponsePage.spellCheckCheckbox()
|
412
|
-
.click()
|
413
|
-
.should('not.be.checked');
|
414
|
-
essayResponsePage.steps.switchToPreviewTab();
|
415
|
-
essayResponsePage.responseField()
|
416
|
-
.should('have.attr', 'spellcheck', 'false');
|
417
|
-
cy.log('Post step: Switch to edit tab')
|
418
|
-
essayResponsePage.steps.switchToEditTab();
|
419
|
-
});
|
420
|
-
|
421
|
-
it('CSS of \'Spell check\' section - unchecked state', { tags: 'css' }, () => {
|
422
|
-
essayResponsePage.spellCheckCheckbox()
|
423
|
-
.parents('[data-ngie-testid="spell-check-checkbox"]')
|
424
|
-
.find('svg')
|
425
|
-
.should('have.css', 'fill', css.color.uncheckedCheckbox);
|
426
|
-
});
|
427
|
-
|
428
|
-
it('Accessibility of \'Spell check\' section - unchecked state', { tags: 'a11y' }, () => {
|
429
|
-
cy.checkAccessibility(essayResponsePage.spellCheckLabel().parents('.MuiFormGroup-root'))
|
430
|
-
});
|
431
|
-
});
|
432
|
-
});
|
@@ -1,134 +0,0 @@
|
|
1
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { essayResponsePage } from "../../../pages";
|
3
|
-
import { ckEditorToolbar } from "../../../pages/components";
|
4
|
-
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
let specialCharacters = [':', ')', '`']
|
7
|
-
describe('Create question page - Essay Response: Additional Settings basic', () => {
|
8
|
-
before(() => {
|
9
|
-
cy.loginAs('admin');
|
10
|
-
});
|
11
|
-
|
12
|
-
describe('Additional Settings accordion', () => {
|
13
|
-
abortEarlySetup();
|
14
|
-
before(() => {
|
15
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
16
|
-
});
|
17
|
-
|
18
|
-
essayResponsePage.tests.verifyAdditonalSettingsAccordionProperties();
|
19
|
-
});
|
20
|
-
|
21
|
-
describe('\'Student response area and layout\' section', () => {
|
22
|
-
abortEarlySetup();
|
23
|
-
before(() => {
|
24
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
25
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
26
|
-
});
|
27
|
-
|
28
|
-
it('\'Student response area and layout\' label should be displayed', () => {
|
29
|
-
essayResponsePage.studentResponseAndLayoutLabel()
|
30
|
-
.verifyInnerText('Student response area and layout')
|
31
|
-
.should('be.visible');
|
32
|
-
});
|
33
|
-
|
34
|
-
it('CSS of \'Student response area and layout\' section', { tags: 'css' }, () => {
|
35
|
-
essayResponsePage.studentResponseAndLayoutLabel()
|
36
|
-
.verifyCSS(css.color.labels, css.fontSize.default, css.fontWeight.semibold);
|
37
|
-
});
|
38
|
-
|
39
|
-
it('Accessibility of \'Student response area and layout\' section', { tags: 'a11y' }, () => {
|
40
|
-
cy.checkAccessibility(essayResponsePage.studentResponseAndLayoutLabel())
|
41
|
-
});
|
42
|
-
});
|
43
|
-
|
44
|
-
//Failing due to https://redmine.zeuslearning.com/issues/551117
|
45
|
-
describe('Additional Settings: Custom special characters section', () => {
|
46
|
-
abortEarlySetup();
|
47
|
-
before(() => {
|
48
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
49
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
50
|
-
});
|
51
|
-
|
52
|
-
it('\'Custom special characters\' label and \'Custom special characters\' input field should be displayed, by default the input field should be empty and user should be able to enter \'Custom special characters', () => {
|
53
|
-
essayResponsePage.customSpecialCharacterLabel()
|
54
|
-
.verifyInnerText('Custom special characters');
|
55
|
-
essayResponsePage.customSpecialCharacterInputField()
|
56
|
-
.should('have.value', '');
|
57
|
-
essayResponsePage.customSpecialCharacterInputField()
|
58
|
-
.type(':)`')
|
59
|
-
.should('have.value', ':)`');
|
60
|
-
});
|
61
|
-
|
62
|
-
it('When the user has added the \'Custom special characters\' then in the preview tab, on clicking on the special character toolbar option, only the custom special characters should appear in the dialog box and the user should be able to enter custom special characters in the response field', () => {
|
63
|
-
essayResponsePage.steps.switchToPreviewTab();
|
64
|
-
essayResponsePage.previewTabToolbarOption('Special characters')
|
65
|
-
.click();
|
66
|
-
ckEditorToolbar.ckeDialogbox()
|
67
|
-
.should('be.visible');
|
68
|
-
specialCharacters.forEach((character, count) => {
|
69
|
-
essayResponsePage.specialCharacterFlyoutIcon(count)
|
70
|
-
.should('have.text', character);
|
71
|
-
});
|
72
|
-
});
|
73
|
-
|
74
|
-
it('User should be able to add all special characters in the response field and word count should update accordingly.', () => {
|
75
|
-
for (let index = 0; index < specialCharacters.length; index++) {
|
76
|
-
essayResponsePage.specialCharacterFlyoutIcon(index)
|
77
|
-
.click();
|
78
|
-
};
|
79
|
-
essayResponsePage.responseField()
|
80
|
-
.should('have.text', ':)`');
|
81
|
-
essayResponsePage.responseFieldWordCount()
|
82
|
-
.should('have.text', '1/10000');
|
83
|
-
});
|
84
|
-
});
|
85
|
-
|
86
|
-
describe('Additional Settings: Font Size dropdown', () => {
|
87
|
-
abortEarlySetup();
|
88
|
-
before(() => {
|
89
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
90
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
91
|
-
essayResponsePage.steps.setWordLimit(2);
|
92
|
-
});
|
93
|
-
const fontsizes = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
|
94
|
-
const font = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
95
|
-
|
96
|
-
essayResponsePage.tests.verifyFontSizeSectionContents();
|
97
|
-
|
98
|
-
fontsizes.forEach((option, count) => {
|
99
|
-
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size for the entire question in the student player should be changed to ${option} in the \'Preview\' tab`, () => {
|
100
|
-
essayResponsePage.fontSizeDropdown()
|
101
|
-
.click();
|
102
|
-
essayResponsePage.fontSizeListOptions(count)
|
103
|
-
.click();
|
104
|
-
essayResponsePage.fontSizeDropdown()
|
105
|
-
.verifyInnerText(`${option}`);
|
106
|
-
cy.log('Switching to Preview tab.');
|
107
|
-
essayResponsePage.steps.switchToPreviewTab();
|
108
|
-
essayResponsePage.previewTabToolbarOption('Special characters')
|
109
|
-
.should('have.css', 'font-size', font[count]);
|
110
|
-
essayResponsePage.responseField()
|
111
|
-
.should('have.css', 'font-size', font[count]);
|
112
|
-
essayResponsePage.responseFieldWordCount()
|
113
|
-
.should('have.css', 'font-size', font[count]);
|
114
|
-
cy.log('Reaching word limit to verify font size of warning message');
|
115
|
-
essayResponsePage.responseField()
|
116
|
-
.type('Lorem Ipsum')
|
117
|
-
.should('have.text', 'Lorem Ipsum');
|
118
|
-
essayResponsePage.wordLimitReachedWarningMessage()
|
119
|
-
.should('have.css', 'font-size', font[count]);
|
120
|
-
essayResponsePage.steps.switchToEditTab()
|
121
|
-
});
|
122
|
-
});
|
123
|
-
});
|
124
|
-
|
125
|
-
describe('Additional Settings: Details section', () => {
|
126
|
-
abortEarlySetup();
|
127
|
-
before(() => {
|
128
|
-
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
129
|
-
essayResponsePage.steps.expandAdditonalSettings();
|
130
|
-
});
|
131
|
-
|
132
|
-
essayResponsePage.tests.verifyDetailsSection();
|
133
|
-
});
|
134
|
-
});
|