itemengine-cypress-automation 1.0.51 → 1.0.63
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsAnswerNumeration.js +206 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
- package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
- package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
- package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
- package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
- package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
- package/package.json +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridOptionsAdditionalSettings.js → multipleSelectionAdditionalSettingsGridOptions.js} +0 -0
@@ -0,0 +1,206 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import { uploadImageSectionComponent } from "../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
import utilities from "../../../support/helpers/utilities";
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
const optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
8
|
+
const optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
9
|
+
const answerNumerationDropdownOptions = ['Numerical', 'Uppercase alphabet', 'Lowercase alphabet'];
|
10
|
+
const correctTabAnswerArray = ['Flower', 'Leaf'];
|
11
|
+
const incorrectAnswerArray = ['Branch', 'Seed'];
|
12
|
+
const numbers = ['1', '2'];
|
13
|
+
const lowercase = ['a', 'b'];
|
14
|
+
const uppercase = ['A', 'B'];
|
15
|
+
|
16
|
+
describe('Fill In the gaps over image - dropdown - Additional settings', () => {
|
17
|
+
before(() => {
|
18
|
+
cy.loginAs('admin');
|
19
|
+
});
|
20
|
+
|
21
|
+
describe('Additional settings: Student response area and layout', () => {
|
22
|
+
abortEarlySetup();
|
23
|
+
before(() => {
|
24
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
27
|
+
});
|
28
|
+
|
29
|
+
it('\'Student response area and layout\' label should be displayed', () => {
|
30
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.studentResponseAreaAndLayoutLabel(), 'Student response area and layout');
|
31
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.studentResponseAreaAndLayoutLabel(), 'visible');
|
32
|
+
});
|
33
|
+
|
34
|
+
it('CSS of \'Student response area and layout\' section', { tags: 'css' }, () => {
|
35
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.studentResponseAreaAndLayoutLabel(), {
|
36
|
+
'color': css.color.labels,
|
37
|
+
'font-size': css.fontSize.default,
|
38
|
+
'font-weight': css.fontWeight.semibold
|
39
|
+
});
|
40
|
+
});
|
41
|
+
|
42
|
+
//Note: a11y covered in Additional settings accordion, verifyAdditonalSettingsAccordionProperties
|
43
|
+
});
|
44
|
+
|
45
|
+
describe('Additional settings: \'Answer numeration\' (only while grading) - Contents', () => {
|
46
|
+
abortEarlySetup();
|
47
|
+
before(() => {
|
48
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
49
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
50
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
51
|
+
});
|
52
|
+
|
53
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyAnswerNumerationContents();
|
54
|
+
});
|
55
|
+
|
56
|
+
describe('Additional settings: \'Answer numeration\' (only while grading) - Set correct answer section', () => {
|
57
|
+
abortEarlySetup();
|
58
|
+
before(() => {
|
59
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
60
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
62
|
+
});
|
63
|
+
|
64
|
+
it(`When the user selects ${answerNumerationDropdownOptions[0]} option from the \'Answer numeration\' dropdown, then correct response numeration should not be displayed in the \'Set correct answer section\'`, () => {
|
65
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.answerNumerationDropdown(), `${answerNumerationDropdownOptions[0]}`)
|
66
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
67
|
+
});
|
68
|
+
|
69
|
+
it(`When the user selects ${answerNumerationDropdownOptions[1]} option from the \'Answer numeration\' dropdown, then correct response numeration should not be displayed in the \'Set correct answer section\'`, () => {
|
70
|
+
fillInTheGapsOverImageDropdownPage.steps.selectAnswerNumerationDropdownOption(`${answerNumerationDropdownOptions[1]}`);
|
71
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
72
|
+
});
|
73
|
+
|
74
|
+
it(`When the user selects ${answerNumerationDropdownOptions[2]} option from the \'Answer numeration\' dropdown, then correct response numeration should not be displayed in the \'Set correct answer section\'`, () => {
|
75
|
+
fillInTheGapsOverImageDropdownPage.steps.selectAnswerNumerationDropdownOption(`${answerNumerationDropdownOptions[2]}`);
|
76
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
77
|
+
});
|
78
|
+
});
|
79
|
+
|
80
|
+
describe('Additional settings: \'Answer numeration\' (only while grading) - Preview tab', () => {
|
81
|
+
abortEarlySetup();
|
82
|
+
before(() => {
|
83
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
84
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
85
|
+
cy.barsPreLoaderWait();
|
86
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
87
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
88
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
89
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
90
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
91
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
92
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
93
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
94
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
95
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
96
|
+
});
|
97
|
+
|
98
|
+
it(`When the user attempts the question when ${answerNumerationDropdownOptions[0]} is selected and selects \'Show correct answer\' checkbox then the correct answer section should have ${answerNumerationDropdownOptions[0]} numeration`, () => {
|
99
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.answerNumerationDropdown(), `${answerNumerationDropdownOptions[0]}`);
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
101
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
102
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
103
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
104
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(correctTabAnswerArray, numbers);
|
105
|
+
});
|
106
|
+
|
107
|
+
it(`When the user attempts the question when ${answerNumerationDropdownOptions[1]} is selected and selects \'Show correct answer\' checkbox then the correct answer section should have ${answerNumerationDropdownOptions[1]} numeration`, () => {
|
108
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
109
|
+
fillInTheGapsOverImageDropdownPage.steps.selectAnswerNumerationDropdownOption(`${answerNumerationDropdownOptions[1]}`);
|
110
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
111
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
112
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
113
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(correctTabAnswerArray, uppercase);
|
114
|
+
});
|
115
|
+
|
116
|
+
it(`When the user attempts the question when ${answerNumerationDropdownOptions[2]} is selected and selects \'Show correct answer\' checkbox then the correct answer section should have ${answerNumerationDropdownOptions[2]} numeration`, () => {
|
117
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
118
|
+
fillInTheGapsOverImageDropdownPage.steps.selectAnswerNumerationDropdownOption(`${answerNumerationDropdownOptions[2]}`);
|
119
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
120
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
121
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
122
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(correctTabAnswerArray, lowercase);
|
123
|
+
});
|
124
|
+
});
|
125
|
+
|
126
|
+
describe('Additional settings: Display answer numeration to students - Contents and set correct answer section', () => {
|
127
|
+
abortEarlySetup();
|
128
|
+
before(() => {
|
129
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
130
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
131
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
132
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
133
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
134
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
135
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
136
|
+
});
|
137
|
+
|
138
|
+
it('\'Display answer numeration to students\' functionality label and checkbox should be displayed and by default it should be unchecked', () => {
|
139
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.displayAnswerNumerationToStudentsLabel(), 'Display answer numeration to students');
|
140
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.displayAnswerNumerationToStudentsLabel(), 'visible');
|
141
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDisplayAnswerNumerationToStudentsCheckboxNotChecked();
|
142
|
+
});
|
143
|
+
|
144
|
+
it('CSS of \'Display answer numeration to students\' section - unchecked state', { tags: 'css' }, () => {
|
145
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.displayAnswerNumerationToStudentsLabel(), {
|
146
|
+
'color': css.color.labelText,
|
147
|
+
'font-size': css.fontSize.normal,
|
148
|
+
'font-weight': css.fontWeight.regular
|
149
|
+
});
|
150
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.displayAnswerNumerationToStudentsCheckbox().parent().find('svg'), {
|
151
|
+
'fill': css.color.uncheckedCheckbox
|
152
|
+
});
|
153
|
+
});
|
154
|
+
|
155
|
+
it('When \'Display answer numeration to students\' checkbox is unchecked, answer numeration should not be displayed in set correct answer section response dropdown', () => {
|
156
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
157
|
+
});
|
158
|
+
|
159
|
+
it('When the user checks the \'Display answer numeration to students\' checkbox, answer numeration should not be displayed in set correct answer section response dropdown', () => {
|
160
|
+
fillInTheGapsOverImageDropdownPage.steps.checkDisplayAnswerNumerationToStudentsCheckbox();
|
161
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
162
|
+
});
|
163
|
+
|
164
|
+
it('CSS of \'Display answer numeration to students\' section - checked state', { tags: 'css' }, () => {
|
165
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.displayAnswerNumerationToStudentsCheckbox().parent().find('svg g g'), {
|
166
|
+
'fill': css.color.activeButtons
|
167
|
+
});
|
168
|
+
});
|
169
|
+
|
170
|
+
it('Accessibility of \'Display answer numeration to students\' section - checked state', { tags: 'a11y' }, () => {
|
171
|
+
cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.displayAnswerNumerationToStudentsCheckbox().parents('.additional-settings-container'));
|
172
|
+
});
|
173
|
+
});
|
174
|
+
|
175
|
+
describe('Additional settings: Display answer numeration to students - Preview tab', () => {
|
176
|
+
abortEarlySetup();
|
177
|
+
before(() => {
|
178
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
179
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
180
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
181
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
182
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
183
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
184
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
185
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
186
|
+
});
|
187
|
+
|
188
|
+
it('When \'Display answer numeration to students\' checkbox is unchecked, answer numeration should not be displayed in preview tab response dropdown', () => {
|
189
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When the user checks the \'Display answer numeration to students\' checkbox, answer numeration should be displayed in preview tab response dropdown', () => {
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
194
|
+
fillInTheGapsOverImageDropdownPage.steps.checkDisplayAnswerNumerationToStudentsCheckbox();
|
195
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
196
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseDropdownNumeration(['1', '2']);
|
197
|
+
});
|
198
|
+
|
199
|
+
it('When the user unchecks the \'Display answer numeration to students\' checkbox, answer numeration should not be displayed in preview tab response dropdown', () => {
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckDisplayAnswerNumerationToStudentsCheckbox();
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
203
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseNumeration(), 'notExist');
|
204
|
+
});
|
205
|
+
});
|
206
|
+
});
|
@@ -0,0 +1,222 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import { uploadImageSectionComponent } from "../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
import utilities from "../../../support/helpers/utilities";
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
const optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
8
|
+
const optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
9
|
+
const correctTabAnswerArray = ['Flower', 'Leaf'];
|
10
|
+
const incorrectAnswerArray = ['Branch', 'Seed'];
|
11
|
+
const fontSizeDropdownOptions = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
|
12
|
+
const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
13
|
+
|
14
|
+
describe('Fill In the gaps over image - dropdown - Additional settings', () => {
|
15
|
+
before(() => {
|
16
|
+
cy.loginAs('admin');
|
17
|
+
});
|
18
|
+
|
19
|
+
describe('Additional settings accordion', () => {
|
20
|
+
abortEarlySetup();
|
21
|
+
before(() => {
|
22
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
24
|
+
});
|
25
|
+
|
26
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyAdditonalSettingsAccordionProperties();
|
27
|
+
});
|
28
|
+
|
29
|
+
describe('Additional settings: Font size dropdown - Contents and functionality in set correct section', () => {
|
30
|
+
abortEarlySetup();
|
31
|
+
before(() => {
|
32
|
+
cy.log('Navigating to fill in the gaps over image - dropdown type, adding question instructions and options, alloting points and expanding additional settings accordion')
|
33
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
34
|
+
cy.barsPreLoaderWait();
|
35
|
+
uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
|
36
|
+
uploadImageSectionComponent.steps.verifyUploadedImageInImagePopup();
|
37
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
38
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
39
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
40
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
41
|
+
});
|
42
|
+
|
43
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyFontSizeSectionContents();
|
44
|
+
|
45
|
+
fontSizeDropdownOptions.forEach((option, fontsIndex) => {
|
46
|
+
it(`When the user selects \'${option}\' option from the Font size dropdown, then font size of the contents in the \'Set correct answer\' section should be changed to ${option}, but the response field label \'Response #\' should remain unchanged`, () => {
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
|
48
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.fontSizeDropdown(), `${option}`);
|
49
|
+
cy.log('Checking correct answer section font size')
|
50
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownWrapperSetCorrectAnswerSection(), {
|
51
|
+
'font-size': fontSizes[fontsIndex]
|
52
|
+
});
|
53
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseFieldLabelSetCorrectAnswerSection(), {
|
54
|
+
'font-size': css.fontSize.default
|
55
|
+
});
|
56
|
+
fillInTheGapsOverImageDropdownPage.steps.expandResponseDropdownInSetCorrectAnswerSection(0);
|
57
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownOptionText(), {
|
58
|
+
'font-size': fontSizes[fontsIndex]
|
59
|
+
});
|
60
|
+
cy.log('Selecting option to close dropdown');
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromResponseDropdown(optionsForResponse1[0]);
|
62
|
+
});
|
63
|
+
});
|
64
|
+
});
|
65
|
+
|
66
|
+
//Failing due to https://redmine.zeuslearning.com/issues/548210
|
67
|
+
describe('Additional settings: Font size dropdown - Functionality in preview tab', () => {
|
68
|
+
abortEarlySetup();
|
69
|
+
before(() => {
|
70
|
+
cy.log('Navigating to fill in the gaps over image - dropdown type, adding question instructions and options, alloting points and expanding additional settings accordion')
|
71
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
72
|
+
cy.barsPreLoaderWait();
|
73
|
+
fillInTheGapsOverImageDropdownPage.steps.addQuestionInstructions('Question Instructions');
|
74
|
+
uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
|
75
|
+
uploadImageSectionComponent.steps.verifyUploadedImageInImagePopup();
|
76
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
77
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
78
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
79
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(4);
|
80
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, optionsForResponse1[0]);
|
81
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
82
|
+
});
|
83
|
+
|
84
|
+
fontSizeDropdownOptions.forEach((option, fontsIndex) => {
|
85
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
|
86
|
+
fillInTheGapsOverImageDropdownPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
|
87
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.fontSizeDropdown(), `${option}`);
|
88
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
89
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), {
|
90
|
+
'font-size': fontSizes[fontsIndex]
|
91
|
+
});
|
92
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownContainerWrapperPreviewTab(), {
|
93
|
+
'font-size': fontSizes[fontsIndex]
|
94
|
+
});
|
95
|
+
fillInTheGapsOverImageDropdownPage.steps.expandResponseDropdownInPreviewTab(0);
|
96
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownOptionText(), {
|
97
|
+
'font-size': fontSizes[fontsIndex]
|
98
|
+
});
|
99
|
+
cy.log('Selecting option to close dropdown');
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromResponseDropdown(optionsForResponse1[1]);
|
101
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
102
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerLabel(), {
|
103
|
+
'font-size': fontSizes[fontsIndex]
|
104
|
+
});
|
105
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseNumeration(), {
|
106
|
+
'font-size': fontSizes[fontsIndex]
|
107
|
+
});
|
108
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerResponseWrapper(), {
|
109
|
+
'font-size': fontSizes[fontsIndex]
|
110
|
+
});
|
111
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
112
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
113
|
+
});
|
114
|
+
});
|
115
|
+
});
|
116
|
+
|
117
|
+
describe('Additional settings: Check answer', () => {
|
118
|
+
abortEarlySetup();
|
119
|
+
before(() => {
|
120
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
121
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
122
|
+
cy.barsPreLoaderWait();
|
123
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
124
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
125
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
126
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
127
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
128
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
129
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
130
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
131
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
132
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
133
|
+
});
|
134
|
+
|
135
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyCheckAnswerSectionAndPreviewTabCheckAnswerButton();
|
136
|
+
});
|
137
|
+
|
138
|
+
describe('Additional settings: Check answer - Functionality', () => {
|
139
|
+
abortEarlySetup();
|
140
|
+
before(() => {
|
141
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
142
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
143
|
+
cy.barsPreLoaderWait();
|
144
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
145
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
146
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
147
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
148
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
149
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
150
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
151
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
152
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
153
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
154
|
+
fillInTheGapsOverImageDropdownPage.steps.setMaximumCheckAnswerAttempts(2);
|
155
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
156
|
+
});
|
157
|
+
|
158
|
+
//Failing due to https://redmine.zeuslearning.com/issues/548211
|
159
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyCheckAnswerButtonFunctionalityWhenQuestionIsUnattempted();
|
160
|
+
|
161
|
+
it('When the user attempts the question partially correct, then on clicking on the \'Check answer\' button, green check-mark icon should be displayed besides the correct response, red cross-mark should be displayed besides incorrect response and \'Incorrect answer\' label should be displayed below the question preview', () => {
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
164
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
165
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
166
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
167
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
168
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
169
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
170
|
+
});
|
171
|
+
|
172
|
+
it('When the user attempts the question correctly, then on clicking on the \'Check answer\' button, green check-mark icon should be displayed besides the correct response and \'Correct answer\' label should be displayed below the question preview', () => {
|
173
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
174
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
175
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
176
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
177
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
178
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
179
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
180
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
181
|
+
});
|
182
|
+
|
183
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyDisabledCheckAnswerButtonWithCSSAnda11y();
|
184
|
+
|
185
|
+
it('When the user updates the value of Maximum check answer attempts input field, it should get reflected on the Preview tab', () => {
|
186
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
187
|
+
fillInTheGapsOverImageDropdownPage.steps.clearMaximumCheckAnswerAttemptsInputField();
|
188
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToMaximumCheckAnswerAttemptsInputField(1);
|
189
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
190
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
191
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
192
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
194
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonDisabled();
|
195
|
+
});
|
196
|
+
|
197
|
+
it('When the \'Maximum check answer attempts\' input field is empty and user switches to Preview tab, then the \'Check Answer\' button should be enabled and user should be able to check answer multiple times', () => {
|
198
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.clearMaximumCheckAnswerAttemptsInputField()
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
203
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
204
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
205
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
206
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
207
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
208
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
209
|
+
});
|
210
|
+
});
|
211
|
+
|
212
|
+
describe('Additional settings: Details section', () => {
|
213
|
+
abortEarlySetup();
|
214
|
+
before(() => {
|
215
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
216
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
217
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
218
|
+
});
|
219
|
+
|
220
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyDetailsSection();
|
221
|
+
});
|
222
|
+
});
|