aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/ui/ComponentMissingFromDefaultWidgetsetTest.java
blob: 1d7afdafa4a4df936cd059df7ba756403f4c227a (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.assertTrue;

import org.junit.Test;
import org.openqa.selenium.WebElement;

import com.vaadin.tests.tb3.SingleBrowserTest;

/**
 * Test for testing if a component is missing from a widgetset.
 *
 * @author Vaadin Ltd
 */
public class ComponentMissingFromDefaultWidgetsetTest
        extends SingleBrowserTest {

    @Test
    public void testComponentInTestingWidgetset() {
        openTestURL();
        WebElement component = vaadinElementById("missing-component");
        assertTrue(component.getText().startsWith(
                "Widgetset 'com.vaadin.DefaultWidgetSet' does not contain an implementation for com.vaadin.tests.widgetset.server.MissingFromDefaultWidgetsetComponent."));

    }
}