Skip to content

Commit e537a76

Browse files
mftf, fix static
1 parent 1764aa8 commit e537a76

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

app/code/Magento/Sales/Test/Mftf/Section/StorefrontOrderDetailsSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="StorefrontOrderDetailsSection">
12+
<element name="orderDateTagElement" type="block" selector=".order-date date"/>
1213
<element name="orderDetailsBlock" type="block" selector=".block-order-details-view"/>
1314
<element name="billingAddressBlock" type="block" selector=".box-order-billing-address > .box-content > address"/>
1415
<element name="discountSalesRule" type="text" selector="tr.discount span.price"/>

app/code/Magento/Sales/Test/Mftf/Test/CreateInvoiceAndCheckInvoiceOrderTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143

144144
<!-- Assert invoiced amount on frontend -->
145145
<click selector="{{StorefrontCustomerOrderSection.viewOrder}}" stepKey="clickViewOrder"/>
146+
<dontSeeElement selector="{{StorefrontOrderDetailsSection.orderDateTagElement}}" stepKey="dontSeeDateTag"/>
146147
<click selector="{{StorefrontOrderInvoicesSection.invoiceTab}}" stepKey="clickInvoiceTabOnStorefront"/>
147148
<see selector="{{StorefrontOrderInvoicesSection.grandTotalPrice}}" userInput="$110.00" stepKey="seePrice"/>
148149
</test>

app/code/Magento/Sales/view/frontend/templates/order/order_date.phtml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
*/
66
?>
77
<div class="order-date">
8-
<?= $block->escapeHtml(__('<span class="label">Order Date:</span> %1', '<span>' . $block->formatDate($block->getOrder()->getCreatedAt(), \IntlDateFormatter::LONG) . '</span>'), ['span']) ?>
8+
<?= $block->escapeHtml(
9+
__(
10+
'<span class="label">Order Date:</span> %1',
11+
'<span>' . $block->formatDate($block->getOrder()->getCreatedAt(), \IntlDateFormatter::LONG) . '</span>'
12+
),
13+
['span']
14+
)?>
915
</div>

0 commit comments

Comments
 (0)