aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/ui/UiDependenciesInHtmlTest.java
blob: c49347862766a857f19fea8359aa1c7f81bba114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.vaadin.tests.components.ui;

import static org.junit.Assert.assertEquals;

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

import com.vaadin.tests.tb3.SingleBrowserTest;

public class UiDependenciesInHtmlTest extends SingleBrowserTest {

    @Test
    public void testUiDependencisInHtml() {
        openTestURL();

        String statusText = findElement(By.id("statusBox")).getText();

        assertEquals(
                "Script loaded before vaadinBootstrap.js: true\nStyle tag before vaadin theme: true\nStyle tags in correct order: true",
                statusText);
    }

}