|
1938 | 1938 | <seeElementInDOM selector="{{SlideOnBackend.emptyslide}}" stepKey="seeEmptySliderOnStage"/>
|
1939 | 1939 | <dontSeeElementInDOM selector="{{SlideOnBackend.slideBackgroundImage('0',PageBuilderSlideBackgroundImageProperty2.path, PageBuilderSlideBackgroundImageProperty1.extension)}}" stepKey="dontSeeImageInrMainImageSource1"/>
|
1940 | 1940 | </test>
|
| 1941 | + <test name="SlideInlineTextEditing"> |
| 1942 | + <annotations> |
| 1943 | + <features value="PageBuilder"/> |
| 1944 | + <stories value="Slider"/> |
| 1945 | + <title value="Edit slide text inline in WYSIWYG and see on storefront"/> |
| 1946 | + <description value="Verify that user are able to add text into Slide Content Type and see it on storefront"/> |
| 1947 | + <severity value="MAJOR"/> |
| 1948 | + <useCaseId value="MC-937"/> |
| 1949 | + <!-- TODO: Write test --> |
| 1950 | + <testCaseId value="MC-3465"/> |
| 1951 | + <group value="pagebuilder"/> |
| 1952 | + <group value="pagebuilder-text"/> |
| 1953 | + </annotations> |
| 1954 | + <before> |
| 1955 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1956 | + <actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" /> |
| 1957 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1958 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1959 | + </before> |
| 1960 | + <after> |
| 1961 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1962 | + </after> |
| 1963 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1964 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1965 | + </actionGroup> |
| 1966 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1967 | + <argument name="group" value="PageBuilderSliderContentType"/> |
| 1968 | + </actionGroup> |
| 1969 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragSliderIntoStage"> |
| 1970 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1971 | + </actionGroup> |
| 1972 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/> |
| 1973 | + <!--Input text into stage--> |
| 1974 | + <comment userInput="Input text into stage" stepKey="commentInputTextIntoStage"/> |
| 1975 | + <click selector="{{SlideOnBackend.tinymce('1')}}" stepKey="focusOnEditorArea"/> |
| 1976 | + <fillField selector="{{SlideOnBackend.tinymce('1')}}" userInput="{{PageBuilderSlideItemContent1.value}}" stepKey="fillTextToTinyMCE4"/> |
| 1977 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/> |
| 1978 | + <!--Verify inserted text on edit panel --> |
| 1979 | + <comment userInput="Verify inserted text on edit panel" stepKey="commentVerifyTextOnSlideout"/> |
| 1980 | + <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel1"> |
| 1981 | + <argument name="section" value="SlideOnBackend"/> |
| 1982 | + </actionGroup> |
| 1983 | + <switchToIFrame selector="{{SlideOnConfigurationPanel.tinyMCEIFrame}}" stepKey="switchToIFrame1"/> |
| 1984 | + <waitForElementVisible selector="{{SlideOnConfigurationPanel.textInIFrame(PageBuilderSlideItemContent1.value)}}" stepKey="waitForText"/> |
| 1985 | + <switchToIFrame stepKey="exitIFrame1"/> |
| 1986 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings2"/> |
| 1987 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/> |
| 1988 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
| 1989 | + <!--Verify Text Content Type on stage after saving cms page--> |
| 1990 | + <comment userInput="Verify text content type on storefront" stepKey="commentVerifyTextOnStage"/> |
| 1991 | + <see userInput="{{PageBuilderSlideItemContent1.value}}" stepKey="seeTextOnStage"/> |
| 1992 | + <!--Verify Text Content Type on storefront--> |
| 1993 | + <comment userInput="Verify Text Content Type on storefront" stepKey="commentVerifyTextContenTypeOnStorefront"/> |
| 1994 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1995 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1996 | + </actionGroup> |
| 1997 | + <see userInput="{{PageBuilderSlideItemContent1.value}}" stepKey="seeTextOnStorefront"/> |
| 1998 | + </test> |
| 1999 | + <test name="SlideInlineTextEditingAvailability"> |
| 2000 | + <annotations> |
| 2001 | + <features value="PageBuilder"/> |
| 2002 | + <stories value="Slider"/> |
| 2003 | + <title value="Edit slide text inline in WYSIWYG and check that other content types availability"/> |
| 2004 | + <description value="Verify that user are able to add other content types on Stage when inline edit enabled in Slide Content Type"/> |
| 2005 | + <severity value="MAJOR"/> |
| 2006 | + <useCaseId value="MC-937"/> |
| 2007 | + <!-- TODO: Write test --> |
| 2008 | + <testCaseId value="MC-3465"/> |
| 2009 | + <group value="pagebuilder"/> |
| 2010 | + <group value="pagebuilder-text"/> |
| 2011 | + </annotations> |
| 2012 | + <before> |
| 2013 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 2014 | + <actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" /> |
| 2015 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 2016 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 2017 | + </before> |
| 2018 | + <after> |
| 2019 | + <actionGroup ref="logout" stepKey="logout"/> |
| 2020 | + </after> |
| 2021 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 2022 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 2023 | + </actionGroup> |
| 2024 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 2025 | + <argument name="group" value="PageBuilderSliderContentType"/> |
| 2026 | + </actionGroup> |
| 2027 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragSliderIntoStage"> |
| 2028 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 2029 | + </actionGroup> |
| 2030 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/> |
| 2031 | + <!-- Check that user can drag text when inline mode active --> |
| 2032 | + <comment userInput="Check that user can drag text when inline mode active" stepKey="commentDragTextIntoStage"/> |
| 2033 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupForText"> |
| 2034 | + <argument name="group" value="PageBuilderTextContentType"/> |
| 2035 | + </actionGroup> |
| 2036 | + <click selector="{{SlideOnBackend.tinymce('1')}}" stepKey="focusOnEditorArea"/> |
| 2037 | + <wait time="0.5" stepKey="waitForAnimation" /> |
| 2038 | + <seeElement selector="{{SlideOnBackend.tinymcePanel('1')}}" stepKey="panelVisible"/> |
| 2039 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragTextOntoStage"> |
| 2040 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 2041 | + </actionGroup> |
| 2042 | + <seeElement selector="{{SlideOnBackend.tinymcePanel('1')}}" stepKey="panelVisible1"/> |
| 2043 | + <!-- Check that user can drag column when inline mode active --> |
| 2044 | + <comment userInput="Check that user can drag column when inline mode active" stepKey="commentDragColumnIntoStage"/> |
| 2045 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupForColumn"> |
| 2046 | + <argument name="group" value="PageBuilderColumnContentType"/> |
| 2047 | + </actionGroup> |
| 2048 | + <click selector="{{SlideOnBackend.tinymce('1')}}" stepKey="focusOnEditorArea2"/> |
| 2049 | + <wait time="0.5" stepKey="waitForAnimation1" /> |
| 2050 | + <seeElement selector="{{SlideOnBackend.tinymcePanel('1')}}" stepKey="panelVisible2"/> |
| 2051 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnOntoStage"> |
| 2052 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 2053 | + </actionGroup> |
| 2054 | + <seeElement selector="{{SlideOnBackend.tinymcePanel('1')}}" stepKey="panelVisible3"/> |
| 2055 | + <!-- Activate inline edit mode --> |
| 2056 | + <comment userInput="Activate inline edit mode" stepKey="commentInputTextIntoStage"/> |
| 2057 | + <click selector="{{SlideOnBackend.tinymce('1')}}" stepKey="focusOnEditorArea3"/> |
| 2058 | + <wait time="0.5" stepKey="waitForAnimation2" /> |
| 2059 | + <seeElement selector="{{SlideOnBackend.tinymcePanel('1')}}" stepKey="panelVisible4"/> |
| 2060 | + |
| 2061 | + <!-- Verify that content types options are hidden --> |
| 2062 | + <comment userInput="Verify that content types options are hidden" stepKey="commentOptionsHidden"/> |
| 2063 | + <moveMouseOver selector="{{SliderInAdmin.sliderContainer}}" x="10" y="10" stepKey="onMouseOverSliderContentType"/> |
| 2064 | + <dontSeeElement selector="{{SlideOnBackend.optionsMenu('1')}}" stepKey="PageBuilderContentTypeOptionsMenuseeSlideOptionsPanelStillHidden"/> |
| 2065 | + <dontSeeElement selector="{{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenu(PageBuilderSliderContentType.role)}}" stepKey="PageBuilderContentTypeOptionsMenuseeSliderOptionsPanelStillHidden"/> |
| 2066 | + <moveMouseOver selector="{{TextOnBackend.textInstance}}" x="10" y="10" stepKey="onMouseOverTextContentType"/> |
| 2067 | + <dontSeeElement selector="{{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenuByIndex(PageBuilderTextContentType.role, '1')}}" stepKey="PageBuilderContentTypeOptionsMenuseeTextOptionsPanelStillHidden"/> |
| 2068 | + <moveMouseOver selector="{{ColumnOnBackend.base('1')}}" x="10" y="10" stepKey="onMouseOverFirstColumnContentType"/> |
| 2069 | + <dontSeeElement selector="{{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenuByIndex(PageBuilderColumnContentType.role, '2')}}" stepKey="PageBuilderContentTypeOptionsMenuseeColumnOptionsPanelStillHidden"/> |
| 2070 | + <moveMouseOver selector="{{ColumnOnBackend.base('1')}}" x="10" y="10" stepKey="onMouseOverSecondColumnContentType"/> |
| 2071 | + </test> |
1941 | 2072 | </tests>
|
0 commit comments