blob: d01aef95e010145f61a729029083a196d61e4a89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.vaadin.tests.application;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class TerminalErrorNotificationTest extends MultiBrowserTest {
@Test
public void tb2test() throws Exception {
openTestURL();
$(ButtonElement.class).first().click();
assertTrue(isElementPresent(NotificationElement.class));
assertEquals("Got an exception: You asked for it",
$(NotificationElement.class).first().getCaption());
}
}
|