Skip to content

Commit 19f7bbf

Browse files
ACQE-6408: Products > Low Stock
move file from video to reports and remove actiongroup
1 parent 1005f07 commit 19f7bbf

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AdminLowStockReportActionGroup.xml renamed to app/code/Magento/Reports/Test/Mftf/ActionGroup/AdminLowStockReportActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<description>Navigate to Low stock Product and search for Product</description>
1414
</annotations>
1515
<amOnPage url="{{LowStockReportPage.url}}" stepKey="navigateToLowStockReportPageWithZeroQuantity"/>
16-
<fillField selector="{{LowStockProductGridSection.enterProduct}}" userInput="$$createSimpleProduct.name$$" stepKey="fillProductName"/>
17-
<waitForElementClickable selector="{{LowStockProductGridSection.search($$createSimpleProduct.name$$)}}" stepKey="waitForSearchProduct"/>
18-
<click selector="{{LowStockProductGridSection.search($$createSimpleProduct.name$$)}}" stepKey="searchForProduct"/>
16+
<fillField selector="{{LowStockReportFilterSection.productName}}" userInput="$$createSimpleProduct.name$$" stepKey="fillProductName"/>
17+
<waitForElementClickable selector="{{LowStockReportFilterSection.searchButton($$createSimpleProduct.name$$)}}" stepKey="waitForSearchProduct"/>
18+
<click selector="{{LowStockReportFilterSection.searchButton($$createSimpleProduct.name$$)}}" stepKey="searchForProduct"/>
1919
</actionGroup>
2020
</actionGroups>

app/code/Magento/Reports/Test/Mftf/Section/LowStockProductGridSection.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@
1212
<element name="productSku" type="input" selector="//tr[1]/td[@data-column='sku']"/>
1313
<element name="productName" type="input" selector="//tr[1]/td[@data-column='name']"/>
1414
<element name="productQty" type="input" selector="//tr[1]/td[@data-column='qty']"/>
15-
<element name="search" type="input" selector="//span[text()='Search']"/>
16-
<element name="enterProduct" type="input" selector="//input[@id='gridLowstock_filter_name']"/>
1715
</section>
1816
</sections>

app/code/Magento/ProductVideo/Test/Mftf/Test/AdminLowStockProductTest.xml renamed to app/code/Magento/Reports/Test/Mftf/Test/AdminLowStockProductTest.xml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,26 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="AdminLowStockProductTest">
1212
<annotations>
13-
<features value="LowStock"/>
14-
<stories value="Display low stock products"/>
15-
<title value="Display low stock products"/>
16-
<description value="Display low stock products after Configuration"/>
13+
<features value="Reports"/>
14+
<stories value="Display low stock products in Reports Section"/>
15+
<title value="Display low stock products in Reports Section"/>
16+
<description value="In Reports section check all the low stock products based on the stock quantity settings"/>
1717
<severity value="CRITICAL"/>
1818
<testCaseId value="AC-3918"/>
19-
<group value="lowStock"/>
19+
<group value="reports"/>
2020
</annotations>
2121
<before>
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
</before>
24-
2524
<after>
2625
<magentoCLI command="config:set cataloginventory/item_options/notify_stock_qty 1" stepKey="checkSystemValue1"/>
2726
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
2827
</after>
29-
3028
<!-- Go to Inventory configuration page -->
31-
<actionGroup ref="AdminNavigateToInventoryConfigurationActionGroup" stepKey="navigateToInventoryConfiguration"/>
32-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCachesAfterModulesDisabled">
33-
<argument name="tags" value="" />
34-
</actionGroup>
35-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexAndFlushCache">
36-
<argument name="indices" value=""/>
29+
<!-- <actionGroup ref="AdminNavigateToInventoryConfigurationActionGroup" stepKey="navigateToInventoryConfiguration"/> -->
30+
<magentoCLI command="config:set cataloginventory/item_options/notify_stock_qty 2" stepKey="checkSystemValue1"/>
31+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="clearCacheAfterEnablingStockQuantity">
32+
<argument name="tags" value="config"/>
3733
</actionGroup>
3834
<!--Create Category-->
3935
<createData entity="SimpleSubCategory" stepKey="createCategory"/>

0 commit comments

Comments
 (0)