|
102 | 102 | <argument name="verticalAlignContainer" value="PageBuilderVerticalAlignmentPropertyTop"/>
|
103 | 103 | </actionGroup>
|
104 | 104 | </test>
|
| 105 | + <test name="TabItemMinHeightInvalidInputs"> |
| 106 | + <annotations> |
| 107 | + <features value="PageBuilder"/> |
| 108 | + <stories value="Tab"/> |
| 109 | + <title value="Tab Item Min Height Invalid Inputs"/> |
| 110 | + <description value="A user cannot submit an invalid min height value for tab"/> |
| 111 | + <severity value="CRITICAL"/> |
| 112 | + <useCaseId value="MC-931"/> |
| 113 | + <testCaseId value="MC-3439"/> |
| 114 | + <group value="pagebuilder"/> |
| 115 | + <group value="pagebuilder-tabs"/> |
| 116 | + <group value="pagebuilder-tabsLayout"/> |
| 117 | + </annotations> |
| 118 | + <before> |
| 119 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 120 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 121 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 122 | + </before> |
| 123 | + <after> |
| 124 | + <actionGroup ref="logout" stepKey="logout"/> |
| 125 | + </after> |
| 126 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle1"> |
| 127 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 128 | + </actionGroup> |
| 129 | + <!-- Add Tabs to Stage --> |
| 130 | + <comment userInput="Add tabs to stage" stepKey="commentAddTabsToStage"/> |
| 131 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 132 | + <argument name="group" value="PageBuilderTabsContentType"/> |
| 133 | + </actionGroup> |
| 134 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragTabsIntoStage"> |
| 135 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 136 | + </actionGroup> |
| 137 | + <actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditPanel"> |
| 138 | + <argument name="section" value="TabOnStage"/> |
| 139 | + </actionGroup> |
| 140 | + <!-- Enter Height: NonNumeric --> |
| 141 | + <comment userInput="Enter Height: NonNumeric" stepKey="commentEnterHeightNonNumeric"/> |
| 142 | + <actionGroup ref="fillSlideOutPanelFieldAndExpectToSeeErrorInFieldset" stepKey="enterMinHeightPropertyNonNumeric"> |
| 143 | + <argument name="property" value="PageBuilderMinHeightProperty_NonNumeric"/> |
| 144 | + </actionGroup> |
| 145 | + <actionGroup ref="saveEditPanelAndValidateFieldError" stepKey="validateErrorNonNumeric"> |
| 146 | + <argument name="property" value="PageBuilderMinHeightProperty_NonNumeric"/> |
| 147 | + </actionGroup> |
| 148 | + <!-- Enter Height: Negative --> |
| 149 | + <comment userInput="Enter Height: Negative" stepKey="commentEnterHeightNegative"/> |
| 150 | + <actionGroup ref="fillSlideOutPanelFieldAndExpectToSeeErrorInFieldset" stepKey="enterMinHeightPropertyNegative"> |
| 151 | + <argument name="property" value="PageBuilderMinHeightProperty_Negative1"/> |
| 152 | + </actionGroup> |
| 153 | + <actionGroup ref="saveEditPanelAndValidateFieldError" stepKey="validateErrorNegative"> |
| 154 | + <argument name="property" value="PageBuilderMinHeightProperty_Negative1"/> |
| 155 | + </actionGroup> |
| 156 | + <!-- Enter Height: Valid After Invalid --> |
| 157 | + <comment userInput="Enter Height: Valid After Invalid" stepKey="commentEnterHeightValidAfterInvalid"/> |
| 158 | + <actionGroup ref="fillSlideOutPanelField" stepKey="enterMinHeightPropertyValid"> |
| 159 | + <argument name="property" value="PageBuilderMinHeightProperty_500"/> |
| 160 | + </actionGroup> |
| 161 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 162 | + <!-- Verify Valid Height After Invalid - Before Save --> |
| 163 | + <comment userInput="Verify valid height after invalid on stage before save" stepKey="commentVerifyValidHeightAfterInvalidBeforeSave"/> |
| 164 | + <waitForElementVisible selector="{{TabOnStage.minHeight('1', PageBuilderMinHeightProperty_500.value)}}" stepKey="seeTabMinHeight"/> |
| 165 | + <!-- Verify Valid Height After Invalid - After Save --> |
| 166 | + <comment userInput="Verify valid height after invalid on stage after save" stepKey="commentVerifyHeightAfterInvalidOnStageAfterSave"/> |
| 167 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 168 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 169 | + <waitForElementVisible selector="{{TabOnStage.minHeight('1', PageBuilderMinHeightProperty_500.value)}}" stepKey="seeTabMinHeightAfterSave"/> |
| 170 | + </test> |
105 | 171 | <test name="TabContentIsVerticallyAligned">
|
106 | 172 | <annotations>
|
107 | 173 | <features value="PageBuilder"/>
|
|
0 commit comments