Skip to content

Commit ae6e932

Browse files
committed
MC-4294: Cannot Activate Tab Item After Moving Tabs or Slider to New Parent Container
Move slider rendering assertions to existing SliderMoveSlider test
1 parent 385997f commit ae6e932

File tree

1 file changed

+10
-82
lines changed

1 file changed

+10
-82
lines changed

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

Lines changed: 10 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,12 @@
610610
<argument name="property" value="PageBuilderBackgroundColor_Hex_Grey"/>
611611
</actionGroup>
612612
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
613+
<actionGroup ref="duplicateSmallContentType" stepKey="duplicateSmallContentType">
614+
<argument name="section" value="SlideOnBackend"/>
615+
<argument name="targetIndex" value="1"/>
616+
</actionGroup>
617+
<seeElement selector="{{SlideOnBackend.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorForSlideItem2OnStageBeforeMoving"/>
618+
<dontSeeElement selector="{{SlideOnBackend.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="dontSeeBackgroundColorForSlideItem1OnStageBeforeMoving"/>
613619
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide"/>
614620
<!-- Validate Stage -->
615621
<comment userInput="Validate Stage" stepKey="commentValidateStage"/>
@@ -647,6 +653,8 @@
647653
<argument name="contentTypeIndex" value="1"/>
648654
<argument name="containerTargetIndex" value="1"/>
649655
</actionGroup>
656+
<seeElement selector="{{SlideOnBackend.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorForSlideItem2OnStageAfterMoving"/>
657+
<dontSeeElement selector="{{SlideOnBackend.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="dontSeeBackgroundColorForSlideItem1OnStageAfterMoving"/>
650658
<!-- Save Page -->
651659
<comment userInput="Save Page" stepKey="commentSavePage"/>
652660
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
@@ -667,6 +675,8 @@
667675
<argument name="contentTypeIndex" value="1"/>
668676
<argument name="containerTargetIndex" value="1"/>
669677
</actionGroup>
678+
<seeElement selector="{{SlideOnFrontend.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorForSlideItem1OnStorefront"/>
679+
<dontSeeElement selector="{{SlideOnFrontend.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="dontSeeBackgroundColorForSlideItem2OnStorefront"/>
670680
</test>
671681
<test name="SliderValidateShowHideOnSliderDefaultState">
672682
<annotations>
@@ -1552,86 +1562,4 @@
15521562
<click selector="{{SliderOnStage.slideNavigationDot('1', '1')}}" stepKey="clickSliderDot3"/>
15531563
<waitForElementVisible selector="{{SlideOnBackend.base('1')}}" stepKey="waitForSlideOneVisible"/>
15541564
</test>
1555-
<test name="SliderRendersAndIsInteractiveAfterMovingToAnotherContainer">
1556-
<annotations>
1557-
<features value="PageBuilder"/>
1558-
<stories value="Slider"/>
1559-
<title value="Slider - Validate Proper Rendering and Interactivity After Moving To Different Container"/>
1560-
<description value="Validate that slider renders itself properly and retains its interactivity after moving to a different parent container."/>
1561-
<severity value="MAJOR"/>
1562-
<useCaseId value="MC-4294"/>
1563-
<testCaseId value="MC-4996"/>
1564-
<group value="pagebuilder"/>
1565-
<group value="pagebuilder-slide"/>
1566-
<group value="pagebuilder-sliderCommon"/>
1567-
</annotations>
1568-
<before>
1569-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
1570-
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
1571-
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
1572-
</before>
1573-
<after>
1574-
<actionGroup ref="logout" stepKey="logout"/>
1575-
</after>
1576-
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
1577-
<argument name="group" value="PageBuilderSliderContentType"/>
1578-
</actionGroup>
1579-
<actionGroup ref="dragContentTypeToStage" stepKey="dragRowContentTypeToStage">
1580-
<argument name="contentType" value="PageBuilderRowContentType"/>
1581-
</actionGroup>
1582-
<actionGroup ref="dragContentTypeToContainer" stepKey="dragSliderContentTypeToSecondRow">
1583-
<argument name="contentType" value="PageBuilderSliderContentType"/>
1584-
<argument name="containerTargetType" value="PageBuilderRowContentType"/>
1585-
<argument name="containerTargetIndex" value="2"/>
1586-
</actionGroup>
1587-
<actionGroup ref="addTextToTinyMCE" stepKey="addTextToTinyMCE">
1588-
<argument name="property" value="PageBuilderSlideItemContent_Slide1"/>
1589-
<argument name="section" value="SlideOnConfigurationPanel"/>
1590-
</actionGroup>
1591-
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
1592-
<scrollTo selector="{{CmsNewPagePageContentSection.header}}" stepKey="scrollUpSoRowIsInView" />
1593-
<actionGroup ref="dragContentTypeToStageByIndex" stepKey="dragColumnContentTypeToSecondRowContentTypeOnStage">
1594-
<argument name="contentType" value="PageBuilderColumnContentType"/>
1595-
<argument name="contentTypeNumber" value="1"/>
1596-
</actionGroup>
1597-
<scrollTo selector="{{CmsNewPagePageContentSection.header}}" stepKey="scrollUpSoRowIsInView2" />
1598-
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocus"/>
1599-
<!-- Move slider into first column -->
1600-
<comment userInput="Move slider into first column" stepKey="commentMoveSliderIntoFirstColumn"/>
1601-
<actionGroup ref="moveContentTypeToContainer" stepKey="moveSliderIntoFirstColumn">
1602-
<argument name="contentType" value="PageBuilderSliderContentType"/>
1603-
<argument name="containerTargetType" value="PageBuilderColumnContentType"/>
1604-
<argument name="containerTargetIndex" value="1"/>
1605-
</actionGroup>
1606-
<seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="seeMessageContentSlideItem1Stage"/>
1607-
<actionGroup ref="duplicateSmallContentType" stepKey="duplicateSmallContentType">
1608-
<argument name="section" value="SlideOnBackend"/>
1609-
<argument name="targetIndex" value="1"/>
1610-
</actionGroup>
1611-
<actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel">
1612-
<argument name="section" value="SlideOnBackend"/>
1613-
<argument name="targetIndex" value="2"/>
1614-
</actionGroup>
1615-
<executeJS function="tinyMCE.get('pagebuilder_slide_form_content').setContent('');" stepKey="executeJSClearTinyMCE"/>
1616-
<actionGroup ref="addTextToTinyMCE" stepKey="addTextToTinyMCE2">
1617-
<argument name="property" value="PageBuilderSlideItemContent_Slide2"/>
1618-
<argument name="section" value="SlideOnConfigurationPanel"/>
1619-
</actionGroup>
1620-
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/>
1621-
<seeElement selector="{{SlideOnBackend.messageContent('2', PageBuilderSlideItemContent_Slide2.value)}}" stepKey="seeMessageContentSlideItem2Stage"/>
1622-
<!-- Change appearance of row and re-evaluate -->
1623-
<comment userInput="Change appearance of row and re-evaluate" stepKey="commentChangeAppearanceOfRowAndReevaluate"/>
1624-
<scrollTo selector="{{CmsNewPagePageContentSection.header}}" stepKey="scrollUpSoRowIsInView3" />
1625-
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocus2"/>
1626-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStageForFirstRow">
1627-
<argument name="contentType" value="PageBuilderRowContentType"/>
1628-
</actionGroup>
1629-
<actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRow1">
1630-
<argument name="property" value="PageBuilderRowAppearance_FullWidth"/>
1631-
</actionGroup>
1632-
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsForFirstRow"/>
1633-
<seeElement selector="{{SlideOnBackend.messageContent('2', PageBuilderSlideItemContent_Slide2.value)}}" stepKey="seeMessageContentSlideItem2Stage2"/>
1634-
<click selector="{{SliderOnStage.slideNavigationDot('1', '1')}}" stepKey="switchToDefaultSlide"/>
1635-
<seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="seeMessageContentSlideItem1Stage2"/>
1636-
</test>
16371565
</tests>

0 commit comments

Comments
 (0)