use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project linuxtools by eclipse.
the class SearchDialogTest method testSearchDialog.
@Test
public void testSearchDialog() {
DockerExplorerView explorer = new DockerExplorerView();
getConnection().openImageSearchDialog(IMAGE_NAME, null, REGISTRY_URL);
ImageSearchPage pageOne = new ImageSearchPage(explorer);
pageOne.searchImage();
assertFalse("Search result is empty!", pageOne.getSearchResults().isEmpty());
assertTrue("Search result do not contains image:" + EXPECTED_IMAGE_NAME + "!", pageOne.searchResultsContains(EXPECTED_IMAGE_NAME));
pageOne.next();
// new WaitUntil(new ShellIsAvailable("Progress Information"), TimePeriod.DEFAULT);
AbstractWait.sleep(TimePeriod.getCustom(5));
ImageTagSelectionPage pageTwo = new ImageTagSelectionPage(pageOne);
assertFalse("Search tags are empty!", pageTwo.getTags().isEmpty());
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
if (!pageTwo.tagsContains(IMAGE_TAG)) {
pageTwo.cancel();
new CancelButton().click();
fail("Search results do not contain tag: " + IMAGE_TAG + "!");
}
pageTwo.selectTag(IMAGE_TAG);
pageTwo.finish();
new PushButton("Finish").click();
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project linuxtools by eclipse.
the class ImageRunNetworkPage method finish.
public void finish() {
if (new FinishButton().isEnabled()) {
new FinishButton().click();
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
} else {
throw new RuntimeException("Image cannot be run! (Duplicate name?)");
}
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project linuxtools by eclipse.
the class ImageRunSelectionPage method finish.
public void finish() {
if (new FinishButton().isEnabled()) {
new FinishButton().click();
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
} else {
throw new RuntimeException("Image cannot be run! (Duplicate name?)");
}
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project linuxtools by eclipse.
the class ImageSearchPage method searchImage.
public void searchImage() {
new PushButton("Search").click();
new WaitWhile(new JobIsRunning(), TimePeriod.DEFAULT);
}
use of org.eclipse.reddeer.workbench.core.condition.JobIsRunning in project linuxtools by eclipse.
the class ImageSearchPage method finish.
public void finish() {
new FinishButton().click();
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
Aggregations