itemengine-cypress-automation 1.0.343 → 1.0.344
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/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +2 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -4
- package/package.json +2 -2
@@ -12,7 +12,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
-
|
15
|
+
utilities.scrollIntoView(textEntryMathPage.questionInstructionsInputField());
|
16
16
|
cy.barsPreLoaderWait();
|
17
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
18
18
|
textEntryMathPage.steps.addResponseArea();
|
package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js
CHANGED
@@ -12,6 +12,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
+
utilities.scrollIntoView(textEntryMathPage.questionInstructionsInputField());
|
15
16
|
cy.barsPreLoaderWait();
|
16
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
18
|
textEntryMathPage.steps.addResponseArea();
|
@@ -28,6 +28,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
28
28
|
switch (view) {
|
29
29
|
case 'Question preview':
|
30
30
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
31
|
+
utilities.scrollIntoView(textEntryMathPage.questionInstructionsInputField());
|
31
32
|
cy.barsPreLoaderWait();
|
32
33
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
33
34
|
textEntryMathPage.steps.allotPoints(10);
|
@@ -186,7 +187,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
186
187
|
textEntryMathPage.steps.switchToPreviewTab();
|
187
188
|
textEntryMathPage.steps.switchToGradingView();
|
188
189
|
});
|
189
|
-
|
190
|
+
|
190
191
|
it('When user has set multiple answers then the correct answer section should not overflow outside the container', () => {
|
191
192
|
textEntryMathPage.steps.correctAnswerSectionOverflow();
|
192
193
|
});
|
@@ -250,7 +250,7 @@ describe('Create Item page - Text Entry Math: Style and layout customization', (
|
|
250
250
|
textEntryMathWithImagePage.steps.clearHeightInputField();
|
251
251
|
textEntryMathWithImagePage.steps.clearWidthInputField();
|
252
252
|
textEntryMathWithImagePage.steps.insertResponseArea(20);
|
253
|
-
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(2, '
|
253
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(2, '46px');
|
254
254
|
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(2, '120px');
|
255
255
|
});
|
256
256
|
|
@@ -505,7 +505,8 @@ const tests = {
|
|
505
505
|
utilities.verifyElementNotDisabled(equationEditorFlyout.buttonPrevious());
|
506
506
|
utilities.verifyElementNotDisabled(equationEditorFlyout.buttonNext());
|
507
507
|
cy.log('Clicking on Next button to reach end of tablist')
|
508
|
-
equationEditorFlyout.steps.clickOnEquationEditorButtonNext()
|
508
|
+
equationEditorFlyout.steps.clickOnEquationEditorButtonNext();
|
509
|
+
equationEditorFlyout.steps.clickOnEquationEditorButtonNext();
|
509
510
|
utilities.verifyElementNotDisabled(equationEditorFlyout.buttonPrevious());
|
510
511
|
utilities.verifyElementDisabled(equationEditorFlyout.buttonNext());
|
511
512
|
});
|
@@ -193,16 +193,13 @@ const tests = {
|
|
193
193
|
utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.scoringTypeDropdown(), 'visible');
|
194
194
|
});
|
195
195
|
|
196
|
-
it(`Clicking on Scoring Type dropdown should open a list of scoring types - ${scoringTypeArray}`, () => {
|
196
|
+
it(`Clicking on Scoring Type dropdown should open a list of scoring types - ${scoringTypeArray} and on selecting an option from the scoring type dropdown, the dropdown should close`, () => {
|
197
197
|
scoringSectionBaseEditTab.scoringTypeDropdown()
|
198
198
|
.click();
|
199
199
|
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'exist');
|
200
200
|
scoringTypeArray.forEach((option, count) => {
|
201
201
|
utilities.verifyInnerText(utilities.getNthElement(scoringSectionBaseEditTab.scoringTypeDropdownListOptions(), count), option);
|
202
202
|
});
|
203
|
-
});
|
204
|
-
|
205
|
-
it('On selecting an option from the scoring type dropdown, the dropdown should close', () => {
|
206
203
|
scoringSectionBaseEditTab.steps.selectOptionFromScoringTypeDropdown(scoringTypeArray[0]);
|
207
204
|
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'notExist');
|
208
205
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.344",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"spinnaker:audioResponse": "node scripts/questions.mjs --env theme=ilc,questionType=AudioResponseNew_VideoResponseNew_UploadResponse_ToolAudioPlayerNew,grepTags=-css+-a11y",
|
31
31
|
"spinnaker:feedbackScale": "node scripts/questions.mjs --env theme=ilc,questionType=FeedbackScaleNew_BrainingCampManipulative_EditItem_ToolSettings,grepTags=-css+-a11y",
|
32
32
|
"spinnaker:resourcesAndTools": "node scripts/questions.mjs --env theme=ilc,questionType=Compass_ContentBlocks_Protractor_ReadingRuler_SimpleCalculator_Ruler,grepTags=-css+-a11y",
|
33
|
-
"spinnaker:dataApiTest": "node scripts/questions.mjs --env theme=ilc,questionType=
|
33
|
+
"spinnaker:dataApiTest": "node scripts/questions.mjs --env theme=ilc,questionType=dataApi_Sessions,grepTags=-css+-a11y"
|
34
34
|
},
|
35
35
|
"repository": {
|
36
36
|
"type": "git",
|