blob: b614eb69b667048d17834749c4fca6e04881cc97 (
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
32
|
package com.vaadin.tests.components.table;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.TableElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
* Test to see if VScrollTable handles Push updates correctly.
*
* @author Vaadin Ltd
*/
public class AsyncPushUpdatesTest extends MultiBrowserTest {
@Test(expected = NoSuchElementException.class)
public void InsertedRowsAreNotDuplicated() {
openTestURL();
WebElement button = $(ButtonElement.class).first();
button.click();
$(TableElement.class).first().getCell(12, 0);
fail("Duplicates are present.");
}
}
|