blob: a81f1578d372eb09f5dfa380945851c4c1e913b4 (
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
|
package com.vaadin.tests.components.ui;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
* Tests if a component is included in a custom widgetset
* (com.vaadin.tests.widgetset.TestingWidgetSet)
*
* @author Vaadin Ltd
*/
public class ComponentIncludedInCustomWidgetsetTest extends MultiBrowserTest {
@Test
public void testComponentInTestingWidgetsetNotInDefaultWidgetset() {
openTestURL();
WebElement component = vaadinElementById("missing-component");
assertEquals(
"This component is available in TestingWidgetset, but not in DefaultWidgetset",
component.getText());
}
}
|