Search in sources :

Example 1 with DashboardPage

use of io.syndesis.qe.pages.dashboard.DashboardPage in project syndesis-qe by syndesisio.

the class DashboardSteps method expectConnectionTitleNonPresent.

@Then("^Camilla can not see \"([^\"]*)\" connection on dashboard page anymore$")
public void expectConnectionTitleNonPresent(String connectionName) {
    DashboardPage dashboardPage = new DashboardPage();
    SelenideElement connection = dashboardPage.getConnection(connectionName);
    connection.shouldNotBe(visible);
}
Also used : DashboardPage(io.syndesis.qe.pages.dashboard.DashboardPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Example 2 with DashboardPage

use of io.syndesis.qe.pages.dashboard.DashboardPage in project syndesis-qe by syndesisio.

the class DashboardSteps method expectIntegrationPresentinTopFive.

@Then("^Integration \"([^\"]*)\" is present in top 5 integrations$")
public void expectIntegrationPresentinTopFive(String name) {
    log.info("Verifying integration {} is present in top 5 integrations", name);
    DashboardPage dashboardPage = new DashboardPage();
    Assertions.assertThat(dashboardPage.isIntegrationPresent(name));
}
Also used : DashboardPage(io.syndesis.qe.pages.dashboard.DashboardPage) Then(cucumber.api.java.en.Then)

Example 3 with DashboardPage

use of io.syndesis.qe.pages.dashboard.DashboardPage in project syndesis-qe by syndesisio.

the class DashboardSteps method expectIntegrationNotPresentOnDashboard.

@Then("^Camilla can not see \"([^\"]*)\" integration in top 5 integrations anymore$")
public void expectIntegrationNotPresentOnDashboard(String name) {
    log.info("Verifying if integration {} is present", name);
    DashboardPage dashboardPage = new DashboardPage();
    Assertions.assertThat(dashboardPage.isIntegrationPresent(name)).isFalse();
}
Also used : DashboardPage(io.syndesis.qe.pages.dashboard.DashboardPage) Then(cucumber.api.java.en.Then)

Example 4 with DashboardPage

use of io.syndesis.qe.pages.dashboard.DashboardPage in project syndesis-qe by syndesisio.

the class DashboardSteps method expectConnectionTitlePresent.

@Then("^Camilla can see \"([^\"]*)\" connection on dashboard page$")
public void expectConnectionTitlePresent(String connectionName) {
    DashboardPage dashboardPage = new DashboardPage();
    SelenideElement connection = dashboardPage.getConnection(connectionName);
    connection.shouldBe(visible);
}
Also used : DashboardPage(io.syndesis.qe.pages.dashboard.DashboardPage) SelenideElement(com.codeborne.selenide.SelenideElement) Then(cucumber.api.java.en.Then)

Aggregations

Then (cucumber.api.java.en.Then)4 DashboardPage (io.syndesis.qe.pages.dashboard.DashboardPage)4 SelenideElement (com.codeborne.selenide.SelenideElement)2