IDEMPIERE-92 Implement Selenium testing framework. Make credit card payment form test ready.
This commit is contained in:
parent
79bc88e332
commit
dd884d5297
|
@ -102,20 +102,24 @@ public class WPaymentFormCreditCard extends PaymentFormCreditCard implements Eve
|
|||
column.setWidth("60%");
|
||||
|
||||
kAmountField.getComponent().setWidth("150px");
|
||||
kAmountField.getComponent().setId("K_Ammount");
|
||||
|
||||
Rows rows = kLayout.newRows();
|
||||
Row row = rows.newRow();
|
||||
row.appendChild(kTypeLabel.rightAlign());
|
||||
row.appendChild(kTypeCombo);
|
||||
kTypeCombo.addEventListener(Events.ON_SELECT, this);
|
||||
kTypeCombo.setId("K_Type");
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(kNumberLabel.rightAlign());
|
||||
row.appendChild(kNumberField);
|
||||
kNumberField.setId("K_CreditCardNumber");
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(kExpLabel.rightAlign());
|
||||
row.appendChild(kExpField);
|
||||
kExpField.setId("K_Expires");
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(kAmountLabel.rightAlign());
|
||||
|
@ -125,13 +129,16 @@ public class WPaymentFormCreditCard extends PaymentFormCreditCard implements Eve
|
|||
row = rows.newRow();
|
||||
row.appendChild(kApprovalLabel.rightAlign());
|
||||
row.appendChild(kApprovalField);
|
||||
kApprovalField.setId("K_Approval");
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(new Space());
|
||||
row.appendChild(kOnline);
|
||||
kOnline.setId("K_Online");
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendCellChild(kStatus, 2);
|
||||
kStatus.setId("status");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -15,6 +15,7 @@ package org.adempiere.webui.editor;
|
|||
|
||||
import javax.swing.event.ListDataListener;
|
||||
|
||||
import org.adempiere.webui.AdempiereWebUI;
|
||||
import org.adempiere.webui.adwindow.ADTabpanel;
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.apps.form.WPaymentFormFactory;
|
||||
|
@ -296,6 +297,7 @@ public class WPaymentEditor extends WEditor implements ListDataListener {
|
|||
{
|
||||
final WPaymentFormWindow window = (WPaymentFormWindow) pf.getWindow();
|
||||
|
||||
window.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "paymentForm");
|
||||
if (window.isInitOK())
|
||||
{
|
||||
window.setAttribute(Window.MODE_KEY, Window.MODE_HIGHLIGHTED);
|
||||
|
|
Loading…
Reference in New Issue