Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDariusz Luksza2012-01-20 23:38:39 +0000
committerMatthias Sohn2012-01-20 23:38:39 +0000
commit4172ba9f20d918f81bd9767c306ef5d2238c1556 (patch)
tree40a2bfed69bf015931af26ce34a62b0327fead3b /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history
parent0ba7d5f3f177a8a7a819acd22fd7af0c11e457ed (diff)
downloadegit-4172ba9f20d918f81bd9767c306ef5d2238c1556.tar.gz
egit-4172ba9f20d918f81bd9767c306ef5d2238c1556.tar.xz
egit-4172ba9f20d918f81bd9767c306ef5d2238c1556.zip
Fix failing tests in HistoryViewTest
Wait for showing GenericHistoryView before seleting this view. Also adds TestUtil.waitUntilViewWithGivenIdShows(String) helper method to simplify things in feature. Change-Id: Iddf141593c951fe471718c5b84236347cf54d33c Signed-off-by: Dariusz Luksza <dariusz@luksza.org> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
index e91553101..bef96be0d 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
@@ -268,8 +268,9 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
// empty
}
});
- return bot.viewById("org.eclipse.team.ui.GenericHistoryView").bot()
- .table();
+ String genericHistoryViewId = "org.eclipse.team.ui.GenericHistoryView";
+ TestUtil.waitUntilViewWithGivenIdShows(genericHistoryViewId);
+ return bot.viewById(genericHistoryViewId).bot().table();
}
@Test

Back to the top