Some changes.
diff --git a/Pages/Accounting b/Pages/Accounting
index 450ff0d..de89b1a 100644
--- a/Pages/Accounting
+++ b/Pages/Accounting
@@ -52,6 +52,7 @@
goToChequeClearing: function() {
browser.wait(EC.visibilityOf($("a[href='/accounting/cheques']")), 3000);
$("a[href='/accounting/cheques']").click();
+ browser.sleep(1000);
},
goToTrialBalance: function() {
browser.wait(EC.visibilityOf($("a[href='/accounting/trialBalance']")), 3000);
diff --git a/Pages/Cheques.js b/Pages/Cheques.js
index 12dfa77..f697012 100644
--- a/Pages/Cheques.js
+++ b/Pages/Cheques.js
@@ -41,7 +41,7 @@
enterTextIntoAccountNumberInputField: function(text) {
browser.executeScript("arguments[0].scrollIntoView();", accountNumberInput.getWebElement());
browser.wait(EC.visibilityOf(accountNumberInput), 1000);
- browser.sleep(200);
+ browser.sleep(300);
accountNumberInput.click().clear().sendKeys(text);
},
enterTextIntoIssuingBankInputField: function(text) {
diff --git a/Specs/cheque_management.js b/Specs/cheque_management.js
index 2410513..b29d5ba 100644
--- a/Specs/cheque_management.js
+++ b/Specs/cheque_management.js
@@ -505,7 +505,7 @@
Accounting.verifyTransactionTypeForRow("DEBIT", 1);
Accounting.verifyTransactionMessageForRow("ORCQ", 1);
Accounting.verifyTransactionAmountForRow("5000", 1);
- Accounting.verifyTransactionBalanceForRow("-5000", 1);
+ Accounting.verifyTransactionBalanceForRow("0", 1);
Common.clickBackButtonInTitleBar();
Common.clickBackButtonInTitleBar();
Common.clickLinkShowForRowWithId(customerAccount + ".9100.00001");
@@ -513,7 +513,7 @@
Accounting.verifyTransactionTypeForRow("CREDIT", 6);
Accounting.verifyTransactionMessageForRow("ORCQ", 6);
Accounting.verifyTransactionAmountForRow("5000", 6);
- Accounting.verifyTransactionBalanceForRow("10750.54", 5);
+ Accounting.verifyTransactionBalanceForRow("10750.54", 6);
});
it('customer should not be able to cash cheque if account is locked - cheque is on us', function () {
//lock second customer's account