You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ComponentIncludedInCustomWidgetsetTest.java 758B

1234567891011121314151617181920212223242526
  1. package com.vaadin.tests.components.ui;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import org.openqa.selenium.WebElement;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. /**
  7. * Tests if a component is included in a custom widgetset
  8. * (com.vaadin.tests.widgetset.TestingWidgetSet)
  9. *
  10. * @author Vaadin Ltd
  11. */
  12. public class ComponentIncludedInCustomWidgetsetTest extends MultiBrowserTest {
  13. @Test
  14. public void testComponentInTestingWidgetsetNotInDefaultWidgetset() {
  15. openTestURL();
  16. WebElement component = vaadinElementById("missing-component");
  17. assertEquals(
  18. "This component is available in TestingWidgetset, but not in DefaultWidgetset",
  19. component.getText());
  20. }
  21. }