itemengine-cypress-automation 1.0.442-reduceNumberOfRetiresInConfigFile-301122a.0 → 1.0.442
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.
@@ -153,7 +153,7 @@ describe('Create question page - Think Sphere: Create custom category', () => {
|
|
153
153
|
it('\'Cancel\' button should be displayed. When user clicks on the \'Cancel\' button the flyout should close', () => {
|
154
154
|
utilities.verifyInnerText(thinkSpherePage.buttonCancel(), 'Cancel');
|
155
155
|
utilities.verifyElementVisibilityState(thinkSpherePage.buttonCancel(), 'visible');
|
156
|
-
thinkSpherePage.steps.
|
156
|
+
thinkSpherePage.steps.clickOnPopupCancelButton();
|
157
157
|
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.dialogBox(), 'notExist');
|
158
158
|
});
|
159
159
|
|
@@ -294,7 +294,7 @@ describe('Create question page - Think Sphere: Create custom category', () => {
|
|
294
294
|
it('If all symbols are deselected from a category then the checkbox for that category should get unchecked', () => {
|
295
295
|
const otherSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['otherSymbols'].symbols).map((icon) => icon.ariaLabel));
|
296
296
|
cy.log('Pre step: Reopen the create custom category and select one category')
|
297
|
-
thinkSpherePage.steps.
|
297
|
+
thinkSpherePage.steps.clickOnPopupCancelButton();
|
298
298
|
createCustomCategoryFlyout.steps.openCreateCustomCategoryFlyout();
|
299
299
|
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox('Other Symbols');
|
300
300
|
createCustomCategoryFlyout.steps.expandCategoryAccordion('Other Symbols');
|
@@ -312,12 +312,22 @@ const steps = {
|
|
312
312
|
cy.interceptGraphql('getItems');
|
313
313
|
},
|
314
314
|
|
315
|
-
clickOnItemReferenceId: () => {
|
316
|
-
|
317
|
-
.
|
318
|
-
|
319
|
-
|
315
|
+
clickOnItemReferenceId: (itemTitle) => {
|
316
|
+
if (itemTitle) {
|
317
|
+
cy.get('[class*="ItemTitleCellstyles__ItemTitleWrapper"]')
|
318
|
+
.contains(itemTitle)
|
319
|
+
.closest('tr')
|
320
|
+
.within(() => {
|
321
|
+
browseItemsPage.itemCellItemTitle().click();
|
322
|
+
});
|
323
|
+
} else {
|
324
|
+
browseItemsPage.tableRow(0)
|
325
|
+
.within(() => {
|
326
|
+
browseItemsPage.itemCellItemTitle()
|
327
|
+
.click();
|
320
328
|
});
|
329
|
+
}
|
330
|
+
|
321
331
|
cy.interceptGraphql('getItemPreview');
|
322
332
|
},
|
323
333
|
|
@@ -112,6 +112,7 @@ const selectors = {
|
|
112
112
|
firstAvailableItemLink: () => utilities.getNthElement(cy.get('.browse-item-styled-link'), 0),
|
113
113
|
saveButton: () => cy.get('.ngie-btn-typography').contains('save', { matchCase: false }),
|
114
114
|
cancelButton: () => cy.get('.ngie-btn-typography').contains('cancel', { matchCase: false }),
|
115
|
+
popupCancelButton: () => cy.get('.ngie.ngie-popover-container .ngie-btn-typography').contains('cancel', { matchCase: false }),
|
115
116
|
AddCheckMathQuestionHeader: () => cy.get('.browse-title-wrapper').contains(`Add 'Check your math' question`),
|
116
117
|
singleOptionTextFieldWrapper: () => cy.get('[class*="SingleOptionstyle__TextFieldWrapper"]'),
|
117
118
|
customizeStampComponent: () => cy.get('[class*="CustomizeStampstyles__CustomizeStampWrapper"]'),
|
@@ -329,7 +330,7 @@ const steps = {
|
|
329
330
|
},
|
330
331
|
|
331
332
|
clickOnEditThinkSphereItem: () => {
|
332
|
-
browseItemsPage.steps.clickOnItemReferenceId(
|
333
|
+
browseItemsPage.steps.clickOnItemReferenceId();
|
333
334
|
utilities.getNthElement(thinkSpherePage.editQuestionPencil(), 0)
|
334
335
|
.click();
|
335
336
|
cy.barsPreLoaderWait();
|
@@ -355,11 +356,15 @@ const steps = {
|
|
355
356
|
},
|
356
357
|
|
357
358
|
clickOnCancelButton: () => {
|
358
|
-
cy.interceptGraphql('setItem');
|
359
359
|
thinkSpherePage.cancelButton()
|
360
360
|
.click();
|
361
361
|
},
|
362
362
|
|
363
|
+
clickOnPopupCancelButton: () => {
|
364
|
+
thinkSpherePage.popupCancelButton()
|
365
|
+
.click();
|
366
|
+
},
|
367
|
+
|
363
368
|
clickOnSwapButton: () => {
|
364
369
|
thinkSpherePage.ThinkSphereMathQuestionHeaderSwapIcon()
|
365
370
|
.click();
|
@@ -801,7 +806,7 @@ const steps = {
|
|
801
806
|
|
802
807
|
expandChooseStarterDropdown: () => {
|
803
808
|
thinkSpherePage.chooseStarterDropdown()
|
804
|
-
.click({force: true});
|
809
|
+
.click({ force: true });
|
805
810
|
},
|
806
811
|
|
807
812
|
verifyOptionAlignmentIsSelected: (direction) => {
|
@@ -2625,6 +2630,8 @@ const tests = {
|
|
2625
2630
|
.click({ force: true }) // force in case some are behind overlays
|
2626
2631
|
cy.wait(1000);
|
2627
2632
|
}
|
2633
|
+
thinkSpherePage.steps.clickOnReviewTab();
|
2634
|
+
thinkSpherePage.steps.clickOnSolveTab();
|
2628
2635
|
});
|
2629
2636
|
});
|
2630
2637
|
},
|
@@ -2786,9 +2793,11 @@ const tests = {
|
|
2786
2793
|
'padding': '0px',
|
2787
2794
|
'margin': '0px 0px 24px'
|
2788
2795
|
});
|
2796
|
+
thinkSpherePage.yourPlanCloseButton().click();
|
2789
2797
|
});
|
2790
2798
|
|
2791
2799
|
it('Accessibility of Your Plan section', { tags: 'a11y' }, () => {
|
2800
|
+
thinkSpherePage.steps.clickOnYourPlanButton();
|
2792
2801
|
cy.checkAccessibility(thinkSpherePage.yourPlanContainer());
|
2793
2802
|
thinkSpherePage.yourPlanCloseButton().click();
|
2794
2803
|
});
|
@@ -2882,11 +2891,10 @@ const tests = {
|
|
2882
2891
|
|
2883
2892
|
it('Accessibility of whiteboard warning popup', { tags: 'a11y' }, () => {
|
2884
2893
|
cy.checkAccessibility(thinkSpherePage.whiteboardRecordingInProgressWarning());
|
2885
|
-
thinkSpherePage.steps.clickOnWhiteBoardRecordingInProgressWarningOkButton();
|
2886
2894
|
});
|
2887
|
-
|
2888
|
-
|
2895
|
+
|
2889
2896
|
it('The user should be able to switch to Review tab without warning after stopping the recording and the Review tab should contain the Playback option', () => {
|
2897
|
+
thinkSpherePage.steps.clickOnWhiteBoardRecordingInProgressWarningOkButton();
|
2890
2898
|
cy.get(`[data-testid="${whiteBoardTools[0].dataTestId}"]`)
|
2891
2899
|
.should('exist')
|
2892
2900
|
.and('be.visible')
|
@@ -2909,7 +2917,6 @@ const tests = {
|
|
2909
2917
|
thinkSpherePage.steps.verifyWhiteBoardPlayerPlayButtonVisible();
|
2910
2918
|
thinkSpherePage.steps.clickOnWhiteBoardPlaybackPlayButton();
|
2911
2919
|
thinkSpherePage.steps.verifyWhiteBoardPlayerPauseButtonVisible();
|
2912
|
-
cy.wait(6000); // Wait for the playback to start
|
2913
2920
|
thinkSpherePage.steps.clickOnWhiteBoardPlaybackPlayButton();
|
2914
2921
|
cy.wait(1000);
|
2915
2922
|
thinkSpherePage.whiteboardPlaybackTime()
|
@@ -486,7 +486,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
486
486
|
"show": true
|
487
487
|
},
|
488
488
|
"settings": {
|
489
|
-
"show":
|
489
|
+
"show": true,
|
490
490
|
"showPrintPreview": false,
|
491
491
|
"showScoring": false,
|
492
492
|
"showTags": false
|
@@ -523,6 +523,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
523
523
|
"isCustomLoader": true,
|
524
524
|
"customLoaderId": "globalLoader",
|
525
525
|
"isThinkSphereItem": true,
|
526
|
+
"isTSReviewItem": false,
|
526
527
|
"theme": "theme1"
|
527
528
|
},
|
528
529
|
"user": {
|
@@ -569,6 +570,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
569
570
|
"referenceId": itemName,
|
570
571
|
"isNewVersion": false,
|
571
572
|
"isThinkSphereItem": true,
|
573
|
+
"isTSReviewItem": false,
|
572
574
|
"metadata": [],
|
573
575
|
"questions": [
|
574
576
|
{
|
@@ -618,24 +620,32 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
618
620
|
"fontSize": 1,
|
619
621
|
"canvasControls": [
|
620
622
|
{
|
621
|
-
"label": "
|
622
|
-
"icon": "
|
623
|
-
"text": "
|
623
|
+
"label": "Select",
|
624
|
+
"icon": "WhiteboardMoveControlIcon",
|
625
|
+
"text": "Select",
|
624
626
|
"identifier": "move",
|
625
627
|
"value": "move",
|
626
628
|
"selected": true
|
627
629
|
},
|
628
630
|
{
|
629
|
-
"label": "
|
630
|
-
"icon": "
|
631
|
-
"text": "
|
632
|
-
"identifier": "
|
633
|
-
"value": "
|
631
|
+
"label": "Point eraser",
|
632
|
+
"icon": "WhiteboardPointEraserControlIcon",
|
633
|
+
"text": "Point eraser",
|
634
|
+
"identifier": "pointEraser",
|
635
|
+
"value": "pointEraser",
|
636
|
+
"selected": true
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"label": "Item eraser",
|
640
|
+
"icon": "WhiteboardItemEraserControlIcon",
|
641
|
+
"text": "Item eraser",
|
642
|
+
"identifier": "itemEraser",
|
643
|
+
"value": "itemEraser",
|
634
644
|
"selected": true
|
635
645
|
},
|
636
646
|
{
|
637
647
|
"label": "Undo",
|
638
|
-
"icon": "
|
648
|
+
"icon": "WhiteboardUndoControlIcon",
|
639
649
|
"text": "Undo",
|
640
650
|
"identifier": "undo",
|
641
651
|
"value": "undo",
|
@@ -643,7 +653,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
643
653
|
},
|
644
654
|
{
|
645
655
|
"label": "Redo",
|
646
|
-
"icon": "
|
656
|
+
"icon": "WhiteboardRedoControlIcon",
|
647
657
|
"text": "Redo",
|
648
658
|
"identifier": "redo",
|
649
659
|
"value": "redo",
|
@@ -651,7 +661,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
651
661
|
},
|
652
662
|
{
|
653
663
|
"label": "Clear all",
|
654
|
-
"icon": "
|
664
|
+
"icon": "WhiteboardClearAllControlIcon",
|
655
665
|
"text": "Clear all",
|
656
666
|
"identifier": "clearAll",
|
657
667
|
"value": "clearAll",
|
@@ -661,23 +671,23 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
661
671
|
"canvasTools": [
|
662
672
|
{
|
663
673
|
"label": "Text",
|
664
|
-
"icon": "
|
674
|
+
"icon": "WhiteboardTextToolIcon",
|
665
675
|
"text": "Text",
|
666
676
|
"identifier": "text",
|
667
677
|
"value": "text",
|
668
678
|
"selected": true
|
669
679
|
},
|
670
680
|
{
|
671
|
-
"label": "
|
672
|
-
"icon": "
|
673
|
-
"text": "
|
681
|
+
"label": "Scribble",
|
682
|
+
"icon": "WhiteboardPenToolIcon",
|
683
|
+
"text": "Scribble",
|
674
684
|
"identifier": "pen",
|
675
685
|
"value": "pen",
|
676
686
|
"selected": true
|
677
687
|
},
|
678
688
|
{
|
679
689
|
"label": "Highlighter",
|
680
|
-
"icon": "
|
690
|
+
"icon": "WhiteboardHighlighterToolIcon",
|
681
691
|
"text": "Highlighter",
|
682
692
|
"identifier": "highlighter",
|
683
693
|
"value": "highlighter",
|
@@ -685,7 +695,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
685
695
|
},
|
686
696
|
{
|
687
697
|
"label": "Image",
|
688
|
-
"icon": "
|
698
|
+
"icon": "WhiteboardImageToolIcon",
|
689
699
|
"text": "Image",
|
690
700
|
"identifier": "image",
|
691
701
|
"value": "image",
|
@@ -693,7 +703,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
693
703
|
},
|
694
704
|
{
|
695
705
|
"label": "Shapes",
|
696
|
-
"icon": "
|
706
|
+
"icon": "WhiteboardShapesToolIcon",
|
697
707
|
"text": "Shapes",
|
698
708
|
"identifier": "shapes",
|
699
709
|
"value": "shapes",
|
@@ -701,31 +711,31 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
701
711
|
},
|
702
712
|
{
|
703
713
|
"label": "Stamps",
|
704
|
-
"icon": "
|
714
|
+
"icon": "WhiteboardStampToolIcon",
|
705
715
|
"text": "Stamps",
|
706
716
|
"identifier": "stamps",
|
707
717
|
"value": "stamps",
|
708
718
|
"selected": true
|
709
719
|
},
|
710
|
-
{
|
711
|
-
"label": "Number bond",
|
712
|
-
"icon": "Bold",
|
713
|
-
"text": "Number bond",
|
714
|
-
"identifier": "numberBond",
|
715
|
-
"value": "numberBond",
|
716
|
-
"selected": false
|
717
|
-
},
|
718
720
|
{
|
719
721
|
"label": "Unifix Cube",
|
720
|
-
"icon": "
|
722
|
+
"icon": "WhiteboardUnifixCubeToolIcon",
|
721
723
|
"text": "Unifix Cube",
|
722
724
|
"identifier": "unifixCube",
|
723
725
|
"value": "unifixCube",
|
724
726
|
"selected": false
|
725
727
|
},
|
728
|
+
{
|
729
|
+
"label": "Equation editor",
|
730
|
+
"icon": "WhiteboardEquationEditorToolIcon",
|
731
|
+
"text": "Equation editor",
|
732
|
+
"identifier": "equationEditor",
|
733
|
+
"value": "equationEditor",
|
734
|
+
"selected": false
|
735
|
+
},
|
726
736
|
{
|
727
737
|
"label": "Diagrams",
|
728
|
-
"icon": "
|
738
|
+
"icon": "WhiteboardDiagramsToolIcon",
|
729
739
|
"text": "Diagrams",
|
730
740
|
"identifier": "diagrams",
|
731
741
|
"value": "diagrams",
|
@@ -733,7 +743,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
733
743
|
},
|
734
744
|
{
|
735
745
|
"label": "Array",
|
736
|
-
"icon": "
|
746
|
+
"icon": "WhiteboardArrayToolIcon",
|
737
747
|
"text": "Array",
|
738
748
|
"identifier": "array",
|
739
749
|
"value": "array",
|
@@ -741,7 +751,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
741
751
|
},
|
742
752
|
{
|
743
753
|
"label": "Number line",
|
744
|
-
"icon": "
|
754
|
+
"icon": "WhiteboardNumberLineToolIcon",
|
745
755
|
"text": "Number line",
|
746
756
|
"identifier": "numberLine",
|
747
757
|
"value": "numberLine",
|
@@ -749,51 +759,149 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
749
759
|
},
|
750
760
|
{
|
751
761
|
"label": "Fraction bars",
|
752
|
-
"icon": "
|
762
|
+
"icon": "WhiteboardFractionBarToolIcon",
|
753
763
|
"text": "Fraction bars",
|
754
764
|
"identifier": "fractionBars",
|
755
765
|
"value": "fractionBars",
|
756
766
|
"selected": false
|
757
767
|
},
|
758
|
-
{
|
759
|
-
"label": "Protractor",
|
760
|
-
"icon": "Bold",
|
761
|
-
"text": "Protractor",
|
762
|
-
"identifier": "protractor",
|
763
|
-
"value": "protractor",
|
764
|
-
"selected": false
|
765
|
-
},
|
766
768
|
{
|
767
769
|
"label": "Table",
|
768
|
-
"icon": "
|
770
|
+
"icon": "WhiteboardTableToolIcon",
|
769
771
|
"text": "Table",
|
770
772
|
"identifier": "table",
|
771
773
|
"value": "table",
|
772
774
|
"selected": false
|
773
775
|
},
|
776
|
+
{
|
777
|
+
"label": "Algebra tiles",
|
778
|
+
"icon": "WhiteboardAlgebraTileToolIcon",
|
779
|
+
"text": "Algebra tiles",
|
780
|
+
"identifier": "algebraTiles",
|
781
|
+
"value": "algebraTiles",
|
782
|
+
"selected": false
|
783
|
+
},
|
774
784
|
{
|
775
785
|
"label": "Grids",
|
776
|
-
"icon": "
|
786
|
+
"icon": "WhiteboardGridToolIcon",
|
777
787
|
"text": "Grids",
|
778
788
|
"identifier": "grids",
|
779
789
|
"value": "grids",
|
780
790
|
"selected": false
|
781
791
|
},
|
782
792
|
{
|
783
|
-
"label": "
|
784
|
-
"icon": "
|
785
|
-
"text": "
|
786
|
-
"identifier": "
|
787
|
-
"value": "
|
788
|
-
"selected": false
|
793
|
+
"label": "Protractor",
|
794
|
+
"icon": "WhiteboardProtractorToolIcon",
|
795
|
+
"text": "Protractor",
|
796
|
+
"identifier": "protractor",
|
797
|
+
"value": "protractor",
|
798
|
+
"selected": false,
|
799
|
+
"data": {
|
800
|
+
"resourceTypeId": 7,
|
801
|
+
"resourceLabel": "Protractor",
|
802
|
+
"serialNo": 1,
|
803
|
+
"settings": {},
|
804
|
+
"content": {},
|
805
|
+
"metadata": {
|
806
|
+
"type": "Protractor",
|
807
|
+
"displayPointer": true,
|
808
|
+
"launchByDefault": false,
|
809
|
+
"allowResize": true,
|
810
|
+
"addShowHideBtn": true,
|
811
|
+
"alternativeText": "",
|
812
|
+
"angleType": 2,
|
813
|
+
"rotation": "allowRotation",
|
814
|
+
"backgroundColor": "rgba(255, 255, 255, 1)",
|
815
|
+
"backgroundOpacity": 40
|
816
|
+
}
|
817
|
+
}
|
789
818
|
},
|
790
819
|
{
|
791
|
-
"label": "
|
792
|
-
"icon": "
|
793
|
-
"text": "
|
794
|
-
"identifier": "
|
795
|
-
"value": "
|
796
|
-
"selected": false
|
820
|
+
"label": "Ruler",
|
821
|
+
"icon": "WhiteboardRulerToolIcon",
|
822
|
+
"text": "Ruler",
|
823
|
+
"identifier": "ruler",
|
824
|
+
"value": "ruler",
|
825
|
+
"selected": false,
|
826
|
+
"data": {
|
827
|
+
"resourceTypeId": 3,
|
828
|
+
"resourceLabel": "Ruler",
|
829
|
+
"serialNo": 1,
|
830
|
+
"customRulerImg": {
|
831
|
+
"url": "",
|
832
|
+
"fileName": "",
|
833
|
+
"imageWidth": null,
|
834
|
+
"imageHeight": null,
|
835
|
+
"scalingWidth": 1,
|
836
|
+
"scalingHeight": 1
|
837
|
+
},
|
838
|
+
"metadata": {
|
839
|
+
"type": "Ruler",
|
840
|
+
"isAllowToFlip": false,
|
841
|
+
"displayOnTop": "centimeter",
|
842
|
+
"measurementUnit": "centimeter",
|
843
|
+
"rulerLengthDimension": "15cm",
|
844
|
+
"rulerDPI": 72,
|
845
|
+
"rotation": "allowRotation",
|
846
|
+
"isRulerByDefault": false,
|
847
|
+
"isShowHideButton": true,
|
848
|
+
"rulerColor": "rgba(186, 201, 255, 1)",
|
849
|
+
"rulerOpacity": 40,
|
850
|
+
"altText": "",
|
851
|
+
"lockAspectRatio": false,
|
852
|
+
"resetSize": false
|
853
|
+
}
|
854
|
+
}
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"label": "Simple Calculator",
|
858
|
+
"icon": "WhiteboardSimpleCalculatorToolIcon",
|
859
|
+
"text": "Simple Calculator",
|
860
|
+
"identifier": "simpleCalculator",
|
861
|
+
"value": "simpleCalculator",
|
862
|
+
"selected": false,
|
863
|
+
"data": {
|
864
|
+
"resourceTypeId": 2,
|
865
|
+
"resourceLabel": "Simple Calculator",
|
866
|
+
"serialNo": 1,
|
867
|
+
"metadata": {
|
868
|
+
"type": "simpleCalculator",
|
869
|
+
"launchByDefault": false,
|
870
|
+
"addShowHideBtn": true,
|
871
|
+
"customCalculatorSettings": [
|
872
|
+
"History",
|
873
|
+
"Undo/Redo",
|
874
|
+
"Parentheses",
|
875
|
+
"Percentage",
|
876
|
+
"Reciprocal",
|
877
|
+
"Exponent",
|
878
|
+
"Pi",
|
879
|
+
"Square",
|
880
|
+
"Sign change",
|
881
|
+
"Square root"
|
882
|
+
]
|
883
|
+
}
|
884
|
+
}
|
885
|
+
},
|
886
|
+
{
|
887
|
+
"label": "Scientific Calculator",
|
888
|
+
"icon": "WhiteboardScientificCalculatorToolIcon",
|
889
|
+
"text": "Scientific Calculator",
|
890
|
+
"identifier": "scientificCalculator",
|
891
|
+
"value": "scientificCalculator",
|
892
|
+
"selected": false,
|
893
|
+
"data": {
|
894
|
+
"resourceTypeId": 10,
|
895
|
+
"resourceLabel": "Scientific Calculator",
|
896
|
+
"serialNo": 1,
|
897
|
+
"metadata": {
|
898
|
+
"type": "scientificCalculator",
|
899
|
+
"width": 600,
|
900
|
+
"height": 400,
|
901
|
+
"isShowHideButtonVisible": true,
|
902
|
+
"defaultLaunchOfTool": false
|
903
|
+
}
|
904
|
+
}
|
797
905
|
}
|
798
906
|
],
|
799
907
|
"defaultCanvasTool": "pen",
|
@@ -828,23 +936,13 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
828
936
|
{
|
829
937
|
"text": "Create a model",
|
830
938
|
"selected": true,
|
831
|
-
"videoData":
|
832
|
-
"description": "",
|
833
|
-
"error": false,
|
834
|
-
"fileKey": "thinkSphere/resources/ngie_predefined_strategy_1.mp4",
|
939
|
+
"videoData": {
|
835
940
|
"fileName": "Create_a_model",
|
836
|
-
"mediaCredits": "",
|
837
|
-
"originalName": "ngie_predefined_strategy_1.mp4",
|
838
941
|
"size": "",
|
839
942
|
"type": "video/mp4",
|
840
|
-
"uploadUrl": "https://itemengine-file-management.itemengine-
|
841
|
-
|
842
|
-
"
|
843
|
-
"size": "",
|
844
|
-
"type": "",
|
845
|
-
"uploadUrl": "",
|
846
|
-
"fileKey": "",
|
847
|
-
"originalName": "",
|
943
|
+
"uploadUrl": "https://itemengine-file-management.itemengine-staging.il-apps.com/api/files/document?key=thinkSphere/resources/ngie_predefined_strategy_1.mp4",
|
944
|
+
"fileKey": "thinkSphere/resources/ngie_predefined_strategy_1.mp4",
|
945
|
+
"originalName": "ngie_predefined_strategy_1.mp4",
|
848
946
|
"description": "",
|
849
947
|
"mediaCredits": "",
|
850
948
|
"error": false
|
@@ -855,12 +953,12 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
855
953
|
"text": "Look for a pattern",
|
856
954
|
"selected": true,
|
857
955
|
"videoData": {
|
858
|
-
"fileName": "",
|
956
|
+
"fileName": "Look_for_a_pattern",
|
859
957
|
"size": "",
|
860
|
-
"type": "",
|
861
|
-
"uploadUrl": "",
|
862
|
-
"fileKey": "",
|
863
|
-
"originalName": "",
|
958
|
+
"type": "video/mp4",
|
959
|
+
"uploadUrl": "https://itemengine-file-management.itemengine-staging.il-apps.com/api/files/document?key=thinkSphere/resources/ngie_predefined_strategy_2.mp4",
|
960
|
+
"fileKey": "thinkSphere/resources/ngie_predefined_strategy_2.mp4",
|
961
|
+
"originalName": "ngie_predefined_strategy_2.mp4",
|
864
962
|
"description": "",
|
865
963
|
"mediaCredits": "",
|
866
964
|
"error": false
|
@@ -871,12 +969,12 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
871
969
|
"text": "Guess, check, and revise",
|
872
970
|
"selected": true,
|
873
971
|
"videoData": {
|
874
|
-
"fileName": "",
|
972
|
+
"fileName": "Guess_check_and_revise",
|
875
973
|
"size": "",
|
876
|
-
"type": "",
|
877
|
-
"uploadUrl": "",
|
878
|
-
"fileKey": "",
|
879
|
-
"originalName": "",
|
974
|
+
"type": "video/mp4",
|
975
|
+
"uploadUrl": "https://itemengine-file-management.itemengine-staging.il-apps.com/api/files/document?key=thinkSphere/resources/ngie_predefined_strategy_3.mp4",
|
976
|
+
"fileKey": "thinkSphere/resources/ngie_predefined_strategy_3.mp4",
|
977
|
+
"originalName": "ngie_predefined_strategy_3.mp4",
|
880
978
|
"description": "",
|
881
979
|
"mediaCredits": "",
|
882
980
|
"error": false
|
@@ -887,12 +985,12 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
887
985
|
"text": "Try with friendlier numbers",
|
888
986
|
"selected": true,
|
889
987
|
"videoData": {
|
890
|
-
"fileName": "",
|
988
|
+
"fileName": "Try_with_friendlier_numbers",
|
891
989
|
"size": "",
|
892
|
-
"type": "",
|
893
|
-
"uploadUrl": "",
|
894
|
-
"fileKey": "",
|
895
|
-
"originalName": "",
|
990
|
+
"type": "video/mp4",
|
991
|
+
"uploadUrl": "https://itemengine-file-management.itemengine-staging.il-apps.com/api/files/document?key=thinkSphere/resources/ngie_predefined_strategy_4.mp4",
|
992
|
+
"fileKey": "thinkSphere/resources/ngie_predefined_strategy_4.mp4",
|
993
|
+
"originalName": "ngie_predefined_strategy_4.mp4",
|
896
994
|
"description": "",
|
897
995
|
"mediaCredits": "",
|
898
996
|
"error": false
|
@@ -903,12 +1001,12 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
903
1001
|
"text": "Show with an equation",
|
904
1002
|
"selected": true,
|
905
1003
|
"videoData": {
|
906
|
-
"fileName": "",
|
1004
|
+
"fileName": "Show_with_an_equation",
|
907
1005
|
"size": "",
|
908
|
-
"type": "",
|
909
|
-
"uploadUrl": "",
|
910
|
-
"fileKey": "",
|
911
|
-
"originalName": "",
|
1006
|
+
"type": "video/mp4",
|
1007
|
+
"uploadUrl": "https://itemengine-file-management.itemengine-staging.il-apps.com/api/files/document?key=thinkSphere/resources/ngie_predefined_strategy_5.mp4",
|
1008
|
+
"fileKey": "thinkSphere/resources/ngie_predefined_strategy_5.mp4",
|
1009
|
+
"originalName": "ngie_predefined_strategy_5.mp4",
|
912
1010
|
"description": "",
|
913
1011
|
"mediaCredits": "",
|
914
1012
|
"error": false
|
@@ -1528,6 +1626,7 @@ Cypress.Commands.add('createThinkSphereItem', (itemName, studentView) => {
|
|
1528
1626
|
cy.log(itemReferenceIds);
|
1529
1627
|
});
|
1530
1628
|
});
|
1629
|
+
cy.wait(15000);
|
1531
1630
|
});
|
1532
1631
|
|
1533
1632
|
Cypress.Commands.add('deleteThinkSphereItem', (itemName) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.442
|
3
|
+
"version": "1.0.442",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -52,4 +52,4 @@
|
|
52
52
|
"devDependencies": {
|
53
53
|
"@applitools/eyes-cypress": "^3.47.0"
|
54
54
|
}
|
55
|
-
}
|
55
|
+
}
|