use of org.eclipse.reddeer.swt.impl.button.NextButton in project jbosstools-openshift by jbosstools.
the class BuilderImageApplicationWizardHandlingTest method setDefaultValuesAndAssert.
private void setDefaultValuesAndAssert(String defaultRepo, String defaultRef, String defaultContextDir) {
new LabeledText(OpenShiftLabel.TextLabels.GIT_REPO_URL).setText(defaultRepo);
new LabeledText(OpenShiftLabel.TextLabels.GIT_REF).setText(defaultRef);
new LabeledText(OpenShiftLabel.TextLabels.CONTEXT_DIR).setText(defaultContextDir);
assertTrue("Next button should be enabled after setting git values to default.", new NextButton().isEnabled());
assertTrue("Finish button should be enabled after setting git values to default.", new FinishButton().isEnabled());
}
use of org.eclipse.reddeer.swt.impl.button.NextButton in project jbosstools-openshift by jbosstools.
the class StoreConnectionTest method secureStorageDisabledJBIDE19604Test.
@Test
public void secureStorageDisabledJBIDE19604Test() {
deleteSecureStorage();
invokeNewAppWizardFromCentral();
new CheckBox(OpenShiftLabel.TextLabels.STORE_PASSWORD).toggle(true);
new NextButton().click();
// Cancel secure storage shell
try {
new DefaultShell(OpenShiftLabel.Shell.SECURE_STORAGE_PASSWORD);
} catch (CoreLayerException ex) {
new DefaultShell(OpenShiftLabel.Shell.SECURE_STORAGE);
}
new CancelButton().click();
// Cancel warning shell
new DefaultShell("Warning");
new OkButton().click();
new CheckBox(OpenShiftLabel.TextLabels.STORE_PASSWORD).toggle(false);
// Next button should work
new NextButton().click();
AbstractWaitCondition backButtonIsEnabled = new AbstractWaitCondition() {
@Override
public boolean test() {
return new BackButton().isEnabled();
}
};
new WaitUntil(backButtonIsEnabled);
new CancelButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.NextButton in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method openWizardFromShellMenu.
/**
* Opens new application wizard via shell menu File - New. There has to be
* an existing connection in OpenShift explorer, otherwise method fails.
*/
public void openWizardFromShellMenu() {
new WorkbenchShell().setFocus();
new NewWizard().open();
new DefaultShell("New").setFocus();
new DefaultTreeItem("OpenShift", "OpenShift Application").select();
new NextButton().click();
signToOpenShiftAndClickNext();
new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
Aggregations