diff options
| author | Benjamin Muskalla | 2010-07-06 05:40:23 +0000 |
|---|---|---|
| committer | Mathias Kinzler | 2010-07-06 05:40:23 +0000 |
| commit | df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18 (patch) | |
| tree | 08b043da32c849d6585694ce34a1c0d0c5644837 | |
| parent | 152db023a5215f175ca3635599064306807fee9d (diff) | |
| download | egit-df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18.tar.gz egit-df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18.tar.xz egit-df8e03420210c31cf4d1be4fbeeeb1ce58ef2f18.zip | |
Minor fix for UI tests to get the correct button on GTK
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.java | 2 |
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 38eb310368..f93933d484 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); |
