Skip to content

Commit d338df5

Browse files
committed
MC-4767: Convert PrintOrderFrontendGuestTest to MFTF
1 parent 03d3596 commit d338df5

13 files changed

+13
-41
lines changed

app/code/Magento/Bundle/Test/Mftf/Section/AdminProductFormBundleSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<element name="shortDescription" type="input" selector="#product_form_short_description"/>
4444
<!--BundleOptionsDropDown-->
4545
<element name="bundleOptionsDropDown" type="button" selector="div[data-index='bundle-items']" timeout="30"/>
46-
<element name="currentBundleOption" type="text" selector="//div[@data-index='bundle-items']//div[@class='admin__collapsible-title']/span"/>
46+
<element name="currentBundleOption" type="text" selector="//div[@data-index='bundle-items']//div[contains(@class, 'admin__collapsible-title')]/span"/>
4747
<!--AddingAnOption-->
4848
<element name="addOptions" type="button" selector="//tr[@data-repeat-index='0']//td[4]" timeout="30"/>
4949
<!--SEODropdownTab-->

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/AdminProductFormConfigurationsSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<element name="productQuantity" type="input" selector=".admin__control-text[name='product[quantity_and_stock_status][qty]']"/>
4545
<element name="currentVariationsQuantityCells" type="button" selector="td[data-index='quantity_container']"/>
4646
<element name="rowByCode" type="textarea" selector="//span[contains(text(), '{{var1}}-{{var2}}')]//ancestor-or-self::tr" parameterized="true"/>
47-
<element name="currentAttribute" type="text" selector="//fieldset[@class='admin__fieldset']/div[@class='admin__field _disabled']//span"/>
47+
<element name="currentAttribute" type="text" selector="//fieldset[@class='admin__fieldset']/div[contains(@class, 'admin__field _disabled')]//span"/>
4848
</section>
4949
<section name="AdminConfigurableProductSelectAttributesSlideOut">
5050
<element name="grid" type="button" selector=".admin__data-grid-wrap tbody"/>

app/code/Magento/Downloadable/Test/Mftf/Data/ProductData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<requiredEntity type="custom_attribute_array">ApiProductShortDescription</requiredEntity>
7575
<requiredEntity type="downloadable_link">apiDownloadableLink</requiredEntity>
7676
</entity>
77-
<entity name="DownloadableProductWithTwoLink1000" type="product">
77+
<entity name="DownloadableProductWithTwoLink100" type="product">
7878
<data key="sku" unique="suffix">downloadableproduct</data>
7979
<data key="type_id">downloadable</data>
8080
<data key="attribute_set_id">4</data>

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAddToOrderBundleProductActionGroup">
12-
<annotations>
13-
<description>Configuration added Bundle Product during creation order by Admin: select bundle option and product with quantity</description>
14-
<page>AdminOrderCreatePage</page>
15-
</annotations>
1612
<arguments>
1713
<argument name="option" type="string"/>
18-
<argument name="selectedProduct" type="entity"/>
14+
<argument name="selectedProductName" type="string"/>
1915
<argument name="quantity" type="string"/>
2016
</arguments>
2117
<scrollTo selector="{{AdminOrderFormConfigureProductSection.bundleItems}}" stepKey="scroll"/>
2218
<click selector="{{AdminOrderFormConfigureProductSection.bundleItems}}" stepKey="focusOnSideDialog"/>
2319
<waitForAjaxLoad stepKey="waitForAjax"/>
2420
<click selector="{{AdminOrderFormConfigureProductSection.bundleSelect(option)}}" stepKey="clickSelector"/>
25-
<selectOption selector="{{AdminOrderFormConfigureProductSection.bundleSelect(option)}}" userInput="{{selectedProduct.name}}" stepKey="selectionOption"/>
21+
<selectOption selector="{{AdminOrderFormConfigureProductSection.bundleSelect(option)}}" userInput="{{selectedProductName}}" stepKey="selectionOption"/>
2622
<waitForAjaxLoad stepKey="waitForAjaxLoad"/>
2723
<fillField userInput="{{quantity}}" selector="{{AdminOrderFormConfigureProductSection.quantity}}" stepKey="fillQty"/>
2824
<click selector="{{AdminOrderFormConfigureProductSection.ok}}" stepKey="clickOkConfigurablePopover"/>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAddToOrderConfigurableProductActionGroup">
12-
<annotations>
13-
<description>Configuration added Configurable Product during creation order by Admin: select option by attribute and quantity</description>
14-
<page>AdminOrderCreatePage</page>
15-
</annotations>
1612
<arguments>
1713
<argument name="attribute" type="string"/>
1814
<argument name="option" type="string"/>

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAddToOrderCouponCodeActionGroup">
12-
<annotations>
13-
<description>Add and apply Coupon Code to order during creating order by Admin</description>
14-
<page>AdminOrderCreatePage</page>
15-
</annotations>
1612
<arguments>
17-
<argument name="coupon" type="entity"/>
13+
<argument name="couponCode" type="string"/>
1814
</arguments>
19-
<fillField userInput="{{coupon.code}}" selector="{{AdminOrderFormDiscountSection.fieldCouponCode}}" stepKey="fillCouponCode"/>
15+
<fillField userInput="{{couponCode}}" selector="{{AdminOrderFormDiscountSection.fieldCouponCode}}" stepKey="fillCouponCode"/>
2016
<click selector="{{AdminOrderFormDiscountSection.applyCouponCode}}" stepKey="clickApply"/>
2117
<waitForPageLoad stepKey="waitForPageLoad"/>
2218
</actionGroup>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAddToOrderDownloadableProductActionGroup">
12-
<annotations>
13-
<description>Configuration added Downloadable Product during creation order by Admin: select link and quantity</description>
14-
<page>AdminOrderCreatePage</page>
15-
</annotations>
1612
<arguments>
1713
<argument name="link" type="string"/>
1814
<argument name="quantity" type="string" defaultValue="1"/>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminFilterProductInCreateOrderActionGroup">
12-
<annotations>
13-
<description>Search product in product grid on create order by admin page</description>
14-
<page>AdminOrderCreatePage</page>
15-
</annotations>
1612
<arguments>
1713
<argument name="productSKU" type="string"/>
1814
</arguments>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AssertSalesPrintOrderBillingAddress">
12-
<annotations>
13-
<description>Assert billing address data on printed order</description>
14-
<page>StorefrontPrintOrderPage</page>
15-
</annotations>
1612
<arguments>
1713
<argument name="address" type="entity"/>
1814
</arguments>

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontFillOrdersAndReturnsFormActionGroup">
12-
<annotations>
13-
<description>Fill order information in form "Orders and Returns"</description>
14-
<page>StorefrontGuestOrderSearchPage</page>
15-
</annotations>
1612
<arguments>
1713
<argument name="orderNumber" type="string"/>
18-
<argument name="customer" type="entity" defaultValue="$$createCustomer$$"/>
14+
<argument name="customer" type="entity"/>
1915
</arguments>
2016
<fillField selector="{{StorefrontGuestOrderSearchSection.orderId}}" userInput="{{orderNumber}}" stepKey="inputOrderId"/>
2117
<fillField selector="{{StorefrontGuestOrderSearchSection.billingLastName}}" userInput="{{customer.lastname}}" stepKey="inputBillingLastName"/>

0 commit comments

Comments
 (0)