Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2010-08-11 14:17:06 +0000
committerMathias Kinzler2010-08-11 15:13:49 +0000
commitc72dc6177cf07b2cfdeeafca9569e073ce39adc6 (patch)
tree5be7cd0c97b1ed7bd3868c2684be05d10973b334 /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test
parentcf12cbbba845bbaab24f312b481551915b319294 (diff)
downloadegit-c72dc6177cf07b2cfdeeafca9569e073ce39adc6.tar.gz
egit-c72dc6177cf07b2cfdeeafca9569e073ce39adc6.tar.xz
egit-c72dc6177cf07b2cfdeeafca9569e073ce39adc6.zip
Checkout branch: use common UI
This makes the "checkout branch" UI re-usable for both the Repositories View and the History View so that we have the same labels and so on. Change-Id: Id087c439eb06a8c0771c81a007667d0c35ecec98 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java8
1 files changed, 5 insertions, 3 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 0f56eb3824..ef526cce62 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
@@ -263,9 +263,11 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
ContextMenuHelper.clickContextMenu(table, util
.getPluginLocalizedValue("CreateBranch.label"));
SWTBotShell dialog = bot
- .shell(UIText.BranchSelectionDialog_QuestionNewBranchTitle);
- dialog.bot().text().setText("NewBranch");
- dialog.bot().button(IDialogConstants.OK_LABEL).click();
+ .shell(UIText.CreateBranchWizard_NewBranchTitle);
+ dialog.bot().textWithId("BranchName").setText("NewBranch");
+ // for some reason, checkboxwithlabel doesn't seem to work
+ dialog.bot().checkBox().deselect();
+ dialog.bot().button(IDialogConstants.FINISH_LABEL).click();
waitInUI();
assertNotNull(repo.resolve(Constants.R_HEADS + "NewBranch"));
}

Back to the top