aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/table/SelectableEditableTest.java
blob: 8b5b54cfaae1cd7a00ef8016350697bf2cd5121c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.vaadin.tests.components.table;

import org.junit.Assert;
import org.junit.Test;

import com.vaadin.testbench.elements.TableElement;
import com.vaadin.tests.tb3.MultiBrowserTest;

public class SelectableEditableTest extends MultiBrowserTest {
    @Test
    public void testSelectFromCellWith() throws Exception {
        openTestURL();
        TableElement table = $(TableElement.class).first();
        table.getCell(0, 1).click(70, 12);
        Assert.assertTrue("Element does not have the 'v-selected' css class",
                hasCssClass(table.getRow(0), "v-selected"));
    }
}