use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class ApicurioSteps method checkFieldsExistence.
@Then("^check that apicurio connection authentication type contains only fields:$")
public void checkFieldsExistence(DataTable fields) {
List<List<String>> dataRows = fields.cells();
List<String> first = new ArrayList<String>();
for (List<String> row : dataRows) {
first.add(row.get(0));
}
new Form($(Elements.CARD_PF)).checkByTestId(first);
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class ReadMessages method selectChannel.
public void selectChannel(String channel) {
// check that value of the channel is in the option data list
SelenideElement dataList = $(By.id("channel"));
dataList.findAll(By.tagName("option")).filter(Condition.value(channel)).shouldHaveSize(1);
// the name of the channel has to be fill in manually. The select from the option in the <datalist> is not able
Map<String, String> mymap = new HashMap<String, String>();
mymap.put("channel", channel);
new Form(new SyndesisRootPage().getRootElement()).fillByTestId(mymap);
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class ServiceNowSteps method fillInAndModifyValuesByElementID.
@When("fill in and modify values by element ID")
public void fillInAndModifyValuesByElementID(DataTable data) {
Map<String, String> map = new HashMap<>();
data.asMap(String.class, String.class).forEach((k, v) -> map.put(k.toString(), snUtils.modifySNNumber(v.toString())));
new Form(new SyndesisRootPage().getRootElement()).fillByTestId(map);
}
use of io.syndesis.qe.fragments.common.form.Form in project syndesis-qe by syndesisio.
the class CreateIntegrationSteps method fillNameConnectionForm.
@When("^fills? Name Integration form$")
public void fillNameConnectionForm(DataTable data) {
new Form(createIntegration.getRootElement()).fillByTestId(data.asMap(String.class, String.class));
TestUtils.sleepForJenkinsDelayIfHigher(1);
}
Aggregations