blob: 032a6c5572de796f80ff2c162303199eaf4e73bc (
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.themes.valo;
import java.io.IOException;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.GridElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class GridDisabledTest extends MultiBrowserTest {
@Test
public void disabledGrid() throws IOException {
openTestURL();
waitUntilLoadingIndicatorNotVisible();
GridElement disabledGrid = $(GridElement.class).id("disabled-grid");
assertFalse(
disabledGrid.getClassNames().toString().contains("v-disabled"));
$(ButtonElement.class).caption("Disable").first().click();
assertTrue(
disabledGrid.getClassNames().toString().contains("v-disabled"));
}
}
|