package cz.moneta.test.regression.commercial.smallbusiness.digital.jenkinstests.existing;

import cz.moneta.test.dsl.Harness;
import cz.moneta.test.harness.annotations.JiraTestCase;
import cz.moneta.test.harness.annotations.TestCase;
import cz.moneta.test.harness.annotations.TestScenario;
import org.junit.jupiter.api.Disabled;

//FIXME add credentails
@TestScenario(name = "ExpresBusiness banner must be visible for FOP clients with valid IL.")
@Disabled("Obsolete test - old IB")
public class LoanBannerOnExist {

    private static final String USER_NAME = "303996700";
    private static final String PASSWORD = "FmMCq5a8";
    private static final String MOBILE_KEY = "12341234";

    @TestCase(name = "Verify FOP client see loan banner on homepage")
    @JiraTestCase(id = "SBD-T47")
    public void tc_fop_client_see_loan_banner(Harness harness) {
        harness.withIB()
                .openLoginPage()
                .then(harness.tasks().ib().loginWithUsernamePasswordAndMobileKey(USER_NAME, PASSWORD, MOBILE_KEY))
                .onWelcomePage()
                .checkUserHasALoanBanner();
    }

}
