|
1298 | 1298 | <seeElement selector="{{HeadingOnStorefront.headingType(PageBuilderHeadingTypeProperty_H1.value, '1')}}" stepKey="seeHeadingStyleStorefront"/>
|
1299 | 1299 | <seeElement selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H1.value, PageBuilderHeadingTextProperty.value, '1')}}" stepKey="seeHeadingTextStorefront"/>
|
1300 | 1300 | </test>
|
| 1301 | + <test name="HtmlAddToCatalogProduct"> |
| 1302 | + <annotations> |
| 1303 | + <features value="PageBuilder"/> |
| 1304 | + <stories value="Catalog Products"/> |
| 1305 | + <title value="HTML code add to catalog product"/> |
| 1306 | + <description value="Verify adding HTML code to catalog product is rendered correctly"/> |
| 1307 | + <severity value="CRITICAL"/> |
| 1308 | + <useCaseId value="MC-14970"/> |
| 1309 | + <testCaseId value="MC-14976"/> |
| 1310 | + <group value="pagebuilder"/> |
| 1311 | + <group value="pagebuilder-html"/> |
| 1312 | + <group value="pagebuilder-column"/> |
| 1313 | + <group value="pagebuilder-catalog-product"/> |
| 1314 | + </annotations> |
| 1315 | + <before> |
| 1316 | + <createData entity="_defaultCategory" stepKey="createPreReqCategory"/> |
| 1317 | + <createData entity="_defaultProduct" stepKey="createProduct"> |
| 1318 | + <requiredEntity createDataKey="createPreReqCategory"/> |
| 1319 | + </createData> |
| 1320 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1321 | + <actionGroup ref="navigateToCreatedProductEditPage" stepKey="navigateToCreatedProductEditPage"> |
| 1322 | + <argument name="product" value="$$createProduct$$"/> |
| 1323 | + </actionGroup> |
| 1324 | + <actionGroup ref="expandAdminProductSection" stepKey="expandAdminProductSection"/> |
| 1325 | + <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"/> |
| 1326 | + </before> |
| 1327 | + <after> |
| 1328 | + <deleteData createDataKey="createProduct" stepKey="deleteCreatedProduct"/> |
| 1329 | + <deleteData createDataKey="createPreReqCategory" stepKey="deleteCreatedCategory"/> |
| 1330 | + <actionGroup ref="NavigateToAndResetProductGridToDefaultView" stepKey="NavigateToAndResetProductGridToDefaultView"/> |
| 1331 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1332 | + </after> |
| 1333 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionMedia"> |
| 1334 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 1335 | + </actionGroup> |
| 1336 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragHtmlIntoStage"> |
| 1337 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 1338 | + </actionGroup> |
| 1339 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop"> |
| 1340 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 1341 | + </actionGroup> |
| 1342 | + <!-- Update Edit Panel --> |
| 1343 | + <comment userInput="Update Edit Panel" stepKey="commentEdit"/> |
| 1344 | + <actionGroup ref="fillSlideOutPanelTextArea" stepKey="enterHtmlContent"> |
| 1345 | + <argument name="property" value="PageBuilderHtmlPropertyButton"/> |
| 1346 | + </actionGroup> |
| 1347 | + <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditFormForSlide"/> |
| 1348 | + <!-- Validate Stage --> |
| 1349 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 1350 | + <waitForElementVisible selector="{{HtmlOnStage.base('1')}}" stepKey="waitForHtmlBaseStage"/> |
| 1351 | + <seeElement selector="{{HtmlOnStage.html('1', PageBuilderHtmlPropertyButton.selector)}}" stepKey="seeHtmlOnStage"/> |
| 1352 | + <!-- Save Product --> |
| 1353 | + <comment userInput="Save Product" stepKey="commentSaveProduct"/> |
| 1354 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 1355 | + <actionGroup ref="saveProductForm" stepKey="saveProduct"/> |
| 1356 | + <waitForPageLoad stepKey="waitForPageLoadSaveProduct"/> |
| 1357 | + <actionGroup ref="expandAdminProductSection" stepKey="expandAdminProductSection"/> |
| 1358 | + <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"/> |
| 1359 | + <!-- Validate Stage After Save --> |
| 1360 | + <comment userInput="Validate Stage After Save" stepKey="commentValidateStageAfterSave"/> |
| 1361 | + <waitForElementVisible selector="{{HtmlOnStage.base('1')}}" stepKey="waitForHtmlBaseStageAfterSave"/> |
| 1362 | + <seeElement selector="{{HtmlOnStage.html('1', PageBuilderHtmlPropertyButton.selector)}}" stepKey="seeHtmlOnStageAfterSave"/> |
| 1363 | + <!-- Validate Storefront --> |
| 1364 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 1365 | + <actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToProductStorefront"> |
| 1366 | + <argument name="page" value="$$createProduct.name$$.html"/> |
| 1367 | + </actionGroup> |
| 1368 | + <scrollTo selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="scrollToProductDescription"/> |
| 1369 | + <waitForElementVisible selector="{{HtmlOnStorefront.base('1')}}" stepKey="waitForHtmlBaseStageStorefront"/> |
| 1370 | + <seeElement selector="{{HtmlOnStorefront.html('1', PageBuilderHtmlPropertyButton.selectorOnFrontend)}}" stepKey="seeHtmlOnStorefront"/> |
| 1371 | + </test> |
1301 | 1372 | </tests>
|
0 commit comments