summaryrefslogtreecommitdiffstats
path: root/uitest/src
diff options
context:
space:
mode:
authorSauli Tähkäpää <sauli@vaadin.com>2014-09-18 08:41:13 +0300
committerVaadin Code Review <review@vaadin.com>2014-09-19 05:43:06 +0000
commita2ed922e7f86db00c75981e2d9a4fc6651b72476 (patch)
tree6565add30fd6c5b584f49e3ccd90bbb325b6c603 /uitest/src
parent14c291875c53a4a2d15fd2f2caf3a663c1dca9cf (diff)
downloadvaadin-framework-a2ed922e7f86db00c75981e2d9a4fc6651b72476.tar.gz
vaadin-framework-a2ed922e7f86db00c75981e2d9a4fc6651b72476.zip
Fix PopupViewResizeWhileOpenTest to use correct shadow.
Change-Id: I3be56581099d87a9ff3b2147f26a8a84af063189
Diffstat (limited to 'uitest/src')
-rw-r--r--uitest/src/com/vaadin/tests/components/popupview/PopupViewResizeWhileOpenTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/components/popupview/PopupViewResizeWhileOpenTest.java b/uitest/src/com/vaadin/tests/components/popupview/PopupViewResizeWhileOpenTest.java
index bca8fd4390..6c23e4e4a5 100644
--- a/uitest/src/com/vaadin/tests/components/popupview/PopupViewResizeWhileOpenTest.java
+++ b/uitest/src/com/vaadin/tests/components/popupview/PopupViewResizeWhileOpenTest.java
@@ -26,6 +26,7 @@ import java.util.List;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
+import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import com.vaadin.testbench.elements.ButtonElement;
@@ -57,7 +58,7 @@ public class PopupViewResizeWhileOpenTest extends MultiBrowserTest {
}
private void assertShadowSize() {
- Dimension shadowSize = findElement(By.className("v-shadow")).getSize();
+ Dimension shadowSize = getPopupShadow().getSize();
Dimension layoutSize = $(VerticalLayoutElement.class).id("content-vl")
.getSize();
@@ -67,6 +68,11 @@ public class PopupViewResizeWhileOpenTest extends MultiBrowserTest {
assertThat(shadowSize.width, is(lessThan(layoutSize.width + 10)));
}
+ private WebElement getPopupShadow() {
+ //Shadows with index 0: tooltip, index 1: popup
+ return findElements(By.className("v-shadow")).get(1);
+ }
+
@Override
public List<DesiredCapabilities> getBrowsersToTest() {
return Collections.singletonList(Browser.IE8.getDesiredCapabilities());