@@ -0,0 +1,1412 @@
+package io.syndesis.qe.pages.dashboard;%0A%0Aimport static com.codeborne.selenide.Selenide.$;%0Aimport static com.codeborne.selenide.Condition.visible;%0A%0Aimport org.openqa.selenium.By;%0A%0Aimport com.codeborne.selenide.SelenideElement;%0A%0Aimport io.syndesis.qe.pages.SyndesisPageObject;%0Aimport lombok.extern.slf4j.Slf4j;%0A%0A/**%0A * Created by sveres on 11/15/17.%0A */%0A@Slf4j%0Apublic class DashboardPage extends SyndesisPageObject %7B%0A%0A%09private static final class Element %7B%0A%09%09public static final By ROOT = By.cssSelector(%22syndesis-dashboard%22);%0A%09%7D%0A%0A%09@Override%0A%09public SelenideElement getRootElement() %7B%0A%09%09return $(Element.ROOT);%0A%09%7D%0A%0A%09@Override%0A%09public boolean validate() %7B%0A%09%09return $(Element.ROOT).is(visible);%0A%09%7D%0A%0A%09SelenideElement getConnection(String connectionTitle) %7B%0A%09%09log.info(%22searching for connection %7B%7D%22, connectionTitle);%0A%09%09return this.getRootElement().$(String.format(%22h2.card-pf-title.text-center%5Btitle=%5C%22%25s%5C%22%5D%22, connectionTitle));%0A%09%7D%0A%0A%09void goToConnection(String connectionTitle) %7B%0A%09%09log.info(%22searching for connection %7B%7D%22, connectionTitle);%0A%09%09this.getConnection(connectionTitle).shouldBe(visible).click();%0A%09%7D%0A%0A%09boolean isIntegrationPresent(String integrationName) %7B%0A%09%09log.info(%22Checking if integration %7B%7D is present in the list%22, integrationName);%0A%09%09SelenideElement integration = this.getRootElement().find(By.cssSelector(String.format(%22div%5Binnertext='%25s'%5D%22, integrationName)));%0A%09%09return integration.is(visible);%0A%09%7D%0A%0A%7D%0A

Work on e2e refactoring to Java - dashboard