Skip to content

Commit de2d23b

Browse files
committed
MC-3673: Tab created inside of a block does not save active tab
- change to seeElement
1 parent d98320d commit de2d23b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderBlockTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,13 +860,13 @@
860860
<argument name="property" value="PageBuilderTabBackgroundColorPink"/>
861861
</actionGroup>
862862
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
863-
<waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveAdminPreview"/>
863+
<seeElement selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveAdminPreview"/>
864864
<comment userInput="User updates tab settings and saves configuration" stepKey="saveBlock"/>
865865
<click selector="{{BlockNewPagePageActionsSection.saveBlock}}" stepKey="clickSaveBlock"/>
866866
<waitForPageLoad stepKey="waitForPageToLoad"/>
867867
<!--Verify stage after save-->
868868
<comment userInput="Verify stage after save" stepKey="commentVerifyStageAfterSave"/>
869-
<waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveAdminPreviewAfterSave"/>
869+
<seeElement selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveAdminPreviewAfterSave"/>
870870
<!--User goes to created CMS page-->
871871
<comment userInput="User goes to created CMS page" stepKey="NavigateToCMSPage"/>
872872
<actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage">
@@ -888,7 +888,7 @@
888888
<!--Check that tab was rendered on the stage-->
889889
<comment userInput="Check that tab was rendered on the stage" stepKey="commentCheckingThatTabAreRenderedOnTHeStage"/>
890890
<see selector="{{TabOnStorefront.tabHeader('1')}}" userInput="{{PageBuilderTabNameRandom1.value}}" stepKey="seeTab1TitleStorefront2"/>
891-
<waitForElementVisible selector="{{TabOnStorefront.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveStorefront2"/>
891+
<seeElement selector="{{TabOnStorefront.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveStorefront2"/>
892892
<seeElement selector="{{TabOnStorefront.backgroundColor('1', PageBuilderTabBackgroundColorPink.rgb)}}" stepKey="seeTab1BackgroundColor2"/>
893893
<actionGroup ref="openOptionsMenu" stepKey="openEditMenuOnStage3">
894894
<argument name="contentType" value="PageBuilderBlockContentType"/>
@@ -900,7 +900,7 @@
900900
<comment userInput="Verify Block On Store front" stepKey="commentCheckingThatImageIsNotRenderedOnTheStoreFront"/>
901901
<amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
902902
<see selector="{{TabOnStorefront.tabHeader('1')}}" userInput="{{PageBuilderTabNameRandom1.value}}" stepKey="seeTab1TitleStorefront"/>
903-
<waitForElementVisible selector="{{TabOnStorefront.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveStorefront"/>
903+
<seeElement selector="{{TabOnStorefront.tabHeaderItemActive('1')}}" stepKey="seeFirstTabActiveStorefront"/>
904904
<seeElement selector="{{TabOnStorefront.backgroundColor('1', PageBuilderTabBackgroundColorPink.rgb)}}" stepKey="seeTab1BackgroundColor"/>
905905
<see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnCmsStage1"/>
906906
</test>

0 commit comments

Comments
 (0)