|
32 | 32 | <actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddSimpleProduct">
|
33 | 33 | <argument name="productType" value="simple"/>
|
34 | 34 | </actionGroup>
|
35 |
| - <fillField userInput="$$simpleProduct.name$$new" selector="{{AdminProductFormSection.productName}}" stepKey="fillName"/> |
36 |
| - <fillField userInput="$$simpleProduct.sku$$new" selector="{{AdminProductFormSection.productSku}}" stepKey="fillSKU"/> |
37 |
| - <fillField userInput="$$simpleProduct.price$$" selector="{{AdminProductFormSection.productPrice}}" stepKey="fillPrice"/> |
38 |
| - <fillField userInput="$$simpleProduct.quantity$$" selector="{{AdminProductFormSection.productQuantity}}" stepKey="fillQuantity"/> |
| 35 | + <actionGroup ref="AdminFillProductNameOnProductFormActionGroup" stepKey="fillName"> |
| 36 | + <argument name="productName" value="$$simpleProduct.name$$new"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="AdminFillProductSkuOnProductFormActionGroup" stepKey="fillSKU"> |
| 39 | + <argument name="productSku" value="$$simpleProduct.sku$$new"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="AdminFillProductPriceFieldAndPressEnterOnProductEditPageActionGroup" stepKey="fillPrice"> |
| 42 | + <argument name="price" value="$$simpleProduct.price$$"/> |
| 43 | + </actionGroup> |
| 44 | + <actionGroup ref="AdminFillProductQtyOnProductFormActionGroup" stepKey="fillQuantity"> |
| 45 | + <argument name="productQty" value="$$simpleProduct.quantity$$"/> |
| 46 | + </actionGroup> |
39 | 47 | <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSection"/>
|
40 | 48 | <fillField userInput="$$simpleProduct.custom_attributes[url_key]$$" selector="{{AdminProductSEOSection.urlKeyInput}}" stepKey="fillUrlKey"/>
|
41 | 49 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/>
|
42 |
| - <see userInput="The value specified in the URL Key field would generate a URL that already exists" selector="{{AdminProductMessagesSection.errorMessage}}" stepKey="assertErrorMessage"/> |
| 50 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="assertErrorMessage"> |
| 51 | + <argument name="messageType" value="error"/> |
| 52 | + <argument name="message" value="The value specified in the URL Key field would generate a URL that already exists"/> |
| 53 | + </actionGroup> |
43 | 54 | </test>
|
44 | 55 | </tests>
|
0 commit comments