forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdminUpdateSimpleProductWithRegularPriceInStockUnassignFromCategoryTest.xml
70 lines (65 loc) · 4.29 KB
/
AdminUpdateSimpleProductWithRegularPriceInStockUnassignFromCategoryTest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="AdminUpdateSimpleProductWithRegularPriceInStockUnassignFromCategoryTest">
<annotations>
<stories value="Update Simple Product"/>
<title value="Update Simple Product with Regular Price (In Stock) Unassign from Category"/>
<description value="Test log in to Update Simple Product and Update Simple Product with Regular Price (In Stock) Unassign from Category"/>
<testCaseId value="MC-10817"/>
<severity value="CRITICAL"/>
<group value="catalog"/>
<group value="mtf_migrated"/>
</annotations>
<before>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
<createData entity="SimpleSubCategory" stepKey="initialCategoryEntity"/>
<createData entity="_defaultProduct" stepKey="initialSimpleProduct">
<requiredEntity createDataKey="initialCategoryEntity"/>
</createData>
</before>
<after>
<deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteCreatedProduct">
<argument name="sku" value="$$initialSimpleProduct.sku$$"/>
</actionGroup>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<!--Search default simple product in the grid page -->
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="openProductCatalogPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterProductGrid"/>
<actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="clickFirstRowToOpenDefaultSimpleProduct">
<argument name="product" value="$$initialSimpleProduct$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilProductIsOpened"/>
<!-- Update simple product by unselecting categories -->
<scrollTo selector="{{AdminProductFormSection.productStockStatus}}" stepKey="scroll"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickCategoriesDropDown"/>
<actionGroup ref="RemoveCategoryFromProductActionGroup" stepKey="unselectCategories">
<argument name="categoryName" value="$$initialCategoryEntity.name$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnDoneAdvancedCategory"/>
<scrollToTopOfPage stepKey="scrollToTopOfAdminProductFormSection"/>
<actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickSaveButton"/>
<!-- Verify customer see success message -->
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeAssertSimpleProductSaveSuccessMessage">
<argument name="message" value="You saved the product."/>
</actionGroup>
<!--Search default simple product in the grid page -->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="OpenCategoryCatalogPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="$$initialCategoryEntity$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>
<actionGroup ref="AdminCategoryPageOpenProductsInCategorySectionActionGroup" stepKey="clickAdminCategoryProductSection"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSectionHeaderToLoad"/>
<dontSee selector="{{AdminCategoryProductsGridSection.rowProductName($$initialSimpleProduct.name$$)}}" stepKey="dontSeeProductNameOnCategoryCatalogPage"/>
</test>
</tests>