use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class LabelsTest method setInvalidName.
private void setInvalidName(String name) {
new LabeledText(OpenShiftLabel.TextLabels.LABEL).setText(name);
assertFalse("OK button should be disable for invalid name, but it is not.", buttonIsEnabled(new OkButton()));
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class ProjectNameValidationTest method testInvalidProjectNameFormat.
@Test
public void testInvalidProjectNameFormat() {
new LabeledText(OpenShiftLabel.TextLabels.PROJECT_NAME).setText("--");
new DefaultText(PROJECT_NAME_FORMAT_ERROR);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class ProjectNameValidationTest method testLongProjectName.
@Test
public void testLongProjectName() {
new LabeledText(OpenShiftLabel.TextLabels.PROJECT_NAME).setText("0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "0123456789" + "01234");
new DefaultText(PROJECT_NAME_MAX_LENGTH_ERROR);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class ServerAdapterWizardHandlingTest method testPodPathWidgetAccessibility.
@Test
public void testPodPathWidgetAccessibility() {
openNewServerAdapterWizard();
next();
new PushButton(OpenShiftLabel.Button.ADVANCED_OPEN).click();
new CheckBox("Use inferred Pod Deployment Path").toggle(false);
LabeledText podPath = new LabeledText("Pod Deployment Path: ");
String podDeploymentPath = "/opt/eap/standalone/deployments/";
podPath.setText("");
assertFalse("Next button should be disable if pod path is empty is selected.", nextButtonIsEnabled());
podPath.setText(podDeploymentPath);
assertTrue("Next button should be reeenabled if pod path is correctly filled in.", nextButtonIsEnabled());
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project jbosstools-openshift by jbosstools.
the class ServerAdapterWizardHandlingTest method testSourcePathWidgetAccessibility.
@Test
public void testSourcePathWidgetAccessibility() {
openNewServerAdapterWizard();
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
next();
new PushButton(OpenShiftLabel.Button.ADVANCED_OPEN).click();
LabeledText srcPath = new LabeledText("Source Path: ");
String srcPathText = srcPath.getText();
srcPath.setText("");
assertFalse("Next button should be disable if source path is empty is selected.", nextButtonIsEnabled());
srcPath.setText(srcPathText);
assertTrue("Next button should be reeenabled if source path is correctly filled in.", nextButtonIsEnabled());
srcPath.setText("invalid path");
assertFalse("Next button should be disabled if source path is invalid or not existing.", nextButtonIsEnabled());
srcPath.setText(srcPathText);
assertTrue("Next button should be reeenabled if source path is correctly filled in.", nextButtonIsEnabled());
}
Aggregations