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());
}
}
stable
blob: 8364d6409410f3029da4caf21a562f7ab04d8424 (
plain)