-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from magento-l3/ACP2E-1005-clean
ACP2E-1005: Exception in storefront when trying to search product if Display Out of Stock Products = Yes
- Loading branch information
Showing
3 changed files
with
127 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
InventoryCatalog/Test/Mftf/Test/StorefrontValidateNoExceptionOnProductSearchTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?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="StorefrontValidateNoExceptionOnProductSearchTest"> | ||
<annotations> | ||
<stories value="Exception in storefront when trying to search product if Display Out of Stock Products = Yes"/> | ||
<title value="Validate no exception error when trying to search product if display out of stock product = yes"/> | ||
<description value="Validate no exception error when trying to search product if display out of stock product = yes"/> | ||
<testCaseId value="AC-5960"/> | ||
<useCaseId value="ACP2E-1005"/> | ||
<severity value="CRITICAL"/> | ||
<group value="msi"/> | ||
</annotations> | ||
<before> | ||
<!-- Login to backend--> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<!-- Display out of stock product --> | ||
<actionGroup ref="DisplayOutOfStockProductActionGroup" stepKey="displayOutOfStockProduct"/> | ||
<!--Create category and product.--> | ||
<createData entity="SimpleSubCategory" stepKey="category"/> | ||
<createData entity="SimpleProduct" stepKey="firstProduct"> | ||
<field key="status">1</field> | ||
<requiredEntity createDataKey="category"/> | ||
</createData> | ||
<createData entity="SimpleProduct" stepKey="secondProduct"> | ||
<field key="status">1</field> | ||
<requiredEntity createDataKey="category"/> | ||
</createData> | ||
<createData entity="SimpleProduct" stepKey="thirdProduct"> | ||
<field key="status">0</field> | ||
<requiredEntity createDataKey="category"/> | ||
</createData> | ||
</before> | ||
<after> | ||
<!-- Don't display out of stock product --> | ||
<actionGroup ref="NoDisplayOutOfStockProductActionGroup" stepKey="revertDisplayOutOfStockProduct"/> | ||
<deleteData createDataKey="firstProduct" stepKey="deleteFirstProduct"/> | ||
<deleteData createDataKey="secondProduct" stepKey="deleteSecondProduct"/> | ||
<deleteData createDataKey="thirdProduct" stepKey="deleteThirdProduct"/> | ||
<deleteData createDataKey="category" stepKey="deleteCategory"/> | ||
<!--Logout from backend--> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/> | ||
</after> | ||
|
||
<!-- Search for the product on Storefront --> | ||
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/> | ||
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName"> | ||
<argument name="phrase" value="simple"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters