|
839 | 839 | <actionGroup ref="dragContentTypeToStage" stepKey="dragTabsIntoStage">
|
840 | 840 | <argument name="contentType" value="PageBuilderTabsContentType"/>
|
841 | 841 | </actionGroup>
|
| 842 | + <actionGroup ref="addTab" stepKey="addSecondTab"/> |
842 | 843 | <!-- User sees tabs displayed with 1st default tab item created by default -->
|
843 | 844 | <comment userInput="User sees tabs displayed with 1st default tab item created by default" stepKey="AC1"/>
|
844 | 845 | <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel1">
|
|
859 | 860 | <argument name="property" value="PageBuilderTabBackgroundColorPink"/>
|
860 | 861 | </actionGroup>
|
861 | 862 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
| 863 | + <waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveAdminPreview"/> |
862 | 864 | <comment userInput="User updates tab settings and saves configuration" stepKey="saveBlock"/>
|
863 | 865 | <click selector="{{BlockNewPagePageActionsSection.saveBlock}}" stepKey="clickSaveBlock"/>
|
864 | 866 | <waitForPageLoad stepKey="waitForPageToLoad"/>
|
| 867 | + <!--Verify stage after save--> |
| 868 | + <comment userInput="Verify stage after save" stepKey="commentVerifyStageAfterSave"/> |
| 869 | + <waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveAdminPreviewAfterSave"/> |
865 | 870 | <!--User goes to created CMS page-->
|
866 | 871 | <comment userInput="User goes to created CMS page" stepKey="NavigateToCMSPage"/>
|
867 | 872 | <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage">
|
|
883 | 888 | <!--Check that tab was rendered on the stage-->
|
884 | 889 | <comment userInput="Check that tab was rendered on the stage" stepKey="commentCheckingThatTabAreRenderedOnTHeStage"/>
|
885 | 890 | <see selector="{{TabOnStorefront.tabHeader('1')}}" userInput="{{PageBuilderTabNameRandom1.value}}" stepKey="seeTab1TitleStorefront2"/>
|
| 891 | + <waitForElementVisible selector="{{TabOnStorefront.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveStorefront2"/> |
886 | 892 | <seeElement selector="{{TabOnStorefront.backgroundColor('1', PageBuilderTabBackgroundColorPink.rgb)}}" stepKey="seeTab1BackgroundColor2"/>
|
887 | 893 | <actionGroup ref="openOptionsMenu" stepKey="openEditMenuOnStage3">
|
888 | 894 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
|
894 | 900 | <comment userInput="Verify Block On Store front" stepKey="commentCheckingThatImageIsNotRenderedOnTheStoreFront"/>
|
895 | 901 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
896 | 902 | <see selector="{{TabOnStorefront.tabHeader('1')}}" userInput="{{PageBuilderTabNameRandom1.value}}" stepKey="seeTab1TitleStorefront"/>
|
| 903 | + <waitForElementVisible selector="{{TabOnStorefront.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveStorefront"/> |
897 | 904 | <seeElement selector="{{TabOnStorefront.backgroundColor('1', PageBuilderTabBackgroundColorPink.rgb)}}" stepKey="seeTab1BackgroundColor"/>
|
898 | 905 | <see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnCmsStage1"/>
|
899 | 906 | </test>
|
|
0 commit comments