|
1643 | 1643 | <seeElement selector="{{SlideOnFrontend.messageContentTextAreaTextWidget('1', _ENV.MAGENTO_BASE_URL, $$createCMSPageB.identifier$$)}}" stepKey="seeWidgetStorefront"/>
|
1644 | 1644 | <click selector="{{SlideOnFrontend.messageContentTextAreaTextWidget('1', _ENV.MAGENTO_BASE_URL, $$createCMSPageB.identifier$$)}}" stepKey="clickWidgetStorefront"/>
|
1645 | 1645 | </test>
|
| 1646 | + <test name="SliderFadeCanBeInlineEdited"> |
| 1647 | + <annotations> |
| 1648 | + <features value="PageBuilder"/> |
| 1649 | + <stories value="Slider"/> |
| 1650 | + <title value="Slider - Slide Items Can Be Inline Edited When Slider Has Fade Enabled"/> |
| 1651 | + <description value="A user should be able to inline edit a slide when the slider has fade enabled"/> |
| 1652 | + <severity value="MAJOR"/> |
| 1653 | + <useCaseId value="MC-4156"/> |
| 1654 | + <testCaseId value="MC-5058"/> |
| 1655 | + <group value="pagebuilder"/> |
| 1656 | + <group value="pagebuilder-slide"/> |
| 1657 | + <group value="pagebuilder-sliderCommon"/> |
| 1658 | + </annotations> |
| 1659 | + <before> |
| 1660 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1661 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1662 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1663 | + </before> |
| 1664 | + <after> |
| 1665 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1666 | + </after> |
| 1667 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1668 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1669 | + </actionGroup> |
| 1670 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1671 | + <argument name="group" value="PageBuilderSliderContentType"/> |
| 1672 | + </actionGroup> |
| 1673 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragSliderOntoStage"> |
| 1674 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1675 | + </actionGroup> |
| 1676 | + <!-- Open Slider settings --> |
| 1677 | + <comment userInput="Open Slider settings" stepKey="EditSlider"/> |
| 1678 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide"/> |
| 1679 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openSliderEditPanel"> |
| 1680 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1681 | + <argument name="contentTypeIndex" value="1"/> |
| 1682 | + </actionGroup> |
| 1683 | + <actionGroup ref="conditionalClickSlideOutPanelFieldGeneral" stepKey="enterFade"> |
| 1684 | + <argument name="property" value="PageBuilderSliderFade_Enabled"/> |
| 1685 | + </actionGroup> |
| 1686 | + <actionGroup ref="conditionalClickSlideOutPanelFieldGeneral" stepKey="enterShowDots"> |
| 1687 | + <argument name="property" value="PageBuilderSliderShowDots_Enabled"/> |
| 1688 | + </actionGroup> |
| 1689 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/> |
| 1690 | + <!-- Add second slide --> |
| 1691 | + <comment userInput="Add second slide" stepKey="addSecondSlide"/> |
| 1692 | + <actionGroup ref="addSlide" stepKey="addSlide"/> |
| 1693 | + <!-- Switch to Slide 2 --> |
| 1694 | + <comment userInput="Switch to Slide 2" stepKey="commentSwitchToSlide2Stage"/> |
| 1695 | + <click selector="{{SliderOnStage.slideNavigationDot('1', '2')}}" stepKey="clickSlide2Stage"/> |
| 1696 | + <waitForPageLoad stepKey="waitForSlideAnimation"/> |
| 1697 | + <click selector="{{PageBuilderStage.inlineWYSIWYGEditor(PageBuilderSlideContentType.role, '2')}}" stepKey="focusOnEditorArea"/> |
| 1698 | + <waitForPageLoad stepKey="waitForWysiwyg"/> |
| 1699 | + <executeJS function="return document.querySelectorAll('[data-role=slide]')[1].getBoundingClientRect().left" stepKey="slideLeftPosition"/> |
| 1700 | + <executeJS function="return document.querySelectorAll('[data-role=slide]')[1].getBoundingClientRect().right" stepKey="slideRightPosition"/> |
| 1701 | + <executeJS function="return document.querySelectorAll('.slider-container.content-type-container')[0].getBoundingClientRect().left" stepKey="sliderLeftPosition"/> |
| 1702 | + <executeJS function="return document.querySelectorAll('.slider-container.content-type-container')[0].getBoundingClientRect().right" stepKey="sliderRightPosition"/> |
| 1703 | + <assertLessThan stepKey="assertSlideRightSideIsLessThanSliderRightSide"> |
| 1704 | + <expectedResult type="variable">sliderRightPosition</expectedResult> |
| 1705 | + <actualResult type="variable">slideRightPosition</actualResult> |
| 1706 | + </assertLessThan> |
| 1707 | + <assertGreaterThan stepKey="assertSlideLeftSideIsGreaterThanSliderLeftSide"> |
| 1708 | + <expectedResult type="variable">sliderLeftPosition</expectedResult> |
| 1709 | + <actualResult type="variable">slideLeftPosition</actualResult> |
| 1710 | + </assertGreaterThan> |
| 1711 | + <!-- Add Content To Slide 2 --> |
| 1712 | + <comment userInput="Add Content To Slide 2" stepKey="commentAddContentToSlide2"/> |
| 1713 | + <actionGroup ref="inlineEditWYSIWYGFromStage" stepKey="inlineEdit"> |
| 1714 | + <argument name="contentType" value="PageBuilderSlideContentType"/> |
| 1715 | + <argument name="content" value="{{PageBuilderSlideItemContent_Slide1.value}}"/> |
| 1716 | + <argument name="index" value="2"/> |
| 1717 | + </actionGroup> |
| 1718 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1719 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1720 | + <!-- Validate Stage After Save --> |
| 1721 | + <comment userInput="Validate Stage After Save" stepKey="commentValidateStage"/> |
| 1722 | + <click selector="{{SliderOnStage.slideNavigationDot('1', '2')}}" stepKey="clickSlide2StageAfterSave"/> |
| 1723 | + <waitForPageLoad stepKey="waitForSlideFadeAnimationAfterSave"/> |
| 1724 | + <seeElement selector="{{SlideOnBackend.messageContent('2', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="seeMessageContentStage"/> |
| 1725 | + </test> |
1646 | 1726 | </tests>
|
0 commit comments