1
|
package eu.etaxonomy.taxeditor.ui.dialogs;
|
2
|
|
3
|
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
|
4
|
import org.junit.Ignore;
|
5
|
import org.junit.Test;
|
6
|
|
7
|
import eu.etaxonomy.taxeditor.test.AbstractEditorTest;
|
8
|
|
9
|
@Ignore
|
10
|
public class LoginDialogTest extends AbstractEditorTest{
|
11
|
|
12
|
@Test
|
13
|
public void canLoginAsAdmin() throws Exception {
|
14
|
bot.menu("General").menu("Login").click();
|
15
|
bot.waitUntil(Conditions.shellIsActive("Login"));
|
16
|
bot.textWithLabel("Username").setText("admin");
|
17
|
bot.textWithLabel("Password").setText("00000");
|
18
|
utils.ok();
|
19
|
}
|
20
|
|
21
|
@Test
|
22
|
public void canCancelLogin() throws Exception {
|
23
|
bot.menu("General").menu("Login").click();
|
24
|
bot.waitUntil(Conditions.shellIsActive("Login"));
|
25
|
utils.cancel();
|
26
|
}
|
27
|
|
28
|
}
|