Skip to content
Permalink
Browse files
Protractor tests. Loan product tests.
  • Loading branch information
ndelvos78 committed Oct 20, 2017
1 parent 094546f commit ddf6a66a99793822772d6a1f5c5322ad93db8948
Showing 3 changed files with 16 additions and 4 deletions.
@@ -364,7 +364,7 @@ module.exports = {
$('a[href="' + link + '"]').click();
},
viewDebtIncomeReportForCustomerLoan: function(customer, productIdentifier, accountIdentifier){
link = "/customers/detail/" + customer + "/loans/products/" + productIdentifier + "/detail/" + accountIdentifier + "/tasks";
link = "/customers/detail/" + customer + "/loans/products/" + productIdentifier + "/detail/" + accountIdentifier + "/debtIncome";
browser.wait(EC.elementToBeClickable($('a[href="' + link + '"]')), 5000);
$('a[href="' + link + '"]').click();
browser.wait(EC.visibilityOf($("fims-layout-card-over")), 2000);
@@ -83,6 +83,10 @@ module.exports = {
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(protractor.Key.BACK_SPACE);
maximumPrincipalInput.sendKeys(text);
},
verifyPrincipalAmountInputFieldsHaveError: function(text) {
@@ -436,10 +436,9 @@ describe('Loans 1', function() {
CustomerLoans.verifyCurrentStatusForLoanAccountInRow("CREATED", 1);
Common.clickLinkShowForRowWithId(loanAccountShortName);
//details

});
it('planned payment', function () {
//CustomerLoans.viewPlannedPaymentForCustomerLoan(customerAccount, loanShortName, loanAccountShortName);
CustomerLoans.viewPlannedPaymentForCustomerLoan(customerAccount, loanShortName, loanAccountShortName);
//error, ATEN-474
});
it('debt/income ratio', function () {
@@ -450,8 +449,17 @@ describe('Loans 1', function() {
});
it('should be able to edit loan account until it has been approved', function () {
CustomerLoans.clickUpdateLoanAccountForMember(customerAccount, loanShortName2, loanAccountShortName);
//browser.pause();
browser.pause();
//edit loan account to different one (different product, different settings)
CustomerLoans.selectProduct(loanShortName);
//error principal & interest rate, bug
CustomerLoans.verifyButtonUpdateMemberLoanDisabled();
CustomerLoans.enterTextIntoPrincipalAmountInputField(10000);
CustomerLoans.enterTextIntoInterestRateInputField("3.60");
CustomerLoans.verifyButtonUpdateMemberLoanDisabled();
CustomerLoans.clickEnabledUpdateMemberLoanButton();
//unexpected error, bug
Common.verifyMessagePopupIsDisplayed("Case is going to be saved");
//planned payment
//...
});

0 comments on commit ddf6a66

Please sign in to comment.