Search in sources :

Example 11 with CancelButton

use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.

the class OpenNewApplicationWizardTest method closeWizard.

private void closeWizard() {
    new CancelButton().click();
    new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
    new WaitWhile(new JobIsRunning());
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning)

Example 12 with CancelButton

use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.

the class ProjectNameValidationTest method closeNewProjectShell.

private void closeNewProjectShell() {
    new CancelButton().click();
    new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.CREATE_OS_PROJECT), TimePeriod.LONG);
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton)

Example 13 with CancelButton

use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.

the class AbstractOpenShiftApplicationWizard method cancel.

/**
 * Waits and clicks Cancel button .
 */
public void cancel() {
    new WaitUntil(new ControlIsEnabled(new CancelButton()), TimePeriod.LONG);
    new CancelButton().click();
}
Also used : ControlIsEnabled(org.eclipse.reddeer.swt.condition.ControlIsEnabled) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 14 with CancelButton

use of org.eclipse.reddeer.swt.impl.button.CancelButton in project jbosstools-openshift by jbosstools.

the class OpenShift3ConnectionWizard method cancel.

/**
 * Waits and clicks Cancel button .
 */
public void cancel() {
    new WaitUntil(new ControlIsEnabled(new CancelButton()), TimePeriod.LONG);
    new CancelButton().click();
    waitForShellToClose(getShell());
}
Also used : ControlIsEnabled(org.eclipse.reddeer.swt.condition.ControlIsEnabled) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 15 with CancelButton

use of org.eclipse.reddeer.swt.impl.button.CancelButton in project linuxtools by eclipse.

the class ImageTagTest method testAddUpperCaseTagToImage.

@Test
public void testAddUpperCaseTagToImage() {
    DockerExplorerView explorer = new DockerExplorerView();
    explorer.open();
    try {
        getConnection().getImage(IMAGE_NAME).addTagToImage(IMAGE_TAG_UPPERCASE);
    } catch (WaitTimeoutExpiredException ex) {
        new CancelButton().click();
    // swallowing, it is not possible to tag image with upper case
    }
}
Also used : DockerExplorerView(org.eclipse.linuxtools.docker.reddeer.ui.DockerExplorerView) CancelButton(org.eclipse.reddeer.swt.impl.button.CancelButton) WaitTimeoutExpiredException(org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException) Test(org.junit.Test)

Aggregations

CancelButton (org.eclipse.reddeer.swt.impl.button.CancelButton)29 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)19 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)18 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)13 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)11 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)10 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)8 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)6 After (org.junit.After)6 Test (org.junit.Test)6 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)5 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)3 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)3 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)3 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)3 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)3 DockerExplorerView (org.eclipse.linuxtools.docker.reddeer.ui.DockerExplorerView)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)2 RunIf (org.eclipse.reddeer.junit.execution.annotation.RunIf)2 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)2