|
1834 | 1834 | <argument name="height" value="70"/>
|
1835 | 1835 | </actionGroup>
|
1836 | 1836 | </test>
|
| 1837 | + <test name="BlockMove"> |
| 1838 | + <annotations> |
| 1839 | + <features value="PageBuilder"/> |
| 1840 | + <stories value="Block"/> |
| 1841 | + <title value="Move Block Between Columns"/> |
| 1842 | + <description value="Verify that moving a block content type on the stage will update the storefront"/> |
| 1843 | + <severity value="CRITICAL"/> |
| 1844 | + <useCaseId value="MC-3235"/> |
| 1845 | + <testCaseId value="MC-5839"/> |
| 1846 | + <group value="pagebuilder"/> |
| 1847 | + <group value="pagebuilder-block"/> |
| 1848 | + <group value="pagebuilder-column"/> |
| 1849 | + </annotations> |
| 1850 | + <before> |
| 1851 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1852 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1853 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1854 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 1855 | + </before> |
| 1856 | + <after> |
| 1857 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 1858 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1859 | + </after> |
| 1860 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1861 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1862 | + </actionGroup> |
| 1863 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage"> |
| 1864 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1865 | + </actionGroup> |
| 1866 | + <!-- Add Heading to Stage --> |
| 1867 | + <comment userInput="Add Heading to Stage" stepKey="commentAddHeadingToStage"/> |
| 1868 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1869 | + <argument name="group" value="PageBuilderHeadingContentType"/> |
| 1870 | + </actionGroup> |
| 1871 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingToColumn"> |
| 1872 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 1873 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1874 | + <argument name="containerTargetIndex" value="2" /> |
| 1875 | + </actionGroup> |
| 1876 | + <actionGroup ref="enterHeadingOnStage" stepKey="enterHeadingOnStage"> |
| 1877 | + <argument name="headingText" value="PageBuilderHeadingTextProperty"/> |
| 1878 | + </actionGroup> |
| 1879 | + <actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading"> |
| 1880 | + <argument name="index" value="1"/> |
| 1881 | + </actionGroup> |
| 1882 | + <!-- Add Block to Stage --> |
| 1883 | + <comment userInput="Add Block to Stage" stepKey="commentAddBlockToStage"/> |
| 1884 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupMedia"> |
| 1885 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1886 | + </actionGroup> |
| 1887 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragBlockToColumn"> |
| 1888 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1889 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1890 | + <argument name="containerTargetIndex" value="2" /> |
| 1891 | + </actionGroup> |
| 1892 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop"> |
| 1893 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1894 | + </actionGroup> |
| 1895 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1896 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 1897 | + </actionGroup> |
| 1898 | + <waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/> |
| 1899 | + <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/> |
| 1900 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1901 | + <!-- Validate Stage --> |
| 1902 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 1903 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateHeadingStage"> |
| 1904 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 1905 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1906 | + <argument name="positionInContainer" value="1"/> |
| 1907 | + <argument name="contentTypeIndex" value="1"/> |
| 1908 | + <argument name="containerTargetIndex" value="2"/> |
| 1909 | + </actionGroup> |
| 1910 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateBlockStage"> |
| 1911 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1912 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1913 | + <argument name="positionInContainer" value="2"/> |
| 1914 | + <argument name="contentTypeIndex" value="1"/> |
| 1915 | + <argument name="containerTargetIndex" value="2"/> |
| 1916 | + </actionGroup> |
| 1917 | + <!-- Move Block --> |
| 1918 | + <comment userInput="Move Block" stepKey="commentMoveBlock"/> |
| 1919 | + <actionGroup ref="moveContentTypeToContainer" stepKey="moveBlockToLeftColumn"> |
| 1920 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1921 | + <argument name="contentTypeIndex" value="1"/> |
| 1922 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1923 | + <argument name="containerTargetIndex" value="1"/> |
| 1924 | + </actionGroup> |
| 1925 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateHeadingStage2"> |
| 1926 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 1927 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1928 | + <argument name="contentTypeIndex" value="1"/> |
| 1929 | + <argument name="containerTargetIndex" value="2"/> |
| 1930 | + </actionGroup> |
| 1931 | + <actionGroup ref="validateContentTypeInsideContainerStage" stepKey="validateBlockStage2"> |
| 1932 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1933 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1934 | + <argument name="contentTypeIndex" value="1"/> |
| 1935 | + <argument name="containerTargetIndex" value="1"/> |
| 1936 | + </actionGroup> |
| 1937 | + <!-- Save Page --> |
| 1938 | + <comment userInput="Save Page" stepKey="commentSavePage"/> |
| 1939 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1940 | + <!-- Validate Storefront --> |
| 1941 | + <comment userInput="Validate Storefront" stepKey="validateStorefront"/> |
| 1942 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 1943 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1944 | + </actionGroup> |
| 1945 | + <actionGroup ref="validateContentTypeInsideContainerStorefront" stepKey="validateHeadingStorefront"> |
| 1946 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 1947 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1948 | + <argument name="contentTypeIndex" value="1"/> |
| 1949 | + <argument name="containerTargetIndex" value="2"/> |
| 1950 | + </actionGroup> |
| 1951 | + <actionGroup ref="validateContentTypeInsideContainerStorefront" stepKey="validateBlockStorefront"> |
| 1952 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1953 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1954 | + <argument name="contentTypeIndex" value="1"/> |
| 1955 | + <argument name="containerTargetIndex" value="1"/> |
| 1956 | + </actionGroup> |
| 1957 | + </test> |
1837 | 1958 | </tests>
|
0 commit comments