use of io.cucumber.java.en.Then in project syndesis-qe by syndesisio.
the class DetailSteps method validateOauthConnectionByClickingValidateButton.
@Then("validate oauth connection {string} by clicking Validate button")
public void validateOauthConnectionByClickingValidateButton(String connectionName) {
Connections connectionsPage = new Connections();
connectionsPage.getConnection(connectionName).shouldBe(Condition.visible).click();
new CommonSteps().clickOnButton("Validate");
detailPage.getCloseableAllerts(Alert.SUCCESS).first().shouldBe(exist);
}
use of io.cucumber.java.en.Then in project syndesis-qe by syndesisio.
the class ApicurioSteps method verifyOperations.
@ExcludeFromSelectorReports
@Then("^check that apicurio shows (\\d+) imported operations$")
public void verifyOperations(int expectedCount) {
SelenideElement operations = $(Elements.PAGE_ROOT).shouldBe(visible).find(Elements.NUMBER_OPERATIONS);
assertThat(operations).isNotNull();
assertThat(operations.getText()).containsIgnoringCase(Integer.toString(expectedCount)).containsIgnoringCase("operations");
}
use of io.cucumber.java.en.Then in project syndesis-qe by syndesisio.
the class ApicurioSteps method verifyWarnings.
@ExcludeFromSelectorReports
@Then("^check that apicurio shows (\\d+) warnings$")
public void verifyWarnings(int expectedCount) {
SelenideElement operations = $(Elements.WARNINGS).shouldBe(visible);
assertThat(operations).isNotNull();
assertThat(operations.getText()).containsIgnoringCase(Integer.toString(expectedCount));
}
use of io.cucumber.java.en.Then in project syndesis-qe by syndesisio.
the class DashboardSteps method expectIntegrationPresentinTopFive.
@Then("^check that 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));
}
use of io.cucumber.java.en.Then in project syndesis-qe by syndesisio.
the class DashboardSteps method expectIntegrationNotPresentOnDashboard.
@Then("^check that integration \"([^\"]*)\" is not 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();
}
Aggregations