use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class JiraSteps method fillIssueKey.
@When("fill in issuekey for previously created issue")
public void fillIssueKey() {
Form.waitForInputs(20);
new Form(new SyndesisRootPage().getRootElement()).fillByTestId(TestUtils.map("issuekey", sharedIssueKey));
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class SettingsPage method fillOAuthItem.
public void fillOAuthItem(SelenideElement item, String credentialsName) {
Form form = new Form(item);
Account account = AccountsDirectory.getInstance().get(credentialsName);
Map<String, String> properties = new HashMap<>();
account.getProperties().forEach((key, value) -> properties.put(key.toLowerCase(), value));
form.fillByTestId(properties);
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class CommonSteps method fillFormViaID.
@Then("^fill in values by element ID")
public void fillFormViaID(DataTable data) {
Form.waitForInputs(20);
TestUtils.sleepIgnoreInterrupt(2000);
new Form(new SyndesisRootPage().getRootElement()).fillById(data.asMap(String.class, String.class));
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class CommonSteps method fillFormByTestIdFromCreds.
@Then("^fill in data-testid field \"([^\"]*)\" from property \"([^\"]*)\" of credentials \"([^\"]*)\"")
public void fillFormByTestIdFromCreds(String testId, String property, String credentials) {
Account account = AccountsDirectory.getInstance().get(credentials);
Map<String, String> map = new HashMap<>();
map.put(testId, account.getProperty(property));
new Form(new SyndesisRootPage().getRootElement()).fillByTestId(map);
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class TodoSteps method fillHostUrl.
@When("^fill in TODO API host URL$")
public void fillHostUrl() {
if (OpenShiftUtils.getInstance().getRoute("todo2") == null || !OpenShiftUtils.getInstance().getRoute("todo2").getSpec().getHost().equals("/")) {
TodoUtils.createDefaultRouteForTodo("todo2", "/");
}
String host = "http://" + OpenShiftUtils.getInstance().getRoute("todo2").getSpec().getHost();
Map<String, String> todoConfigMap = new HashMap<>();
todoConfigMap.put("host", host);
new Form($(By.id("root"))).fillByTestId(todoConfigMap);
}
Aggregations