|
1832 | 1832 | <argument name="containerTargetIndex" value="1" />
|
1833 | 1833 | </actionGroup>
|
1834 | 1834 | </test>
|
| 1835 | + <test name="RowValidateBorderOnAppearanceChange"> |
| 1836 | + <annotations> |
| 1837 | + <features value="PageBuilder"/> |
| 1838 | + <stories value="Row"/> |
| 1839 | + <title value="Row border should change to correct element"/> |
| 1840 | + <description value="A user should be able to change the appearance on a row and see the border update as expected"/> |
| 1841 | + <severity value="MAJOR"/> |
| 1842 | + <useCaseId value="MC-4126"/> |
| 1843 | + <testCaseId value="MC-4229"/> |
| 1844 | + <group value="pagebuilder"/> |
| 1845 | + <group value="pagebuilder-row"/> |
| 1846 | + </annotations> |
| 1847 | + <before> |
| 1848 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1849 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1850 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1851 | + </before> |
| 1852 | + <after> |
| 1853 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1854 | + </after> |
| 1855 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 1856 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1857 | + </actionGroup> |
| 1858 | + <!-- Select full width appearance --> |
| 1859 | + <comment userInput="Select full width appearance" stepKey="commentFullWidth"/> |
| 1860 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRowFullWidth"> |
| 1861 | + <argument name="property" value="PageBuilderRowAppearance_FullWidth"/> |
| 1862 | + </actionGroup> |
| 1863 | + <!-- I configure border within advanced section --> |
| 1864 | + <comment userInput="I configure border within advanced section" stepKey="commentConfigureBorder"/> |
| 1865 | + <actionGroup ref="selectSlideOutPanelField" stepKey="enterBorder"> |
| 1866 | + <argument name="property" value="PageBuilderAdvancedBorderPropertyDouble"/> |
| 1867 | + </actionGroup> |
| 1868 | + <actionGroup ref="fillOutColorPicker" stepKey="fillOutColor"> |
| 1869 | + <argument name="colorCode" value="PageBuilderAdvancedBorderColorProperty_green"/> |
| 1870 | + </actionGroup> |
| 1871 | + <actionGroup ref="seeInFieldSlideOutPropertyAlternate" stepKey="seeHEXInField7"> |
| 1872 | + <argument name="property" value="PageBuilderAdvancedBorderColorProperty_green"/> |
| 1873 | + </actionGroup> |
| 1874 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBorderWidth"> |
| 1875 | + <argument name="property" value="PageBuilderAdvancedBorderWidthProperty10"/> |
| 1876 | + </actionGroup> |
| 1877 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1878 | + <waitForElementVisible selector="{{RowOnStage.base('1')}}" stepKey="waitForElementVisible"/> |
| 1879 | + <waitForElementVisible selector="{{RowOnStage.border('1', PageBuilderAdvancedBorderPropertyDouble.value)}}" stepKey="waitForBorderVisible"/> |
| 1880 | + <waitForElementVisible selector="{{RowOnStage.borderColor('1', PageBuilderAdvancedBorderColorProperty_green.rbg)}}" stepKey="waitForBorderColorVisible"/> |
| 1881 | + <waitForElementVisible selector="{{RowOnStage.borderWidth('1', PageBuilderAdvancedBorderWidthProperty10.value)}}" stepKey="waitForBorderWidthVisible"/> |
| 1882 | + <!-- Change appearance to contained --> |
| 1883 | + <comment userInput="Change appearance to contained" stepKey="commentContained"/> |
| 1884 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage1"> |
| 1885 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1886 | + </actionGroup> |
| 1887 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRowContained"> |
| 1888 | + <argument name="property" value="PageBuilderRowAppearance_Contained"/> |
| 1889 | + </actionGroup> |
| 1890 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/> |
| 1891 | + <waitForElementVisible selector="{{RowOnStage.base('1')}}" stepKey="waitForElementVisible1"/> |
| 1892 | + <waitForElementVisible selector="{{RowOnStage.border('1', PageBuilderAdvancedBorderPropertyDouble.value)}}" stepKey="waitForBorderVisible1"/> |
| 1893 | + <waitForElementVisible selector="{{RowOnStage.borderColor('1', PageBuilderAdvancedBorderColorProperty_green.rbg)}}" stepKey="waitForBorderColorVisible1"/> |
| 1894 | + <waitForElementVisible selector="{{RowOnStage.borderWidth('1', PageBuilderAdvancedBorderWidthProperty10.value)}}" stepKey="waitForBorderWidthVisible1"/> |
| 1895 | + <!-- Verify the border is not on the outside of the contained row --> |
| 1896 | + <comment userInput="Verify the border is not on the outside of the contained row" stepKey="commentVerifyBorder"/> |
| 1897 | + <dontSeeElement selector="{{RowOnStage_Contained_Invalid.border('1', PageBuilderAdvancedBorderPropertyDouble.value)}}" stepKey="dontSeeBorderOnOutside" /> |
| 1898 | + <dontSeeElement selector="{{RowOnStage_Contained_Invalid.borderColor('1', PageBuilderAdvancedBorderColorProperty_green.rbg)}}" stepKey="dontSeeBorderColorOnOutside" /> |
| 1899 | + <dontSeeElement selector="{{RowOnStage_Contained_Invalid.borderWidth('1', PageBuilderAdvancedBorderWidthProperty10.value)}}" stepKey="dontSeeBorderWidthOnOutside" /> |
| 1900 | + </test> |
1835 | 1901 | </tests>
|
0 commit comments