blob: 45b386a73eda5f0af481d68666a1975490de60cb (
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
27
28
29
30
31
|
package com.vaadin.tests.resources;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openqa.selenium.By;
import com.vaadin.testbench.parallel.BrowserUtil;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class FrontendInitialResourceUITest extends MultiBrowserTest {
@Test
public void correctEs5Es6FileImportedThroughFrontend() {
openTestURL();
String es;
if (BrowserUtil.isIE(getDesiredCapabilities())) {
es = "es5";
} else {
es = "es6";
}
if (BrowserUtil.isIE(getDesiredCapabilities())) {
// For some reason needed by IE11
testBench().disableWaitForVaadin();
}
assertEquals("/VAADIN/frontend/" + es + "/logFilename.js",
findElement(By.tagName("body")).getText());
}
}
|