|
1739 | 1739 | <argument name="index" value="3"/>
|
1740 | 1740 | </actionGroup>
|
1741 | 1741 | </test>
|
| 1742 | + <test name="AdvancedConfigurationInvalidMargins"> |
| 1743 | + <annotations> |
| 1744 | + <features value="PageBuilder"/> |
| 1745 | + <stories value="Advanced Configuration"/> |
| 1746 | + <title value="Invalid - Margins"/> |
| 1747 | + <description value="A user cannot add an invalid value for margins"/> |
| 1748 | + <severity value="MAJOR"/> |
| 1749 | + <useCaseId value="MAGETWO-83415"/> |
| 1750 | + <testCaseId value="MC-4195"/> |
| 1751 | + <group value="pagebuilder"/> |
| 1752 | + <group value="pagebuilder-advancedConfig"/> |
| 1753 | + </annotations> |
| 1754 | + <before> |
| 1755 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1756 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1757 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1758 | + </before> |
| 1759 | + <after> |
| 1760 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1761 | + </after> |
| 1762 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 1763 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 1764 | + </actionGroup> |
| 1765 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1766 | + <argument name="group" value="PageBuilderTextContentType"/> |
| 1767 | + </actionGroup> |
| 1768 | + <!-- Add Text to Stage --> |
| 1769 | + <comment userInput="Add Text to Stage" stepKey="commentAddTextToStage"/> |
| 1770 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragTextIntoStage"> |
| 1771 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 1772 | + <argument name="containerTargetType" value="PageBuilderRowContentType"/> |
| 1773 | + <argument name="containerTargetIndex" value="1"/> |
| 1774 | + <argument name="contentTypeIndex" value="1"/> |
| 1775 | + </actionGroup> |
| 1776 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusEditor"/> |
| 1777 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStage"> |
| 1778 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 1779 | + <argument name="contentTypeIndex" value="1"/> |
| 1780 | + </actionGroup> |
| 1781 | + <actionGroup ref="addTextToTinyMCE" stepKey="enterText"> |
| 1782 | + <argument name="property" value="PageBuilderTextProperty"/> |
| 1783 | + </actionGroup> |
| 1784 | + <!-- Add Invalid Margin: NonNumeric - Margin Top --> |
| 1785 | + <comment userInput="Add Invalid Margin: NonNumeric - Margin Top" stepKey="commentNonNumericMarginTop"/> |
| 1786 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillNonNumericMarginTop"> |
| 1787 | + <argument name="field" value="marginTop"/> |
| 1788 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidString}}"/> |
| 1789 | + </actionGroup> |
| 1790 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorNonNumericMarginTop"> |
| 1791 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1792 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidStringError}}"/> |
| 1793 | + </actionGroup> |
| 1794 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearNonNumericMarginTop"> |
| 1795 | + <argument name="field" value="marginTop"/> |
| 1796 | + <argument name="value" value=""/> |
| 1797 | + </actionGroup> |
| 1798 | + <!-- Add Invalid Margin: NonNumeric - Margin Right --> |
| 1799 | + <comment userInput="Add Invalid Margin: NonNumeric - Margin Right" stepKey="commentNonNumericMarginRight"/> |
| 1800 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillNonNumericMarginRight"> |
| 1801 | + <argument name="field" value="marginRight"/> |
| 1802 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidString}}"/> |
| 1803 | + </actionGroup> |
| 1804 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorNonNumericMarginRight"> |
| 1805 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1806 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidStringError}}"/> |
| 1807 | + </actionGroup> |
| 1808 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearNonNumericMarginRight"> |
| 1809 | + <argument name="field" value="marginRight"/> |
| 1810 | + <argument name="value" value=""/> |
| 1811 | + </actionGroup> |
| 1812 | + <!-- Add Invalid Margin: NonNumeric - Margin Bottom --> |
| 1813 | + <comment userInput="Add Invalid Margin: NonNumeric - Margin Bottom" stepKey="commentNonNumericMarginBottom"/> |
| 1814 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillNonNumericMarginBottom"> |
| 1815 | + <argument name="field" value="marginBottom"/> |
| 1816 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidString}}"/> |
| 1817 | + </actionGroup> |
| 1818 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorNonNumericMarginBottom"> |
| 1819 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1820 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidStringError}}"/> |
| 1821 | + </actionGroup> |
| 1822 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearNonNumericMarginBottom"> |
| 1823 | + <argument name="field" value="marginBottom"/> |
| 1824 | + <argument name="value" value=""/> |
| 1825 | + </actionGroup> |
| 1826 | + <!-- Add Invalid Margin: NonNumeric - Margin Left --> |
| 1827 | + <comment userInput="Add Invalid Margin: NonNumeric - Margin Left" stepKey="commentNonNumericMarginLeft"/> |
| 1828 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillNonNumericMarginLeft"> |
| 1829 | + <argument name="field" value="marginLeft"/> |
| 1830 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidString}}"/> |
| 1831 | + </actionGroup> |
| 1832 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorNonNumericMarginLeft"> |
| 1833 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1834 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidStringError}}"/> |
| 1835 | + </actionGroup> |
| 1836 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearNonNumericMarginLeft"> |
| 1837 | + <argument name="field" value="marginLeft"/> |
| 1838 | + <argument name="value" value=""/> |
| 1839 | + </actionGroup> |
| 1840 | + <!-- Add Invalid Margin: Invalid Min - Margin Top --> |
| 1841 | + <comment userInput="Add Invalid Margin: Invalid Min - Margin Top" stepKey="commentInvalidMinMarginTop"/> |
| 1842 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillInvalidMinMarginTop"> |
| 1843 | + <argument name="field" value="marginTop"/> |
| 1844 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMin}}"/> |
| 1845 | + </actionGroup> |
| 1846 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorInvalidMinMarginTop"> |
| 1847 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1848 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMinError}}"/> |
| 1849 | + </actionGroup> |
| 1850 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearInvalidMinMarginTop"> |
| 1851 | + <argument name="field" value="marginTop"/> |
| 1852 | + <argument name="value" value=""/> |
| 1853 | + </actionGroup> |
| 1854 | + <!-- Add Invalid Margin: Invalid Min - Margin Right --> |
| 1855 | + <comment userInput="Add Invalid Margin: Invalid Min - Margin Right" stepKey="commentInvalidMinMarginRight"/> |
| 1856 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillInvalidMinMarginRight"> |
| 1857 | + <argument name="field" value="marginRight"/> |
| 1858 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMin}}"/> |
| 1859 | + </actionGroup> |
| 1860 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorInvalidMinMarginRight"> |
| 1861 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1862 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMinError}}"/> |
| 1863 | + </actionGroup> |
| 1864 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearInvalidMinMarginRight"> |
| 1865 | + <argument name="field" value="marginRight"/> |
| 1866 | + <argument name="value" value=""/> |
| 1867 | + </actionGroup> |
| 1868 | + <!-- Add Invalid Margin: Invalid Min - Margin Bottom --> |
| 1869 | + <comment userInput="Add Invalid Margin: Invalid Min - Margin Bottom" stepKey="commentInvalidMinMarginBottom"/> |
| 1870 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillInvalidMinMarginBottom"> |
| 1871 | + <argument name="field" value="marginBottom"/> |
| 1872 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMin}}"/> |
| 1873 | + </actionGroup> |
| 1874 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorInvalidMinMarginBottom"> |
| 1875 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1876 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMinError}}"/> |
| 1877 | + </actionGroup> |
| 1878 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearInvalidMinMarginBottom"> |
| 1879 | + <argument name="field" value="marginBottom"/> |
| 1880 | + <argument name="value" value=""/> |
| 1881 | + </actionGroup> |
| 1882 | + <!-- Add Invalid Margin: Invalid Min - Margin Left --> |
| 1883 | + <comment userInput="Add Invalid Margin: Invalid Min - Margin Left" stepKey="commentInvalidMinMarginLeft"/> |
| 1884 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="fillInvalidMinMarginLeft"> |
| 1885 | + <argument name="field" value="marginLeft"/> |
| 1886 | + <argument name="value" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMin}}"/> |
| 1887 | + </actionGroup> |
| 1888 | + <actionGroup ref="validateMarginsOrPaddingError" stepKey="validateErrorInvalidMinMarginLeft"> |
| 1889 | + <argument name="property" value="PageBuilderAdvancedMarginsAndPaddingBoundaryData"/> |
| 1890 | + <argument name="errorMessage" value="{{PageBuilderAdvancedMarginsAndPaddingBoundaryData.invalidMinError}}"/> |
| 1891 | + </actionGroup> |
| 1892 | + <actionGroup ref="fillSlideOutPanelSingleFieldMarginsOrPadding" stepKey="clearInvalidMinMarginLeft"> |
| 1893 | + <argument name="field" value="marginLeft"/> |
| 1894 | + <argument name="value" value=""/> |
| 1895 | + </actionGroup> |
| 1896 | + <!-- User can recover after invalid input --> |
| 1897 | + <comment userInput="User can recover after invalid input" stepKey="commentCanRecover"/> |
| 1898 | + <actionGroup ref="fillSlideOutPanelFieldMargins" stepKey="enterMargins"> |
| 1899 | + <argument name="property" value="PageBuilderMarginsPropertyDefault"/> |
| 1900 | + </actionGroup> |
| 1901 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1902 | + <actionGroup ref="validateAdvancedStyleWithNoAlignment" stepKey="validateStage"> |
| 1903 | + <argument name="page" value="TextOnStage"/> |
| 1904 | + <argument name="margin" value="PageBuilderMarginsPropertyDefault"/> |
| 1905 | + <argument name="index" value="1"/> |
| 1906 | + </actionGroup> |
| 1907 | + </test> |
1742 | 1908 | <test name="AdvancedConfigurationFunctionalMargins">
|
1743 | 1909 | <annotations>
|
1744 | 1910 | <features value="PageBuilder"/>
|
1745 | 1911 | <stories value="Advanced Configuration"/>
|
1746 | 1912 | <title value="Functional - Margins"/>
|
1747 | 1913 | <description value="Tests that the Margin attributes functions as expected on Stage and Storefront for Text"/>
|
1748 |
| - <severity value="CRITICAL"/> |
| 1914 | + <severity value="MAJOR"/> |
1749 | 1915 | <useCaseId value="MAGETWO-83415"/>
|
1750 | 1916 | <testCaseId value="MC-2606"/>
|
1751 | 1917 | <group value="pagebuilder"/>
|
1752 | 1918 | <group value="pagebuilder-advancedConfig"/>
|
1753 |
| - <skip> |
1754 |
| - <issueId value="MC-3723"/> |
1755 |
| - </skip> |
1756 | 1919 | </annotations>
|
1757 | 1920 | <before>
|
1758 | 1921 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
1879 | 2042 | <argument name="property" value="PageBuilderTextProperty"/>
|
1880 | 2043 | </actionGroup>
|
1881 | 2044 | <actionGroup ref="fillSlideOutPanelFieldMargins" stepKey="enterMargins5">
|
1882 |
| - <argument name="property" value="PageBuilderMarginsPropertyInvalid"/> |
| 2045 | + <argument name="property" value="PageBuilderMarginsProperty_NonNumeric"/> |
1883 | 2046 | </actionGroup>
|
1884 | 2047 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings5"/>
|
1885 | 2048 | <!-- Stage: Check Margins: Empty -->
|
|
0 commit comments