blob: 607e089d204932e70fd5b134f36c349ef0cc1641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.vaadin.tests.layoutmanager;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.tests.tb3.SingleBrowserTest;
public class LayoutDuringStateUpdateTest extends SingleBrowserTest {
@Test
public void layoutDuringStateUpdate() {
openTestURL();
waitUntilLoadingIndicatorNotVisible();
// add the custom component
$(ButtonElement.class).first().click();
waitUntilLoadingIndicatorNotVisible();
// ensure the layouting failed to be triggered during the state update
WebElement label = findElement(By.className("gwt-Label"));
assertEquals("Layout phase count: 1", label.getText());
}
}
|