|
40 | 40 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
|
41 | 41 | <see userInput="The value specified in the URL Key field would generate a URL that already exists" selector="{{AdminProductMessagesSection.errorMessage}}" stepKey="assertErrorMessage"/>
|
42 | 42 | </test>
|
| 43 | + <test name="AdminCreateProductDuplicateProductTest"> |
| 44 | + <annotations> |
| 45 | + <features value="Catalog"/> |
| 46 | + <stories value="Validation Errors"/> |
| 47 | + <title value="No validation errors when trying to duplicate product twice"/> |
| 48 | + <description value="No validation errors when trying to duplicate product twice"/> |
| 49 | + <severity value="MAJOR"/> |
| 50 | + <testCaseId value="MC-5472"/> |
| 51 | + <group value="product"/> |
| 52 | + </annotations> |
| 53 | + <before> |
| 54 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 55 | + <createData entity="SimpleProduct" stepKey="createSimpleProduct"> |
| 56 | + <requiredEntity createDataKey="createCategory"/> |
| 57 | + </createData> |
| 58 | + </before> |
| 59 | + <after> |
| 60 | + <!--Delete all products by filtering grid and using mass delete action--> |
| 61 | + <actionGroup ref="deleteAllDuplicateProductUsingProductGrid" stepKey="deleteAllDuplicateProducts"> |
| 62 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 63 | + </actionGroup> |
| 64 | + <deleteData createDataKey="createCategory" stepKey="deletePreReqCatalog" /> |
| 65 | + <actionGroup ref="logout" stepKey="logout"/> |
| 66 | + </after> |
| 67 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 68 | + <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForSimpleProduct1"> |
| 69 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 70 | + </actionGroup> |
| 71 | + <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct1"> |
| 72 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 73 | + </actionGroup> |
| 74 | + <!--Save and duplicated the product once--> |
| 75 | + <actionGroup ref="AdminFormSaveAndDuplicate" stepKey="saveAndDuplicateProductForm1"/> |
| 76 | + <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForSimpleProduct2"> |
| 77 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 78 | + </actionGroup> |
| 79 | + <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct2"> |
| 80 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 81 | + </actionGroup> |
| 82 | + <!--Save and duplicated the product second time--> |
| 83 | + <actionGroup ref="AdminFormSaveAndDuplicate" stepKey="saveAndDuplicateProductForm2"/> |
| 84 | + </test> |
43 | 85 | </tests>
|
0 commit comments