itemengine-cypress-automation 1.0.528-IEI-5463-c65a2a7.0 → 1.0.528-IEI-6663-0861cff.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,52 @@
1
+ import uuid from 'react-uuid';
2
+ import { thinkSpherePage } from "../../../pages";
3
+ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
4
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
5
+ import utilities from "../../../support/helpers/utilities";
6
+ const css = Cypress.env('css');
7
+
8
+ const allowedQuestions = [
9
+ 'multiple selection',
10
+ 'single selection',
11
+ 'fill in the gaps with text',
12
+ 'fill in the gaps with drag and drop',
13
+ 'fill in the gaps over image with text',
14
+ 'drag and drop into categories',
15
+ 'matching',
16
+ 'short text response',
17
+ 'Text Entry Math',
18
+ 'Graphing',
19
+ 'charts'
20
+ ];
21
+
22
+ describe('Check Your Math Questions- Student View', () => {
23
+ before(() => {
24
+ cy.loginAs('admin');
25
+ });
26
+
27
+ describe('\'Check Your Math Questions\' section', () => {
28
+ abortEarlySetup();
29
+ allowedQuestions.forEach((question) => {
30
+ it(`When the user attempts the ${question} question, it should retain the response after saving and navigating tabs`, () => {
31
+ const uuidString = uuid(); // Generates a new UUID for each test iteration
32
+ cy.createThinkSphereItem(uuidString, true);
33
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
34
+ cy.reload();
35
+ browseItemsPage.steps.clickOnItemReferenceId(uuidString);
36
+ browseItemsPage.steps.clickOnAddReviewItem();
37
+ thinkSpherePage.steps.createCustomReviewQuestion(question);
38
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
39
+ browseItemsPage.steps.clickOnActionButton();
40
+ browseItemsPage.steps.clickOnActionMenuItem(0);
41
+ thinkSpherePage.steps.clickOnReviewTab();
42
+ thinkSpherePage.steps.attemptReviewQuestion(question);
43
+ thinkSpherePage.steps.clickOnSolveTab();
44
+ thinkSpherePage.steps.clickOnReviewTab();
45
+ thinkSpherePage.steps.verifyReviewQuestionAttempt(question);
46
+ cy.deleteThinkSphereItem(uuidString);
47
+ cy.reload();
48
+ cy.wait(1000); // Wait for deletion to complete
49
+ });
50
+ });
51
+ });
52
+ });
@@ -6,7 +6,7 @@ const lineSettingsOptions = ['Decimals', 'Fractions', 'Mixed fractions', 'Intege
6
6
  const numbers = ['-9.50', "-\n19\n2", "-9\n1\n2"]
7
7
  const thousandsSeparatorOptions = ['Comma', 'Space', 'None'];
8
8
  const decimalValues =['6,000.5', '6 000.5', '6000.5']
9
- const fractionValues =['12001\n2', '12001\n2', '12001\n2']
9
+ const fractionValues =['12,001\n2', '12 001\n2', '12001\n2']
10
10
  const mixedFractionValues =['6,000\n1\n2', '6 000\n1\n2', '6000\n1\n2']
11
11
  const integerNumberValues =['1,000.5', '1 000.5', '1000.5']
12
12
 
@@ -10,6 +10,16 @@ import { videoResponsePage } from "./videoResponsePage";
10
10
  import { singleSelectionPage } from "./singleSelectionPage";
11
11
  import { essayResponsePage } from "./essayResponsePage";
12
12
  import { equationEditorCategoriesAndSymbols } from "../fixtures/equationEditorCategoriesAndSymbols ";
13
+ import { multipleSelectionPage } from "./multipleSelectionPage";
14
+ import { fillInTheGapsTextPage } from "./fillInTheGapsTextPage";
15
+ import { fillInTheGapsDragAndDropPage } from "./fillInTheGapsDragAndDropPage";
16
+ import { fillInTheGapsOverImageTextPage } from "./fillInTheGapsOverImageTextPage";
17
+ import { dragAndDropIntoCategoriesPage } from "./dragAndDropIntoCategoriesPage";
18
+ import { matchingPage } from "./matchingPage";
19
+ import { shortTextResponsePage } from "./shortTextResponsePage";
20
+ import { textEntryMathPage } from "./textEntryMathPage";
21
+ import { graphingPage } from "./graphingPage";
22
+ import { chartsLinePage } from "./chartsLinePage";
13
23
  const css = Cypress.env('css');
14
24
 
15
25
  const selectors = {
@@ -790,6 +800,243 @@ const steps = {
790
800
  thinkSpherePage.steps.clickOnSaveButton();
791
801
  },
792
802
 
803
+
804
+ createCustomReviewQuestion: (questionTypeArg) => {
805
+ const questionType = questionTypeArg || 'single selection';
806
+ const options = ['Animal', 'Vehicle', 'Birds', 'Insects'];
807
+ thinkSpherePage.steps.clickOnCreateItemButton();
808
+ thinkSpherePage.steps.selectQuestionType(questionType);
809
+ singleSelectionPage.steps.addQuestionInstructions();
810
+ if (questionType === 'single selection') {
811
+ singleSelectionPage.steps.addInputToOptionsInputField(options);
812
+ singleSelectionPage.steps.allotPoints(20);
813
+ singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(0);
814
+ } else if (questionType === 'multiple selection') {
815
+ multipleSelectionPage.steps.addInputToOptionsInputField(options);
816
+ multipleSelectionPage.steps.allotPoints(20);
817
+ multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
818
+ } else if (questionType === 'fill in the gaps with text') {
819
+ fillInTheGapsTextPage.steps.allotPoints(10);
820
+ fillInTheGapsTextPage.steps.addResponseArea();
821
+ fillInTheGapsTextPage.steps.selectAcceptedStudentInputType(1, 'Number');
822
+ fillInTheGapsTextPage.steps.selectAcceptedStudentInputType(2, 'Integer');
823
+ fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
824
+ } else if (questionType === 'fill in the gaps with drag and drop') {
825
+ const options = ['Leaves', 'Petals', 'Roots'];
826
+ fillInTheGapsDragAndDropPage.steps.addResponseArea();
827
+ fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(1);
828
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(options);
829
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({
830
+ 'Leaves': 0,
831
+ 'Petals': 1,
832
+ 'Roots': 2
833
+ });
834
+ fillInTheGapsDragAndDropPage.steps.allotPoints(5);
835
+ } else if (questionType === 'fill in the gaps over image with text') {
836
+ const options = ['Leaves', 'Petals', 'Roots'];
837
+ fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
838
+ fillInTheGapsOverImageTextPage.steps.allotPoints(10);
839
+ fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
840
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
841
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
842
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
843
+ fillInTheGapsOverImageTextPage.steps.selectAcceptedStudentInputType(1, 'Number');
844
+ fillInTheGapsOverImageTextPage.steps.selectAcceptedStudentInputType(2, 'Integer');
845
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
846
+ } else if (questionType === 'drag and drop into categories') {
847
+ dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(4);
848
+ cy.log('Add image to option input field')
849
+ dragAndDropIntoCategoriesPage.steps.focusInOptionsInputField(0);
850
+ dragAndDropIntoCategoriesPage.steps.selectImageOptionFromCKEditorToolbar()
851
+ dragAndDropIntoCategoriesPage.steps.addImageToInputField();
852
+ cy.log('Add link to option input field')
853
+ dragAndDropIntoCategoriesPage.steps.focusInOptionsInputField(1);
854
+ dragAndDropIntoCategoriesPage.steps.selectLinkOptionFromCKEditorToolbar();
855
+ dragAndDropIntoCategoriesPage.steps.addLinkToInputField();
856
+ cy.log('Add bold text to input field')
857
+ dragAndDropIntoCategoriesPage.steps.focusInOptionsInputField(2);
858
+ dragAndDropIntoCategoriesPage.steps.selectBoldOptionFromCKEditorToolbar();
859
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(2, 'This is a bold option');
860
+ cy.log('Add equation to option input field')
861
+ dragAndDropIntoCategoriesPage.steps.focusInOptionsInputField(3);
862
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
863
+ dragAndDropIntoCategoriesPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
864
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(4, 'Bat');
865
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(5, 'Eagle');
866
+ dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
867
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
868
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
869
+ } else if (questionType === 'matching') {
870
+ matchingPage.steps.allotPoints(10);
871
+ cy.log('Add image to prompt input field')
872
+ matchingPage.steps.focusInPromptInputField(0);
873
+ matchingPage.steps.selectImageOptionFromCKEditorToolbar();
874
+ matchingPage.steps.addImageToInputField();
875
+ matchingPage.steps.enterTextInOnePromptInputField(0, 'Fox');
876
+ cy.log('Add bold text to prompt input field')
877
+ matchingPage.steps.focusInPromptInputField(1);
878
+ matchingPage.steps.selectBoldOptionFromCKEditorToolbar();
879
+ matchingPage.steps.enterTextInOnePromptInputField(1, 'This is a bold option');
880
+ cy.log('Add equation to prompt input field')
881
+ matchingPage.steps.enterTextInOnePromptInputField(2, 'Solve the following');
882
+ matchingPage.steps.focusInPromptInputField(2);
883
+ matchingPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
884
+ matchingPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
885
+ cy.log('Add image to option input field')
886
+ matchingPage.steps.focusInOptionsInputField(0);
887
+ matchingPage.steps.selectImageOptionFromCKEditorToolbar();
888
+ matchingPage.steps.addImageToInputField();
889
+ matchingPage.steps.enterTextInOneOptionInputField(0, 'Fox');
890
+ cy.log('Add bold text to input field')
891
+ matchingPage.steps.focusInOptionsInputField(1);
892
+ matchingPage.steps.selectBoldOptionFromCKEditorToolbar();
893
+ matchingPage.steps.enterTextInOneOptionInputField(1, 'This is a bold option');
894
+ cy.log('Add equation to option input field')
895
+ matchingPage.steps.enterTextInOneOptionInputField(2, 'Solve the following');
896
+ matchingPage.steps.focusInOptionsInputField(2);
897
+ matchingPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
898
+ matchingPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
899
+ matchingPage.steps.addMultipleOptionFields(1);
900
+ matchingPage.steps.enterTextInOneOptionInputField(3, 'Elephant');
901
+ matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Fox', dropzoneIndex: 0 }, { optionText: 'This is a bold option', dropzoneIndex: 1 }, { optionText: 'Solve the following', dropzoneIndex: 2 }]);
902
+ } else if (questionType === 'short text response') {
903
+ shortTextResponsePage.steps.allotPoints(5);
904
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('The quick brown fox');
905
+ } else if (questionType === 'Text Entry Math') {
906
+ textEntryMathPage.steps.allotPoints(10);
907
+ textEntryMathPage.steps.addResponseArea();
908
+ textEntryMathPage.steps.addResponseArea();
909
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
910
+ equationEditorFlyout.steps.clearAll();
911
+ equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
912
+ equationEditorFlyout.steps.clickOnOkButton();
913
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
914
+ equationEditorFlyout.steps.enterQuadraticEquation();
915
+ textEntryMathPage.steps.expandAdditionalSettings();
916
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
917
+ } else if (questionType === 'Graphing') {
918
+ const unselectedToolOption = ['Circle', 'Parabola', 'Sine', 'Polygon'];
919
+ const selectedToolOption = ['Point', 'Line', 'Label', 'Ray', 'Segment', 'Vector'];
920
+ const toolOptions = [...selectedToolOption, ...unselectedToolOption];
921
+ graphingPage.steps.allotPoints(10);
922
+ graphingPage.steps.selectToolOptions(unselectedToolOption);
923
+ graphingPage.steps.checkPatternBackground();
924
+ graphingPage.steps.selectGraphToolOptionEditTab('Line');
925
+ graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
926
+ graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
927
+ graphingPage.steps.selectGraphToolOptionEditTab('Circle');
928
+ graphingPage.steps.plotPointsOnGraphEditTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
929
+ graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
930
+ graphingPage.steps.selectGraphToolOptionSpecifyCorrectAnswer('Polygon');
931
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
932
+ graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
933
+ } else if (questionType === 'charts') {
934
+ chartsLinePage.steps.selectLineButton();
935
+ chartsLinePage.steps.selectAddBarOrPointToolbarOption();
936
+ chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
937
+ chartsLinePage.steps.setGraphTitle('Graph of profits');
938
+ chartsLinePage.steps.setYAxisLabel('Profit');
939
+ chartsLinePage.steps.setXAxisLabel('Year');
940
+ chartsLinePage.steps.setMaxYValue(20);
941
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 1, range: 20 });
942
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 20 });
943
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 2, value: 3, range: 20 });
944
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 4, range: 20 });
945
+ chartsLinePage.steps.lockPoint(1);
946
+ chartsLinePage.steps.allotPoints(10);
947
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 2, range: 20 });
948
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 5, range: 20 });
949
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 1, range: 20 });
950
+ chartsLinePage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
951
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 4, value: 8, range: 20 });
952
+ }
953
+ thinkSpherePage.steps.clickOnSaveButton();
954
+ cy.wait(1000);
955
+ },
956
+
957
+ attemptReviewQuestion: (questionTypeArg) => {
958
+ const questionType = questionTypeArg || 'single selection';
959
+ if (questionType === 'single selection') {
960
+ singleSelectionPage.steps.checkOptionInPreviewTab(0);
961
+ } else if (questionType === 'multiple selection') {
962
+ multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
963
+ } else if (questionType === 'fill in the gaps with text') {
964
+ fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
965
+ } else if (questionType === 'fill in the gaps with drag and drop') {
966
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({
967
+ 'Leaves': 0,
968
+ 'Petals': 1,
969
+ 'Roots': 2
970
+ });
971
+ } else if (questionType === 'fill in the gaps over image with text') {
972
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
973
+ } else if (questionType === 'drag and drop into categories') {
974
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Eagle': 1, 'Bat': 0 });
975
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
976
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
977
+ } else if (questionType === 'matching') {
978
+ matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fox', dropzoneIndex: 0 }, { optionText: 'This is a bold option', dropzoneIndex: 1 }, { optionText: 'Solve the following', dropzoneIndex: 2 }]);
979
+ } else if (questionType === 'short text response') {
980
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('The quick brown fox');
981
+ } else if (questionType === 'Text Entry Math') {
982
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
983
+ equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
984
+ equationEditorFlyout.steps.clickOnOkButton();
985
+ textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(0, 'Correct1');
986
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
987
+ equationEditorFlyout.steps.enterQuadraticEquation();
988
+ textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
989
+ } else if (questionType === 'Graphing') {
990
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
991
+ } else if (questionType === 'charts') {
992
+ chartsLinePage.steps.editYAxisLabelInPreviewTab('Edited Y axis label');
993
+ chartsLinePage.steps.editXAxisLabelInPreviewTab('Edited X axis label');
994
+ chartsLinePage.steps.keyBoardUpPointInPreviewTab(0);
995
+ chartsLinePage.steps.keyBoardUpPointInPreviewTab(0);
996
+ chartsLinePage.steps.keyBoardDownPointInPreviewTab(2);
997
+ chartsLinePage.steps.keyBoardDownPointInPreviewTab(2);
998
+ }
999
+ },
1000
+
1001
+ verifyReviewQuestionAttempt: (questionTypeArg) => {
1002
+ const questionType = questionTypeArg || 'single selection';
1003
+ if (questionType === 'single selection') {
1004
+ singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(0);
1005
+ } else if (questionType === 'multiple selection') {
1006
+ multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(0);
1007
+ } else if (questionType === 'fill in the gaps with text') {
1008
+ fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
1009
+ } else if (questionType === 'fill in the gaps with text') {
1010
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Leaves');
1011
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'Petals');
1012
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Roots');
1013
+ } else if (questionType === 'fill in the gaps over image with text') {
1014
+ fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
1015
+ } else if (questionType === 'drag and drop into categories') {
1016
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
1017
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
1018
+ } else if (questionType === 'matching') {
1019
+ matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
1020
+ matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
1021
+ matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, 'This is a bold option');
1022
+ matchingPage.steps.verifyDropzoneContainsTextPreviewTab(2, 'Solve the following');
1023
+ matchingPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
1024
+
1025
+ } else if (questionType === 'short text response') {
1026
+ shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
1027
+ } else if (questionType === 'Text Entry Math') {
1028
+ textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
1029
+ textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
1030
+ } else if (questionType === 'Graphing') {
1031
+ graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
1032
+ } else if (questionType === 'charts') {
1033
+ utilities.verifyInnerText(chartsLinePage.previewTabYAxisLabelButton(), 'Edited Y axis label');
1034
+ utilities.verifyInnerText(chartsLinePage.previewTabXAxisLabelButton(), 'Edited X axis label');
1035
+ chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 20 });
1036
+ chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 20 });
1037
+ }
1038
+ },
1039
+
793
1040
  clickOnVideoLink: () => {
794
1041
  thinkSpherePage.videoLinkComponent()
795
1042
  .click();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.528-IEI-5463-c65a2a7.0",
3
+ "version": "1.0.528-IEI-6663-0861cff.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {