blob: 7ba6eacdf2035a7fea5e8b0e6898af6511bc8be0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.vaadin.tests.applicationservlet;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.vaadin.testbench.By;
import com.vaadin.tests.tb3.SingleBrowserTest;
public class ContextProtocolTest extends SingleBrowserTest {
@Test
public void contextPathCorrect() {
openTestURL();
// Added by bootstrap
assertEquals("said", executeScript("return window.hello"));
// Added by client side
assertEquals(getBaseURL() + "/statictestfiles/image.png",
findElement(By.id("image")).getAttribute("src"));
}
}
|