Skip to content

Commit

Permalink
Fix behats
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Dec 4, 2024
1 parent f7323ba commit c79d94f
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% if credit_memo.from != null %}
<div class="col-12 col-md-6 mb-3">
<div class="card h-full" id="from-address">
<div class="card h-full">
{% hook 'buyer_card' with { credit_memo } %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set credit_memo = hookable_metadata.context.credit_memo %}

<div class="card-body">
<address class="d-flex flex-column">
<address class="d-flex flex-column" id="from-address">
{% hook 'address' with { 'from': credit_memo.from } %}
</address>
</div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius.ui.currency'|trans }}</th>
<th class="sylius-table-column-currency_code">{{ 'sylius.ui.currency'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius_refund.ui.gross_value'|trans }}</th>
<th class="sylius-table-column-gross_value">{{ 'sylius_refund.ui.gross_value'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius.ui.name'|trans }}</th>
<th class="sylius-table-column-name">{{ 'sylius.ui.name'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius_refund.ui.net_value'|trans }}</th>
<th class="sylius-table-column-net_value">{{ 'sylius_refund.ui.net_value'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius_refund.ui.no'|trans }}</th>
<th class="">{{ 'sylius_refund.ui.no'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius.ui.quantity'|trans }}</th>
<th class="sylius-table-column-quantity">{{ 'sylius.ui.quantity'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius_refund.ui.tax_amount'|trans }}</th>
<th class="sylius-table-column-tax_amount">{{ 'sylius_refund.ui.tax_amount'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius_refund.ui.tax_rate'|trans }}</th>
<th class="">{{ 'sylius_refund.ui.tax_rate'|trans }}</th>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<th>{{ 'sylius_refund.ui.unit_net_price'|trans }}</th>
<th class="">{{ 'sylius_refund.ui.unit_net_price'|trans }}</th>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% if credit_memo.to != null and credit_memo.to.taxId != null %}
<div class="col-12 col-md-6 mb-3">
<div class="card h-full" id="to-address">
<div class="card h-full">
{% hook 'seller_card' with { credit_memo } %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set credit_memo = hookable_metadata.context.credit_memo %}

<address class="d-flex flex-column">
<address class="d-flex flex-column" id="to-address">
{% hook 'address' with { 'to': credit_memo.to } %}
</address>
2 changes: 1 addition & 1 deletion templates/admin/order/credit_memo/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if credit_memos|length > 0 %}
<div class="py-3">
<div class="table-responsive">
<table class="table table-vcenter table-borderless table-sm card-table">
<table class="table table-vcenter table-borderless table-sm card-table" id="credit-memos">
<tbody>
{% for credit_memo in credit_memos %}
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set order = hookable_metadata.context.order %}
{% set unit = hookable_metadata.context.unit %}

<td>
<td class="partial-refund">
{% set inputName = "sylius_refund_units["~unit.id~"][amount]" %}
{% set hiddenInputName = "sylius_refund_units["~unit.id~"][partial-id]" %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="card-body">
<div class="d-flex justify-content-between">
<h3 class="mb-0">{{ 'sylius_refund.ui.refunded_total'|trans }}:</h3>
<h3 class="mb-0">{{ money.format(order_refunded_total(order.number), order.currencyCode) }}</h3>
<h3 class="mb-0" id="refunded-total">{{ money.format(order_refunded_total(order.number), order.currencyCode) }}</h3>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion tests/Behat/Context/Ui/Shop/Customer/CreditMemoContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function pdfFileShouldBeSuccessfullyDownloaded(): void
*/
public function downloadFirstCreditMemo(): void
{
$this->customerOrderShowPage->downloadCreditMemo(1);
$this->customerOrderShowPage->downloadCreditMemo(0);
}

/**
Expand Down

0 comments on commit c79d94f

Please sign in to comment.