blob: fd46ba17831ba401e3b6e9b0856c58c075c97822 (
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
|
package com.vaadin.tests.components.grid;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.Locale;
import org.junit.Test;
import com.vaadin.testbench.elements.GridElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class GridMultiSelectionScrollBarTest extends MultiBrowserTest {
@Test
public void testNoVisibleScrollBar() throws IOException {
setDebug(true);
openTestURL();
assertTrue("Horizontal scrollbar should not be visible.",
$(GridElement.class).first().getHorizontalScroller()
.getAttribute("style").toLowerCase(Locale.ROOT)
.contains("display: none;"));
// Just to make sure nothing odd happened.
assertNoErrorNotifications();
}
}
|