blob: 14e4aaaf9a45fa8b11ee82047325dca4bee8fc65 (
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
|
package com.vaadin.tests.themes.valo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.List;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class FormLayoutInsideTableTest extends MultiBrowserTest {
@Test
public void nestedItemHasBorderTop() {
openTestURL();
List<WebElement> formLayoutRows = findElements(
By.cssSelector("tr.v-formlayout-row"));
WebElement secondNestedRow = formLayoutRows.get(1);
WebElement td = secondNestedRow.findElement(By.tagName("td"));
assertThat(td.getCssValue("border-top-width"), is("1px"));
}
}
|