use of org.eclipse.reddeer.core.matcher.WithTextMatcher in project jbosstools-openshift by jbosstools.
the class NewApplicationWizardHandlingTest method testTemplatesRelatedWidgetAccess.
@Test
public void testTemplatesRelatedWidgetAccess() {
assertTrue("Server template selection should be chosen by default.", new DefaultTabItem(OpenShiftLabel.TextLabels.SERVER_TEMPLATE).isSelected());
new DefaultTabItem(OpenShiftLabel.TextLabels.CUSTOM_TEMPLATE).activate();
try {
new DefaultTree();
fail("Tree with server templates should not be visible if local template " + "tab item is selected.");
} catch (RedDeerException ex) {
// pass
}
assertTrue("Browse button should be visible and enabled while local template " + "tab item is selected.", new PushButton(OpenShiftLabel.Button.BROWSE).isEnabled());
new DefaultTabItem(OpenShiftLabel.TextLabels.SERVER_TEMPLATE).activate();
assertTrue("Tree with server templates should be visible and enabled if server template " + "tab item is selected.", new DefaultTree().isEnabled());
try {
new PushButton(1, new WithTextMatcher(OpenShiftLabel.Button.BROWSE));
fail("Browse button should not be visible while server template tab item is selected.");
} catch (RedDeerException ex) {
// pass
}
}
use of org.eclipse.reddeer.core.matcher.WithTextMatcher in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addDataVolumeToContainer.
public void addDataVolumeToContainer(String containerPath, String containerName) {
new PushButton(0, new WithTextMatcher("Add...")).click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("Mount a data volume container").click();
new DefaultCombo("Container").setText(containerName);
new OkButton().click();
}
use of org.eclipse.reddeer.core.matcher.WithTextMatcher in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addEnviromentVariable.
public void addEnviromentVariable(String name, String value) {
new PushButton(1, new WithTextMatcher("Add...")).click();
new LabeledText("Name:").setText(name);
new LabeledText("Value:").setText(value);
new OkButton().click();
}
use of org.eclipse.reddeer.core.matcher.WithTextMatcher in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addLabel.
public void addLabel(String name, String value) {
new PushButton(2, new WithTextMatcher("Add...")).click();
new LabeledText("Name:").setText(name);
new LabeledText("Value:").setText(value);
new OkButton().click();
}
use of org.eclipse.reddeer.core.matcher.WithTextMatcher in project linuxtools by eclipse.
the class ImageRunSelectionPage method addLinkToContainer.
public void addLinkToContainer(String containerName, String alias) {
new PushButton(1, new WithTextMatcher("Add...")).click();
new DefaultShell("Container Linking");
new LabeledCombo("Container:").setText(containerName);
new LabeledText("Alias:").setText(alias);
new OkButton().click();
}
Aggregations