-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 #7398 from magento-gl/gl_pr_jan13_2022_latest
GL PR raised on Jan13, 2022
- Loading branch information
Showing
2 changed files
with
62 additions
and
3 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
53 changes: 53 additions & 0 deletions
53
app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithConfigurableProductTest.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,53 @@ | ||
<?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="AdminCreateOrderWithConfigurableProductTest"> | ||
<annotations> | ||
<title value="Create Order in Admin with simple product"/> | ||
<stories value="AC-2040"/> | ||
<description value="Create order with configurable product."/> | ||
<features value="Sales"/> | ||
<testCaseId value="AC-2040"/> | ||
<severity value="MAJOR"/> | ||
<group value="Sales"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<createData entity="_defaultCategory" stepKey="createCategory"/> | ||
<actionGroup ref="CreateConfigurableProductActionGroup" stepKey="createConfigurableProduct"> | ||
<argument name="product" value="_defaultProduct"/> | ||
<argument name="category" value="$$createCategory$$"/> | ||
</actionGroup> | ||
<createData entity="Simple_US_Customer" stepKey="createCustomer"/> | ||
</before> | ||
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderWithExistingCustomer"> | ||
<argument name="customer" value="$$createCustomer$$"/> | ||
</actionGroup> | ||
<actionGroup ref="AddConfigurableProductToOrderActionGroup" stepKey="addFirstConfigurableProductToOrder"> | ||
<argument name="product" value="_defaultProduct"/> | ||
<argument name="attribute" value="colorProductAttribute"/> | ||
<argument name="option" value="colorProductAttribute1"/> | ||
</actionGroup> | ||
<actionGroup ref="SelectCashOnDeliveryPaymentMethodActionGroup" stepKey="selectPaymentMethod"/> | ||
<actionGroup ref="AdminSubmitOrderActionGroup" stepKey="submitOrder"/> | ||
<actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="verifyCreatedOrderInformation"/> | ||
<after> | ||
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> | ||
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/> | ||
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteConfigurableProduct"> | ||
<argument name="sku" value="{{_defaultProduct.sku}}"/> | ||
</actionGroup> | ||
<magentoCLI stepKey="reindex" command="indexer:reindex"/> | ||
<magentoCLI stepKey="flushCache" command="cache:flush"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
|
||
</test> | ||
</tests> |