blob: b3e2fd81082cbfee3f083160dd5737d5b829e694 (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
package com.vaadin.tests.components.table;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
* Test class for issue #13399 : Left alignment should not be set explicitly
* instead of relying on default behavior
*
* @author Vaadin Ltd
*/
public class LeftColumnAlignmentTest extends MultiBrowserTest {
@Test
public void testLeftColumnAlignment() throws Exception {
openTestURL();
// Do align columns to the left
WebElement webElement = driver.findElement(By.className("v-button"));
webElement.click();
assertTrue("Table caption is not aligned to the left", isElementPresent(
By.className("v-table-caption-container-align-left")));
WebElement footer = driver
.findElement(By.className("v-table-footer-container"));
assertEquals("Table footer is not aligned to the left", "left",
footer.getCssValue("text-align"));
WebElement cell = driver
.findElement(By.className("v-table-cell-wrapper"));
assertEquals("Table cell is not aligned to the left", "left",
cell.getCssValue("text-align"));
}
}
|