Skip to content

Commit fd6cb5b

Browse files
Merge branch 'ACQE-6408' into ACQE-6611_mainline_deployment
2 parents d983da7 + bed629f commit fd6cb5b

File tree

4 files changed

+11
-39
lines changed

4 files changed

+11
-39
lines changed

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AdminNavigateToInventoryConfigurationActionGroup.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

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: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,25 @@
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+
<magentoCLI command="config:set cataloginventory/item_options/notify_stock_qty 2" stepKey="checkSystemValue1"/>
30+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="clearCacheAfterEnablingStockQuantity">
31+
<argument name="tags" value="config"/>
3732
</actionGroup>
3833
<!--Create Category-->
3934
<createData entity="SimpleSubCategory" stepKey="createCategory"/>

0 commit comments

Comments
 (0)