blob: 8a13c8bf808ae5c59c2dfa43967c1e7a5f34f6a8 (
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 org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class VaadinSessionAttributeTest extends MultiBrowserTest {
@Test
public void testSessionAttribute() {
openTestURL();
$(ButtonElement.class).first().click();
assertEquals("notification does not contain suitable text", "42 & 84",
$(NotificationElement.class).first().getCaption());
}
}
|