itemengine-cypress-automation 1.0.244-consoleErrorScriptFullExecution-a3a0f2c.0 → 1.0.244
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/headerSection.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +10 -10
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +3 -2
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories1.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories2.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +6 -4
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -3
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +2 -6
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +2 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +10 -10
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +6 -6
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +2 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +6 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +0 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +0 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +0 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/TextSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordionFilledIn.js +7 -7
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -4
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +10 -10
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +3 -1
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -0
- package/cypress/pages/components/optionsWrapperComponent.js +2 -0
- package/cypress/pages/drawingResponsePage.js +2 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -4
- package/cypress/pages/imageHighlightPage.js +4 -5
- package/cypress/pages/listOrderingPage.js +9 -12
- package/cypress/pages/numberLineLabelPage.js +4 -5
- package/cypress/pages/singleSelectionPage.js +2 -2
- package/cypress/pages/textSelectionPage.js +4 -21
- package/cypress/pages/videoResponsePage.js +3 -0
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +1 -1
|
@@ -43,11 +43,13 @@ const selectors = {
|
|
|
43
43
|
|
|
44
44
|
//Default colors
|
|
45
45
|
defaultStrokeColorsWrapper: () => cy.get('[class*="ColorSelectionComponentstyles__DefaultColorOptions"]').eq(0),
|
|
46
|
+
defaultNewStrokeColorsWrapper: () => cy.get('[class*="ColorSelectionComponentstyles__DefaultColorOptions"]'),
|
|
46
47
|
defaultStrokeFontColorLabel: () => cy.get('[class*="ColorSelectionComponentstyles__LabelWrapper"]').eq(0),
|
|
47
48
|
colorPickerBlock: () => cy.get('.color-picker-block'),
|
|
48
49
|
colorPickerBlockCloseIcon: () => cy.get('[class*="ColorSelectionComponentstyles__CloseIcon"]'),
|
|
49
50
|
defaultFillColorsLabel: () => cy.get('[class*="ColorSelectionComponentstyles__LabelWrapper"]').eq(1),
|
|
50
51
|
defaultFillColorsWrapper: () => cy.get('[class*="ColorSelectionComponentstyles__DefaultColorOptions"]').eq(1),
|
|
52
|
+
defaultNewFillColorsWrapper: () => cy.get('[class*="ColorSelectionComponentstyles__DefaultColorOptions"]'),
|
|
51
53
|
|
|
52
54
|
//Preview tab
|
|
53
55
|
previewTabDrawingToolbarWrapper: () => cy.get('.edit-question-preview-wrapper .drawing-tool__toolbar'),
|
|
@@ -1015,17 +1015,16 @@ const tests = {
|
|
|
1015
1015
|
|
|
1016
1016
|
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion, \'Error: Please set a correct answer.\' error message should be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
|
|
1017
1017
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
|
|
1018
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
|
1019
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
|
1018
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist')
|
|
1020
1019
|
if (accordionName == 'Correct') {
|
|
1021
1020
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
|
1022
1021
|
.within(() => {
|
|
1023
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1022
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1024
1023
|
});
|
|
1025
1024
|
} else {
|
|
1026
1025
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
|
1027
1026
|
.within(() => {
|
|
1028
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1027
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1029
1028
|
});
|
|
1030
1029
|
};
|
|
1031
1030
|
});
|
|
@@ -1558,19 +1558,18 @@ const tests = {
|
|
|
1558
1558
|
imageHighlightPage.steps.removeHighlightOfARegionInSetCorrectAnswerSection(0);
|
|
1559
1559
|
});
|
|
1560
1560
|
|
|
1561
|
-
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion,
|
|
1561
|
+
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion, error message should not be thrown on the \'${accordionName}\' accordion`, () => {
|
|
1562
1562
|
imageHighlightPage.steps.removeHighlightOfARegionInSetCorrectAnswerSection(1);
|
|
1563
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
|
1564
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
|
1563
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist')
|
|
1565
1564
|
if (accordionName == 'Correct') {
|
|
1566
1565
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
|
1567
1566
|
.within(() => {
|
|
1568
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1567
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1569
1568
|
});
|
|
1570
1569
|
} else {
|
|
1571
1570
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
|
1572
1571
|
.within(() => {
|
|
1573
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1572
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1574
1573
|
});
|
|
1575
1574
|
};
|
|
1576
1575
|
});
|
|
@@ -31,7 +31,8 @@ const selectors = {
|
|
|
31
31
|
correctAnswerSectionWrapper: () => cy.get('[class*="ListOrderingResponsestyles__CorrectAnswers"]'),
|
|
32
32
|
correctAnswerSectionAnswerText: () => cy.get('.question-text-wrapper'),
|
|
33
33
|
correctAnswerSectionIconWrapper: () => cy.get('[class*="CorrectAnswerstyles__IconWrapper"]'),
|
|
34
|
-
questionBorderPreviewTab: () => cy.get('[class*="
|
|
34
|
+
questionBorderPreviewTab: () => cy.get('[class*="ListOrderingResponsestyles__ResponseContainer"]'),
|
|
35
|
+
questionDropdownBorderPreviewTab: () => cy.get('[class*="ListOrderingResponsestyles__DroppableDiv"]'),
|
|
35
36
|
//grading view and correct answer view
|
|
36
37
|
optionGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionTextWrapper"]'),
|
|
37
38
|
optionWrapperGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionsWrapper"]'),
|
|
@@ -367,6 +368,12 @@ const steps = {
|
|
|
367
368
|
});
|
|
368
369
|
},
|
|
369
370
|
|
|
371
|
+
verifyDropdownOuterBorderOfQuestionPreview: () => {
|
|
372
|
+
utilities.verifyCSS(listOrderingPage.questionDropdownBorderPreviewTab(), {
|
|
373
|
+
'border': `1px solid ${css.color.draggableOptionsContainerBorder}`
|
|
374
|
+
});
|
|
375
|
+
},
|
|
376
|
+
|
|
370
377
|
verifyOuterBorderOfQuestionPreviewNotExists: () => {
|
|
371
378
|
listOrderingPage.questionBorderPreviewTab()
|
|
372
379
|
.should('have.css', 'border')
|
|
@@ -818,16 +825,6 @@ const steps = {
|
|
|
818
825
|
.click();
|
|
819
826
|
},
|
|
820
827
|
|
|
821
|
-
/**
|
|
822
|
-
* Verifies the order of options in the "Specify Correct Answer" section.
|
|
823
|
-
* @param {string[]} optionsTextArray - An array containing the text of options in the expected order for horizontal orientation.
|
|
824
|
-
*/
|
|
825
|
-
verifyHorizontalOptionsOrderInSpecifyCorrectAnswerSection: (optionsTextArray) => {
|
|
826
|
-
optionsTextArray.forEach((option, index) => {
|
|
827
|
-
utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.horizontalOptionSpecifyCorrectAnswerSection(), index), option);
|
|
828
|
-
});
|
|
829
|
-
},
|
|
830
|
-
|
|
831
828
|
/**
|
|
832
829
|
* Verifies the order of options in the preview tab
|
|
833
830
|
* @param {string[]} optionsTextArray - An array containing the text of options in the expected order for horizontal orientation.
|
|
@@ -1197,7 +1194,7 @@ const steps = {
|
|
|
1197
1194
|
*/
|
|
1198
1195
|
verifyHorizontalOptionsOrderInSpecifyCorrectAnswerSection: (optionsTextArray) => {
|
|
1199
1196
|
optionsTextArray.forEach((option, index) => {
|
|
1200
|
-
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionHorizontalSpecifyCorrectAnswerSection()
|
|
1197
|
+
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.optionHorizontalSpecifyCorrectAnswerSection(), index), option);
|
|
1201
1198
|
});
|
|
1202
1199
|
},
|
|
1203
1200
|
|
|
@@ -1021,19 +1021,18 @@ const tests = {
|
|
|
1021
1021
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
|
1022
1022
|
});
|
|
1023
1023
|
|
|
1024
|
-
it(`When the user resets the number line in the ${accordionName} accordion,
|
|
1024
|
+
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
|
|
1025
1025
|
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 2');
|
|
1026
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
|
1027
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
|
1026
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
|
1028
1027
|
if (accordionName == 'Correct') {
|
|
1029
1028
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
|
1030
1029
|
.within(() => {
|
|
1031
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1030
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1032
1031
|
});
|
|
1033
1032
|
} else {
|
|
1034
1033
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
|
1035
1034
|
.within(() => {
|
|
1036
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1035
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1037
1036
|
});
|
|
1038
1037
|
};
|
|
1039
1038
|
});
|
|
@@ -718,8 +718,8 @@ const tests = {
|
|
|
718
718
|
|
|
719
719
|
it('On deleting correct answer option(s), \'Error: Please set a correct answer.\' validation error message should be thrown along with an error icon on the \'Correct\' tab', () => {
|
|
720
720
|
singleSelectionPage.steps.deleteOption(1);
|
|
721
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
|
722
|
-
autoScoredSpecifyCorrectAnswerSection.steps.
|
|
721
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
|
722
|
+
autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
|
723
723
|
});
|
|
724
724
|
|
|
725
725
|
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|
|
@@ -71,7 +71,7 @@ const selectors = {
|
|
|
71
71
|
optionSpecifyCorrectAnswer: () => cy.get('[class*="Highlightstyles__Wrapper"] .highlighted'),
|
|
72
72
|
setPointsButton: () => cy.get('[class*="SetPointsPopupWrapper"] button'),
|
|
73
73
|
partialEqualWeightsPointsPerResponseScore: () => cy.get('[class*="Highlightstyles__PartialPointsPerResponseValue"]'),
|
|
74
|
-
specifyCorrectAnswerErrorMessage: () => cy.get('[class*="ErrorMessageContainer"]')
|
|
74
|
+
specifyCorrectAnswerErrorMessage: () => cy.get('[class*="ErrorMessageContainer"]'),
|
|
75
75
|
//Style and customization layout
|
|
76
76
|
styleLabel: () => cy.get('.text-selection-style-title'),
|
|
77
77
|
colorLabel: () => cy.get('[class*="StyleAndLayoutCustomizationstyles__SubSectionLabel"]'),
|
|
@@ -1249,37 +1249,20 @@ const tests = {
|
|
|
1249
1249
|
|
|
1250
1250
|
it(`When the user deselects all the selected options in the ${accordionName} accordion, \'Error: Please set a correct answer.\' error message should be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
|
|
1251
1251
|
textSelectionPage.steps.deselectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
|
|
1252
|
-
utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), '
|
|
1253
|
-
utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
|
|
1252
|
+
utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
|
|
1254
1253
|
if (accordionName == 'Correct') {
|
|
1255
1254
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
|
1256
1255
|
.within(() => {
|
|
1257
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1256
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1258
1257
|
});
|
|
1259
1258
|
} else {
|
|
1260
1259
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
|
1261
1260
|
.within(() => {
|
|
1262
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
|
1261
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
|
1263
1262
|
});
|
|
1264
1263
|
};
|
|
1265
1264
|
});
|
|
1266
1265
|
|
|
1267
|
-
it('CSS of \'Error: Please set a correct answer\' error message and error icon', { tags: 'css' }, () => {
|
|
1268
|
-
utilities.verifyCSS(textSelectionPage.specifyCorrectAnswerErrorMessage(), {
|
|
1269
|
-
'color': css.color.errorText,
|
|
1270
|
-
'font-size': css.fontSize.small,
|
|
1271
|
-
'font-weight': css.fontWeight.regular
|
|
1272
|
-
});
|
|
1273
|
-
utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), {
|
|
1274
|
-
'fill': css.color.errorText
|
|
1275
|
-
});
|
|
1276
|
-
});
|
|
1277
|
-
|
|
1278
|
-
it('Accessibility of \'Error: Please set a correct answer\' error message and error icon', { tags: 'a11y' }, () => {
|
|
1279
|
-
cy.checkAccessibility(textSelectionPage.specifyCorrectAnswerErrorMessage());
|
|
1280
|
-
cy.checkAccessibility(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon());
|
|
1281
|
-
});
|
|
1282
|
-
|
|
1283
1266
|
it('When the user selects an option, the error message should disappear', () => {
|
|
1284
1267
|
textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
|
|
1285
1268
|
utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
|
|
@@ -370,8 +370,11 @@ const steps = {
|
|
|
370
370
|
setMaximumRecordingDuration: (recordingLength) => {
|
|
371
371
|
videoResponsePage.maxRecordingDurationInputField()
|
|
372
372
|
.clear()
|
|
373
|
+
videoResponsePage.maxRecordingDurationInputField()
|
|
373
374
|
.type(recordingLength)
|
|
375
|
+
videoResponsePage.maxRecordingDurationInputField()
|
|
374
376
|
.blur();
|
|
377
|
+
cy.wait(1000)
|
|
375
378
|
},
|
|
376
379
|
|
|
377
380
|
/**
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@ export function runSorryCypressSpinnaker() {
|
|
|
93
93
|
startTime = process.env.START_TIME;
|
|
94
94
|
ciBuildId = setCiBuildId("spinnaker", startTime);
|
|
95
95
|
const envArgs = setCommandLineEnvArgs()
|
|
96
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs}
|
|
96
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/**/*.js"`;
|
|
97
97
|
console.log(`command: ${command}`);
|
|
98
98
|
execSync(command, { stdio: "inherit" });
|
|
99
99
|
}
|