package cz.moneta.test.dsl.ufo.banka.pages.products.one.click;

import cz.moneta.test.dsl.ufo.banka.pages.loans.CAS001_S001_ScoringPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.HKO101_S001_MainClientPage;
import cz.moneta.test.dsl.ufo.banka.pages.requests.BAL006_S002_ClientRequestPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.products.one.click.BAL015_S001_PackageDetail.END_BUTTON;
import static cz.moneta.test.dsl.ufo.operations.shared.SharedElements.LOAD_IMG_DIV_CLASS;

@Wait(value = END_BUTTON, waitSecondsForElement = 120)
public interface BAL015_S001_PackageDetail extends WebFlow<BAL015_S001_PackageDetail> {

    String END_BUTTON = "BAL015_S001_B001";
    String PACKAGE_FOUNDATION_BUTTON = "BAL015_S001_B003";

    @Click(END_BUTTON)
    HKO101_S001_MainClientPage clickEndButtonToMainPage();

    @Click(END_BUTTON)
    BAL006_S002_ClientRequestPage clickEndButtonToListOfRequestsPage();

    @Wait(value = LOAD_IMG_DIV_CLASS, until = Until.GONE)
    @Click(PACKAGE_FOUNDATION_BUTTON)
    CAS001_S001_ScoringPage clickPackageFoundationButtonAndSendToApproval();

}
