Skip to content
Permalink
Browse files
Protractor tests. Loan product tests.
  • Loading branch information
ndelvos78 committed Oct 20, 2017
1 parent 317aae5 commit 2f6b4819a003bc8d72dc8ce4ea494d33427cbc55
Showing 3 changed files with 18 additions and 1 deletion.
@@ -136,6 +136,8 @@ module.exports = {
opt.click();
},
enterTextIntoPaymentPeriodInputField: function (text) {
browser.executeScript("arguments[0].scrollIntoView();", paymentPeriod.getWebElement());
browser.wait(EC.visibilityOf(paymentPeriod), 2000);
paymentPeriod.click().clear().sendKeys(text);
},
selectPaymentPeriod: function (paymentPeriod) {
@@ -228,6 +230,12 @@ module.exports = {
status = $("fims-state-display .mat-list-text .mat-line").getText();
expect(status).toEqual(expectedStatus);
},
goToStepLoanDetails: function(){
browser.sleep(100);
browser.wait(EC.elementToBeClickable($$(".td-step-label").get(0)), 3000);
$$(".td-step-label").get(0).click();
browser.sleep(1000);
},
goToStepDebtToIncomeRatio: function(){
browser.sleep(100);
browser.wait(EC.elementToBeClickable($$(".td-step-label").get(1)), 3000);
@@ -176,6 +176,7 @@ module.exports = {
chargeNameInput1.click().sendKeys(text);
},
clickButtonAddCharge: function(){
browser.wait(EC.visibilityOf($("fims-deposit-product-charges-form button")), 2000);
browser.wait(EC.elementToBeClickable($("fims-deposit-product-charges-form button")), 2000);
$("fims-deposit-product-charges-form button").click();
},
@@ -422,14 +422,22 @@ describe('Loans 1', function() {
//CustomerLoans.enterTextIntoMemberInputField();
//documents
CustomerLoans.goToStepDocuments();
browser.pause();
//still error for payment period
CustomerLoans.verifyButtonCreateMemberLoanDisabled();
CustomerLoans.goToStepLoanDetails();
CustomerLoans.enterTextIntoPaymentPeriodInputField("5");
CustomerLoans.verifyButtonCreateMemberLoanEnabled();
CustomerLoans.clickEnabledCreateMemberLoanButton();
Common.verifyMessagePopupIsDisplayed("Case is going to be saved");
Customers.verifyStateOfLoanAccountWithIdIs(loanAccountShortName, "CREATED");
//details
Common.clickLinkShowForRowWithId(loanAccountShortName);
//details

});
it('planned payment', function () {
CustomerLoans.viewPlannedPaymentForCustomerLoan(customerAccount, loanShortName, loanAccountShortName);
//error, ATEN-474
});
it('debt/income ratio', function () {
CustomerLoans.viewDebtIncomeReportForCustomerLoan(customerAccount, loanShortName, loanAccountShortName);

0 comments on commit 2f6b481

Please sign in to comment.