Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="StorefrontOrderDetailsSection">
<element name="orderDateTagElement" type="block" selector=".order-date date"/>
<element name="orderDetailsBlock" type="block" selector=".block-order-details-view"/>
<element name="billingAddressBlock" type="block" selector=".box-order-billing-address > .box-content > address"/>
<element name="discountSalesRule" type="text" selector="tr.discount span.price"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@

<!-- Assert invoiced amount on frontend -->
<click selector="{{StorefrontCustomerOrderSection.viewOrder}}" stepKey="clickViewOrder"/>
<dontSeeElement selector="{{StorefrontOrderDetailsSection.orderDateTagElement}}" stepKey="dontSeeDateTag"/>
<click selector="{{StorefrontOrderInvoicesSection.invoiceTab}}" stepKey="clickInvoiceTabOnStorefront"/>
<see selector="{{StorefrontOrderInvoicesSection.grandTotalPrice}}" userInput="$110.00" stepKey="seePrice"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@
*/
?>
<div class="order-date">
<?= $block->escapeHtml(__('<span class="label">Order Date:</span> %1', '<date>' . $block->formatDate($block->getOrder()->getCreatedAt(), \IntlDateFormatter::LONG) . '</date>'), ['span', 'date']) ?>
<?= $block->escapeHtml(
__(
'<span class="label">Order Date:</span> %1',
'<span>' . $block->formatDate($block->getOrder()->getCreatedAt(), \IntlDateFormatter::LONG) . '</span>'
),
['span']
)?>
</div>