|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 11 | + <actionGroup name="AdminAssertProductInfoOnEditPageActionGroup"> |
| 12 | + <annotations> |
| 13 | + <description>Verifies the general data on the Edit product details page in admin for a product.</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="productStatus" defaultValue="{{_defaultProduct.status}}" type="string"/> |
| 17 | + <argument name="productAttributeSet" defaultValue="Default" type="string"/> |
| 18 | + <argument name="productName" defaultValue="{{_defaultProduct.name}}" type="string"/> |
| 19 | + <argument name="productSku" defaultValue="{{_defaultProduct.sku}}" type="string"/> |
| 20 | + <argument name="productPrice" defaultValue="{{_defaultProduct.price}}" type="string"/> |
| 21 | + <argument name="productQuantity" defaultValue="{{_defaultProduct.quantity}}" type="string"/> |
| 22 | + <argument name="productStockStatus" defaultValue="In Stock" type="string"/> |
| 23 | + <argument name="productWeight" defaultValue="{{_defaultProduct.weight}}" type="string"/> |
| 24 | + <argument name="productVisibility" defaultValue="Catalog, Search" type="string"/> |
| 25 | + <argument name="categoryNames" defaultValue="{{_defaultCategory.name}}" type="string"/> |
| 26 | + </arguments> |
| 27 | + <waitForElementVisible selector="{{AdminProductFormSection.productStatus}}" stepKey="waitForProductStatus"/> |
| 28 | + <seeElement selector="{{AdminProductFormSection.productStatusValue(productStatus)}}" stepKey="seeProductStatus"/> |
| 29 | + <seeOptionIsSelected selector="{{AdminProductFormSection.attributeSet}}" userInput="{{productAttributeSet}}" stepKey="seeProductAttributeSet"/> |
| 30 | + <seeInField selector="{{AdminProductFormSection.productName}}" userInput="{{productName}}" stepKey="seeProductName"/> |
| 31 | + <seeInField selector="{{AdminProductFormSection.productSku}}" userInput="{{productSku}}" stepKey="seeProductSku"/> |
| 32 | + <seeInField selector="{{AdminProductFormSection.productPrice}}" userInput="{{productPrice}}" stepKey="seeProductPrice"/> |
| 33 | + <seeInField selector="{{AdminProductFormSection.productQuantity}}" userInput="{{productQuantity}}" stepKey="seeProductQuantity"/> |
| 34 | + <seeInField selector="{{AdminProductFormSection.productStockStatus}}" userInput="{{productStockStatus}}" stepKey="seeProductStockStatus"/> |
| 35 | + <seeInField selector="{{AdminProductFormSection.productWeight}}" userInput="{{productWeight}}" stepKey="seeProductWeight"/> |
| 36 | + <seeOptionIsSelected selector="{{AdminProductFormSection.visibility}}" userInput="{{productVisibility}}" stepKey="seeProductVisibility"/> |
| 37 | + <seeElement selector="{{AdminProductFormSection.categories(categoryNames)}}" stepKey="seeProductCategories"/> |
| 38 | + </actionGroup> |
| 39 | +</actionGroups> |
0 commit comments