Skip to content

Commit 7772d52

Browse files
author
solwininfotech
committed
functional test changes
1 parent 5851126 commit 7772d52

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderActionGroup.xml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,9 @@
9292
<annotations>
9393
<description>Clears the Email, First Name, Last Name, Street Line 1, City, Postal Code and Phone fields when adding an Order and then verifies that they are required after attempting to Save.</description>
9494
</annotations>
95-
95+
9696
<seeElement selector="{{AdminOrderFormAccountSection.requiredGroup}}" stepKey="seeCustomerGroupRequired"/>
97-
<checkOption selector="{{AdminOrderFormItemsSection.emailRequiredToCreateOrder('1')}}" stepKey="selectEmailRequiredOption"/>
9897
<seeElement selector="{{AdminOrderFormAccountSection.requiredEmail}}" stepKey="seeEmailRequired"/>
99-
<checkOption selector="{{AdminOrderFormItemsSection.emailRequiredToCreateOrder('0')}}" stepKey="unselectEmailRequiredOption"/>
100-
<seeElement selector="{{AdminOrderFormAccountSection.noRequiredEmail}}" stepKey="seeNoEmailRequired"/>
10198
<clearField selector="{{AdminOrderFormAccountSection.email}}" stepKey="clearEmailField"/>
10299
<clearField selector="{{AdminOrderFormBillingAddressSection.FirstName}}" stepKey="clearFirstNameField"/>
103100
<clearField selector="{{AdminOrderFormBillingAddressSection.LastName}}" stepKey="clearLastNameField"/>
@@ -184,7 +181,7 @@
184181
<annotations>
185182
<description>EXTENDS: addConfigurableProductToOrder. Selects the provided Option to the Configurable Product.</description>
186183
</annotations>
187-
184+
188185
<waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}" stepKey="waitForConfigurablePopover"/>
189186
<selectOption selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}" userInput="{{option.label}}" stepKey="selectionConfigurableOption"/>
190187
</actionGroup>
@@ -198,7 +195,7 @@
198195
<argument name="option"/>
199196
<argument name="quantity" type="string"/>
200197
</arguments>
201-
198+
202199
<click selector="{{AdminOrderFormItemsSection.configure}}" stepKey="clickConfigure"/>
203200
<waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}" stepKey="waitForConfigurablePopover"/>
204201
<wait time="2" stepKey="waitForOptionsToLoad"/>
@@ -216,7 +213,7 @@
216213
<argument name="product"/>
217214
<argument name="quantity" type="string" defaultValue="1"/>
218215
</arguments>
219-
216+
220217
<click selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="clickAddProducts"/>
221218
<fillField selector="{{AdminOrderFormItemsSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillSkuFilterBundle"/>
222219
<click selector="{{AdminOrderFormItemsSection.search}}" stepKey="clickSearchBundle"/>
@@ -238,7 +235,7 @@
238235
<arguments>
239236
<argument name="price" type="string"/>
240237
</arguments>
241-
238+
242239
<grabTextFrom selector="{{AdminOrderFormItemsSection.rowPrice('1')}}" stepKey="grabProductPriceFromGrid" after="clickOk"/>
243240
<assertEquals stepKey="assertProductPriceInGrid" message="Bundle product price in grid should be equal {{price}}" after="grabProductPriceFromGrid">
244241
<expectedResult type="string">{{price}}</expectedResult>
@@ -519,7 +516,7 @@
519516
<argument name="product"/>
520517
<argument name="customer"/>
521518
</arguments>
522-
519+
523520
<amOnPage stepKey="navigateToNewOrderPage" url="{{AdminOrderCreatePage.url}}"/>
524521
<waitForPageLoad stepKey="waitForNewOrderPageOpened"/>
525522
<click stepKey="chooseCustomer" selector="{{AdminOrdersGridSection.customerInOrdersSection(customer.firstname)}}"/>

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormAccountSection.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
<element name="group" type="select" selector="#group_id"/>
1313
<element name="email" type="input" selector="#email"/>
1414
<element name="requiredGroup" type="text" selector=".admin__field.required[data-ui-id='billing-address-fieldset-element-form-field-group-id']"/>
15-
<element name="requiredEmail" type="text" selector=".admin__field.required[data-ui-id='billing-address-fieldset-element-form-field-email']"/>
16-
<element name="noRequiredEmail" type="text" selector=".admin__field[data-ui-id='billing-address-fieldset-element-form-field-email']"/>
15+
<element name="requiredEmail" type="text" selector=".admin__field[data-ui-id='billing-address-fieldset-element-form-field-email']"/>
1716
<element name="defaultGeneral" type="text" selector="//*[contains(text(),'General')]" timeout="15"/>
1817
<element name="emailErrorMessage" type="text" selector="#email-error"/>
1918
</section>

0 commit comments

Comments
 (0)