blob: d1b52d360cd04779f1edd7b7671965267ed9a640 (
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
29
|
package com.vaadin.tests.components.customlayout;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.vaadin.testbench.ElementQuery;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.CustomLayoutElement;
import com.vaadin.testbench.elements.LabelElement;
import com.vaadin.tests.tb3.SingleBrowserTest;
public class CustomLayoutWithNullTemplateTest extends SingleBrowserTest {
@Test
public void testChildComponents() {
openTestURL();
ElementQuery<CustomLayoutElement> customLayout = $(
CustomLayoutElement.class);
// Verify the Button and Label are rendered inside the CustomLayout.
assertTrue("Button was not rendered.",
customLayout.$(ButtonElement.class).exists());
assertTrue("Label was not rendered.",
customLayout.$(LabelElement.class).exists());
}
}
|