Skip to content

Commit f1e5df1

Browse files
committed
MC-4459: Convert OnePageCheckoutOfflinePaymentMethodsTest to MFTF
1 parent 0ac5b16 commit f1e5df1

8 files changed

+12
-12
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/CheckoutFillEstimateShippingAndTaxActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="CheckoutFillEstimateShippingAndTaxActionGroup">
1212
<arguments>
13-
<argument name="address" defaultValue="US_Address_TX"/>
13+
<argument name="address" defaultValue="US_Address_TX" type="entity"/>
1414
</arguments>
1515
<conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.estimateShippingAndTaxSummary}}" visible="false" stepKey="openShippingDetails"/>
1616
<selectOption selector="{{CheckoutCartSummarySection.country}}" userInput="{{address.country_id}}" stepKey="selectCountry"/>
1717
<selectOption selector="{{CheckoutCartSummarySection.stateProvince}}" userInput="{{address.state}}" stepKey="selectState"/>
18-
<waitForElementVisible selector="{{CheckoutCartSummarySection.postcode}}" stepKey="waitForPasswordFieldToBeVisisble"/>
18+
<waitForElementVisible selector="{{CheckoutCartSummarySection.postcode}}" stepKey="waitForPostCodeVisible"/>
1919
<fillField selector="{{CheckoutCartSummarySection.postcode}}" userInput="{{address.postcode}}" stepKey="selectPostCode"/>
2020
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDiappear"/>
2121
</actionGroup>

app/code/Magento/Checkout/Test/Mftf/ActionGroup/FillGuestCheckoutShippingAddressFormActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="FillGuestCheckoutShippingAddressFormActionGroup">
1212
<arguments>
13-
<argument name="customer" defaultValue="Simple_US_Customer"/>
14-
<argument name="customerAddress" defaultValue="US_Address_TX"/>
13+
<argument name="customer" defaultValue="Simple_US_Customer" type="entity"/>
14+
<argument name="customerAddress" defaultValue="US_Address_TX" type="entity"/>
1515
</arguments>
1616
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customer.email}}" stepKey="setCustomerEmail"/>
1717
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customer.firstname}}" stepKey="SetCustomerFirstName"/>
@@ -22,6 +22,6 @@
2222
<fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{customerAddress.telephone}}" stepKey="SetCustomerPhoneNumber"/>
2323
</actionGroup>
2424
<actionGroup name="FillGuestCheckoutShippingAddressWithCountryActionGroup" extends="FillGuestCheckoutShippingAddressFormActionGroup">
25-
<selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{customerAddress.country_id}}" stepKey="selectCountry" after="SetCustomerCity"/>
25+
<selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{customerAddress.country_id}}" stepKey="selectCustomerCountry" after="SetCustomerCity"/>
2626
</actionGroup>
2727
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutPaymentSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<element name="addressBook" type="button" selector="//a[text()='Address Book']"/>
5555
<element name="noQuotes" type="text" selector=".no-quotes-block"/>
5656
<element name="paymentMethodByName" type="text" selector="//*[@id='checkout-payment-method-load']//*[contains(@class, 'payment-group')]//label[normalize-space(.)='{{var1}}']" parameterized="true"/>
57-
<element name="bankTransfer" type="radio" selector="//input[@id='banktransfer']"/>
57+
<element name="bankTransfer" type="radio" selector="#banktransfer"/>
5858
<element name="billingAddressNotSameBankTransferCheckbox" type="checkbox" selector="#billing-address-same-as-shipping-banktransfer"/>
5959
<element name="billingAddressSelectShared" type="select" selector=".checkout-billing-address select[name='billing_address_id']"/>
6060
</section>

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutShippingSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<element name="editActiveAddress" type="button" selector="//div[@class='shipping-address-item selected-item']//span[text()='Edit']" timeout="30"/>
3939
<element name="password" type="input" selector="#customer-password"/>
4040
<element name="loginButton" type="button" selector="//button[@data-action='checkout-method-login']" timeout="30"/>
41-
<element name="editActiveAddressButton" type="button" selector="//div[@class='payment-method _active']//button[@class='action action-edit-address']" timeout="30"/>
41+
<element name="editActiveAddressButton" type="button" selector="//div[contains(@class,'payment-method _active')]//button[contains(@class,'action action-edit-address')]" timeout="30"/>
4242
<element name="emailAddress" type="input" selector="#checkout-customer-email"/>
4343
</section>
4444
</sections>

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutSuccessMainSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
<element name="continueShoppingButton" type="button" selector=".action.primary.continue" timeout="30"/>
1919
<element name="createAnAccount" type="button" selector="input[value='Create an Account']" timeout="30"/>
2020
<element name="printLink" type="button" selector=".print" timeout="30"/>
21-
<element name="orderNumberWithoutLink" type="text" selector="//div[@class='checkout-success']/p/span"/>
21+
<element name="orderNumberWithoutLink" type="text" selector="//div[contains(@class, 'checkout-success')]//p/span"/>
2222
</section>
2323
</sections>

app/code/Magento/Customer/Test/Mftf/ActionGroup/StorefrontFillBillingAddressActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontFillBillingAddressActionGroup">
1212
<arguments>
13-
<argument name="address" defaultValue="CustomerUKAddress"/>
13+
<argument name="address" defaultValue="CustomerUKAddress" type="entity"/>
1414
</arguments>
1515
<fillField selector="{{CheckoutPaymentSection.guestFirstName}}" userInput="{{address.firstname}}" stepKey="enterFirstName"/>
1616
<fillField selector="{{CheckoutPaymentSection.guestLastName}}" userInput="{{address.lastname}}" stepKey="enterLastName"/>

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerAddressesSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<element name="editAdditionalAddress" type="button" selector="//tbody//tr[{{var}}]//a[@class='action edit']" parameterized="true" timeout="30"/>
1919
<element name="addNewAddress" type="button" selector="//span[text()='Add New Address']"/>
2020
<element name="numberOfAddresses" type="text" selector=".toolbar-number"/>
21-
<element name="shippingAddress" type="text" selector="//div[@class='box box-shipping-address']//div/address"/>
22-
<element name="billingAddress" type="text" selector="//div[@class='box box-billing-address']//div/address"/>
21+
<element name="shippingAddress" type="text" selector="//div[contains(@class,'box box-shipping-address')]//div/address"/>
22+
<element name="billingAddress" type="text" selector="//div[contains(@class,'box box-billing-address')]//div/address"/>
2323
</section>
2424
</sections>

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerSignInFormSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<element name="email" type="input" selector="#customer-email"/>
2020
<element name="password" type="input" selector="#pass"/>
2121
<element name="signIn" type="button" selector="#send2" timeout="30"/>
22-
<element name="createAnAccount" type="button" selector="//div[@class='actions-toolbar']//a[contains(.,'Create an Account')]" timeout="30"/>
22+
<element name="createAnAccount" type="button" selector="//div[contains(@class,'actions-toolbar')]//a[contains(.,'Create an Account')]" timeout="30"/>
2323
</section>
2424
</sections>

0 commit comments

Comments
 (0)