package cz.moneta.test.dsl.ufo.cb.landing;

import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.cb.landing.CHT401_S001_ChatPage.LOAD_DISCUSSION_IMG;

@Wait(value = LOAD_DISCUSSION_IMG)
public interface CHT401_S001_ChatPage extends WebFlow<CHT401_S001_ChatPage> {

    String LOAD_DISCUSSION_IMG = "CHT401_S001_P002-1";
    String POST_DETAIL_IMG = "CHT401_S001_P003-1";
    String CLOSE_DETAIL_BUTTON = "CHT401_S001_B007";
    String END_CHAT_BUTTON = "CHT401_S001_B002";

    @Click(value = LOAD_DISCUSSION_IMG, andWait = @Wait(POST_DETAIL_IMG) )
    CHT401_S001_ChatPage clickLoadDiscussion();

    @Click(value = POST_DETAIL_IMG, andWait = @Wait(CLOSE_DETAIL_BUTTON) )
    CHT401_S001_ChatPage clickPostDetail();

    @Click(value = CLOSE_DETAIL_BUTTON)
    CHT401_S001_ChatPage clickCloseDetail();

    @Click(value = END_CHAT_BUTTON)
    IKL402_S001_ClientPage clickEndChat();

    @CheckElementPresent(LOAD_DISCUSSION_IMG)
    CHT401_S001_ChatPage checkElementLoadDiscussion();
}
