|
1140 | 1140 | </actionGroup>
|
1141 | 1141 | <dontSeeElementInDOM selector="{{ProductsOnStorefront.product('1')}}" stepKey="validateNoProductsOnStorefront" after="navigateToCMSPageStorefront2"/>
|
1142 | 1142 | </test>
|
| 1143 | + <test name="AdminPageBuilderProductsGridValidateCanSaveProductsWithEmptyConditions"> |
| 1144 | + <annotations> |
| 1145 | + <features value="PageBuilder"/> |
| 1146 | + <stories value="Products"/> |
| 1147 | + <title value="Grid - Validate Can Save Products with Empty Condition"/> |
| 1148 | + <description value="Validate that a user can save a Products content type without any conditions set"/> |
| 1149 | + <severity value="CRITICAL"/> |
| 1150 | + <useCaseId value="PB-207"/> |
| 1151 | + <testCaseId value="MC-22880"/> |
| 1152 | + <group value="pagebuilder"/> |
| 1153 | + <group value="pagebuilder-products"/> |
| 1154 | + <group value="pagebuilder-productsGrid"/> |
| 1155 | + </annotations> |
| 1156 | + <before> |
| 1157 | + <createData entity="PageBuilderProductsSubCategory" stepKey="createCategory"/> |
| 1158 | + <createData entity="_defaultProduct" stepKey="createProduct"> |
| 1159 | + <requiredEntity createDataKey="createCategory"/> |
| 1160 | + </createData> |
| 1161 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 1162 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1163 | + <actionGroup ref="navigateToCMSPage" stepKey="navigateToCMSPage"> |
| 1164 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 1165 | + </actionGroup> |
| 1166 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1167 | + </before> |
| 1168 | + <after> |
| 1169 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 1170 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 1171 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 1172 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1173 | + </after> |
| 1174 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionAddContent"> |
| 1175 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 1176 | + </actionGroup> |
| 1177 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragProductsIntoStage"> |
| 1178 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 1179 | + </actionGroup> |
| 1180 | + <!-- Validate: Empty Category Condition --> |
| 1181 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditPanel"> |
| 1182 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 1183 | + </actionGroup> |
| 1184 | + <actionGroup ref="chooseVisualSelectOption" stepKey="selectAppearance"> |
| 1185 | + <argument name="property" value="PageBuilderProductsProductGridAppearance"/> |
| 1186 | + </actionGroup> |
| 1187 | + <actionGroup ref="chooseVisualSelectOption" stepKey="chooseSelectProductsBy"> |
| 1188 | + <argument name="property" value="PageBuilderProductsSelectProductsByCategory"/> |
| 1189 | + </actionGroup> |
| 1190 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1191 | + <actionGroup ref="validateEmptyProductsContainer" stepKey="validateEmptyProductsContainerOnStage"/> |
| 1192 | + <!-- Validate: Empty SKU Condition --> |
| 1193 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditPanel2"> |
| 1194 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 1195 | + </actionGroup> |
| 1196 | + <actionGroup ref="chooseVisualSelectOption" stepKey="chooseSelectProductsBy2"> |
| 1197 | + <argument name="property" value="PageBuilderProductsSelectProductsBySKU"/> |
| 1198 | + </actionGroup> |
| 1199 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/> |
| 1200 | + <actionGroup ref="validateEmptyProductsContainer" stepKey="validateEmptyProductsContainerOnStage2"/> |
| 1201 | + <!-- Validate: Empty Conditions --> |
| 1202 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditPanel3"> |
| 1203 | + <argument name="contentType" value="PageBuilderProductsContentType"/> |
| 1204 | + </actionGroup> |
| 1205 | + <actionGroup ref="chooseVisualSelectOption" stepKey="chooseSelectProductsBy3"> |
| 1206 | + <argument name="property" value="PageBuilderProductsSelectProductsByCondition"/> |
| 1207 | + </actionGroup> |
| 1208 | + <actionGroup ref="selectSlideOutPanelFieldGeneral" stepKey="enterSortBy3"> |
| 1209 | + <argument name="property" value="PageBuilderProductsSortByNewestTop"/> |
| 1210 | + </actionGroup> |
| 1211 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterProductsCount3"> |
| 1212 | + <argument name="property" value="PageBuilderProductsCountPropertyMax"/> |
| 1213 | + </actionGroup> |
| 1214 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings3"/> |
| 1215 | + <actionGroup ref="validateProductInProducts" stepKey="validateProductOnStage3"> |
| 1216 | + <argument name="product" value="_defaultProduct"/> |
| 1217 | + </actionGroup> |
| 1218 | + </test> |
1143 | 1219 | </tests>
|
0 commit comments