|
1552 | 1552 | <click selector="{{SliderOnStage.slideNavigationDot('1', '1')}}" stepKey="clickSliderDot3"/>
|
1553 | 1553 | <waitForElementVisible selector="{{SlideOnBackend.base('1')}}" stepKey="waitForSlideOneVisible"/>
|
1554 | 1554 | </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> |
1555 | 1637 | </tests>
|
0 commit comments