File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed
app/code/Magento/Checkout
view/frontend/templates/cart Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 21
21
<click selector =" {{StorefrontMinicartSection.goToCheckout}}" stepKey =" goToCheckout" />
22
22
</actionGroup >
23
23
24
+ <!-- Go to checkout from cart -->
25
+ <actionGroup name =" GoToCheckoutFromCartActionGroup" >
26
+ <waitForElementNotVisible selector =" {{StorefrontMinicartSection.emptyCart}}" stepKey =" waitUpdateQuantity" />
27
+ <click selector =" {{StorefrontMinicartSection.showCart}}" stepKey =" clickCart" />
28
+ <waitForLoadingMaskToDisappear stepKey =" waitForLoadingMask" />
29
+ <seeInCurrentUrl url =" {{CheckoutCartPage.url}}" stepKey =" assertCheckoutCartUrl" />
30
+ <click selector =" {{CheckoutCartSummarySection.proceedToCheckout}}" stepKey =" goToCheckout" />
31
+ </actionGroup >
32
+
24
33
<!-- Guest checkout filling shipping section -->
25
34
<actionGroup name =" GuestCheckoutFillingShippingSectionActionGroup" >
26
35
<arguments >
Original file line number Diff line number Diff line change 29
29
<amOnPage url =" admin/admin/auth/logout/" stepKey =" amOnLogoutPage" />
30
30
<deleteData createDataKey =" simpleproduct1" stepKey =" deleteProduct1" />
31
31
<deleteData createDataKey =" simplecategory" stepKey =" deleteCategory" />
32
- <deleteData createDataKey =" simpleuscustomer" stepKey =" deleteCustomer" />
33
32
</after >
34
33
35
34
<actionGroup ref =" LoginToStorefrontActionGroup" stepKey =" customerLogin" >
Original file line number Diff line number Diff line change 69
69
<see selector =" {{AdminOrderDetailsInformationSection.shippingAddress}}" userInput =" {{CustomerAddressSimple.street[0]}}" stepKey =" seeAdminOrderShippingAddress" />
70
70
<see selector =" {{AdminOrderDetailsInformationSection.itemsOrdered}}" userInput =" $$createProduct.name$$" stepKey =" seeAdminOrderProduct" />
71
71
</test >
72
+ <test name =" StorefrontGuestCheckoutWithSidebarDisabledTest" extends =" StorefrontGuestCheckoutTest" >
73
+ <annotations >
74
+ <features value =" Checkout" />
75
+ <stories value =" Checkout via Guest Checkout" />
76
+ <title value =" Guest Checkout when Cart sidebar disabled" />
77
+ <description value =" Should be able to place an order as a Guest when Cart sidebar is disabled" />
78
+ <severity value =" CRITICAL" />
79
+ <testCaseId value =" MAGETWO-97001" />
80
+ <group value =" checkout" />
81
+ </annotations >
82
+ <before >
83
+ <magentoCLI stepKey =" disableSidebar" command =" config:set checkout/sidebar/display 0" />
84
+ </before >
85
+ <after >
86
+ <magentoCLI stepKey =" enableSidebar" command =" config:set checkout/sidebar/display 1" />
87
+ </after >
88
+ <remove keyForRemoval =" guestGoToCheckoutFromMinicart" />
89
+ <actionGroup ref =" GoToCheckoutFromCartActionGroup" stepKey =" guestGoToCheckoutFromCart" after =" seeCartQuantity" />
90
+ </test >
72
91
<test name =" StorefrontGuestCheckoutTestWithRestrictedCountriesForPayment" >
73
92
<annotations >
74
93
<features value =" Checkout" />
Original file line number Diff line number Diff line change 41
41
</div>
42
42
<?= $ block ->getChildHtml ('minicart.addons ' ) ?>
43
43
</div>
44
+ <?php else : ?>
45
+ <script>
46
+ require(['jquery'], function ($) {
47
+ $('a.action.showcart').click(function() {
48
+ $(document.body).trigger('processStart');
49
+ });
50
+ });
51
+ </script>
44
52
<?php endif ?>
45
53
<script>
46
54
window.checkout = <?= /* @escapeNotVerified */ $ block ->getSerializedConfig () ?> ;
You can’t perform that action at this time.
0 commit comments