blob: 0abd906f59844f373f02a239ffc2499c2363c8b0 (
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.base;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import java.io.IOException;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class DisabledMenuBarItemTest extends MultiBrowserTest {
@Test
public void disabledMenuItemShouldHaveOpacity() throws IOException {
openTestURL();
WebElement element = driver
.findElement(By.className("v-menubar-menuitem-disabled"));
assertThat(element.getCssValue("opacity"), is("0.5"));
compareScreen("transparent");
}
}
|