|
1172 | 1172 | <argument name="containerTargetIndex" value="1" />
|
1173 | 1173 | </actionGroup>
|
1174 | 1174 | </test>
|
| 1175 | + <test name="TabsRendersAndIsInteractiveAfterMovingToAnotherContainer"> |
| 1176 | + <annotations> |
| 1177 | + <features value="PageBuilder"/> |
| 1178 | + <stories value="Tab"/> |
| 1179 | + <title value="Tab Group - Validate Proper Rendering and Interactivity After Moving To Different Container"/> |
| 1180 | + <description value="Validate that tabs renders itself properly and retains its interactivity after moving to a different parent container."/> |
| 1181 | + <severity value="MAJOR"/> |
| 1182 | + <useCaseId value="MC-4294"/> |
| 1183 | + <testCaseId value="MC-4994"/> |
| 1184 | + <group value="pagebuilder"/> |
| 1185 | + <group value="pagebuilder-tab"/> |
| 1186 | + <group value="pagebuilder-tabGroup"/> |
| 1187 | + </annotations> |
| 1188 | + <before> |
| 1189 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1190 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 1191 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1192 | + </before> |
| 1193 | + <after> |
| 1194 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1195 | + </after> |
| 1196 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1197 | + <argument name="group" value="PageBuilderTabsContentType"/> |
| 1198 | + </actionGroup> |
| 1199 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragRowContentTypeToStage"> |
| 1200 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1201 | + </actionGroup> |
| 1202 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragTabsContentTypeToSecondRow"> |
| 1203 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 1204 | + <argument name="containerTargetType" value="PageBuilderRowContentType"/> |
| 1205 | + <argument name="containerTargetIndex" value="2"/> |
| 1206 | + </actionGroup> |
| 1207 | + <actionGroup ref="dragContentTypeToStageByIndex" stepKey="dragColumnContentTypeToSecondRowContentTypeOnStage"> |
| 1208 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1209 | + <argument name="contentTypeNumber" value="1"/> |
| 1210 | + </actionGroup> |
| 1211 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocus"/> |
| 1212 | + <actionGroup ref="moveContentTypeToContainer" stepKey="moveTabsIntoFirstColumn"> |
| 1213 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 1214 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1215 | + <argument name="containerTargetIndex" value="1"/> |
| 1216 | + </actionGroup> |
| 1217 | + <waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabAsActive"/> |
| 1218 | + <actionGroup ref="duplicateSmallContentType" stepKey="duplicateSmallContentType"> |
| 1219 | + <argument name="section" value="TabOnStage"/> |
| 1220 | + <argument name="targetIndex" value="1"/> |
| 1221 | + </actionGroup> |
| 1222 | + <waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('2')}}" stepKey="seeSecondTabAsActiveAfterDuplicating"/> |
| 1223 | + <!-- Change appearance of row and re-evaluate --> |
| 1224 | + <comment userInput="Change appearance of row and re-evaluate" stepKey="commentChangeAppearanceOfRowAndReevaluate"/> |
| 1225 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="loseFocus2"/> |
| 1226 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStageForFirstRow"> |
| 1227 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 1228 | + </actionGroup> |
| 1229 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRow1"> |
| 1230 | + <argument name="property" value="PageBuilderRowAppearance_FullWidth"/> |
| 1231 | + </actionGroup> |
| 1232 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsRow1"/> |
| 1233 | + <waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('2')}}" stepKey="seeSecondTabAsActiveAfterChangingRowAppearance"/> |
| 1234 | + <click selector="{{TabOnStage.tabHeader('1')}}" stepKey="switchToDefaultTab"/> |
| 1235 | + <waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeFirstTabAsActiveAfterClickingOnIt"/> |
| 1236 | + </test> |
1175 | 1237 | </tests>
|
0 commit comments