Skip to content

Commit 8455c67

Browse files
Reverting 36463
1 parent 9b81064 commit 8455c67

9 files changed

+5
-65
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
<!-- Checkout select Flat Rate shipping method -->
1212
<actionGroup name="CheckoutSelectFlatRateShippingMethodActionGroup">
1313
<annotations>
14-
<description>Waits for Shipping Section load. Clicks on the 'Flat Rate' Shipping Method on the Storefront Checkout page.</description>
14+
<description>Clicks on the 'Flat Rate' Shipping Method on the Storefront Checkout page.</description>
1515
</annotations>
1616

17-
<waitForElementClickable selector="{{CheckoutShippingMethodsSection.shippingMethodFlatRate}}" stepKey="waitForFlatRateShippingMethod"/>
1817
<conditionalClick selector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" dependentSelector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" visible="true" stepKey="selectFlatRateShippingMethod"/>
1918
<waitForPageLoad stepKey="waitForLoadingMaskForNextButton"/>
2019
</actionGroup>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontGuestCheckoutProceedToPaymentStepActionGroup">
1212
<annotations>
13-
<description>Waits for Shipping Section load. Clicks next on Checkout Shipping step. Waits for Payment step</description>
13+
<description>Clicks next on Checkout Shipping step. Waits for Payment step</description>
1414
</annotations>
1515

16-
<waitForElementClickable selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="waitForNextButtonClickable"/>
1716
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
1817
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSectionLoaded" after="clickNext"/>
1918
<seeCurrentUrlMatches regex="~/checkout/?#payment~" stepKey="assertCheckoutPaymentUrl"/>

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontSelectFirstShippingMethodActionGroup">
1212
<annotations>
13-
<description>Waits for Shipping Section load. Select first shipping method.</description>
13+
<description>Select first shipping method.</description>
1414
</annotations>
15-
16-
<waitForElementClickable selector="{{CheckoutShippingMethodsSection.next}}" stepKey="waitForShippingMethod"/>
15+
1716
<click selector="{{CheckoutShippingMethodsSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/>
1817
<waitForLoadingMaskToDisappear stepKey="waitForMaskDisappear"/>
1918
</actionGroup>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontGuestCheckoutWithSameShippingAndBillingAddressEnabledCheckboxTest.xml

Lines changed: 0 additions & 48 deletions
This file was deleted.

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontPersistentDataForGuestCustomerWithPhysicalQuoteTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
<fillField selector="{{CheckoutShippingGuestInfoSection.regionInput}}" userInput="" stepKey="changeStateProvinceField"/>
6868
<fillField selector="{{CheckoutShippingGuestInfoSection.postcode}}" userInput="KW1 7NQ" stepKey="changeZipPostalCodeField"/>
6969
<!-- 8. Change shipping rate, select Free Shipping -->
70-
<waitForElementClickable selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShipping}}" stepKey="waitForFreeShippingShippingMethod"/>
7170
<checkOption selector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Free Shipping')}}" stepKey="checkFreeShippingAsShippingMethod"/>
7271
<!-- 9. Fill other fields -->
7372
<actionGroup ref="StorefrontFillGuestShippingInfoActionGroup" stepKey="fillOtherFieldsInCheckoutShippingSection"/>

app/code/Magento/Checkout/view/frontend/web/js/model/cart/estimate-service.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ define([
7272
cartCache.set('totals', quote.getTotals());
7373
}
7474
}
75-
// unset loader on shipping rates list
76-
shippingService.isLoading(false);
7775
},
7876

7977
/**

app/code/Magento/Checkout/view/frontend/web/js/model/shipping-rates-validator.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ define([
1717
'mage/translate',
1818
'uiRegistry',
1919
'Magento_Checkout/js/model/shipping-address/form-popup-state',
20-
'Magento_Checkout/js/model/shipping-service',
2120
'Magento_Checkout/js/model/quote'
2221
], function (
2322
$,
@@ -29,8 +28,7 @@ define([
2928
defaultValidator,
3029
$t,
3130
uiRegistry,
32-
formPopUpState,
33-
shippingService
31+
formPopUpState
3432
) {
3533
'use strict';
3634

@@ -148,8 +146,6 @@ define([
148146
}, delay);
149147

150148
if (!formPopUpState.isVisible()) {
151-
// Prevent shipping methods showing none available whilst we resolve
152-
shippingService.isLoading(true);
153149
clearTimeout(self.validateAddressTimeout);
154150
self.validateAddressTimeout = setTimeout(function () {
155151
self.validateFields();

app/code/Magento/Shipping/Test/Mftf/Test/StorefrontAssertShippingPricesPresentAfterApplyingCartRuleTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
</actionGroup>
8383
<see selector="{{CheckoutShippingMethodsSection.shippingRatePriceByName('Fixed')}}" userInput="$5.00" stepKey="assertFlatRatedMethodPrice"/>
8484
<see selector="{{CheckoutShippingMethodsSection.shippingRatePriceByName('Table Rate')}}" userInput="$7.99" stepKey="assertTableRatedMethodPrice"/>
85-
<waitForElementClickable selector="{{CheckoutShippingMethodsSection.shippingMethodFlatRate}}" stepKey="waitForFlatRateShippingMethod"/>
8685
<click selector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" stepKey="selectFlatRateShippingMethod"/>
8786
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="goToPaymentStep"/>
8887
<actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyCoupon">

dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/cart/estimate-service.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ define([
4141
},
4242
'Magento_Checkout/js/model/shipping-service': {
4343
setShippingRates: function () {},
44-
isLoading: ko.observable(),
4544
getShippingRates: function () {
4645
return ko.observable(rates);
4746
}

0 commit comments

Comments
 (0)