package cz.moneta.test.regression.channels.branch.archive;

import cz.moneta.test.dsl.Harness;
import cz.moneta.test.dsl.ufo.banka.tasks.BankaTasks;
import cz.moneta.test.dsl.util.credentials.Keys;
import cz.moneta.test.harness.annotations.JiraTestCase;
import cz.moneta.test.harness.annotations.TestCase;
import cz.moneta.test.harness.annotations.TestScenario;
import cz.moneta.test.harness.support.auth.Credentials;
import cz.moneta.test.harness.support.auth.Key;
import org.junit.jupiter.api.Disabled;

import static cz.moneta.test.harness.annotations.Environment.EDU;
import static cz.moneta.test.harness.annotations.Environment.PPE;
import static cz.moneta.test.harness.annotations.Environment.TST1;

@Disabled
@TestScenario(name = "Teller must be able to crate a new customer with BU Genius Gold and SU Gold")
public class CreateNewCustomerWithBUSUGold {

    @TestCase(name = "Bank teller is able to login and create a new customer with BU Genius Gold and SU Gold", environments = {TST1, PPE, EDU})
    @JiraTestCase(id = "POB-T18680")
    public void tcBankTellerIsAbleCreateNewCustomerWithBuSuGold(Harness harness, @Key(Keys.ufo.banka.banker) Credentials banker) {
        BankaTasks tasks = harness.tasks().ufo().banka();

        harness.withUfo()
                .openLoginPage()
                .then(tasks.login().withCredentialsAndTurnOffSignpad(banker))
                .then(tasks.newClient().create(banker.getUsername()))
                .then(tasks.newPackagedProductTasks().createNewCurrentAccountGeniusGoldWithSavingsAccountGold());
    }
}
