|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminCreateSimpleProductCommaSeparatedPriceTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Catalog"/> |
| 13 | + <stories value="Create a Simple Product via Admin"/> |
| 14 | + <title value="Admin should not be able to create a product with a comma separated price"/> |
| 15 | + <description value="Admin should not be able to create a product with a comma separated price"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="AC-2928"/> |
| 18 | + <useCaseId value="ACP2E-420"/> |
| 19 | + <group value="product"/> |
| 20 | + </annotations> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 22 | + <actionGroup ref="AdminOpenNewProductFormPageActionGroup" stepKey="goToCreateProduct"/> |
| 23 | + <actionGroup ref="FillMainProductFormByStringActionGroup" stepKey="fillPrice"> |
| 24 | + <argument name="productName" value="{{SimpleProduct.name}}"/> |
| 25 | + <argument name="productSku" value="{{SimpleProduct.sku}}"/> |
| 26 | + <argument name="productPrice" value="33,444"/> |
| 27 | + <argument name="productQuantity" value="{{SimpleProduct.quantity}}"/> |
| 28 | + <argument name="productStatus" value="{{SimpleProduct.status}}"/> |
| 29 | + <argument name="productWeight" value="{{SimpleProduct.weight}}"/> |
| 30 | + </actionGroup> |
| 31 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSave"/> |
| 32 | + <actionGroup ref="AssertAdminValidationErrorAppearedForPriceFieldOnProductEditPageActionGroup" stepKey="seePriceValidationError"> |
| 33 | + <argument name="errorMessage" value="Please enter a number 0 or greater in this field."/> |
| 34 | + </actionGroup> |
| 35 | + </test> |
| 36 | +</tests> |
0 commit comments