File tree Expand file tree Collapse file tree 2 files changed +39
-3
lines changed
Block/Adminhtml/Order/Create/Form Expand file tree Collapse file tree 2 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,7 @@ protected function _prepareForm()
132132 $ this ->_addAttributesToForm ($ attributes , $ fieldset );
133133
134134 $ this ->_form ->addFieldNameSuffix ('order[account] ' );
135-
136- $ formValues = $ this ->extractValuesFromAttributes ($ attributes );
137- $ this ->_form ->setValues ($ formValues );
135+ $ this ->_form ->setValues ($ this ->extractValuesFromAttributes ($ attributes ));
138136
139137 return $ this ;
140138 }
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+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11+ <test name =" AdminChangeCustomerGroupInNewOrder" >
12+ <annotations >
13+ <title value =" Customer account group cannot be selected while creating a new customer in order" />
14+ <stories value =" MC-15290: Customer account group cannot be selected while creating a new customer in order" />
15+ <description value =" Customer account group cannot be selected while creating a new customer in order" />
16+ <severity value =" MAJOR" />
17+ <testCaseId value =" MC-15290" />
18+ <useCaseId value =" MC-15289" />
19+ <group value =" sales" />
20+ </annotations >
21+
22+ <before >
23+ <actionGroup ref =" LoginAsAdmin" stepKey =" login" />
24+ </before >
25+ <after >
26+ <actionGroup ref =" logout" stepKey =" logout" />
27+ </after >
28+
29+ <actionGroup ref =" navigateToNewOrderPageNewCustomerSingleStore" stepKey =" openNewOrder" />
30+ <selectOption selector =" {{AdminOrderFormAccountSection.group}}" userInput =" Retailer" stepKey =" selectCustomerGroup" />
31+ <waitForPageLoad stepKey =" waitForPageLoad" />
32+ <grabValueFrom selector =" {{AdminOrderFormAccountSection.group}}" stepKey =" grabGroupValue" />
33+ <assertEquals stepKey =" assertValueIsStillSelected" >
34+ <actualResult type =" variable" >$grabGroupValue</actualResult >
35+ <expectedResult type =" string" >3</expectedResult >
36+ </assertEquals >
37+ </test >
38+ </tests >
You can’t perform that action at this time.
0 commit comments