|
736 | 736 | <title value="Add Block with Tab to CMS Page"/>
|
737 | 737 | <description value="Verify that admin are able to add a block instance type with tab content to Block Content Block and see it on frontend"/>
|
738 | 738 | <severity value="CRITICAL"/>
|
739 |
| - <!--<testCaseId value="MC-2289"/>--> |
| 739 | + <testCaseId value="MC-3742"/> |
740 | 740 | <useCaseId value="MC-1405"/>
|
741 | 741 | <group value="pagebuilder"/>
|
742 | 742 | <group value="pagebuilder-block"/>
|
|
751 | 751 | <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
|
752 | 752 | <actionGroup ref="logout" stepKey="logout"/>
|
753 | 753 | </after>
|
754 |
| - <!--Add Tab to block--> |
755 |
| - <comment userInput="Adding Tab to block" stepKey="commentAddingTabToBlock"/> |
756 | 754 | <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage1">
|
757 | 755 | <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/>
|
758 | 756 | </actionGroup>
|
|
764 | 762 | <actionGroup ref="dragContentTypeToStage" stepKey="dragTabsIntoStage">
|
765 | 763 | <argument name="contentType" value="PageBuilderTabsContentType"/>
|
766 | 764 | </actionGroup>
|
767 |
| - <!-- Open Tabs Panel --> |
| 765 | + <!-- User sees tabs displayed with 1st default tab item created by default --> |
768 | 766 | <comment userInput="User sees tabs displayed with 1st default tab item created by default" stepKey="AC1"/>
|
769 | 767 | <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel1">
|
770 | 768 | <argument name="section" value="TabOnStage"/>
|
|
787 | 785 | <comment userInput="User updates tab settings and saves configuration" stepKey="saveBlock"/>
|
788 | 786 | <click selector="{{BlockNewPagePageActionsSection.saveBlock}}" stepKey="clickSaveBlock"/>
|
789 | 787 | <waitForPageLoad stepKey="waitForPageToLoad"/>
|
| 788 | + <!--User goes to created CMS page--> |
790 | 789 | <comment userInput="User goes to created CMS page" stepKey="NavigateToCMSPage"/>
|
791 | 790 | <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage">
|
792 | 791 | <argument name="CMSPage" value="$$createCMSPage$$"/>
|
|
804 | 803 | <waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/>
|
805 | 804 | <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/>
|
806 | 805 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/>
|
| 806 | + <!--Check that tab was rendered on the stage--> |
807 | 807 | <comment userInput="Check that tab was rendered on the stage" stepKey="commentCheckingThatTabAreRenderedOnTHeStage"/>
|
808 | 808 | <see selector="{{TabOnStorefront.tabHeader('1')}}" userInput="{{PageBuilderTabNameRandom1.value}}" stepKey="seeTab1TitleStorefront2"/>
|
809 | 809 | <seeElement selector="{{TabOnStorefront.tabContentBackgroundColor('1', PageBuilderTabBackgroundColorPink.rgb)}}" stepKey="seeTab1BackgroundColor2"/>
|
810 | 810 | <actionGroup ref="openOptionsMenu" stepKey="openEditMenuOnStage3">
|
811 | 811 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
| 812 | + <argument name="contentTypeIndex" value="1"/> |
812 | 813 | </actionGroup>
|
813 | 814 | <seeElement selector="{{BlockOnStage.overlay}}" stepKey="seeOverlayOnBlock"/>
|
814 | 815 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
| 816 | + <!--Verify block on the frontend--> |
| 817 | + <comment userInput="Verify Block On Store front" stepKey="commentCheckingThatImageIsNotRenderedOnTheStoreFront"/> |
815 | 818 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
816 | 819 | <see selector="{{TabOnStorefront.tabHeader('1')}}" userInput="{{PageBuilderTabNameRandom1.value}}" stepKey="seeTab1TitleStorefront"/>
|
817 | 820 | <seeElement selector="{{TabOnStorefront.tabContentBackgroundColor('1', PageBuilderTabBackgroundColorPink.rgb)}}" stepKey="seeTab1BackgroundColor"/>
|
|
822 | 825 | <features value="PageBuilder"/>
|
823 | 826 | <stories value="Block"/>
|
824 | 827 | <title value="Add Block with Empty Image to CMS Page"/>
|
825 |
| - <description value="Verify that admin are able to add a block instance type with tab content to Block Content Block and see it on frontend"/> |
| 828 | + <description value="Verify that admin are able to add a block instance type with empty image to Block Content Block and see it on frontend and on the stage"/> |
826 | 829 | <severity value="CRITICAL"/>
|
827 | 830 | <testCaseId value="MC-3740"/>
|
828 | 831 | <useCaseId value="MC-1405"/>
|
|
844 | 847 | <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage1">
|
845 | 848 | <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/>
|
846 | 849 | </actionGroup>
|
847 |
| - <comment userInput="Add Image to Stage" stepKey="addImageToStage"/> |
848 | 850 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
|
849 | 851 | <argument name="group" value="PageBuilderImageContentType"/>
|
850 | 852 | </actionGroup>
|
|
878 | 880 | <actualResult type="variable">height</actualResult>
|
879 | 881 | <expectedResult type="string">10px</expectedResult>
|
880 | 882 | </assertGreaterThanOrEqual>
|
| 883 | + <seeElementInDOM selector="{{ImageOnStorefront.emptyImage}}" stepKey="seeThatEmptyImageExistsInDomOnStage"/> |
881 | 884 | <dontSeeElement selector="{{ImageOnStorefront.imageDisplay}}" stepKey="notSeeImageOnStage"/>
|
882 | 885 | <actionGroup ref="openOptionsMenu" stepKey="openEditMenuOnStage3">
|
883 | 886 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
| 887 | + <argument name="contentTypeIndex" value="1"/> |
884 | 888 | </actionGroup>
|
885 | 889 | <seeElement selector="{{BlockOnStage.overlay}}" stepKey="seeOverlayOnBlock"/>
|
886 | 890 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
887 | 891 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
888 | 892 | <!--Verify block on the frontend-->
|
889 | 893 | <comment userInput="Verify Block On Store front" stepKey="commentCheckingThatImageIsNotRenderedOnTheStoreFront"/>
|
| 894 | + <seeElementInDOM selector="{{ImageOnStorefront.emptyImage}}" stepKey="seeThatEmptyImageExistsInDomOnStorefront"/> |
890 | 895 | <dontSeeElement selector="{{ImageOnStorefront.imageDisplay}}" stepKey="notSeeImageOnFrontend"/>
|
891 | 896 | </test>
|
892 | 897 | </tests>
|
0 commit comments