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
4 changes: 2 additions & 2 deletions assets/js/refund-button.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.addEventListener('DOMContentLoaded', function () {
const refundButtons = document.querySelectorAll('[data-refund]');
const refundAllButton = document.querySelector('[data-test-refund-all]');
const refundClearAllButton = document.querySelector('[data-test-clear-all]');
const refundAllButton = document.querySelector('[data-refund-all]');
const refundClearAllButton = document.querySelector('[data-refund-clear]');
const refundInputs = document.querySelectorAll('[data-refund-input]');

refundButtons.forEach(function (button) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set disable_button = hookable_metadata.context.disable_button %}

<button type="submit" class="dropdown-item" {{ sylius_test_html_attribute('clear-all') }} {{ disable_button }}>
<button data-refund-clear type="submit" class="dropdown-item" {{ sylius_test_html_attribute('clear-all') }} {{ disable_button }}>
{{ ux_icon('tabler:circle-check', {'class': 'icon dropdown-item-icon'}) }}
{{ 'sylius_refund.ui.clear_refunds'|trans }}
</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set disable_button = hookable_metadata.context.disable_button %}

<button type="submit" class="dropdown-item" {{ sylius_test_html_attribute('refund-all') }} {{ disable_button }}>
<button data-refund-all type="submit" class="dropdown-item" {{ sylius_test_html_attribute('refund-all') }} {{ disable_button }}>
{{ ux_icon('tabler:repeat', {'class': 'icon dropdown-item-icon'}) }}
{{ 'sylius_refund.ui.refund_all'|trans }}
</button>
5 changes: 5 additions & 0 deletions tests/Application/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ SYLIUS_MESSENGER_TRANSPORT_MAIN_FAILED_DSN=sync://
SYLIUS_MESSENGER_TRANSPORT_CATALOG_PROMOTION_REMOVAL_DSN=sync://
SYLIUS_MESSENGER_TRANSPORT_CATALOG_PROMOTION_REMOVAL_FAILED_DSN=sync://
###< symfony/messenger ###

###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private-test.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public-test.pem
###< lexik/jwt-authentication-bundle ###