4 package eu
.etaxonomy
.taxeditor
.newWizard
;
6 import junit
.framework
.Assert
;
8 import org
.eclipse
.swtbot
.eclipse
.finder
.waits
.Conditions
;
9 import org
.eclipse
.swtbot
.swt
.finder
.widgets
.SWTBotButton
;
10 import org
.junit
.Test
;
12 import eu
.etaxonomy
.taxeditor
.test
.AbstractEditorTest
;
18 public class NewTaxonWizardTest
extends AbstractEditorTest
{
23 bot
.menu("General").menu("New").menu("Taxon").click();
24 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
28 public void unalteredDialogCanNotBefinished() {
29 boolean finishIsEnabled
= bot
.button("Finish").isEnabled();
30 Assert
.assertEquals(false, finishIsEnabled
);
35 public void canCreateNewTaxonMinimal(){
36 utils
.openFilteredSelection(0, "Choose a Classification");
38 SWTBotButton okButton
= bot
.button(1);
39 bot
.text(0).setText("?");
40 bot
.waitUntil(Conditions
.widgetIsEnabled(okButton
));
42 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
43 String newTaxonName
= "Test taxon Smartbert";
44 bot
.textWithLabel("New Taxon").setText(newTaxonName
);
45 bot
.waitUntil(Conditions
.widgetIsEnabled(bot
.button("Finish")));
48 // bot.waitUntil(Conditions.waitForEditor(WithPartId.withPartId(MultiPageTaxonEditor.ID)));
49 // Assert.assertEquals(newTaxonName, bot.activeEditor().getTitle());