File tree Expand file tree Collapse file tree 5 files changed +53
-1
lines changed Expand file tree Collapse file tree 5 files changed +53
-1
lines changed Original file line number Diff line number Diff line change 36
36
<createData entity =" DefaultShippingMethodsConfig" stepKey =" defaultShippingMethodsConfig" />
37
37
<createData entity =" DisableFreeShippingConfig" stepKey =" disableFreeShippingConfig" />
38
38
<createData entity =" DisablePaymentMethodsSettingConfig" stepKey =" disablePaymentMethodsSettingConfig" />
39
- <actionGroup ref =" AdminOrdersGridClearFiltersActionGroup" stepKey =" clearOrderFilters" />
40
39
<actionGroup ref =" logout" stepKey =" logout" />
41
40
<deleteData createDataKey =" simpleproduct" stepKey =" deleteProduct" />
42
41
<deleteData createDataKey =" simplecategory" stepKey =" deleteCategory" />
99
98
100
99
<!-- Verify that Created order is in Processing status-->
101
100
<see selector =" {{AdminShipmentOrderInformationSection.orderStatus}}" userInput =" Processing" stepKey =" seeShipmentOrderStatus" />
101
+ <actionGroup ref =" AdminOrdersGridClearFiltersActionGroup" stepKey =" clearOrderFilters" />
102
102
</test >
103
103
</tests >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminAddProductToShoppingCartActionGroup" >
12
+ <arguments >
13
+ <argument name =" productName" type =" string" />
14
+ </arguments >
15
+ <waitForElementVisible selector =" {{AdminCustomerShoppingCartProductItemSection.productItem}}" stepKey =" waitForElementVisible" />
16
+ <click selector =" {{AdminCustomerShoppingCartProductItemSection.productItem}}" stepKey =" expandProductItem" />
17
+ <waitForElementVisible selector =" {{AdminCustomerShoppingCartProductItemSection.productNameFilter}}" stepKey =" waitForProductFilterFieldVisible" />
18
+ <fillField selector =" {{AdminCustomerShoppingCartProductItemSection.productNameFilter}}" stepKey =" setProductName" userInput =" {{productName}}" />
19
+ <click selector =" {{AdminCustomerShoppingCartProductItemSection.searchButton}}" stepKey =" clickSearchButton" />
20
+ <waitForAjaxLoad stepKey =" waitForAjax" />
21
+ <waitForElementVisible selector =" {{AdminCustomerShoppingCartProductItemSection.firstProductCheckbox}}" stepKey =" waitForElementCheckboxVisible" />
22
+ <click selector =" {{AdminCustomerShoppingCartProductItemSection.firstProductCheckbox}}" stepKey =" selectFirstCheckbox" />
23
+ <click selector =" {{AdminCustomerShoppingCartProductItemSection.addSelectionsToMyCartButton}}" stepKey =" clickAddSelectionsToMyCartButton" after =" selectFirstCheckbox" />
24
+ <waitForAjaxLoad stepKey =" waitForAjax2" />
25
+ <seeElement stepKey =" seeAddedProduct" selector =" {{AdminCustomerShoppingCartProductItemSection.addedProductName('productName')}}" />
26
+ </actionGroup >
27
+ </actionGroups >
Original file line number Diff line number Diff line change 11
11
<section name =" AdminCustomerMainActionsSection" >
12
12
<element name =" saveButton" type =" button" selector =" #save" timeout =" 30" />
13
13
<element name =" resetPassword" type =" button" selector =" #resetPassword" timeout =" 30" />
14
+ <element name =" manageShoppingCart" type =" button" selector =" #manage_quote" timeout =" 30" />
14
15
</section >
15
16
</sections >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" AdminCustomerShoppingCartSection" >
12
+ <element name =" createOrderButton" type =" button" selector =" button[title='Create Order']" />
13
+ </section >
14
+
15
+ <section name =" AdminCustomerShoppingCartProductItemSection" >
16
+ <element name =" productItem" type =" button" selector =" #dt-products" />
17
+ <element name =" productNameFilter" type =" input" selector =" #source_products_filter_name" />
18
+ <element name =" searchButton" type =" button" selector =" //*[@id='anchor-content']//button[@title='Search']" />
19
+ <element name =" firstProductCheckbox" type =" checkbox" selector =" //*[@id='source_products_table']/tbody/tr[1]//*[@name='source_products']" />
20
+ <element name =" addSelectionsToMyCartButton" type =" button" selector =" //*[@id='products_search']/div[1]//*[text()='Add selections to my cart']" />
21
+ <element name =" addedProductName" type =" text" selector =" //*[@id='order-items_grid']//*[text()='{{var}}']" parameterized =" true" />
22
+ </section >
23
+ </sections >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminOrderFormShippingAddressSection" >
12
12
<element name =" SameAsBilling" type =" checkbox" selector =" #order-shipping_same_as_billing" />
13
+ <element name =" SelectFromExistingCustomerAddress" type =" select" selector =" #order-shipping_address_customer_address_id" />
13
14
<element name =" NamePrefix" type =" input" selector =" #order-shipping_address_prefix" />
14
15
<element name =" FirstName" type =" input" selector =" #order-shipping_address_firstname" />
15
16
<element name =" MiddleName" type =" input" selector =" #order-shipping_address_middlename" />
You can’t perform that action at this time.
0 commit comments