Protractor tests.
diff --git a/Pages/Cheques.js b/Pages/Cheques.js
index f391171..f2d24c8 100644
--- a/Pages/Cheques.js
+++ b/Pages/Cheques.js
@@ -41,6 +41,7 @@
enterTextIntoAccountNumberInputField: function(text) {
browser.executeScript("arguments[0].scrollIntoView();", accountNumberInput.getWebElement());
browser.wait(EC.visibilityOf(accountNumberInput), 1000);
+ browser.sleep(200);
accountNumberInput.click().clear().sendKeys(text);
},
enterTextIntoIssuingBankInputField: function(text) {
diff --git a/Pages/Common.js b/Pages/Common.js
index 87d37e4..a6d5cc6 100644
--- a/Pages/Common.js
+++ b/Pages/Common.js
@@ -68,6 +68,7 @@
clickFirstColumnHeaderInTableToResortTable: function(){
browser.wait(EC.visibilityOf($("th")), 5000);
$$("th").first().click();
+ browser.sleep(200);
},
clickLinkShowForRowWithId2: function(identifier) {
numberPages = 1;
diff --git a/Specs/cheque_management.js b/Specs/cheque_management.js
index aee5663..7424a4f 100644
--- a/Specs/cheque_management.js
+++ b/Specs/cheque_management.js
@@ -487,6 +487,7 @@
Common.clickLinkShowForRowWithId("9100");
Common.clickLinkShowForRowWithId(customerAccount2 + ".9100.00001");
Accounting.viewAccountEntriesForAccount(customerAccount2 + ".9100.00001");
+ Common.clickFirstColumnHeaderInTableToResortTable();
Accounting.verifyTransactionTypeForRow("DEBIT", 1);
Accounting.verifyTransactionMessageForRow("ORCQ", 1);
Accounting.verifyTransactionAmountForRow("5000.00", 1);
@@ -532,6 +533,10 @@
Cheques.clickCreateTransactionButton();
Cheques.verifyErrorMessageDisplayedWithTitleAndText("Invalid transaction", "Account " + customerAccount2 + ".9100.00005 not found.");
Cheques.clickButtonOKInErrorMessage();
+ Cheques.enterTextIntoAccountNumberInputField(customerAccount2 + ".9100.0000");
+ Cheques.clickCreateTransactionButton();
+ Cheques.verifyErrorMessageDisplayedWithTitleAndText("Invalid transaction", "Account " + customerAccount2 + ".9100.0000 not found.");
+ Cheques.clickButtonOKInErrorMessage();
//change branch sort code to a code that is not one of the office identifiers for the client and verify transaction goes through
Cheques.enterTextIntoBranchSortCodeInputField("boa");
Cheques.clickCreateTransactionButton();
diff --git a/Specs/gate1.js b/Specs/gate1.js
index 3aaa9f6..45c7b2a 100644
--- a/Specs/gate1.js
+++ b/Specs/gate1.js
@@ -579,7 +579,6 @@
Teller.verifyCardTitleHasNameOfCustomer("Thomas Pynchon");
Teller.clickOnRepayLoanForCustomer(customerAccount);
Teller.selectLoanAccountToBeAffected(customerAccount + ".clp.00001(" + loanShortName + ")");
- browser.pause();
//expected payment amount will be similar but not always the same
Teller.getExpectedPaymentAmount().then(function(expPaym){
expPayment = expPaym;