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
.Ignore
;
11 import org
.junit
.Test
;
13 import eu
.etaxonomy
.taxeditor
.test
.AbstractEditorTest
;
20 public class NewTaxonWizardTest
extends AbstractEditorTest
{
25 bot
.menu("General").menu("New").menu("Taxon").click();
26 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
30 public void unalteredDialogCanNotBefinished() {
31 boolean finishIsEnabled
= bot
.button("Finish").isEnabled();
32 Assert
.assertEquals(false, finishIsEnabled
);
37 public void canCreateNewTaxonMinimal(){
38 utils
.openFilteredSelection(0, "Choose a Classification");
40 SWTBotButton okButton
= bot
.button(1);
41 bot
.text(0).setText("?");
42 bot
.waitUntil(Conditions
.widgetIsEnabled(okButton
));
44 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
45 String newTaxonName
= "Test taxon Smartbert";
46 bot
.textWithLabel("New Taxon").setText(newTaxonName
);
47 bot
.waitUntil(Conditions
.widgetIsEnabled(bot
.button("Finish")));
50 // bot.waitUntil(Conditions.waitForEditor(WithPartId.withPartId(MultiPageTaxonEditor.ID)));
51 // Assert.assertEquals(newTaxonName, bot.activeEditor().getTitle());