use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class CommonSteps method fillTextIntoTextEditor.
// for CodeMirror text editor
@When("^fill text into text-editor$")
public void fillTextIntoTextEditor(DataTable data) {
StringBuilder text = new StringBuilder();
data.asList().forEach(s -> {
text.append(s);
});
new Form(new SyndesisRootPage().getRootElement()).fillEditor(text.toString());
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class CommonSteps method fillFormViaTestID.
@Then("^fill in values by element data-testid")
public void fillFormViaTestID(DataTable data) {
Form.waitForInputs(20);
TestUtils.sleepIgnoreInterrupt(2000);
Map<String, String> dataMap = new HashMap<>(data.asMap(String.class, String.class));
dataMap.replaceAll((key, value) -> value == null ? "" : value);
new Form(new SyndesisRootPage().getRootElement()).fillByTestId(dataMap);
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class CommonSteps method forceFillFormViaTestID.
@Then("^force fill in values by element data-testid$")
public void forceFillFormViaTestID(DataTable data) {
Form.waitForInputs(20);
TestUtils.sleepIgnoreInterrupt(2000);
new Form(new SyndesisRootPage().getRootElement()).forceFillByTestId(data.asMap(String.class, String.class));
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class ConfigureConnectionSteps method fillFormInLowerCase.
private void fillFormInLowerCase(Map<String, String> properties) {
SelenideElement form = $(By.className("pf-c-form")).waitUntil(visible, 5000);
new Form(form.shouldBe(visible)).fillByTestId(properties.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey().toLowerCase(), Map.Entry::getValue)));
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class NameConnectionSteps method fillNameConnectionForm.
@When("^fills? Name Connection form$")
public void fillNameConnectionForm(DataTable data) {
new Form(nameConnectionPage.getRootElement()).fillByLabel(data.asMap(String.class, String.class));
TestUtils.sleepForJenkinsDelayIfHigher(1);
}
Aggregations