Skip to content

Commit ae98e96

Browse files
committed
MC-3393: Create/update MFTF tests for hiding content blocks
- assert cant use button item in stage after disabling
1 parent afa06f0 commit ae98e96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,10 @@
17181718
<comment userInput="Validate content type remains disabled after save" stepKey="commentValidateHiddenStage"/>
17191719
<seeElement selector="{{ButtonGroupOnStage.hidden('1')}}" stepKey="waitForContentTypeHidden" />
17201720
<seeElement selector="{{ButtonItemOnStage.hidden('1')}}" stepKey="waitForContentTypeHiddenButtonItem" />
1721+
<!-- Verify we cannot interact with the internal button after save -->
1722+
<comment userInput="Verify we cannot interact with the internal button after save" stepKey="commentVerifyButtonItemIsDisabledAfterSave"/>
1723+
<seeElementInDOM selector="{{ButtonItemOnStage.optionsMenu('1')}}" stepKey="seeDomButtonItemOptionsMenu"/>
1724+
<dontSeeElement selector="{{ButtonItemOnStage.optionsMenu('1')}}" stepKey="dontSeeButtonItemOptionsMenu"/>
17211725
<!-- Validate store front -->
17221726
<comment userInput="Validate content type is disabled on storefront" stepKey="commentValidateHiddenStorefront"/>
17231727
<openNewTab stepKey="openNewTab" />

0 commit comments

Comments
 (0)