aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/application/InitiallyDeferredLoadingTest.java
blob: f6c7a628e11b7ad71e046635864315c828cd01e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.vaadin.tests.application;

import static org.junit.Assert.assertEquals;

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

import com.vaadin.tests.tb3.SingleBrowserTest;

public class InitiallyDeferredLoadingTest extends SingleBrowserTest {
    @Test
    public void testInitiallyDeferredComponent() {
        openTestURL();

        WebElement deferredComponent = findElement(By.id("deferred"));

        assertEquals("DeferredConnector", deferredComponent.getText());
    }
}