Put payment method description just above the

+ update spec by adding `data-paymentmethod-id` attribute
This commit is contained in:
Jean-Baptiste Bellet
2022-12-13 15:39:54 +01:00
parent f1bb4fdf38
commit 2d86e8857a
3 changed files with 13 additions and 9 deletions

View File

@@ -18,19 +18,19 @@ describe("PaymentmethodController", () => {
<input id="paymentmethod_2" data-action="click->paymentmethod#selectPaymentMethod" data-paymentmethod-id="paymentmethod2" data-paymentmethod-target="input" checked="checked" />
<input id="paymentmethod_3" data-action="click->paymentmethod#selectPaymentMethod" data-paymentmethod-id="paymentmethod3" data-paymentmethod-target="input"/>
<div class="paymentmethod-container" id="paymentmethod1">
<div class="paymentmethod-container" id="paymentmethod1" data-paymentmethod-id="paymentmethod1">
<input type="number" id="input1" />
<select id="select1" >
<option value="1">1</option>
</select>
</div>
<div class="paymentmethod-container" id="paymentmethod2">
<div class="paymentmethod-container" id="paymentmethod2" data-paymentmethod-id="paymentmethod2">
<input type="number" id="input2" />
<select id="select2" >
<option value="1">1</option>
</select>
</div>
<div class="paymentmethod-container" id="paymentmethod3">
<div class="paymentmethod-container" id="paymentmethod3" data-paymentmethod-id="paymentmethod3">
<input type="number" id="input3" />
<select id="select3" >
<option value="1">1</option>