itemengine-cypress-automation 1.0.249-repoUpdated26thSept-d6c4173.0 → 1.0.249
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -3
- package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +3 -4
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +8 -8
- package/cypress/e2e/ILC/ChartsBar/studentViewSettings.js +0 -1
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/chartFunctionalitySpecifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +2 -4
- package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +4 -4
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -3
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +162 -0
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +0 -2
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +9 -9
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +1373 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingAlternatePointsMoreThanCorrectPoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingCorrectPointsEqualToAlternatePoints.js +162 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingCorrectPointsMoreThanAlternatePoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsBasic.js +420 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsBasic.js +130 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +195 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingAlternatePointsMoreThanCorrectPoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingCorrectPointsEqualToAlternatePoints.js +162 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingCorrectPointsMoreThanAlternatePoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsBasic.js +420 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsBasic.js +130 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +225 -0
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/audioResponsePage.js +0 -10
- package/cypress/pages/chartsBarPage.js +0 -13
- package/cypress/pages/chartsDotPlotPage.js +4 -85
- package/cypress/pages/chartsLinePage.js +2 -2
- package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +11 -30
- package/cypress/pages/components/barAndLineChartComponent.js +0 -10
- package/cypress/pages/components/chartsCommonComponent.js +1 -25
- package/cypress/pages/components/colorPopupComponent.js +0 -31
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +0 -1
- package/cypress/pages/components/createQuestionBasePage.js +2 -8
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/equationEditorFlyout.js +0 -36
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -2
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +2 -15
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +26 -34
- package/cypress/pages/components/imageCanvasComponent.js +7 -9
- package/cypress/pages/components/index.js +0 -1
- package/cypress/pages/components/listOrderingCommonStyleAndLayoutComponent.js +0 -12
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -1
- package/cypress/pages/components/optionsWrapperComponent.js +3 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -2
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/createItemPage.js +7 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -41
- package/cypress/pages/essayResponsePage.js +0 -1
- package/cypress/pages/feedbackScalePage.js +0 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/fillInTheGapsDropdownPage.js +79 -0
- package/cypress/pages/graphingPage.js +0 -1
- package/cypress/pages/gridFillPage.js +45 -112
- package/cypress/pages/imageHighlightPage.js +0 -10
- package/cypress/pages/itemPreviewSettingsPage.js +1 -4
- package/cypress/pages/listOrderingPage.js +0 -10
- package/cypress/pages/matchingPage.js +5 -142
- package/cypress/pages/multipleSelectionPage.js +0 -13
- package/cypress/pages/numberLineLabelPage.js +1 -1
- package/cypress/pages/numberLinePage.js +1 -1
- package/cypress/pages/protractorPage.js +1 -3
- package/cypress/pages/shortTextResponsePage.js +1 -3
- package/cypress/pages/simpleCalculatorPage.js +2 -2
- package/cypress/pages/singleSelectionPage.js +0 -10
- package/cypress/pages/textEntryMathPage.js +1 -8
- package/cypress/pages/textEntryMathWithImagePage.js +16 -38
- package/cypress/pages/textSelectionPage.js +34 -43
- package/cypress/pages/videoResponsePage.js +0 -5
- package/package.json +1 -1
- package/cypress/pages/components/customizeHighlightPropertiesComponent.js +0 -318
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/basicScoringForAllTextSelectionTypes.smoke.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/manuallyAndNonScored.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/singleSelectionPreviewScoring.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
@@ -40,7 +40,7 @@ describe('Audio response - Additional settings', () => {
|
|
40
40
|
});
|
41
41
|
|
42
42
|
Object.keys(fontSizes).forEach((option) => {
|
43
|
-
it(`When the user selects
|
43
|
+
it(`When the user selects '${option}' option from the Font Size dropdown, then font size of the preview tab should change to ${fontSizes[option]} accordingly`, () => {
|
44
44
|
audioResponsePage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
|
45
45
|
utilities.verifyInnerText(audioResponsePage.fontSizeDropdown(), `${option}`);
|
46
46
|
audioResponsePage.steps.switchToPreviewTab();
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import { correctAnswerViewPage, audioResponsePage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
|
-
import { gradingViewPage } from "../../../pages";
|
1
|
+
import { correctAnswerViewPage, audioResponsePage, itemPreviewPage, studentViewPage, gradingViewPage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
7
6
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
8
|
-
|
7
|
+
let itemReferenceID = "";
|
9
8
|
|
10
9
|
describe('Create item page - audio response: Grading view, Correct answer view contents', () => {
|
11
10
|
before(() => {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { audioResponsePage
|
2
|
+
import { audioResponsePage } from "../../../pages";
|
3
3
|
|
4
4
|
describe('Create question page - Audio response: Header section and Saving question', () => {
|
5
5
|
before(() => {
|
@@ -4,8 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
let previewContentViews = ['Question preview', 'Item preview', 'Student view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
|
-
|
8
|
-
const grepTags = Cypress.env('grepTags');
|
7
|
+
let itemReferenceID = "";
|
9
8
|
|
10
9
|
describe('Create item page - Audio response: Preview contents', () => {
|
11
10
|
before(() => {
|
@@ -44,7 +44,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
44
44
|
});
|
45
45
|
|
46
46
|
fontSizeDropdownOptions.forEach((option, fontsIndex) => {
|
47
|
-
it(`When the user selects
|
47
|
+
it(`When the user selects '${option}' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
|
48
48
|
brainingCampManipulativePage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
|
49
49
|
utilities.verifyInnerText(brainingCampManipulativePage.fontSizeDropdown(), `${option}`);
|
50
50
|
brainingCampManipulativePage.steps.switchToPreviewTab();
|
package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
import constants from "../../../fixtures/constants";
|
2
1
|
import { correctAnswerViewPage, brainingCampManipulativePage, itemPreviewPage, studentViewPage, gradingViewPage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
7
6
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
8
|
-
|
7
|
+
let itemReferenceID = "";
|
9
8
|
|
10
9
|
describe('Create item page - Brainingcamp manipulative: Grading view, Correct answer view contents', () => {
|
11
10
|
before(() => {
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { dialogBoxBase, brainingCampManipulativePage } from "../../../pages";
|
1
|
+
import { brainingCampManipulativePage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
|
5
4
|
describe('Create item page - Brainingcamp manipulative: Question instructions', () => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
describe('Create item page - Brainingcamp manipulative: Preview contents', () => {
|
10
10
|
before(() => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
const grepTags = Cypress.env('grepTags');
|
5
5
|
let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
|
6
6
|
const views = utilities.getViews(correctAnswerViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
describe('Create item page - Charts - Bar horizontal orientation: All or nothing ', () => {
|
10
10
|
before(() => {
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { chartsBarPage, correctAnswerViewPage, itemPreviewPage, studentViewPage } from "../../../../pages";
|
2
|
-
import { gradingViewPage } from "../../../../pages";
|
1
|
+
import { chartsBarPage, correctAnswerViewPage, itemPreviewPage, studentViewPage, gradingViewPage } from "../../../../pages";
|
3
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
|
7
6
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
8
7
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
9
|
-
|
8
|
+
let itemReferenceID = "";
|
10
9
|
const barBackgroundColor = ['rgb(46, 169, 89)', 'rgb(6, 117, 244)', 'rgb(219, 124, 0)', 'rgb(156, 105, 39)', 'rgb(219, 60, 0)'];
|
11
10
|
|
12
11
|
|
package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js
CHANGED
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
|
-
|
8
|
+
let itemReferenceID = "";
|
9
9
|
const barBackgroundColor = ['rgb(46, 169, 89)', 'rgb(6, 117, 244)', 'rgb(219, 124, 0)', 'rgb(156, 105, 39)', 'rgb(219, 60, 0)'];
|
10
10
|
|
11
11
|
describe('Create item page: Charts - Bar horizontal orientation- Preview contents in all views', () => {
|
@@ -116,7 +116,7 @@ describe('Specify correct answer - Chart', () => {
|
|
116
116
|
});
|
117
117
|
|
118
118
|
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled and redo button should be enabled', () => {
|
119
|
-
for (
|
119
|
+
for (let i = 0; i < 5; i++) {
|
120
120
|
chartsBarPage.steps.selectControlOptionSpecifyCorrectAnswer('Undo');
|
121
121
|
}
|
122
122
|
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
@@ -124,7 +124,7 @@ describe('Specify correct answer - Chart', () => {
|
|
124
124
|
});
|
125
125
|
|
126
126
|
it('When the user clicks on redo button until the graph reaches its latest state, then the redo button should be disabled and undo button should be enabled', () => {
|
127
|
-
for (
|
127
|
+
for (let i = 0; i < 5; i++) {
|
128
128
|
chartsBarPage.steps.selectControlOptionSpecifyCorrectAnswer('Redo');
|
129
129
|
}
|
130
130
|
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { chartsBarPage, correctAnswerViewPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
|
-
import { gradingViewPage } from "../../../pages";
|
1
|
+
import { chartsBarPage, correctAnswerViewPage, itemPreviewPage, studentViewPage, gradingViewPage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
|
7
6
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
8
7
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
9
|
-
|
8
|
+
let itemReferenceID = "";
|
10
9
|
const barBackgroundColor = ['rgb(46, 169, 89)', 'rgb(6, 117, 244)', 'rgb(219, 124, 0)', 'rgb(156, 105, 39)', 'rgb(219, 60, 0)'];
|
11
10
|
|
12
11
|
|
@@ -96,7 +95,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
96
95
|
});
|
97
96
|
|
98
97
|
it('All the bar graphs in grading view should be non-editable', () => {
|
99
|
-
chartsBarPage.steps.verifyDragHandleNotVisible();
|
98
|
+
chartsBarPage.steps.verifyDragHandleNotVisible();
|
100
99
|
for (let index = 0; index < 5; index++) {
|
101
100
|
utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), index));
|
102
101
|
utilities.verifyElementVisibilityState(chartsBarPage.barAndPointTooltipWrapper(), 'notExist');
|
@@ -73,13 +73,13 @@ describe('Create item page - Charts - Bar: Header section and saving question',
|
|
73
73
|
cy.checkAccessibility(chartsBarPage.dialogBox());
|
74
74
|
});
|
75
75
|
|
76
|
-
it(`Clicking on
|
76
|
+
it(`Clicking on 'No, I'd like to go back' button should close the popup and user should remain on the edit interface of the question`, () => {
|
77
77
|
chartsBarPage.steps.clickOnRejectButtonInDialogBox();
|
78
78
|
chartsBarPage.steps.verifyEditTabSelectedState();
|
79
79
|
utilities.verifyTextContent(chartsBarPage.questionInstructionsInputField(), 'Edited');
|
80
80
|
});
|
81
81
|
|
82
|
-
it(`Clicking on
|
82
|
+
it(`Clicking on 'Yes, I want to leave this page' button should should discard all changes and direct the user to the 'Select a question' page.`, () => {
|
83
83
|
chartsBarPage.steps.clickOnCancelButton();
|
84
84
|
chartsBarPage.steps.clickOnAcceptButtonInDialogBox();
|
85
85
|
utilities.verifyElementVisibilityState(chartsBarPage.selectAQuestionHeaderText(), 'visible');
|
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
|
-
|
8
|
+
let itemReferenceID = "";
|
9
9
|
const barBackgroundColor = ['rgb(46, 169, 89)', 'rgb(6, 117, 244)', 'rgb(219, 124, 0)', 'rgb(156, 105, 39)', 'rgb(219, 60, 0)'];
|
10
10
|
|
11
11
|
describe('Create item page: Charts - Bar - Preview contents in all views', () => {
|
@@ -137,7 +137,7 @@ describe('Select chart type - Chart', () => {
|
|
137
137
|
});
|
138
138
|
|
139
139
|
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled and redo button should be enabled', () => {
|
140
|
-
for (
|
140
|
+
for (let i = 0; i < 5; i++) {
|
141
141
|
chartsBarPage.steps.selectControlOptionSelectChartTypeSection('Undo');
|
142
142
|
}
|
143
143
|
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSelectChartType('Undo'));
|
@@ -145,7 +145,7 @@ describe('Select chart type - Chart', () => {
|
|
145
145
|
});
|
146
146
|
|
147
147
|
it('When the user clicks on redo button until the graph reaches its latest state, then the redo button should be disabled and undo button should be enabled', () => {
|
148
|
-
for (
|
148
|
+
for (let i = 0; i < 5; i++) {
|
149
149
|
chartsBarPage.steps.selectControlOptionSelectChartTypeSection('Redo');
|
150
150
|
}
|
151
151
|
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSelectChartType('Redo'));
|
@@ -327,7 +327,7 @@ describe('Select chart type - Chart', () => {
|
|
327
327
|
});
|
328
328
|
|
329
329
|
it('When bar is at the topmost value and the user still tries to increase its value, then the bar value should not increase', () => {
|
330
|
-
for (
|
330
|
+
for (let i = 0; i < 17; i++) {
|
331
331
|
chartsBarPage.steps.increaseBarValueUsingUpArrowSelectChartType(0);
|
332
332
|
}
|
333
333
|
chartsBarPage.steps.verifyBarHeightInSelectChartType({ barIndex: 0, barValue: 20, range: 20 });
|
@@ -521,7 +521,7 @@ describe('Select chart type - Chart', () => {
|
|
521
521
|
});
|
522
522
|
|
523
523
|
it('When bar is at the topmost value and the user still tries to increase its value, then the bar value should not increase', () => {
|
524
|
-
for (
|
524
|
+
for (let i = 0; i < 17; i++) {
|
525
525
|
chartsBarPage.steps.increaseBarValueUsingUpArrowInPreviewTab(0);
|
526
526
|
}
|
527
527
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 20, range: 20 });
|
@@ -662,11 +662,11 @@ describe('Select chart type - Chart', () => {
|
|
662
662
|
|
663
663
|
it('When user updates the Max bar count in select chart type then user should be able to add bars according to the updated value in specify correct answer section', () => {
|
664
664
|
chartsBarPage.steps.setMaxBarCountValue(3);
|
665
|
-
for (
|
665
|
+
for (let i = 0; i < 3; i++) {
|
666
666
|
chartsBarPage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
|
667
667
|
}
|
668
668
|
utilities.verifyElementCount(chartsBarPage.specifyCorrectAnswerBar(), 6);
|
669
|
-
for (
|
669
|
+
for (let i = 1; i < 7; i++) {
|
670
670
|
chartsBarPage.steps.verifyBarLabelSpecifyCorrectAnswer(i - 1, `Bar ${i}`);
|
671
671
|
}
|
672
672
|
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'));
|
@@ -728,11 +728,11 @@ describe('Select chart type - Chart', () => {
|
|
728
728
|
chartsBarPage.steps.switchToEditTab();
|
729
729
|
chartsBarPage.steps.setMaxBarCountValue(3);
|
730
730
|
chartsBarPage.steps.switchToPreviewTab();
|
731
|
-
for (
|
731
|
+
for (let i = 0; i < 3; i++) {
|
732
732
|
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
733
733
|
}
|
734
734
|
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 6);
|
735
|
-
for (
|
735
|
+
for (let i = 1; i < 7; i++) {
|
736
736
|
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), i - 1), `Bar ${i}`);
|
737
737
|
}
|
738
738
|
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { chartsBarPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
3
|
const css = Cypress.env('css');
|
5
4
|
|
6
5
|
describe('Create Item page - Bar Chart : Student view settings', () => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const grepTags = Cypress.env('grepTags');
|
5
5
|
let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
|
6
6
|
const views = utilities.getViews(correctAnswerViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
describe('Create item page - Charts - Line: All or nothing ', () => {
|
10
10
|
before(() => {
|
@@ -115,7 +115,7 @@ describe('Specify correct answer - Charts line', () => {
|
|
115
115
|
});
|
116
116
|
|
117
117
|
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled and redo button should be enabled', () => {
|
118
|
-
for (
|
118
|
+
for (let i = 0; i < 5; i++) {
|
119
119
|
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Undo');
|
120
120
|
}
|
121
121
|
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
@@ -123,7 +123,7 @@ describe('Specify correct answer - Charts line', () => {
|
|
123
123
|
});
|
124
124
|
|
125
125
|
it('When the user clicks on redo button until the graph reaches its latest state, then the redo button should be disabled and undo button should be enabled', () => {
|
126
|
-
for (
|
126
|
+
for (let i = 0; i < 5; i++) {
|
127
127
|
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Redo');
|
128
128
|
}
|
129
129
|
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { chartsLinePage, correctAnswerViewPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
|
-
import { gradingViewPage } from "../../../pages";
|
1
|
+
import { chartsLinePage, correctAnswerViewPage, itemPreviewPage, studentViewPage, gradingViewPage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
|
7
6
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
8
7
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
9
|
-
|
8
|
+
let itemReferenceID = "";
|
10
9
|
|
11
10
|
|
12
11
|
describe('Create item page - Charts - Line: Grading view, Correct answer view contents', () => {
|
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
|
-
|
8
|
+
let itemReferenceID = "";
|
9
9
|
|
10
10
|
describe('Create item page: Charts - Line - Preview contents in all views', () => {
|
11
11
|
before(() => {
|
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
|
-
|
8
|
+
let itemReferenceID = "";
|
9
9
|
|
10
10
|
describe('Preview tab contents for all views', () => {
|
11
11
|
before(() => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
describe('Preview tab contents for all views', () => {
|
10
10
|
before(() => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const grepTags = Cypress.env('grepTags');
|
5
5
|
let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
|
6
6
|
const views = utilities.getViews(correctAnswerViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
describe('Create item page - Drag and drop into categories: All or nothing ', () => {
|
10
10
|
before(() => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
//Note: Need to revisit this for CSS acc and dropping an option with image
|
9
9
|
describe('Create item page - Drag and drop into categories: Preview contents', () => {
|
10
10
|
before(() => {
|
@@ -165,7 +165,6 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
165
165
|
case 'Question preview':
|
166
166
|
case 'Item preview':
|
167
167
|
case 'Item view':
|
168
|
-
case 'Item preview':
|
169
168
|
case 'Student view':
|
170
169
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.optionsContainerPreviewTab(), {
|
171
170
|
'background-color': css.color.draggableOptionsContainerBg,
|
@@ -1,10 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { drawingResponsePage } from "../../../pages";
|
2
2
|
import utilities from "../../../support/helpers/utilities";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import { colorPopupComponent } from "../../../pages/components";
|
5
|
-
import { mathCharacters } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
6
|
-
import { specialCharacters } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
7
|
-
import { drawingToolbarOptionsAndAdditionalOptions } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
5
|
+
import { mathCharacters, specialCharacters, drawingToolbarOptionsAndAdditionalOptions } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
8
6
|
const css = Cypress.env('css');
|
9
7
|
|
10
8
|
const mathCharacterCategories = Object.values(mathCharacters.map((icon) => icon.categoryName));
|
@@ -320,7 +318,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
320
318
|
cy.checkAccessibility(drawingResponsePage.customizeMathCharactersLabel().parent());
|
321
319
|
});
|
322
320
|
});
|
323
|
-
|
321
|
+
|
324
322
|
//Failing due to https://redmine.zeuslearning.com/issues/571423
|
325
323
|
describe('Customize Stroke/font color - Edit tab', () => {
|
326
324
|
abortEarlySetup();
|
@@ -1,13 +1,9 @@
|
|
1
|
-
import { correctAnswerViewPage,
|
2
|
-
import { gradingViewPage } from "../../../pages";
|
1
|
+
import { correctAnswerViewPage, gradingViewPage, drawingResponsePage, itemPreviewPage, studentViewPage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
6
5
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
7
|
-
|
8
|
-
|
9
|
-
//TODO- Update https://redmine.zeuslearning.com/issues/563177
|
10
|
-
const defaultToolbarAndControlOptions = ['Select', 'Scribble', 'Line', 'Curved line', 'Capture image', 'Insert image', 'Text', 'Point eraser', 'bring to front', 'send to back', 'Duplicate', 'Undo', 'Redo', 'Full screen', 'Clear all'];
|
6
|
+
let itemReferenceID = "";
|
11
7
|
|
12
8
|
describe('Create item page - Drawing response: Grading view, Correct answer view contents', () => {
|
13
9
|
before(() => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { drawingResponsePage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
|
4
4
|
describe('Create item page - Drawing Response: Header section and Saving question', () => {
|
@@ -1,15 +1,13 @@
|
|
1
1
|
import { drawingResponsePage, itemPreviewPage } from "../../../pages";
|
2
2
|
import { colorPopupComponent } from "../../../pages/components";
|
3
|
-
import { drawingToolbarOptionsAndAdditionalOptions } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
4
|
-
import { specialCharacters } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
5
|
-
import { mathCharacters } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
3
|
+
import { drawingToolbarOptionsAndAdditionalOptions, specialCharacters, mathCharacters } from "../../../fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters";
|
6
4
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
7
5
|
import utilities from "../../../support/helpers/utilities";
|
8
6
|
const css = Cypress.env('css');
|
9
7
|
|
10
8
|
const previewContentsViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
11
9
|
const views = utilities.getViews(previewContentsViews);
|
12
|
-
|
10
|
+
let itemReferenceID = "";
|
13
11
|
|
14
12
|
const thickness = ['5', '10', '15', '20', '25'];
|
15
13
|
const fontSizePopupOptions = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
|
@@ -97,7 +97,7 @@ describe('Create item - Essay response - Additional settings - Student response
|
|
97
97
|
});
|
98
98
|
|
99
99
|
it(`3 clipboard function buttons ${clipboardFunctions.join(', ')} should be displayed and by default all of them should be in selected`, () => {
|
100
|
-
for (
|
100
|
+
for (let i = 0; i < clipboardFunctions.length; i++) {
|
101
101
|
essayResponsePage.steps.verifyClipBoardButton(i);
|
102
102
|
}
|
103
103
|
});
|
@@ -110,7 +110,7 @@ describe('Create item - Essay response - Additional settings - Student response
|
|
110
110
|
});
|
111
111
|
|
112
112
|
it('CSS of clipboard functions in selected state', { tags: 'css' }, () => {
|
113
|
-
for (
|
113
|
+
for (let i = 0; i < clipboardFunctions.length; i++) {
|
114
114
|
utilities.verifyCSS(essayResponsePage.clipboardFunctionButton(i), {
|
115
115
|
'background-color': css.color.activeButtons,
|
116
116
|
'color': css.color.secondaryBtnBg,
|
@@ -121,13 +121,13 @@ describe('Create item - Essay response - Additional settings - Student response
|
|
121
121
|
});
|
122
122
|
|
123
123
|
it('User should be able to unselect all the buttons', () => {
|
124
|
-
for (
|
124
|
+
for (let i = 0; i < clipboardFunctions.length; i++) {
|
125
125
|
essayResponsePage.steps.unselectClipboardFunctionButton(i);
|
126
126
|
}
|
127
127
|
});
|
128
128
|
|
129
129
|
it('CSS of clipborad functions in unselected state', { tags: 'css' }, () => {
|
130
|
-
for (
|
130
|
+
for (let i = 0; i < clipboardFunctions.length; i++) {
|
131
131
|
utilities.verifyCSS(essayResponsePage.clipboardFunctionButton(i), {
|
132
132
|
'background-color': css.color.secondaryBtnBg,
|
133
133
|
'color': css.color.unselectedOptionText,
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import { correctAnswerViewPage, essayResponsePage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
|
-
import { gradingViewPage } from "../../../pages";
|
1
|
+
import { correctAnswerViewPage, essayResponsePage, itemPreviewPage, studentViewPage,gradingViewPage } from "../../../pages";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
7
6
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
8
|
-
|
7
|
+
let itemReferenceID = "";
|
9
8
|
|
10
9
|
describe('Create item page - Essay response: Grading view, Correct answer view contents', () => {
|
11
10
|
before(() => {
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
let previewContentViews = ['Question preview', 'Item preview', 'Student view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
const defaultFormattingOptionsPreviewTab = ['Bold (Ctrl+B)', 'Italic (Ctrl+I)', 'Underline (Ctrl+U)', 'Insert/Remove Bulleted List', 'Insert/Remove Numbered List', 'Insert Table', 'Increase Indent', 'Decrease Indent', 'Undo (Ctrl+Z)', 'Redo (Ctrl+Y)'];
|
10
10
|
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
let previewContentViews = ['Question preview', 'Item preview', 'Student view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
const defaultFormattingOptionsPreviewTab = ['Bold (Ctrl+B)', 'Italic (Ctrl+I)', 'Underline (Ctrl+U)', 'Undo (Ctrl+Z)', 'Redo (Ctrl+Y)'];
|
10
10
|
|
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view'];
|
5
5
|
const views = utilities.getViews(previewContentViews);
|
6
|
-
|
6
|
+
let itemReferenceID = "";
|
7
7
|
const css = Cypress.env('css');
|
8
8
|
const selectedStateFeedbackButtonColor = 'rgba(236, 216, 19, 0.1)'
|
9
9
|
const optionsContentForTextLayout = [
|
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Additional Set
|
|
99
99
|
describe('Setting tab: Accessibility section', () => {
|
100
100
|
abortEarlySetup();
|
101
101
|
before(() => {
|
102
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop')
|
102
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
103
103
|
fillInTheGapsDragAndDropPage.steps.expandAdditionalSettings();
|
104
104
|
});
|
105
105
|
|
@@ -4,7 +4,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const grepTags = Cypress.env('grepTags');
|
5
5
|
let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
|
6
6
|
const views = utilities.getViews(correctAnswerViews);
|
7
|
-
|
7
|
+
let itemReferenceID = "";
|
8
8
|
|
9
9
|
describe('Create item page - Fill in the gaps - drag and drop: All or nothing ', () => {
|
10
10
|
before(() => {
|
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
5
5
|
const views = utilities.getViews(previewContentViews);
|
6
|
-
|
6
|
+
let itemReferenceID = "";
|
7
7
|
|
8
8
|
describe('Preview tab contents for all views', () => {
|
9
9
|
before(() => {
|