use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class CreateNewConnectionTest method shouldExtractTokenInBrowserWindow.
// Skip Test for now, not stable
// @Test
@RunIf(conditionClass = ConnectionCredentialsExists.class)
public void shouldExtractTokenInBrowserWindow() {
openConnectionWizardAndSetDefaultServerOAuth();
String token = new AuthenticationTokenRetrival(DatastoreOS3.USERNAME, DatastoreOS3.PASSWORD).retrieveToken();
String tokenText = new LabeledText(OpenShiftLabel.TextLabels.TOKEN).getText();
assertEquals(token, tokenText);
new CancelButton().click();
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class OpenNewConnectionWizardTest method verifyNewConnectionWizardIsOpened.
private void verifyNewConnectionWizardIsOpened() {
Shell connectionShell = new DefaultShell(OpenShiftLabel.Shell.NEW_CONNECTION);
new DefaultCombo(OpenShiftLabel.TextLabels.NEW_CONNECTION);
new CancelButton().click();
new WaitWhile(new ShellIsAvailable(connectionShell));
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.
the class DeployDockerImageTest method closeWizard.
/**
* Closes Deploy Image to OpenShift wizard.
*/
private void closeWizard() {
new CancelButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.DEPLOY_IMAGE_TO_OPENSHIFT));
}
use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-hibernate by jbosstools.
the class SelectConnectionProfileDialog method cancel.
public void cancel() {
new CancelButton(this).click();
new WaitWhile(new ShellIsAvailable(this));
new DefaultShell("");
}
Aggregations