File tree Expand file tree Collapse file tree 5 files changed +25
-4
lines changed
app/code/Magento/Multishipping
Section/MultishippingSection
view/frontend/templates/checkout Expand file tree Collapse file tree 5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ namespace Magento \Multishipping \Block \Checkout ;
8
+
7
9
/**
8
10
* Multishipping checkout state
9
11
*
12
+ * @api
10
13
* @author Magento Core Team <[email protected] >
11
14
*/
12
- namespace Magento \Multishipping \Block \Checkout ;
13
-
14
15
class State extends \Magento \Framework \View \Element \Template
15
16
{
16
17
/**
@@ -33,6 +34,8 @@ public function __construct(
33
34
}
34
35
35
36
/**
37
+ * Return multishipping steps
38
+ *
36
39
* @return array
37
40
*/
38
41
public function getSteps ()
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertMultipleAddressesProgressBarActionGroup" >
12
+ <waitForPageLoad stepKey =" waitForShippingInformation" />
13
+ <seeElement selector =" {{MultishippingSection.progressBar}}" stepKey =" seeProgressBar" />
14
+ </actionGroup >
15
+ </actionGroups >
Original file line number Diff line number Diff line change 9
9
xsi:noNamespaceSchemaLocation=" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10
10
<section name =" MultishippingSection" >
11
11
<element name =" pageTitle" type =" text" selector =" //span[text()='Ship to Multiple Addresses']" />
12
+ <element name =" progressBar" type =" block" selector =" #checkout-progress-state" />
12
13
<element name =" checkoutWithMultipleAddresses" type =" button" selector =" //span[text()='Check Out with Multiple Addresses']" />
13
14
<element name =" shippingMultipleCheckout" type =" button" selector =" .action.multicheckout" />
14
15
<element name =" shippingAddressSelector" type =" select" selector =" //tr[position()={{addressPosition}}]//td[@data-th='Send To']//select" parameterized =" true" />
Original file line number Diff line number Diff line change 47
47
</actionGroup >
48
48
<actionGroup ref =" StorefrontOpenCartFromMinicartActionGroup" stepKey =" openCart" />
49
49
<actionGroup ref =" CheckingWithMultipleAddressesActionGroup" stepKey =" checkoutWithMultipleAddresses" />
50
+ <actionGroup ref =" AssertMultipleAddressesProgressBarActionGroup" stepKey =" checkProgressBar" />
50
51
<actionGroup ref =" SelectMultiShippingInfoActionGroup" stepKey =" checkoutWithMultipleShipping" />
51
52
<actionGroup ref =" SelectBillingInfoActionGroup" stepKey =" checkoutWithPaymentMethod" />
52
53
<actionGroup ref =" ReviewOrderForMultiShipmentActionGroup" stepKey =" reviewOrderForMultiShipment" />
Original file line number Diff line number Diff line change 15
15
*/
16
16
?>
17
17
<ul class="block multicheckout progress items opc-progress-bar" id="checkout-progress-state">
18
- <?php foreach ($ block ->getSteps () as $ _step ) : ?>
19
- <li title="<?= $ block ->escapeHtmlAttr ($ _step ->getLabel ()) ?> " class="opc-progress-bar-item item<?= ($ _step ->getIsActive ()) ? ' _active ' : '' ?> ">
18
+ <?php foreach ($ block ->getSteps () as $ _step ): ?>
19
+ <li title="<?= $ block ->escapeHtmlAttr ($ _step ->getLabel ()) ?> "
20
+ class="opc-progress-bar-item item<?= ($ _step ->getIsActive ()) ? ' _active ' : '' ?> ">
20
21
<span><?= $ block ->escapeHtml ($ _step ->getLabel ()) ?> </span>
21
22
</li>
22
23
<?php endforeach ; ?>
You can’t perform that action at this time.
0 commit comments