aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2010-07-06 01:40:23 (EDT)
committerMathias Kinzler2010-07-06 01:40:23 (EDT)
commitdf8e03420210c31cf4d1be4fbeeeb1ce58ef2f18 (patch)
tree08b043da32c849d6585694ce34a1c0d0c5644837
parent152db023a5215f175ca3635599064306807fee9d (diff)
downloadegit-df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18.zip
egit-df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18.tar.gz
egit-df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18.tar.bz2
Minor fix for UI tests to get the correct button on GTKrefs/changes/61/1061/2
On GTK, the default behavior is to show the cancel button before the OK button in all dialogs. In the tests we should not assume the order of the buttons but try to match by the button text. In order to run the tests on GTK, it is neccessary to identify the right button as all tests currently "click" the Cancel button when trying to open the Repository View. Change-Id: Icc767830e398a3144bb17a61a286eebcb5113aa8 Signed-off-by: Benjamin Muskalla <bmuskalla@eclipsesource.com> Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
index 38eb310..f93933d 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
@@ -317,7 +317,7 @@ public abstract class GitRepositoriesViewTestBase {
SWTBotShell shell = bot.shell("Show View").activate();
shell.bot().tree().expandNode(gitCategory).getNode(viewName)
.select();
- shell.bot().button(0).click();
+ shell.bot().button(IDialogConstants.OK_LABEL).click();
viewbot = bot.viewByTitle(viewName);